2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for curl -.
5 # Report bugs to <a suitable curl mailing list => http://curl.haxx.se/mail/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1998 - 2008 Daniel Stenberg, <daniel@haxx.se>
13 # This configure script may be copied, distributed and modified under the
14 # terms of the curl license; see COPYING for more details
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 # Zsh 3.x and 4.x performs 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
30 *posix
*) set -o posix
;;
39 # Avoid depending upon Character Ranges.
40 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
41 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
43 as_cr_digits
='0123456789'
44 as_cr_alnum
=$as_cr_Letters$as_cr_digits
46 # The user is always right.
47 if test "${PATH_SEPARATOR+set}" != set; then
48 echo "#! /bin/sh" >conf$$.sh
49 echo "exit 0" >>conf$$.sh
51 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
59 # Support unset when possible.
60 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
68 # We need space, tab and new line, in precisely that order. Quoting is
69 # there to prevent editors from complaining about space-tab.
70 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
71 # splitting by setting IFS to empty value.)
76 # Find who we are. Look in the path if we contain no directory separator.
78 *[\\/]* ) as_myself
=$0 ;;
79 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
83 test -z "$as_dir" && as_dir
=.
84 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
90 # We did not find ourselves, most probably we were run as `sh COMMAND'
91 # in which case we are not to be found in the path.
92 if test "x$as_myself" = x
; then
95 if test ! -f "$as_myself"; then
96 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
100 # Work around bugs in pre-3.0 UWIN ksh.
101 for as_var
in ENV MAIL MAILPATH
102 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
114 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
115 eval $as_var=C
; export $as_var
117 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
121 # Required to use basename.
122 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
123 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
129 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
136 # Name of the executable.
137 as_me
=`$as_basename -- "$0" ||
138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
139 X"$0" : 'X\(//\)$' \| \
140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
142 sed '/^.*\/\([^/][^/]*\)\/*$/{
160 if test "x$CONFIG_SHELL" = x
; then
161 if (eval ":") 2>/dev
/null
; then
167 if test $as_have_required = yes && (eval ":
177 as_func_ret_success () {
180 as_func_ret_failure () {
185 if as_func_success; then
189 echo as_func_success failed.
192 if as_func_failure; then
194 echo as_func_failure succeeded.
197 if as_func_ret_success; then
201 echo as_func_ret_success failed.
204 if as_func_ret_failure; then
206 echo as_func_ret_failure succeeded.
209 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
213 echo positional parameters were not saved.
216 test \$exitcode = 0) || { (exit 1); exit 1; }
221 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
222 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
223 ") 2> /dev
/null
; then
227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
228 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
231 test -z "$as_dir" && as_dir
=.
234 for as_base
in sh bash ksh sh5
; do
235 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
242 for as_shell
in $as_candidate_shells $SHELL; do
243 # Try only shells that exist, to save several forks.
244 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
245 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
246 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
250 # is contrary to our usage. Disable this feature.
251 alias -g '${1+"$@"}'='"$@"'
254 case `(set -o) 2>/dev/null` in
255 *posix
*) set -o posix
;;
264 CONFIG_SHELL
=$as_shell
266 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
267 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
270 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
271 # is contrary to our usage. Disable this feature.
272 alias -g '${1+"$@"}'='"$@"'
275 case `(set -o) 2>/dev/null` in
276 *posix
*) set -o posix
;;
292 as_func_ret_success
() {
295 as_func_ret_failure
() {
300 if as_func_success
; then
304 echo as_func_success failed.
307 if as_func_failure
; then
309 echo as_func_failure succeeded.
312 if as_func_ret_success
; then
316 echo as_func_ret_success failed.
319 if as_func_ret_failure
; then
321 echo as_func_ret_failure succeeded.
324 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
328 echo positional parameters were not saved.
331 test $exitcode = 0) ||
{ (exit 1); exit 1; }
336 test "x$as_lineno_1" != "x$as_lineno_2" &&
337 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
348 if test "x$CONFIG_SHELL" != x
; then
349 for as_var
in BASH_ENV ENV
350 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
353 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
357 if test $as_have_required = no
; then
358 echo This
script requires a shell
more modern than all the
359 echo shells that I found on your system. Please
install a
360 echo modern shell
, or manually run the
script under such a
361 echo shell
if you
do have one.
362 { (exit 1); exit 1; }
372 (eval "as_func_return () {
381 as_func_ret_success () {
384 as_func_ret_failure () {
389 if as_func_success; then
393 echo as_func_success failed.
396 if as_func_failure; then
398 echo as_func_failure succeeded.
401 if as_func_ret_success; then
405 echo as_func_ret_success failed.
408 if as_func_ret_failure; then
410 echo as_func_ret_failure succeeded.
413 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
417 echo positional parameters were not saved.
420 test \$exitcode = 0") ||
{
421 echo No shell found that supports shell functions.
422 echo Please tell autoconf@gnu.org about your system
,
423 echo including any error possibly output before this
431 test "x$as_lineno_1" != "x$as_lineno_2" &&
432 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
434 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
435 # uniformly replaced by the line number. The first 'sed' inserts a
436 # line-number line after each line using $LINENO; the second 'sed'
437 # does the real work. The second script uses 'N' to pair each
438 # line-number line with the line containing $LINENO, and appends
439 # trailing '-' during substitution so that $LINENO is not a special
441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
442 # scripts with optimization help from Paolo Bonzini. Blame Lee
443 # E. McMahon (1931-1989) for sed's syntax. :-)
455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
459 chmod +x
"$as_me.lineno" ||
460 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
461 { (exit 1); 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.
472 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
478 ECHO_C
= ECHO_N
= ECHO_T
=
482 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
489 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
490 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
496 rm -f conf$$ conf$$.exe conf$$.
file
497 if test -d conf$$.dir
; then
498 rm -f conf$$.dir
/conf$$.
file
504 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
506 # ... but there are two gotchas:
507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
509 # In both cases, we have to default to `cp -p'.
510 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
512 elif ln conf$$.
file conf$$
2>/dev
/null
; then
517 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
518 rmdir conf$$.dir
2>/dev
/null
520 if mkdir
-p .
2>/dev
/null
; then
523 test -d .
/-p && rmdir .
/-p
527 if test -x / >/dev
/null
2>&1; then
530 if ls -dL / >/dev
/null
2>&1; then
537 if test -d "$1"; then
543 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
544 ???[sx]*):;;*)false;;esac;fi
548 as_executable_p
=$as_test_x
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 # Check that we are running under the correct shell.
560 SHELL
=${CONFIG_SHELL-/bin/sh}
564 # Remove one level of quotation (which was required for Make).
565 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
570 if test "X$1" = X--no-reexec
; then
571 # Discard the --no-reexec flag, and continue.
573 elif test "X$1" = X--fallback-echo
; then
574 # Avoid inline document here, it may be left over
576 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
577 # Yippee, $echo works!
580 # Restart under the correct shell.
581 exec $SHELL "$0" --no-reexec ${1+"$@"}
584 if test "X$1" = X--fallback-echo
; then
585 # used as fallback echo
593 # The HP-UX ksh and POSIX shell print the target directory to stdout
595 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
597 if test -z "$ECHO"; then
598 if test "X${echo_test_string+set}" != Xset
; then
599 # find a string as large as possible, as long as the shell can cope with it
600 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
601 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
602 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
603 echo_test_string
=`eval $cmd` &&
604 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
611 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
612 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
616 # The Solaris, AIX, and Digital Unix default echo programs unquote
617 # backslashes. This makes it impossible to quote backslashes using
618 # echo "$something" | sed 's/\\/\\\\/g'
620 # So, first we look for a working echo in the user's PATH.
622 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
623 for dir
in $PATH /usr
/ucb
; do
625 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
626 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
627 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
635 if test "X$echo" = Xecho
; then
636 # We didn't find a better echo, so look for alternatives.
637 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
638 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 # This shell has a builtin print -r that does the trick.
642 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
643 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
644 # If we have ksh, try running configure again with it.
645 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
646 export ORIGINAL_CONFIG_SHELL
647 CONFIG_SHELL
=/bin
/ksh
649 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
653 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
658 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
659 test "X$echo_testing_string" = 'X\t' &&
660 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
661 test "X$echo_testing_string" = "X$echo_test_string"; then
662 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
664 SHELL
="$CONFIG_SHELL"
666 echo="$CONFIG_SHELL $0 --fallback-echo"
667 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
668 test "X$echo_testing_string" = 'X\t' &&
669 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 echo="$CONFIG_SHELL $0 --fallback-echo"
673 # maybe with a smaller string...
676 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
677 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
684 if test "$prev" != 'sed 50q "$0"'; then
685 echo_test_string
=`eval $prev`
686 export echo_test_string
687 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
689 # Oops. We lost completely, so just stick with echo.
698 # Copy echo and quote the copy suitably for passing to libtool from
699 # the Makefile, instead of quoting the original, which is used later.
701 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
702 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
708 exec 7<&0 </dev
/null
6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix
=/usr
/local
720 ac_config_libobj_dir
=.
726 SHELL
=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
730 PACKAGE_TARNAME
='curl'
732 PACKAGE_STRING
='curl -'
733 PACKAGE_BUGREPORT
='a suitable curl mailing list => http://curl.haxx.se/mail/'
735 ac_unique_file
="lib/urldata.h"
736 # Factoring default headers for most tests.
737 ac_includes_default
="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
810 MAINTAINER_MODE_FALSE
830 INSTALL_STRIP_PROGRAM
900 HAVE_PK11_CREATEGENERICOBJECT
924 ac_precious_vars
='build_alias
933 ac_subdirs_all
='ares'
935 # Initialize some variables set by options.
937 ac_init_version
=false
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
947 program_transform_name
=s
,x
,x
,
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir
='${exec_prefix}/bin'
962 sbindir
='${exec_prefix}/sbin'
963 libexecdir
='${exec_prefix}/libexec'
964 datarootdir
='${prefix}/share'
965 datadir
='${datarootdir}'
966 sysconfdir
='${prefix}/etc'
967 sharedstatedir
='${prefix}/com'
968 localstatedir
='${prefix}/var'
969 includedir
='${prefix}/include'
970 oldincludedir
='/usr/include'
971 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir
='${datarootdir}/info'
977 libdir
='${exec_prefix}/lib'
978 localedir
='${datarootdir}/locale'
979 mandir
='${datarootdir}/man'
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\
$ac_option
993 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 # Accept the important Cygnus configure options, so we can diagnose typos.
999 case $ac_dashdash$ac_option in
1003 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1005 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1006 bindir
=$ac_optarg ;;
1008 -build |
--build |
--buil |
--bui |
--bu)
1009 ac_prev
=build_alias
;;
1010 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1011 build_alias
=$ac_optarg ;;
1013 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1014 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1015 ac_prev
=cache_file
;;
1016 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1017 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1018 cache_file
=$ac_optarg ;;
1020 --config-cache |
-C)
1021 cache_file
=config.cache
;;
1023 -datadir |
--datadir |
--datadi |
--datad)
1025 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1026 datadir
=$ac_optarg ;;
1028 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1029 |
--dataroo |
--dataro |
--datar)
1030 ac_prev
=datarootdir
;;
1031 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1032 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1033 datarootdir
=$ac_optarg ;;
1035 -disable-* |
--disable-*)
1036 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1039 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1042 eval enable_
$ac_feature=no
;;
1044 -docdir |
--docdir |
--docdi |
--doc |
--do)
1046 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1047 docdir
=$ac_optarg ;;
1049 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1051 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1052 dvidir
=$ac_optarg ;;
1054 -enable-* |
--enable-*)
1055 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1058 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1061 eval enable_
$ac_feature=\
$ac_optarg ;;
1063 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1064 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1065 |
--exec |
--exe |
--ex)
1066 ac_prev
=exec_prefix
;;
1067 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1068 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1069 |
--exec=* |
--exe=* |
--ex=*)
1070 exec_prefix
=$ac_optarg ;;
1072 -gas |
--gas |
--ga |
--g)
1073 # Obsolete; use --with-gas.
1076 -help |
--help |
--hel |
--he |
-h)
1077 ac_init_help
=long
;;
1078 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1079 ac_init_help
=recursive
;;
1080 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1081 ac_init_help
=short
;;
1083 -host |
--host |
--hos |
--ho)
1084 ac_prev
=host_alias
;;
1085 -host=* |
--host=* |
--hos=* |
--ho=*)
1086 host_alias
=$ac_optarg ;;
1088 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1090 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1092 htmldir
=$ac_optarg ;;
1094 -includedir |
--includedir |
--includedi |
--included |
--include \
1095 |
--includ |
--inclu |
--incl |
--inc)
1096 ac_prev
=includedir
;;
1097 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1098 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1099 includedir
=$ac_optarg ;;
1101 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1103 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1104 infodir
=$ac_optarg ;;
1106 -libdir |
--libdir |
--libdi |
--libd)
1108 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1109 libdir
=$ac_optarg ;;
1111 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1112 |
--libexe |
--libex |
--libe)
1113 ac_prev
=libexecdir
;;
1114 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1115 |
--libexe=* |
--libex=* |
--libe=*)
1116 libexecdir
=$ac_optarg ;;
1118 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1119 ac_prev
=localedir
;;
1120 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1121 localedir
=$ac_optarg ;;
1123 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1124 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1125 ac_prev
=localstatedir
;;
1126 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1127 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1128 localstatedir
=$ac_optarg ;;
1130 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1132 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1133 mandir
=$ac_optarg ;;
1135 -nfp |
--nfp |
--nf)
1136 # Obsolete; use --without-fp.
1139 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1140 |
--no-cr |
--no-c |
-n)
1143 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1144 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1147 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1148 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1149 |
--oldin |
--oldi |
--old |
--ol |
--o)
1150 ac_prev
=oldincludedir
;;
1151 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1152 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1153 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1154 oldincludedir
=$ac_optarg ;;
1156 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1158 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1159 prefix
=$ac_optarg ;;
1161 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1162 |
--program-pre |
--program-pr |
--program-p)
1163 ac_prev
=program_prefix
;;
1164 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1165 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1166 program_prefix
=$ac_optarg ;;
1168 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1169 |
--program-suf |
--program-su |
--program-s)
1170 ac_prev
=program_suffix
;;
1171 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1172 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1173 program_suffix
=$ac_optarg ;;
1175 -program-transform-name |
--program-transform-name \
1176 |
--program-transform-nam |
--program-transform-na \
1177 |
--program-transform-n |
--program-transform- \
1178 |
--program-transform |
--program-transfor \
1179 |
--program-transfo |
--program-transf \
1180 |
--program-trans |
--program-tran \
1181 |
--progr-tra |
--program-tr |
--program-t)
1182 ac_prev
=program_transform_name
;;
1183 -program-transform-name=* |
--program-transform-name=* \
1184 |
--program-transform-nam=* |
--program-transform-na=* \
1185 |
--program-transform-n=* |
--program-transform-=* \
1186 |
--program-transform=* |
--program-transfor=* \
1187 |
--program-transfo=* |
--program-transf=* \
1188 |
--program-trans=* |
--program-tran=* \
1189 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1190 program_transform_name
=$ac_optarg ;;
1192 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1194 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1195 pdfdir
=$ac_optarg ;;
1197 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1199 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1202 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1203 |
-silent |
--silent |
--silen |
--sile |
--sil)
1206 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1208 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1210 sbindir
=$ac_optarg ;;
1212 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1213 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1214 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1216 ac_prev
=sharedstatedir
;;
1217 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1218 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1219 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1221 sharedstatedir
=$ac_optarg ;;
1223 -site |
--site |
--sit)
1225 -site=* |
--site=* |
--sit=*)
1228 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1230 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1231 srcdir
=$ac_optarg ;;
1233 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1234 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1235 ac_prev
=sysconfdir
;;
1236 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1237 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1238 sysconfdir
=$ac_optarg ;;
1240 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1241 ac_prev
=target_alias
;;
1242 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1243 target_alias
=$ac_optarg ;;
1245 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1248 -version |
--version |
--versio |
--versi |
--vers |
-V)
1249 ac_init_version
=: ;;
1252 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1255 { echo "$as_me: error: invalid package name: $ac_package" >&2
1256 { (exit 1); exit 1; }; }
1257 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1258 eval with_
$ac_package=\
$ac_optarg ;;
1260 -without-* |
--without-*)
1261 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1264 { echo "$as_me: error: invalid package name: $ac_package" >&2
1265 { (exit 1); exit 1; }; }
1266 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1267 eval with_
$ac_package=no
;;
1270 # Obsolete; use --with-x.
1273 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1274 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1275 ac_prev
=x_includes
;;
1276 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1277 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1278 x_includes
=$ac_optarg ;;
1280 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1281 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1282 ac_prev
=x_libraries
;;
1283 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1284 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1285 x_libraries
=$ac_optarg ;;
1287 -*) { echo "$as_me: error: unrecognized option: $ac_option
1288 Try \`$0 --help' for more information." >&2
1289 { (exit 1); exit 1; }; }
1293 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1296 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1297 { (exit 1); exit 1; }; }
1298 eval $ac_envvar=\
$ac_optarg
1299 export $ac_envvar ;;
1302 # FIXME: should be removed in autoconf 3.0.
1303 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1305 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1312 if test -n "$ac_prev"; then
1313 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1314 { echo "$as_me: error: missing argument to $ac_option" >&2
1315 { (exit 1); exit 1; }; }
1318 # Be sure to have absolute directory names.
1319 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir
1324 eval ac_val
=\$
$ac_var
1326 [\\/$
]* | ?
:[\\/]* ) continue;;
1327 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1329 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1330 { (exit 1); exit 1; }; }
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1338 target
=$target_alias
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x
; then
1342 if test "x$build_alias" = x
; then
1343 cross_compiling
=maybe
1344 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1345 If a cross compiler is detected then cross compile mode will be used." >&2
1346 elif test "x$build_alias" != "x$host_alias"; then
1352 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1354 test "$silent" = yes && exec 6>/dev
/null
1357 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1358 ac_ls_di
=`ls -di .` &&
1359 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1360 { echo "$as_me: error: Working directory cannot be determined" >&2
1361 { (exit 1); exit 1; }; }
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 { echo "$as_me: error: pwd does not report name of working directory" >&2
1364 { (exit 1); exit 1; }; }
1367 # Find the source files, if location was not specified.
1368 if test -z "$srcdir"; then
1369 ac_srcdir_defaulted
=yes
1370 # Try the directory containing this script, then the parent directory.
1371 ac_confdir
=`$as_dirname -- "$0" ||
1372 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$0" : 'X\(//\)[^/]' \| \
1374 X"$0" : 'X\(//\)$' \| \
1375 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1399 ac_srcdir_defaulted
=no
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1403 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1404 { (exit 1); exit 1; }; }
1406 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1409 { (exit 1); exit 1; }; }
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1419 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 for ac_var
in $ac_precious_vars; do
1422 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1424 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1435 \`configure' configures curl - to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1498 --build=BUILD configure
for building on BUILD
[guessed
]
1499 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive
) echo "Configuration of curl -:";;
1510 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1511 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1512 --enable-maintainer-mode enable make rules and dependencies not useful
1513 (and sometimes confusing
) to the casual installer
1514 --disable-dependency-tracking speeds up one-time build
1515 --enable-dependency-tracking do not reject slow dependency extractors
1516 --disable-largefile omit support
for large files
1517 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1518 --enable-static[=PKGS
] build static libraries
[default
=yes]
1519 --enable-fast-install[=PKGS
]
1520 optimize
for fast installation
[default
=yes]
1521 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1522 --enable-http Enable HTTP support
1523 --disable-http Disable HTTP support
1524 --enable-ftp Enable FTP support
1525 --disable-ftp Disable FTP support
1526 --enable-file Enable FILE support
1527 --disable-file Disable FILE support
1528 --enable-ldap Enable LDAP support
1529 --disable-ldap Disable LDAP support
1530 --enable-ldaps Enable LDAPS support
1531 --disable-ldaps Disable LDAPS support
1532 --enable-dict Enable DICT support
1533 --disable-dict Disable DICT support
1534 --enable-telnet Enable TELNET support
1535 --disable-telnet Disable TELNET support
1536 --enable-tftp Enable TFTP support
1537 --disable-tftp Disable TFTP support
1538 --enable-manual Enable built-in manual
1539 --disable-manual Disable built-in manual
1540 --enable-libgcc use libgcc when linking
1541 --enable-ipv6 Enable ipv6
(with ipv4
) support
1542 --disable-ipv6 Disable ipv6 support
1543 --enable-nonblocking Enable detecting how to
do it
1544 --disable-nonblocking Disable non-blocking socket detection
1545 --disable-thread don
't look for thread-safe functions
1546 --enable-thread look for thread-safe functions
1547 --enable-ares=PATH Enable c-ares for name lookups
1548 --disable-ares Disable c-ares for name lookups
1549 --enable-verbose Enable verbose strings
1550 --disable-verbose Disable verbose strings
1551 --enable-sspi Enable SSPI
1552 --disable-sspi Disable SSPI
1553 --enable-debug Enable pedantic debug options
1554 --disable-debug Disable debug options
1555 --enable-crypto-auth Enable cryptographic authentication
1556 --disable-crypto-auth Disable cryptographic authentication
1557 --enable-cookies Enable cookies support
1558 --disable-cookies Disable cookies support
1559 --enable-hidden-symbols Hide internal symbols in library
1560 --disable-hidden-symbols
1561 Leave all symbols with default visibility in library
1562 --enable-soname-bump Enable enforced SONAME bump
1563 --disable-soname-bump Disable enforced SONAME bump
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1569 --with-pic try to use only PIC/non-PIC objects [default=use
1571 --with-tags[=TAGS] include additional configurations [automatic]
1572 --with-ldap-lib=libname Specify name of ldap lib file
1573 --with-lber-lib=libname Specify name of lber lib file
1574 --with-krb4-includes=DIR
1575 Specify location of kerberos4 headers
1576 --with-krb4-libs=DIR Specify location of kerberos4 libs
1577 --with-krb4=DIR where to look for Kerberos4
1578 --with-spnego=DIR Specify location of SPNEGO library fbopenssl
1579 --with-gssapi-includes=DIR
1580 Specify location of GSSAPI header
1581 --with-gssapi-libs=DIR Specify location of GSSAPI libs
1582 --with-gssapi=DIR Where to look for GSSAPI
1583 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1584 installation (default: /usr/local/ssl); when
1585 possible, set the PKG_CONFIG_PATH environment
1586 variable instead of using this option
1587 --without-ssl disable OpenSSL
1588 --with-zlib=PATH search for zlib in PATH
1589 --without-zlib disable use of zlib
1590 --with-libssh2=PATH Where to look for libssh2, PATH points to the
1591 LIBSSH2 installation (default: /usr/local/lib); when
1592 possible, set the PKG_CONFIG_PATH environment
1593 variable instead of using this option
1594 --without-libssh2 disable LIBSSH2
1595 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1596 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1597 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1598 installation root (default: /usr/local/)
1599 --without-gnutls disable GnuTLS detection
1600 --with-nss=PATH where to look for NSS, PATH points to the
1601 installation root (default: /usr/local/)
1602 --without-nss disable NSS detection
1603 --with-ca-bundle=FILE File name to use as CA bundle
1604 --without-ca-bundle Don't use a default CA bundle
1605 --with-ca-path=DIRECTORY
1606 Directory to use as CA path
1607 --without-ca-path Don
't use a default CA path
1608 --with-libidn=PATH Enable libidn usage
1609 --without-libidn Disable libidn usage
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1621 Use these variables to override the choices made by `configure' or to
help
1622 it to
find libraries and programs with nonstandard names
/locations.
1624 Report bugs to
<a suitable curl mailing list
=> http
://curl.haxx.se
/mail
/>.
1629 if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1632 test -d "$ac_dir" ||
continue
1636 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1638 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1643 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1646 ac_abs_top_builddir
=$ac_pwd
1647 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir
=$ac_top_build_prefix
1652 .
) # We are building in place.
1654 ac_top_srcdir
=$ac_top_builddir_sub
1655 ac_abs_top_srcdir
=$ac_pwd ;;
1656 [\\/]* | ?
:[\\/]* ) # Absolute name.
1657 ac_srcdir
=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir
=$srcdir
1659 ac_abs_top_srcdir
=$srcdir ;;
1661 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1665 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1676 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1686 generated by GNU Autoconf
2.61
1688 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1690 This configure
script is free software
; the Free Software Foundation
1691 gives unlimited permission to copy
, distribute and modify it.
1693 Copyright
(c
) 1998 - 2008 Daniel Stenberg
, <daniel@haxx.se
>
1694 This configure
script may be copied
, distributed and modified under the
1695 terms of the curl license
; see COPYING
for more details
1699 cat >config.log
<<_ACEOF
1700 This file contains any messages produced by compilers while
1701 running configure, to aid debugging if configure makes a mistake.
1703 It was created by curl $as_me -, which was
1704 generated by GNU Autoconf 2.61. Invocation command line was
1716 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1717 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1718 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1719 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1720 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1722 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1723 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1725 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1726 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1727 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1728 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1729 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1730 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1731 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1739 test -z "$as_dir" && as_dir
=.
1740 echo "PATH: $as_dir"
1756 # Keep a trace of the command line.
1757 # Strip out --no-create and --no-recursion so they do not pile up.
1758 # Strip out --silent because we don't want to record it for future runs.
1759 # Also quote any args containing shell meta-characters.
1760 # Make two passes to allow for proper duplicate-argument suppression.
1764 ac_must_keep_next
=false
1770 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1771 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1772 |
-silent |
--silent |
--silen |
--sile |
--sil)
1775 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1778 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1780 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1781 if test $ac_must_keep_next = true
; then
1782 ac_must_keep_next
=false
# Got value, back to normal.
1785 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1786 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1787 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1788 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1789 case "$ac_configure_args0 " in
1790 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1793 -* ) ac_must_keep_next
=true
;;
1796 ac_configure_args
="$ac_configure_args '$ac_arg'"
1801 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1802 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1804 # When interrupted or exit'd, cleanup temporary files, and complete
1805 # config.log. We remove comments because anyway the quotes in there
1806 # would cause problems or look ugly.
1807 # WARNING: Use '\'' to represent an apostrophe within the trap.
1808 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1809 trap 'exit_status=$?
1810 # Save into config.log some information that might help in debugging.
1815 ## ---------------- ##
1816 ## Cache variables. ##
1817 ## ---------------- ##
1820 # The following way of writing the cache mishandles newlines in values,
1822 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1823 eval ac_val=\$$ac_var
1827 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1828 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1831 _ | IFS | as_nl) ;; #(
1832 *) $as_unset $ac_var ;;
1837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1838 *${as_nl}ac_space=\ *)
1840 "s/'\''/'\''\\\\'\'''\''/g;
1841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1852 ## ----------------- ##
1853 ## Output variables. ##
1854 ## ----------------- ##
1857 for ac_var in $ac_subst_vars
1859 eval ac_val=\$$ac_var
1861 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 echo "$ac_var='\''$ac_val'\''"
1867 if test -n "$ac_subst_files"; then
1869 ## ------------------- ##
1870 ## File substitutions. ##
1871 ## ------------------- ##
1874 for ac_var
in $ac_subst_files
1876 eval ac_val
=\$
$ac_var
1878 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 echo "$ac_var='\''$ac_val'\''"
1885 if test -s confdefs.h; then
1895 test "$ac_signal" != 0 &&
1896 echo "$as_me: caught signal $ac_signal"
1897 echo "$as_me: exit $exit_status"
1899 rm -f core *.core core.conftest.* &&
1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1903 for ac_signal
in 1 2 13 15; do
1904 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1909 rm -f -r conftest
* confdefs.h
1911 # Predefined preprocessor variables.
1913 cat >>confdefs.h
<<_ACEOF
1914 #define PACKAGE_NAME "$PACKAGE_NAME"
1918 cat >>confdefs.h
<<_ACEOF
1919 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923 cat >>confdefs.h
<<_ACEOF
1924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1928 cat >>confdefs.h
<<_ACEOF
1929 #define PACKAGE_STRING "$PACKAGE_STRING"
1933 cat >>confdefs.h
<<_ACEOF
1934 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938 # Let the site file select an alternate cache file if it wants to.
1939 # Prefer explicitly selected file to automatically selected ones.
1940 if test -n "$CONFIG_SITE"; then
1941 set x
"$CONFIG_SITE"
1942 elif test "x$prefix" != xNONE
; then
1943 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1945 set x
"$ac_default_prefix/share/config.site" \
1946 "$ac_default_prefix/etc/config.site"
1951 if test -r "$ac_site_file"; then
1952 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1953 echo "$as_me: loading site script $ac_site_file" >&6;}
1954 sed 's/^/| /' "$ac_site_file" >&5
1959 if test -r "$cache_file"; then
1960 # Some versions of bash will fail to source /dev/null (special
1961 # files actually), so we avoid doing that.
1962 if test -f "$cache_file"; then
1963 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1964 echo "$as_me: loading cache $cache_file" >&6;}
1966 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1967 *) .
"./$cache_file";;
1971 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1972 echo "$as_me: creating cache $cache_file" >&6;}
1976 # Check that the precious variables saved in the cache have kept the same
1978 ac_cache_corrupted
=false
1979 for ac_var
in $ac_precious_vars; do
1980 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1981 eval ac_new_set
=\
$ac_env_${ac_var}_set
1982 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1983 eval ac_new_val
=\
$ac_env_${ac_var}_value
1984 case $ac_old_set,$ac_new_set in
1986 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1987 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1988 ac_cache_corrupted
=: ;;
1990 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1991 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1992 ac_cache_corrupted
=: ;;
1995 if test "x$ac_old_val" != "x$ac_new_val"; then
1996 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1997 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1998 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1999 echo "$as_me: former value: $ac_old_val" >&2;}
2000 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2001 echo "$as_me: current value: $ac_new_val" >&2;}
2002 ac_cache_corrupted
=:
2005 # Pass precious variables to config.status.
2006 if test "$ac_new_set" = set; then
2008 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2009 *) ac_arg
=$ac_var=$ac_new_val ;;
2011 case " $ac_configure_args " in
2012 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2013 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2017 if $ac_cache_corrupted; then
2018 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2019 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2020 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2021 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2022 { (exit 1); exit 1; }; }
2050 ac_cpp
='$CPP $CPPFLAGS'
2051 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2060 ac_config_headers
="$ac_config_headers lib/config.h src/config.h include/curl/curlbuild.h"
2062 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2063 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2064 # Check whether --enable-maintainer-mode was given.
2065 if test "${enable_maintainer_mode+set}" = set; then
2066 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2068 USE_MAINTAINER_MODE
=no
2071 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2072 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2075 if test $USE_MAINTAINER_MODE = yes; then
2076 MAINTAINER_MODE_TRUE
=
2077 MAINTAINER_MODE_FALSE
='#'
2079 MAINTAINER_MODE_TRUE
='#'
2080 MAINTAINER_MODE_FALSE
=
2083 MAINT
=$MAINTAINER_MODE_TRUE
2087 # Extract the first word of "sed", so it can be a program name with args.
2088 set dummy
sed; ac_word
=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_path_SED+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
2099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2100 as_dummy
="$PATH:/usr/bin:/usr/local/bin"
2101 for as_dir
in $as_dummy
2104 test -z "$as_dir" && as_dir
=.
2105 for ac_exec_ext
in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="not_found"
2120 if test -n "$SED"; then
2121 { echo "$as_me:$LINENO: result: $SED" >&5
2122 echo "${ECHO_T}$SED" >&6; }
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2129 if test -z "$SED" ||
test "$SED" = "not_found"; then
2130 { { echo "$as_me:$LINENO: error: sed not found in PATH. Cannot continue without sed." >&5
2131 echo "$as_me: error: sed not found in PATH. Cannot continue without sed." >&2;}
2132 { (exit 1); exit 1; }; }
2136 # Extract the first word of "grep", so it can be a program name with args.
2137 set dummy
grep; ac_word
=$2
2138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2140 if test "${ac_cv_path_GREP+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
2148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2149 as_dummy
="$PATH:/usr/bin:/usr/local/bin"
2150 for as_dir
in $as_dummy
2153 test -z "$as_dir" && as_dir
=.
2154 for ac_exec_ext
in '' $ac_executable_extensions; do
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="not_found"
2168 GREP
=$ac_cv_path_GREP
2169 if test -n "$GREP"; then
2170 { echo "$as_me:$LINENO: result: $GREP" >&5
2171 echo "${ECHO_T}$GREP" >&6; }
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2178 if test -z "$GREP" ||
test "$GREP" = "not_found"; then
2179 { { echo "$as_me:$LINENO: error: grep not found in PATH. Cannot continue without grep." >&5
2180 echo "$as_me: error: grep not found in PATH. Cannot continue without grep." >&2;}
2181 { (exit 1); exit 1; }; }
2185 if echo a |
($GREP -E '(a|b)') >/dev
/null
2>&1; then
2186 { echo "$as_me:$LINENO: checking for egrep" >&5
2187 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2189 { echo "$as_me:$LINENO: result: $EGREP" >&5
2190 echo "${ECHO_T}$EGREP" >&6; }
2192 # Extract the first word of "egrep", so it can be a program name with args.
2193 set dummy
egrep; ac_word
=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_path_EGREP+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 ac_cv_path_EGREP
="$EGREP" # Let the user override the test with a path.
2204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2205 as_dummy
="$PATH:/usr/bin:/usr/local/bin"
2206 for as_dir
in $as_dummy
2209 test -z "$as_dir" && as_dir
=.
2210 for ac_exec_ext
in '' $ac_executable_extensions; do
2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212 ac_cv_path_EGREP
="$as_dir/$ac_word$ac_exec_ext"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP
="not_found"
2224 EGREP
=$ac_cv_path_EGREP
2225 if test -n "$EGREP"; then
2226 { echo "$as_me:$LINENO: result: $EGREP" >&5
2227 echo "${ECHO_T}$EGREP" >&6; }
2229 { echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6; }
2235 if test -z "$EGREP" ||
test "$EGREP" = "not_found"; then
2236 { { echo "$as_me:$LINENO: error: egrep not found in PATH. Cannot continue without egrep." >&5
2237 echo "$as_me: error: egrep not found in PATH. Cannot continue without egrep." >&2;}
2238 { (exit 1); exit 1; }; }
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2244 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_path_AR+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
2255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2256 as_dummy
="$PATH:/usr/bin:/usr/local/bin"
2257 for as_dir
in $as_dummy
2260 test -z "$as_dir" && as_dir
=.
2261 for ac_exec_ext
in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 if test -n "$AR"; then
2276 { echo "$as_me:$LINENO: result: $AR" >&5
2277 echo "${ECHO_T}$AR" >&6; }
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2285 if test -z "$ac_cv_path_AR"; then
2287 # Extract the first word of "ar", so it can be a program name with args.
2288 set dummy
ar; ac_word
=$2
2289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2291 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 ac_cv_path_ac_pt_AR
="$ac_pt_AR" # Let the user override the test with a path.
2299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2300 as_dummy
="$PATH:/usr/bin:/usr/local/bin"
2301 for as_dir
in $as_dummy
2304 test -z "$as_dir" && as_dir
=.
2305 for ac_exec_ext
in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_path_ac_pt_AR
="$as_dir/$ac_word$ac_exec_ext"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 ac_pt_AR
=$ac_cv_path_ac_pt_AR
2319 if test -n "$ac_pt_AR"; then
2320 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
2321 echo "${ECHO_T}$ac_pt_AR" >&6; }
2323 { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2327 if test "x$ac_pt_AR" = x
; then
2330 case $cross_compiling:$ac_tool_warned in
2332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2333 whose name does not start with the host triplet. If you think this
2334 configuration is useful to you, please write to autoconf@gnu.org." >&5
2335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2336 whose name does not start with the host triplet. If you think this
2337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2338 ac_tool_warned
=yes ;;
2346 if test -z "$AR" ||
test "$AR" = "not_found"; then
2347 { { echo "$as_me:$LINENO: error: ar not found in PATH. Cannot continue without ar." >&5
2348 echo "$as_me: error: ar not found in PATH. Cannot continue without ar." >&2;}
2349 { (exit 1); exit 1; }; }
2355 VERSION
=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
2356 am__api_version
="1.9"
2358 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2359 if test -f "$ac_dir/install-sh"; then
2361 ac_install_sh
="$ac_aux_dir/install-sh -c"
2363 elif test -f "$ac_dir/install.sh"; then
2365 ac_install_sh
="$ac_aux_dir/install.sh -c"
2367 elif test -f "$ac_dir/shtool"; then
2369 ac_install_sh
="$ac_aux_dir/shtool install -c"
2373 if test -z "$ac_aux_dir"; then
2374 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2375 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2376 { (exit 1); exit 1; }; }
2379 # These three variables are undocumented and unsupported,
2380 # and are intended to be withdrawn in a future Autoconf release.
2381 # They can cause serious problems if a builder's source tree is in a directory
2382 # whose full name contains unusual characters.
2383 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2388 # Find a good install program. We prefer a C program (faster),
2389 # so one script is as good as another. But avoid the broken or
2390 # incompatible versions:
2391 # SysV /etc/install, /usr/sbin/install
2392 # SunOS /usr/etc/install
2393 # IRIX /sbin/install
2395 # AmigaOS /C/install, which installs bootblocks on floppy discs
2396 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2397 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2398 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2399 # OS/2's system install, which has a completely different semantic
2400 # ./install, which can be erroneously created by make from ./install.sh.
2401 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2402 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2403 if test -z "$INSTALL"; then
2404 if test "${ac_cv_path_install+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir
=.
2412 # Account for people who put trailing slashes in PATH elements.
2414 .
/ | .
// |
/cC
/* | \
2415 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2416 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2419 # OSF1 and SCO ODT 3.0 have their own names for install.
2420 # Don't use installbsd from OSF since it installs stuff as root
2422 for ac_prog
in ginstall scoinst
install; do
2423 for ac_exec_ext
in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2425 if test $ac_prog = install &&
2426 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2427 # AIX install. It has an incompatible calling convention.
2429 elif test $ac_prog = install &&
2430 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2431 # program-specific install script used by HP pwplus--don't use.
2434 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2447 if test "${ac_cv_path_install+set}" = set; then
2448 INSTALL
=$ac_cv_path_install
2450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for INSTALL within a source directory, because that will
2452 # break other packages using the cache if that directory is
2453 # removed, or if the value is a relative name.
2454 INSTALL
=$ac_install_sh
2457 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2458 echo "${ECHO_T}$INSTALL" >&6; }
2460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461 # It thinks the first close brace ends the variable substitution.
2462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2466 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2468 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2469 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2472 echo timestamp
> conftest.
file
2473 # Do `set' in a subshell so we don't clobber the current shell's
2474 # arguments. Must try -L first in case configure is actually a
2475 # symlink; some systems play weird games with the mod time of symlinks
2476 # (eg FreeBSD returns the mod time of the symlink's containing
2479 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2480 if test "$*" = "X"; then
2482 set X
`ls -t $srcdir/configure conftest.file`
2485 if test "$*" != "X $srcdir/configure conftest.file" \
2486 && test "$*" != "X conftest.file $srcdir/configure"; then
2488 # If neither matched, then we have a broken ls. This can happen
2489 # if, for instance, CONFIG_SHELL is bash and it inherits a
2490 # broken ls alias from the environment. This has actually
2491 # happened. Such a system could not be considered "sane".
2492 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2493 alias in your environment" >&5
2494 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2495 alias in your environment" >&2;}
2496 { (exit 1); exit 1; }; }
2499 test "$2" = conftest.
file
2505 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2506 Check your system clock" >&5
2507 echo "$as_me: error: newly created file is older than distributed files!
2508 Check your system clock" >&2;}
2509 { (exit 1); exit 1; }; }
2511 { echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6; }
2513 test "$program_prefix" != NONE
&&
2514 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2515 # Use a double $ so make ignores it.
2516 test "$program_suffix" != NONE
&&
2517 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2518 # Double any \ or $. echo might interpret backslashes.
2519 # By default was `s,x,x', remove it if useless.
2520 cat <<\_ACEOF
>conftest.
sed
2521 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2523 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2526 # expand $ac_aux_dir to an absolute path
2527 am_aux_dir
=`cd $ac_aux_dir && pwd`
2529 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} \"$am_aux_dir/missing\""
2530 # Use eval to expand $SHELL
2531 if eval "$MISSING --run true"; then
2532 am_missing_run
="$MISSING --run "
2535 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2536 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2539 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
2540 # We used to keeping the `.' as first argument, in order to
2541 # allow $(mkdir_p) to be used without argument. As in
2542 # $(mkdir_p) $(somedir)
2543 # where $(somedir) is conditionally defined. However this is wrong
2545 # 1. if the package is installed by a user who cannot write `.'
2546 # make install will fail,
2547 # 2. the above comment should most certainly read
2548 # $(mkdir_p) $(DESTDIR)$(somedir)
2549 # so it does not work when $(somedir) is undefined and
2550 # $(DESTDIR) is not.
2551 # To support the latter case, we have to write
2552 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2553 # so the `.' trick is pointless.
2554 mkdir_p
='mkdir -p --'
2556 # On NextStep and OpenStep, the `mkdir' command does not
2557 # recognize any option. It will interpret all options as
2558 # directories to create, and then abort because `.' already
2560 for d
in .
/-p .
/--version;
2562 test -d $d && rmdir $d
2564 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2565 if test -f "$ac_aux_dir/mkinstalldirs"; then
2566 mkdir_p
='$(mkinstalldirs)'
2568 mkdir_p
='$(install_sh) -d'
2572 for ac_prog
in gawk mawk nawk
awk
2574 # Extract the first word of "$ac_prog", so it can be a program name with args.
2575 set dummy
$ac_prog; ac_word
=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_AWK+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 if test -n "$AWK"; then
2582 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir
=.
2589 for ac_exec_ext
in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_AWK
="$ac_prog"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 if test -n "$AWK"; then
2603 { echo "$as_me:$LINENO: result: $AWK" >&5
2604 echo "${ECHO_T}$AWK" >&6; }
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2611 test -n "$AWK" && break
2614 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2615 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2616 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2617 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 cat >conftest.
make <<\_ACEOF
2623 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2625 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2628 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2630 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2634 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2635 { echo "$as_me:$LINENO: result: yes" >&5
2636 echo "${ECHO_T}yes" >&6; }
2639 { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2641 SET_MAKE
="MAKE=${MAKE-make}"
2644 rm -rf .tst
2>/dev
/null
2645 mkdir .tst
2>/dev
/null
2646 if test -d .tst
; then
2651 rmdir .tst
2>/dev
/null
2653 # test to see if srcdir already configured
2654 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2655 test -f $srcdir/config.status
; then
2656 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2657 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2658 { (exit 1); exit 1; }; }
2661 # test whether we have cygpath
2662 if test -z "$CYGPATH_W"; then
2663 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2664 CYGPATH_W
='cygpath -w'
2671 # Define the identity of the package.
2676 cat >>confdefs.h
<<_ACEOF
2677 #define PACKAGE "$PACKAGE"
2681 cat >>confdefs.h
<<_ACEOF
2682 #define VERSION "$VERSION"
2685 # Some tools Automake needs.
2687 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2690 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2693 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2696 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2699 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2701 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
2703 # Installed binaries are usually stripped using `strip' when the user
2704 # run `make install-strip'. However `strip' might not be the right
2705 # tool to use in cross-compilation environments, therefore Automake
2706 # will honor the `STRIP' environment variable to overrule this program.
2707 if test "$cross_compiling" != no
; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2710 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_STRIP+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 if test -n "$STRIP"; then
2717 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir
=.
2724 for ac_exec_ext
in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 STRIP
=$ac_cv_prog_STRIP
2737 if test -n "$STRIP"; then
2738 { echo "$as_me:$LINENO: result: $STRIP" >&5
2739 echo "${ECHO_T}$STRIP" >&6; }
2741 { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2747 if test -z "$ac_cv_prog_STRIP"; then
2749 # Extract the first word of "strip", so it can be a program name with args.
2750 set dummy strip
; ac_word
=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$ac_ct_STRIP"; then
2757 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir
=.
2764 for ac_exec_ext
in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_STRIP
="strip"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2777 if test -n "$ac_ct_STRIP"; then
2778 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2779 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2785 if test "x$ac_ct_STRIP" = x
; then
2788 case $cross_compiling:$ac_tool_warned in
2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&5
2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796 ac_tool_warned
=yes ;;
2801 STRIP
="$ac_cv_prog_STRIP"
2805 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2807 # We need awk for the "check" target. The system "awk" is bad on
2809 # Always define AMTAR for backward compatibility.
2811 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2813 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2819 { echo "$as_me:$LINENO: checking curl version" >&5
2820 echo $ECHO_N "checking curl version... $ECHO_C" >&6; }
2821 { echo "$as_me:$LINENO: result: $VERSION" >&5
2822 echo "${ECHO_T}$VERSION" >&6; }
2824 VERSIONNUM
=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
2827 PKGADD_PKG
="HAXXcurl"
2828 PKGADD_NAME
="cURL - a client that groks URLs"
2829 PKGADD_VENDOR
="curl.haxx.se"
2834 curl_ssl_msg
="no (--with-ssl / --with-gnutls)"
2835 curl_ssh_msg
="no (--with-libssh2)"
2836 curl_zlib_msg
="no (--with-zlib)"
2837 curl_krb4_msg
="no (--with-krb4*)"
2838 curl_gss_msg
="no (--with-gssapi)"
2839 curl_spnego_msg
="no (--with-spnego)"
2840 curl_ares_msg
="no (--enable-ares)"
2841 curl_ipv6_msg
="no (--enable-ipv6)"
2842 curl_idn_msg
="no (--with-libidn)"
2843 curl_manual_msg
="no (--enable-manual)"
2844 curl_verbose_msg
="enabled (--disable-verbose)"
2845 curl_sspi_msg
="no (--enable-sspi)"
2846 curl_ldap_msg
="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
2847 curl_ldaps_msg
="no (--enable-ldaps)"
2852 # Make sure we can run config.sub.
2853 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2854 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2855 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2856 { (exit 1); exit 1; }; }
2858 { echo "$as_me:$LINENO: checking build system type" >&5
2859 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2860 if test "${ac_cv_build+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 ac_build_alias
=$build_alias
2864 test "x$ac_build_alias" = x
&&
2865 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2866 test "x$ac_build_alias" = x
&&
2867 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2868 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2869 { (exit 1); exit 1; }; }
2870 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2871 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2872 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2873 { (exit 1); exit 1; }; }
2876 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2877 echo "${ECHO_T}$ac_cv_build" >&6; }
2878 case $ac_cv_build in
2880 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2881 echo "$as_me: error: invalid value of canonical build" >&2;}
2882 { (exit 1); exit 1; }; };;
2885 ac_save_IFS
=$IFS; IFS
='-'
2891 # Remember, the first character of IFS is used to create $*,
2892 # except with old shells:
2895 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2898 { echo "$as_me:$LINENO: checking host system type" >&5
2899 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2900 if test "${ac_cv_host+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 if test "x$host_alias" = x
; then
2904 ac_cv_host
=$ac_cv_build
2906 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2907 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2908 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2909 { (exit 1); exit 1; }; }
2913 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2914 echo "${ECHO_T}$ac_cv_host" >&6; }
2917 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2918 echo "$as_me: error: invalid value of canonical host" >&2;}
2919 { (exit 1); exit 1; }; };;
2922 ac_save_IFS
=$IFS; IFS
='-'
2928 # Remember, the first character of IFS is used to create $*,
2929 # except with old shells:
2932 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2936 cat >>confdefs.h
<<_ACEOF
2937 #define OS "${host}"
2942 ac_cpp
='$CPP $CPPFLAGS'
2943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2948 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2951 if test "${ac_cv_prog_CC+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC
="$CC" # Let the user override the test.
2957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2961 test -z "$as_dir" && as_dir
=.
2962 for ac_exec_ext
in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 if test -n "$CC"; then
2976 { echo "$as_me:$LINENO: result: $CC" >&5
2977 echo "${ECHO_T}$CC" >&6; }
2979 { echo "$as_me:$LINENO: result: no" >&5
2980 echo "${ECHO_T}no" >&6; }
2985 if test -z "$ac_cv_prog_CC"; then
2987 # Extract the first word of "gcc", so it can be a program name with args.
2988 set dummy gcc
; ac_word
=$2
2989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_exec_ext
in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 ac_cv_prog_ac_ct_CC
="gcc"
3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3017 echo "${ECHO_T}$ac_ct_CC" >&6; }
3019 { echo "$as_me:$LINENO: result: no" >&5
3020 echo "${ECHO_T}no" >&6; }
3023 if test "x$ac_ct_CC" = x
; then
3026 case $cross_compiling:$ac_tool_warned in
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet. If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet. If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned
=yes ;;
3042 if test -z "$CC"; then
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3045 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC
="$CC" # Let the user override the test.
3054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir
=.
3059 for ac_exec_ext
in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test -n "$CC"; then
3073 { echo "$as_me:$LINENO: result: $CC" >&5
3074 echo "${ECHO_T}$CC" >&6; }
3076 { echo "$as_me:$LINENO: result: no" >&5
3077 echo "${ECHO_T}no" >&6; }
3083 if test -z "$CC"; then
3084 # Extract the first word of "cc", so it can be a program name with args.
3085 set dummy cc
; ac_word
=$2
3086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_CC+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC
="$CC" # Let the user override the test.
3095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir
=.
3100 for ac_exec_ext
in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3103 ac_prog_rejected
=yes
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 if test $ac_prog_rejected = yes; then
3115 # We found a bogon in the path, so make sure we never use it.
3116 set dummy
$ac_cv_prog_CC
3118 if test $# != 0; then
3119 # We chose a different compiler from the bogus one.
3120 # However, it has the same basename, so the bogon will be chosen
3121 # first if we set CC to just the basename; use the full file name.
3123 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3129 if test -n "$CC"; then
3130 { echo "$as_me:$LINENO: result: $CC" >&5
3131 echo "${ECHO_T}$CC" >&6; }
3133 { echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6; }
3139 if test -z "$CC"; then
3140 if test -n "$ac_tool_prefix"; then
3141 for ac_prog
in cl.exe
3143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3147 if test "${ac_cv_prog_CC+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC
="$CC" # Let the user override the test.
3153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir
=.
3158 for ac_exec_ext
in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 if test -n "$CC"; then
3172 { echo "$as_me:$LINENO: result: $CC" >&5
3173 echo "${ECHO_T}$CC" >&6; }
3175 { echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6; }
3180 test -n "$CC" && break
3183 if test -z "$CC"; then
3185 for ac_prog
in cl.exe
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy
$ac_prog; ac_word
=$2
3189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3191 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$ac_ct_CC"; then
3195 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir
=.
3202 for ac_exec_ext
in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_ac_ct_CC
="$ac_prog"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3215 if test -n "$ac_ct_CC"; then
3216 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3217 echo "${ECHO_T}$ac_ct_CC" >&6; }
3219 { echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6; }
3224 test -n "$ac_ct_CC" && break
3227 if test "x$ac_ct_CC" = x
; then
3230 case $cross_compiling:$ac_tool_warned in
3232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3233 whose name does not start with the host triplet. If you think this
3234 configuration is useful to you, please write to autoconf@gnu.org." >&5
3235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3236 whose name does not start with the host triplet. If you think this
3237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3238 ac_tool_warned
=yes ;;
3247 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3248 See \`config.log' for more details." >&5
3249 echo "$as_me: error: no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details." >&2;}
3251 { (exit 1); exit 1; }; }
3253 # Provide some information about the compiler.
3254 echo "$as_me:$LINENO: checking for C compiler version" >&5
3255 ac_compiler
=`set X $ac_compile; echo $2`
3256 { (ac_try
="$ac_compiler --version >&5"
3258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_compiler --version >&5") 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }
3266 { (ac_try="$ac_compiler -v >&5"
3268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3269 *) ac_try_echo
=$ac_try;;
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compiler -v >&5") 2>&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3276 { (ac_try
="$ac_compiler -V >&5"
3278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compiler -V >&5") 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3287 cat >conftest.$ac_ext <<_ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3302 ac_clean_files_save=$ac_clean_files
3303 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3304 # Try to create an executable without -o first, disregard a.out.
3305 # It will help us diagnose broken compilers, and finding out an intuition
3307 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3308 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3309 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3311 # List of possible output files, starting from the most likely.
3312 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3313 # only as a last resort. b.out is created by i960 compilers.
3314 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3316 # The IRIX 6 linker writes into existing files which may not be
3317 # executable, retaining their permissions. Remove them first so a
3318 # subsequent execution test works.
3320 for ac_file in $ac_files
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3324 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3329 if { (ac_try="$ac_link_default"
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_link_default") 2>&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; then
3339 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3340 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3341 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3342 # so that the user can short-circuit this test for compilers unknown to
3344 for ac_file
in $ac_files ''
3346 test -f "$ac_file" ||
continue
3348 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3351 # We found the default executable, but exeext='' is most
3355 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3357 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359 # We set ac_cv_exeext here because the later test for it is not
3360 # safe: cross compilers may not add the suffix if given an `-o'
3361 # argument, so we may need to know it at that point already.
3362 # Even if this section looks crufty: it has the advantage of
3369 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3375 { echo "$as_me:$LINENO: result: $ac_file" >&5
3376 echo "${ECHO_T}$ac_file" >&6; }
3377 if test -z "$ac_file"; then
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.
$ac_ext >&5
3381 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3382 See \`config.log' for more details." >&5
3383 echo "$as_me: error: C compiler cannot create executables
3384 See \`config.log' for more details." >&2;}
3385 { (exit 77); exit 77; }; }
3388 ac_exeext
=$ac_cv_exeext
3390 # Check that the compiler produces executables we can run. If not, either
3391 # the compiler is broken, or we cross compile.
3392 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3393 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3394 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3395 # If not cross compiling, check that we can run a simple program.
3396 if test "$cross_compiling" != yes; then
3397 if { ac_try
='./$ac_file'
3398 { (case "(($ac_try" in
3399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_try") 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3409 if test "$cross_compiling" = maybe; then
3412 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3413 If you meant to cross compile, use \`--host'.
3414 See \`config.log' for more details.
" >&5
3415 echo "$as_me: error
: cannot run C compiled programs.
3416 If you meant to cross compile
, use \
`--host'.
3417 See \`config.log
' for more details." >&2;}
3418 { (exit 1); exit 1; }; }
3422 { echo "$as_me:$LINENO: result: yes" >&5
3423 echo "${ECHO_T}yes" >&6; }
3425 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3426 ac_clean_files=$ac_clean_files_save
3427 # Check that the compiler produces executables we can run. If not, either
3428 # the compiler is broken, or we cross compile.
3429 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3430 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3431 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3432 echo "${ECHO_T}$cross_compiling" >&6; }
3434 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3435 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3436 if { (ac_try="$ac_link"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_link") 2>&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; then
3446 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3447 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3448 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3450 for ac_file
in conftest.exe conftest conftest.
*; do
3451 test -f "$ac_file" ||
continue
3453 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3454 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details." >&5
3462 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3463 See \`config.log' for more details." >&2;}
3464 { (exit 1); exit 1; }; }
3467 rm -f conftest
$ac_cv_exeext
3468 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3469 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3471 rm -f conftest.
$ac_ext
3472 EXEEXT
=$ac_cv_exeext
3474 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3475 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3476 if test "${ac_cv_objext+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 cat >conftest.
$ac_ext <<_ACEOF
3482 cat confdefs.h
>>conftest.
$ac_ext
3483 cat >>conftest.
$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3494 rm -f conftest.o conftest.obj
3495 if { (ac_try
="$ac_compile"
3497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compile") 2>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; then
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3518 See \`config.log
' for more details." >&5
3519 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details.
" >&2;}
3521 { (exit 1); exit 1; }; }
3524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3527 echo "${ECHO_T}$ac_cv_objext" >&6; }
3528 OBJEXT=$ac_cv_objext
3530 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3531 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3532 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3533 echo $ECHO_N "(cached
) $ECHO_C" >&6
3535 cat >conftest.$ac_ext <<_ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3553 rm -f conftest.$ac_objext
3554 if { (ac_try="$ac_compile"
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compile") 2>conftest.er1
3562 grep -v '^ *+' conftest.er1 >conftest.err
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3566 (exit $ac_status); } && {
3567 test -z "$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3569 } && test -s conftest.$ac_objext; then
3572 echo "$as_me: failed program was
:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3583 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3584 GCC=`test $ac_compiler_gnu = yes && echo yes`
3585 ac_test_CFLAGS=${CFLAGS+set}
3586 ac_save_CFLAGS=$CFLAGS
3587 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3588 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3589 if test "${ac_cv_prog_cc_g+set}" = set; then
3590 echo $ECHO_N "(cached
) $ECHO_C" >&6
3592 ac_save_c_werror_flag=$ac_c_werror_flag
3593 ac_c_werror_flag=yes
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3630 echo "$as_me: failed program was
:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_compile") 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3662 (exit $ac_status); } && {
3663 test -z "$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3665 } && test -s conftest.$ac_objext; then
3668 echo "$as_me: failed program was
:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 ac_c_werror_flag=$ac_save_c_werror_flag
3673 cat >conftest.$ac_ext <<_ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3688 rm -f conftest.$ac_objext
3689 if { (ac_try="$ac_compile"
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_compile") 2>conftest.er1
3697 grep -v '^ *+' conftest.er1 >conftest.err
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3701 (exit $ac_status); } && {
3702 test -z "$ac_c_werror_flag" ||
3703 test ! -s conftest.err
3704 } && test -s conftest.$ac_objext; then
3707 echo "$as_me: failed program was
:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_c_werror_flag=$ac_save_c_werror_flag
3722 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3723 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3724 if test "$ac_test_CFLAGS" = set; then
3725 CFLAGS=$ac_save_CFLAGS
3726 elif test $ac_cv_prog_cc_g = yes; then
3727 if test "$GCC" = yes; then
3733 if test "$GCC" = yes; then
3739 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3740 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3741 if test "${ac_cv_prog_cc_c89+set}" = set; then
3742 echo $ECHO_N "(cached
) $ECHO_C" >&6
3744 ac_cv_prog_cc_c89=no
3746 cat >conftest.$ac_ext <<_ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3754 #include <sys/types.h>
3755 #include <sys/stat.h>
3756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3757 struct buf { int x; };
3758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3759 static char *e (p, i)
3765 static char *f (char * (*g) (char **, int), char **p, ...)
3770 s = g (p, va_arg (v,int));
3775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3776 function prototypes and stuff, but not '\xHH' hex character constants.
3777 These don't provoke an error unfortunately, instead are silently treated
3778 as 'x'. The following induces an error, until -std is added to get
3779 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3780 array size at least. It's necessary to write '\x00'==0 to get something
3781 that's true only with -std. */
3782 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3785 inside strings and character constants. */
3787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3789 int test (int i, double x);
3790 struct s1 {int (*f) (int a);};
3791 struct s2 {int (*f) (double a);};
3792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3804 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3806 CC="$ac_save_CC $ac_arg"
3807 rm -f conftest.$ac_objext
3808 if { (ac_try="$ac_compile"
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_compile") 2>conftest.er1
3816 grep -v '^ *+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3820 (exit $ac_status); } && {
3821 test -z "$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3823 } && test -s conftest.$ac_objext; then
3824 ac_cv_prog_cc_c89=$ac_arg
3826 echo "$as_me: failed program was
:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3832 rm -f core conftest.err conftest.$ac_objext
3833 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3835 rm -f conftest.$ac_ext
3840 case "x
$ac_cv_prog_cc_c89" in
3842 { echo "$as_me:$LINENO: result
: none needed
" >&5
3843 echo "${ECHO_T}none needed
" >&6; } ;;
3845 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3846 echo "${ECHO_T}unsupported
" >&6; } ;;
3848 CC="$CC $ac_cv_prog_cc_c89"
3849 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3850 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 DEPDIR="${am__leading_dot}deps
"
3861 ac_config_commands="$ac_config_commands depfiles
"
3864 am_make=${MAKE-make}
3865 cat > confinc << 'END'
3870 # If we don't find an include directive, just comment out the code.
3871 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3872 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3876 # First try GNU make style include.
3877 echo "include confinc" > confmf
3878 # We grep out `Entering directory' and `Leaving directory'
3879 # messages which can occur if `w' ends up in MAKEFLAGS.
3880 # In particular we don't look at `^make:' because GNU make might
3881 # be invoked under some other name (usually "gmake"), in which
3882 # case it prints its new name instead of `make'.
3883 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3888 # Now try BSD make style include.
3889 if test "$am__include" = "#"; then
3890 echo '.include "confinc"' > confmf
3891 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3892 am__include
=.include
3899 { echo "$as_me:$LINENO: result: $_am_result" >&5
3900 echo "${ECHO_T}$_am_result" >&6; }
3901 rm -f confinc confmf
3903 # Check whether --enable-dependency-tracking was given.
3904 if test "${enable_dependency_tracking+set}" = set; then
3905 enableval
=$enable_dependency_tracking;
3908 if test "x$enable_dependency_tracking" != xno
; then
3909 am_depcomp
="$ac_aux_dir/depcomp"
3914 if test "x$enable_dependency_tracking" != xno; then
3925 depcc
="$CC" am_compiler_list
=
3927 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3928 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3929 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3933 # We make a subdir and do the tests there. Otherwise we can end up
3934 # making bogus files that we don't know about and never remove. For
3935 # instance it was reported that on HP-UX the gcc test will end up
3936 # making a dummy file named `D' -- because `-MD' means `put the output
3939 # Copy depcomp to subdir because otherwise we won't find it if we're
3940 # using a relative directory.
3941 cp "$am_depcomp" conftest.dir
3943 # We will build objects and dependencies in a subdirectory because
3944 # it helps to detect inapplicable dependency modes. For instance
3945 # both Tru64's cc and ICC support -MD to output dependencies as a
3946 # side effect of compilation, but ICC will put the dependencies in
3947 # the current directory while Tru64 will put them in the object
3951 am_cv_CC_dependencies_compiler_type
=none
3952 if test "$am_compiler_list" = ""; then
3953 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3955 for depmode
in $am_compiler_list; do
3956 # Setup a source with many dependencies, because some compilers
3957 # like to wrap large dependency lists on column 80 (with \), and
3958 # we should not choose a depcomp mode which is confused by this.
3960 # We need to recreate these files for each test, as the compiler may
3961 # overwrite some of them when testing with obscure command lines.
3962 # This happens at least with the AIX C compiler.
3964 for i
in 1 2 3 4 5 6; do
3965 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3966 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967 # Solaris 8's {/usr,}/bin/sh.
3968 touch sub
/conftst
$i.h
3970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3974 # after this tag, mechanisms are not by side-effect, so they'll
3975 # only be used when explicitly requested
3976 if test "x$enable_dependency_tracking" = xyes
; then
3984 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3985 # mode. It turns out that the SunPro C++ compiler does not properly
3986 # handle `-M -o', and we need to detect this.
3987 if depmode
=$depmode \
3988 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3989 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3990 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3991 >/dev
/null
2>conftest.err
&&
3992 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3993 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3994 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3995 # icc doesn't choke on unknown options, it will just issue warnings
3996 # or remarks (even with -Werror). So we grep stderr for any message
3997 # that says an option was ignored or not supported.
3998 # When given -MP, icc 7.0 and 7.1 complain thusly:
3999 # icc: Command line warning: ignoring option '-M'; no argument required
4000 # The diagnosis changed in icc 8.0:
4001 # icc: Command line remark: option '-MP' not supported
4002 if (grep 'ignoring option' conftest.err ||
4003 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4004 am_cv_CC_dependencies_compiler_type
=$depmode
4013 am_cv_CC_dependencies_compiler_type
=none
4017 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4018 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4019 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4024 test "x$enable_dependency_tracking" != xno \
4025 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4027 am__fastdepCC_FALSE
='#'
4029 am__fastdepCC_TRUE
='#'
4030 am__fastdepCC_FALSE
=
4037 curl_includes_inttypes
="\
4038 /* includes start */
4039 #ifdef HAVE_SYS_TYPES_H
4040 # include <sys/types.h>
4042 #ifdef HAVE_STDINT_H
4043 # include <stdint.h>
4045 #ifdef HAVE_INTTYPES_H
4046 # include <inttypes.h>
4052 for ac_header
in sys
/types.h stdint.h inttypes.h
4054 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4057 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 cat >conftest.
$ac_ext <<_ACEOF
4063 cat confdefs.h
>>conftest.
$ac_ext
4064 cat >>conftest.
$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 $curl_includes_inttypes
4068 #include <$ac_header>
4070 rm -f conftest.
$ac_objext
4071 if { (ac_try
="$ac_compile"
4073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_compile") 2>conftest.er1
4079 grep -v '^ *+' conftest.er1 >conftest.err
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } && {
4084 test -z "$ac_c_werror_flag" ||
4085 test ! -s conftest.err
4086 } && test -s conftest.$ac_objext; then
4087 eval "$as_ac_Header=yes"
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 eval "$as_ac_Header=no"
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_res=`eval echo '${'$as_ac_Header'}'`
4098 { echo "$as_me:$LINENO: result: $ac_res" >&5
4099 echo "${ECHO_T}$ac_res" >&6; }
4100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4116 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4117 # On Suns, sometimes $CPP names a directory.
4118 if test -n "$CPP" && test -d "$CPP"; then
4121 if test -z "$CPP"; then
4122 if test "${ac_cv_prog_CPP+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 # Double quotes because CPP needs to be expanded
4126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4129 for ac_c_preproc_warn_flag in '' yes
4131 # Use a header file that comes with gcc, so configuring glibc
4132 # with a fresh cross-compiler works.
4133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4134 # <limits.h> exists even on freestanding compilers.
4135 # On the NeXT, cc -E runs the code through the compiler's parser,
4136 # not just through cpp. "Syntax error" is here to catch this case.
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4144 # include <limits.h>
4146 # include <assert.h>
4150 if { (ac_try="$ac_cpp conftest.$ac_ext"
4152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4153 *) ac_try_echo
=$ac_try;;
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4158 grep -v '^ *+' conftest.er1
>conftest.err
4160 cat conftest.err
>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } >/dev
/null
&& {
4163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4164 test ! -s conftest.err
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.
$ac_ext >&5
4171 # Broken: fails on valid input.
4175 rm -f conftest.err conftest.
$ac_ext
4177 # OK, works on sane cases. Now check whether nonexistent headers
4178 # can be detected and how.
4179 cat >conftest.
$ac_ext <<_ACEOF
4182 cat confdefs.h
>>conftest.
$ac_ext
4183 cat >>conftest.
$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 #include <ac_nonexistent.h>
4187 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4195 grep -v '^ *+' conftest.er1 >conftest.err
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null && {
4200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4201 test ! -s conftest.err
4203 # Broken: success on invalid input.
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 # Passes both tests.
4214 rm -f conftest.err conftest.$ac_ext
4217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4218 rm -f conftest.err conftest.
$ac_ext
4219 if $ac_preproc_ok; then
4231 { echo "$as_me:$LINENO: result: $CPP" >&5
4232 echo "${ECHO_T}$CPP" >&6; }
4234 for ac_c_preproc_warn_flag
in '' yes
4236 # Use a header file that comes with gcc, so configuring glibc
4237 # with a fresh cross-compiler works.
4238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4239 # <limits.h> exists even on freestanding compilers.
4240 # On the NeXT, cc -E runs the code through the compiler's parser,
4241 # not just through cpp. "Syntax error" is here to catch this case.
4242 cat >conftest.
$ac_ext <<_ACEOF
4245 cat confdefs.h
>>conftest.
$ac_ext
4246 cat >>conftest.
$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4249 # include <limits.h>
4251 # include <assert.h>
4255 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } >/dev/null && {
4268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 # Broken: fails on valid input.
4280 rm -f conftest.err conftest.$ac_ext
4282 # OK, works on sane cases. Now check whether nonexistent headers
4283 # can be detected and how.
4284 cat >conftest.$ac_ext <<_ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 #include <ac_nonexistent.h>
4292 if { (ac_try="$ac_cpp conftest.$ac_ext"
4294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4295 *) ac_try_echo
=$ac_try;;
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4300 grep -v '^ *+' conftest.er1
>conftest.err
4302 cat conftest.err
>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } >/dev
/null
&& {
4305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4306 test ! -s conftest.err
4308 # Broken: success on invalid input.
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.
$ac_ext >&5
4314 # Passes both tests.
4319 rm -f conftest.err conftest.
$ac_ext
4322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323 rm -f conftest.err conftest.
$ac_ext
4324 if $ac_preproc_ok; then
4327 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4328 See \`config.log' for more details." >&5
4329 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4330 See \`config.log' for more details." >&2;}
4331 { (exit 1); exit 1; }; }
4335 ac_cpp
='$CPP $CPPFLAGS'
4336 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4341 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4342 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4343 if test "${ac_cv_path_GREP+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 # Extract the first word of "grep ggrep" to use in msg output
4347 if test -z "$GREP"; then
4348 set dummy
grep ggrep
; ac_prog_name
=$2
4349 if test "${ac_cv_path_GREP+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 ac_path_GREP_found
=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4355 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4358 test -z "$as_dir" && as_dir
=.
4359 for ac_prog
in grep ggrep
; do
4360 for ac_exec_ext
in '' $ac_executable_extensions; do
4361 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4362 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4363 # Check for GNU ac_path_GREP and select it if it is found.
4364 # Check for GNU $ac_path_GREP
4365 case `"$ac_path_GREP" --version 2>&1` in
4367 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4370 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 echo 'GREP' >> "conftest.nl"
4377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4378 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4379 ac_count
=`expr $ac_count + 1`
4380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_GREP
="$ac_path_GREP"
4383 ac_path_GREP_max
=$ac_count
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4388 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4392 $ac_path_GREP_found && break 3
4402 GREP
="$ac_cv_path_GREP"
4403 if test -z "$GREP"; then
4404 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4405 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4406 { (exit 1); exit 1; }; }
4410 ac_cv_path_GREP
=$GREP
4415 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4416 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4417 GREP
="$ac_cv_path_GREP"
4420 { echo "$as_me:$LINENO: checking for egrep" >&5
4421 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4422 if test "${ac_cv_path_EGREP+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4426 then ac_cv_path_EGREP
="$GREP -E"
4428 # Extract the first word of "egrep" to use in msg output
4429 if test -z "$EGREP"; then
4430 set dummy
egrep; ac_prog_name
=$2
4431 if test "${ac_cv_path_EGREP+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 ac_path_EGREP_found
=false
4435 # Loop through the user's path and test for each of PROGNAME-LIST
4436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4437 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4440 test -z "$as_dir" && as_dir
=.
4441 for ac_prog
in egrep; do
4442 for ac_exec_ext
in '' $ac_executable_extensions; do
4443 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4444 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4445 # Check for GNU ac_path_EGREP and select it if it is found.
4446 # Check for GNU $ac_path_EGREP
4447 case `"$ac_path_EGREP" --version 2>&1` in
4449 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4452 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4455 cat "conftest.in" "conftest.in" >"conftest.tmp"
4456 mv "conftest.tmp" "conftest.in"
4457 cp "conftest.in" "conftest.nl"
4458 echo 'EGREP' >> "conftest.nl"
4459 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4460 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4461 ac_count
=`expr $ac_count + 1`
4462 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4463 # Best one so far, save it but keep looking for a better one
4464 ac_cv_path_EGREP
="$ac_path_EGREP"
4465 ac_path_EGREP_max
=$ac_count
4467 # 10*(2^10) chars as input seems more than enough
4468 test $ac_count -gt 10 && break
4470 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4474 $ac_path_EGREP_found && break 3
4484 EGREP
="$ac_cv_path_EGREP"
4485 if test -z "$EGREP"; then
4486 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4487 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4488 { (exit 1); exit 1; }; }
4492 ac_cv_path_EGREP
=$EGREP
4498 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4499 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4500 EGREP
="$ac_cv_path_EGREP"
4503 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4504 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4505 if test "${ac_cv_header_stdc+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 cat >conftest.
$ac_ext <<_ACEOF
4511 cat confdefs.h
>>conftest.
$ac_ext
4512 cat >>conftest.
$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4527 rm -f conftest.
$ac_objext
4528 if { (ac_try
="$ac_compile"
4530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534 (eval "$ac_compile") 2>conftest.er1
4536 grep -v '^ *+' conftest.er1 >conftest.err
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } && {
4541 test -z "$ac_c_werror_flag" ||
4542 test ! -s conftest.err
4543 } && test -s conftest.$ac_objext; then
4544 ac_cv_header_stdc=yes
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4549 ac_cv_header_stdc=no
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 if test $ac_cv_header_stdc = yes; then
4555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4556 cat >conftest.$ac_ext <<_ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566 $EGREP "memchr" >/dev/null 2>&1; then
4569 ac_cv_header_stdc=no
4575 if test $ac_cv_header_stdc = yes; then
4576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4587 $EGREP "free" >/dev/null 2>&1; then
4590 ac_cv_header_stdc=no
4596 if test $ac_cv_header_stdc = yes; then
4597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4598 if test "$cross_compiling" = yes; then
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4609 #if ((' ' & 0x0FF) == 0x020)
4610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4613 # define ISLOWER(c) \
4614 (('a' <= (c) && (c) <= 'i') \
4615 || ('j' <= (c) && (c) <= 'r') \
4616 || ('s' <= (c) && (c) <= 'z'))
4617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4625 for (i = 0; i < 256; i++)
4626 if (XOR (islower (i), ISLOWER (i))
4627 || toupper (i) != TOUPPER (i))
4632 rm -f conftest$ac_exeext
4633 if { (ac_try="$ac_link"
4635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4636 *) ac_try_echo
=$ac_try;;
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_link") 2>&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4643 { (case "(($ac_try" in
4644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_try") 2>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4654 echo "$as_me: program exited with status $ac_status" >&5
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4659 ac_cv_header_stdc=no
4661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4667 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4668 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4669 if test $ac_cv_header_stdc = yes; then
4671 cat >>confdefs.h <<\_ACEOF
4672 #define STDC_HEADERS 1
4677 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4687 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4688 inttypes.h stdint.h unistd.h
4690 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 cat >conftest.$ac_ext <<_ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 $ac_includes_default
4704 #include <$ac_header>
4706 rm -f conftest.$ac_objext
4707 if { (ac_try="$ac_compile"
4709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4710 *) ac_try_echo
=$ac_try;;
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_compile") 2>conftest.er1
4715 grep -v '^ *+' conftest.er1
>conftest.err
4717 cat conftest.err
>&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && {
4720 test -z "$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 } && test -s conftest.
$ac_objext; then
4723 eval "$as_ac_Header=yes"
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.
$ac_ext >&5
4728 eval "$as_ac_Header=no"
4731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4733 ac_res
=`eval echo '${'$as_ac_Header'}'`
4734 { echo "$as_me:$LINENO: result: $ac_res" >&5
4735 echo "${ECHO_T}$ac_res" >&6; }
4736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4737 cat >>confdefs.h
<<_ACEOF
4738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 if test -z "$SED"; then
4750 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
4751 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
4752 { (exit 1); exit 1; }; }
4755 { echo "$as_me:$LINENO: checking for long" >&5
4756 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4757 if test "${ac_cv_type_long+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 cat >conftest.
$ac_ext <<_ACEOF
4763 cat confdefs.h
>>conftest.
$ac_ext
4764 cat >>conftest.
$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 $ac_includes_default
4767 typedef long ac__type_new_;
4771 if ((ac__type_new_ *) 0)
4773 if (sizeof (ac__type_new_))
4779 rm -f conftest.
$ac_objext
4780 if { (ac_try
="$ac_compile"
4782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_compile") 2>conftest.er1
4788 grep -v '^ *+' conftest.er1 >conftest.err
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && {
4793 test -z "$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 } && test -s conftest.$ac_objext; then
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4807 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4809 # The cast to long int works around a bug in the HP C Compiler
4810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4811 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
4812 # This bug is HP SR number 8606223364.
4813 { echo "$as_me:$LINENO: checking size of long" >&5
4814 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4815 if test "${ac_cv_sizeof_long+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test "$cross_compiling" = yes; then
4819 # Depending upon the size, compute the lo and hi bounds.
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 $ac_includes_default
4827 typedef long ac__type_sizeof_;
4831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compile") 2>conftest.er1
4847 grep -v '^
*+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 $ac_includes_default
4864 typedef long ac__type_sizeof_;
4868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4875 rm -f conftest.$ac_objext
4876 if { (ac_try="$ac_compile"
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_compile") 2>conftest.er1
4884 grep -v '^
*+' conftest.er1 >conftest.err
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } && {
4889 test -z "$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 } && test -s conftest.$ac_objext; then
4892 ac_hi=$ac_mid; break
4894 echo "$as_me: failed program was:" >&5
4895 sed 's
/^
/|
/' conftest.$ac_ext >&5
4897 ac_lo=`expr $ac_mid + 1`
4898 if test $ac_lo -le $ac_mid; then
4902 ac_mid=`expr 2 '*' $ac_mid + 1`
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 echo "$as_me: failed program was:" >&5
4909 sed 's
/^
/|
/' conftest.$ac_ext >&5
4911 cat >conftest.$ac_ext <<_ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 $ac_includes_default
4918 typedef long ac__type_sizeof_;
4922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4929 rm -f conftest.$ac_objext
4930 if { (ac_try="$ac_compile"
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_compile") 2>conftest.er1
4938 grep -v '^
*+' conftest.er1 >conftest.err
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } && {
4943 test -z "$ac_c_werror_flag" ||
4944 test ! -s conftest.err
4945 } && test -s conftest.$ac_objext; then
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4955 typedef long ac__type_sizeof_;
4959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4975 grep -v '^
*+' conftest.er1 >conftest.err
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && {
4980 test -z "$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
4983 ac_lo=$ac_mid; break
4985 echo "$as_me: failed program was:" >&5
4986 sed 's
/^
/|
/' conftest.$ac_ext >&5
4988 ac_hi=`expr '(' $ac_mid ')' - 1`
4989 if test $ac_mid -le $ac_hi; then
4993 ac_mid=`expr 2 '*' $ac_mid`
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 echo "$as_me: failed program was:" >&5
5000 sed 's
/^
/|
/' conftest.$ac_ext >&5
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 # Binary search between lo and hi bounds.
5010 while test "x$ac_lo" != "x$ac_hi"; do
5011 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 $ac_includes_default
5019 typedef long ac__type_sizeof_;
5023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5030 rm -f conftest.$ac_objext
5031 if { (ac_try="$ac_compile"
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_compile") 2>conftest.er1
5039 grep -v '^
*+' conftest.er1 >conftest.err
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } && {
5044 test -z "$ac_c_werror_flag" ||
5045 test ! -s conftest.err
5046 } && test -s conftest.$ac_objext; then
5049 echo "$as_me: failed program was:" >&5
5050 sed 's
/^
/|
/' conftest.$ac_ext >&5
5052 ac_lo=`expr '(' $ac_mid ')' + 1`
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 ?*) ac_cv_sizeof_long=$ac_lo;;
5059 '') if test "$ac_cv_type_long" = yes; then
5060 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5061 See \`config.log' for more details.
" >&5
5062 echo "$as_me: error
: cannot compute sizeof
(long
)
5063 See \
`config.log' for more details." >&2;}
5064 { (exit 77); exit 77; }; }
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5077 typedef long ac__type_sizeof_;
5078 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5079 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5086 FILE *f = fopen ("conftest.val", "w");
5089 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5091 long int i = longval ();
5092 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5094 fprintf (f, "%ld\n", i);
5098 unsigned long int i = ulongval ();
5099 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5101 fprintf (f, "%lu\n", i);
5103 return ferror (f) || fclose (f) != 0;
5109 rm -f conftest$ac_exeext
5110 if { (ac_try="$ac_link"
5112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5113 *) ac_try_echo
=$ac_try;;
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_link") 2>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5120 { (case "(($ac_try" in
5121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_try") 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 ac_cv_sizeof_long=`cat conftest.val
`
5131 echo "$as_me: program exited with status $ac_status" >&5
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5136 if test "$ac_cv_type_long" = yes; then
5137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5138 See \`config.log
' for more details." >&5
5139 echo "$as_me: error: cannot compute sizeof (long)
5140 See \`config.log' for more details.
" >&2;}
5141 { (exit 77); exit 77; }; }
5146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5150 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_long" >&5
5151 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5155 cat >>confdefs.h <<_ACEOF
5156 #define SIZEOF_LONG $ac_cv_sizeof_long
5160 { echo "$as_me:$LINENO: checking
for void
*" >&5
5161 echo $ECHO_N "checking
for void
*...
$ECHO_C" >&6; }
5162 if test "${ac_cv_type_voidp+set}" = set; then
5163 echo $ECHO_N "(cached
) $ECHO_C" >&6
5165 cat >conftest.$ac_ext <<_ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5172 typedef void* ac__type_new_;
5176 if ((ac__type_new_ *) 0)
5178 if (sizeof (ac__type_new_))
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compile") 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest.$ac_objext; then
5201 ac_cv_type_voidp=yes
5203 echo "$as_me: failed program was
:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 { echo "$as_me:$LINENO: result
: $ac_cv_type_voidp" >&5
5212 echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
5214 # The cast to long int works around a bug in the HP C Compiler
5215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5217 # This bug is HP SR number 8606223364.
5218 { echo "$as_me:$LINENO: checking size of void
*" >&5
5219 echo $ECHO_N "checking size of void
*...
$ECHO_C" >&6; }
5220 if test "${ac_cv_sizeof_voidp+set}" = set; then
5221 echo $ECHO_N "(cached
) $ECHO_C" >&6
5223 if test "$cross_compiling" = yes; then
5224 # Depending upon the size, compute the lo and hi bounds.
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_includes_default
5232 typedef void* ac__type_sizeof_;
5236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5243 rm -f conftest.$ac_objext
5244 if { (ac_try="$ac_compile"
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest.$ac_objext; then
5262 cat >conftest.$ac_ext <<_ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5269 typedef void* ac__type_sizeof_;
5273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5280 rm -f conftest.$ac_objext
5281 if { (ac_try="$ac_compile"
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compile") 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
5297 ac_hi=$ac_mid; break
5299 echo "$as_me: failed program was
:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ac_lo=`expr $ac_mid + 1`
5303 if test $ac_lo -le $ac_mid; then
5307 ac_mid=`expr 2 '*' $ac_mid + 1`
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5313 echo "$as_me: failed program was
:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5323 typedef void* ac__type_sizeof_;
5327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 $ac_includes_default
5360 typedef void* ac__type_sizeof_;
5364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5388 ac_lo=$ac_mid; break
5390 echo "$as_me: failed program was
:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_hi=`expr '(' $ac_mid ')' - 1`
5394 if test $ac_mid -le $ac_hi; then
5398 ac_mid=`expr 2 '*' $ac_mid`
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 echo "$as_me: failed program was
:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 # Binary search between lo and hi bounds.
5415 while test "x
$ac_lo" != "x
$ac_hi"; do
5416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5424 typedef void* ac__type_sizeof_;
5428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compile") 2>conftest.er1
5444 grep -v '^ *+' conftest.er1 >conftest.err
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5448 (exit $ac_status); } && {
5449 test -z "$ac_c_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest.$ac_objext; then
5454 echo "$as_me: failed program was
:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_lo=`expr '(' $ac_mid ')' + 1`
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 ?*) ac_cv_sizeof_voidp=$ac_lo;;
5464 '') if test "$ac_cv_type_voidp" = yes; then
5465 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
5466 See \
`config.log' for more details." >&5
5467 echo "$as_me: error: cannot compute sizeof (void*)
5468 See \`config.log
' for more details." >&2;}
5469 { (exit 77); exit 77; }; }
5471 ac_cv_sizeof_voidp=0
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 typedef void* ac__type_sizeof_;
5483 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5484 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5491 FILE *f = fopen ("conftest.val", "w");
5494 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5496 long int i = longval ();
5497 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5499 fprintf (f, "%ld\n", i);
5503 unsigned long int i = ulongval ();
5504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5506 fprintf (f, "%lu\n", i);
5508 return ferror (f) || fclose (f) != 0;
5514 rm -f conftest$ac_exeext
5515 if { (ac_try="$ac_link"
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_link") 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
5525 { (case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_try") 2>&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_sizeof_voidp=`cat conftest.val`
5536 echo "$as_me: program exited with status $ac_status" >&5
5537 echo "$as_me: failed program was:" >&5
5538 sed 's
/^
/|
/' conftest.$ac_ext >&5
5541 if test "$ac_cv_type_voidp" = yes; then
5542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
5543 See \`config.log' for more details.
" >&5
5544 echo "$as_me: error
: cannot compute sizeof
(void
*)
5545 See \
`config.log' for more details." >&2;}
5546 { (exit 77); exit 77; }; }
5548 ac_cv_sizeof_voidp=0
5551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5555 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
5556 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
5560 cat >>confdefs.h <<_ACEOF
5561 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5566 if test -z "$ac_cv_sizeof_long" ||
5567 test "$ac_cv_sizeof_long" -eq "0"; then
5568 { { echo "$as_me:$LINENO: error: cannot find out size of long." >&5
5569 echo "$as_me: error: cannot find out size of long." >&2;}
5570 { (exit 1); exit 1; }; }
5572 if test -z "$ac_cv_sizeof_voidp" ||
5573 test "$ac_cv_sizeof_voidp" -eq "0"; then
5574 { { echo "$as_me:$LINENO: error: cannot find out size of void*." >&5
5575 echo "$as_me: error: cannot find out size of void*." >&2;}
5576 { (exit 1); exit 1; }; }
5583 if test "$ac_cv_sizeof_long" -eq "8" &&
5584 test "$ac_cv_sizeof_voidp" -ge "8"; then
5586 elif test "$ac_cv_sizeof_long" -eq "4" &&
5587 test "$ac_cv_sizeof_voidp" -ge "4"; then
5589 elif test "$ac_cv_sizeof_long" -eq "2" &&
5590 test "$ac_cv_sizeof_voidp" -ge "2"; then
5595 curl_typeof_curl_off_t="unknown"
5596 curl_sizeof_curl_off_t="unknown"
5597 curl_format_curl_off_t="unknown"
5598 curl_format_curl_off_tu="unknown"
5600 if test "$curl_typeof_curl_off_t" = "unknown"; then
5601 { echo "$as_me:$LINENO: checking for 64-bit curl_off_t data type" >&5
5602 echo $ECHO_N "checking for 64-bit curl_off_t data type... $ECHO_C" >&6; }
5611 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
5615 case `echo "$t8" |
$as_tr_sh` in
5617 tmp_includes="$curl_includes_inttypes"
5618 tmp_source="char f[] = PRId64;"
5622 tmp_includes="$curl_includes_inttypes"
5623 tmp_source="char f[] = PRId32;"
5627 tmp_includes="$curl_includes_inttypes"
5628 tmp_source="char f[] = PRId16;"
5632 cat >conftest.$ac_ext <<_ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5641 typedef $t8 curl_off_t;
5642 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5660 *) ac_try_echo
=$ac_try;;
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1
>conftest.err
5667 cat conftest.err
>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.
$ac_objext; then
5674 if test -z "$tmp_fmt"; then
5675 curl_typeof_curl_off_t
="$t8"
5676 curl_sizeof_curl_off_t
="8"
5679 as_ac_HaveDef
=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5680 as_ac_Def
=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5681 if test -z "$SED"; then
5682 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
5683 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
5684 { (exit 1); exit 1; }; }
5686 if test -z "$GREP"; then
5687 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
5688 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
5689 { (exit 1); exit 1; }; }
5693 cat >conftest.
$ac_ext <<_ACEOF
5697 cat confdefs.h
>>conftest.
$ac_ext
5698 cat >>conftest.
$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 $curl_includes_inttypes
5702 CURL_DEF_TOKEN $tmp_fmt
5707 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5715 grep -v '^ *+' conftest.er1 >conftest.err
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev/null && {
5720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5721 test ! -s conftest.err
5724 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev
/null | \
5725 "$GREP" CURL_DEF_TOKEN
2>/dev
/null | \
5726 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev
/null | \
5727 "$SED" 's/["][ ]*["]//g' 2>/dev
/null
`
5728 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5739 rm -f conftest.err conftest.$ac_ext
5740 if test -z "$tmp_exp"; then
5741 eval "$as_ac_HaveDef=no"
5744 eval "$as_ac_HaveDef=yes"
5745 eval "$as_ac_Def=\$tmp_exp"
5749 as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" |
$as_tr_sh`
5750 as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" |
$as_tr_sh`
5751 if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
5752 curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
5753 curl_typeof_curl_off_t="$t8"
5754 curl_sizeof_curl_off_t="8"
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
5770 echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
5772 if test "$curl_typeof_curl_off_t" = "unknown"; then
5773 { echo "$as_me:$LINENO: checking for 32-bit curl_off_t data type" >&5
5774 echo $ECHO_N "checking for 32-bit curl_off_t data type... $ECHO_C" >&6; }
5781 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
5785 case `echo "$t4" |
$as_tr_sh` in
5787 tmp_includes="$curl_includes_inttypes"
5788 tmp_source="char f[] = PRId64;"
5792 tmp_includes="$curl_includes_inttypes"
5793 tmp_source="char f[] = PRId32;"
5797 tmp_includes="$curl_includes_inttypes"
5798 tmp_source="char f[] = PRId16;"
5802 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5811 typedef $t4 curl_off_t;
5812 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5830 *) ac_try_echo
=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5835 grep -v '^ *+' conftest.er1
>conftest.err
5837 cat conftest.err
>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.
$ac_objext; then
5844 if test -z "$tmp_fmt"; then
5845 curl_typeof_curl_off_t
="$t4"
5846 curl_sizeof_curl_off_t
="4"
5849 as_ac_HaveDef
=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5850 as_ac_Def
=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5851 if test -z "$SED"; then
5852 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
5853 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
5854 { (exit 1); exit 1; }; }
5856 if test -z "$GREP"; then
5857 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
5858 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
5859 { (exit 1); exit 1; }; }
5863 cat >conftest.
$ac_ext <<_ACEOF
5867 cat confdefs.h
>>conftest.
$ac_ext
5868 cat >>conftest.
$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 $curl_includes_inttypes
5872 CURL_DEF_TOKEN $tmp_fmt
5877 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5885 grep -v '^ *+' conftest.er1 >conftest.err
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } >/dev/null && {
5890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5891 test ! -s conftest.err
5894 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev
/null | \
5895 "$GREP" CURL_DEF_TOKEN
2>/dev
/null | \
5896 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev
/null | \
5897 "$SED" 's/["][ ]*["]//g' 2>/dev
/null
`
5898 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5909 rm -f conftest.err conftest.$ac_ext
5910 if test -z "$tmp_exp"; then
5911 eval "$as_ac_HaveDef=no"
5914 eval "$as_ac_HaveDef=yes"
5915 eval "$as_ac_Def=\$tmp_exp"
5919 as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" |
$as_tr_sh`
5920 as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" |
$as_tr_sh`
5921 if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
5922 curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
5923 curl_typeof_curl_off_t="$t4"
5924 curl_sizeof_curl_off_t="4"
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
5940 echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
5942 if test "$curl_typeof_curl_off_t" = "unknown"; then
5943 { echo "$as_me:$LINENO: checking for 16-bit curl_off_t data type" >&5
5944 echo $ECHO_N "checking for 16-bit curl_off_t data type... $ECHO_C" >&6; }
5951 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
5955 case `echo "$t2" |
$as_tr_sh` in
5957 tmp_includes="$curl_includes_inttypes"
5958 tmp_source="char f[] = PRId64;"
5962 tmp_includes="$curl_includes_inttypes"
5963 tmp_source="char f[] = PRId32;"
5967 tmp_includes="$curl_includes_inttypes"
5968 tmp_source="char f[] = PRId16;"
5972 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5981 typedef $t2 curl_off_t;
5982 typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
5996 rm -f conftest.$ac_objext
5997 if { (ac_try="$ac_compile"
5999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6000 *) ac_try_echo
=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6005 grep -v '^ *+' conftest.er1
>conftest.err
6007 cat conftest.err
>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest.
$ac_objext; then
6014 if test -z "$tmp_fmt"; then
6015 curl_typeof_curl_off_t
="$t2"
6016 curl_sizeof_curl_off_t
="2"
6019 as_ac_HaveDef
=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6020 as_ac_Def
=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6021 if test -z "$SED"; then
6022 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
6023 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
6024 { (exit 1); exit 1; }; }
6026 if test -z "$GREP"; then
6027 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
6028 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
6029 { (exit 1); exit 1; }; }
6033 cat >conftest.
$ac_ext <<_ACEOF
6037 cat confdefs.h
>>conftest.
$ac_ext
6038 cat >>conftest.
$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 $curl_includes_inttypes
6042 CURL_DEF_TOKEN $tmp_fmt
6047 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6055 grep -v '^ *+' conftest.er1 >conftest.err
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } >/dev/null && {
6060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6061 test ! -s conftest.err
6064 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev
/null | \
6065 "$GREP" CURL_DEF_TOKEN
2>/dev
/null | \
6066 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev
/null | \
6067 "$SED" 's/["][ ]*["]//g' 2>/dev
/null
`
6068 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6079 rm -f conftest.err conftest.$ac_ext
6080 if test -z "$tmp_exp"; then
6081 eval "$as_ac_HaveDef=no"
6084 eval "$as_ac_HaveDef=yes"
6085 eval "$as_ac_Def=\$tmp_exp"
6089 as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" |
$as_tr_sh`
6090 as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" |
$as_tr_sh`
6091 if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
6092 curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
6093 curl_typeof_curl_off_t="$t2"
6094 curl_sizeof_curl_off_t="2"
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
6110 echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
6112 if test "$curl_typeof_curl_off_t" = "unknown"; then
6113 { { echo "$as_me:$LINENO: error: cannot find data type for curl_off_t." >&5
6114 echo "$as_me: error: cannot find data type for curl_off_t." >&2;}
6115 { (exit 1); exit 1; }; }
6118 { echo "$as_me:$LINENO: checking size of curl_off_t" >&5
6119 echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6; }
6120 { echo "$as_me:$LINENO: result: $curl_sizeof_curl_off_t" >&5
6121 echo "${ECHO_T}$curl_sizeof_curl_off_t" >&6; }
6123 { echo "$as_me:$LINENO: checking formatting string directive for curl_off_t" >&5
6124 echo $ECHO_N "checking formatting string directive for curl_off_t... $ECHO_C" >&6; }
6125 if test "$curl_format_curl_off_t" != "unknown"; then
6126 x_pull_headers="yes"
6127 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" |
"$SED" 's/["]//g'`
6128 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" |
"$SED" 's/i$/u/'`
6129 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" |
"$SED" 's/d$/u/'`
6130 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" |
"$SED" 's/D$/U/'`
6133 case `echo "$curl_typeof_curl_off_t" |
$as_tr_sh` in
6134 long_long | __longlong | __longlong_t)
6135 curl_format_curl_off_t="lld"
6136 curl_format_curl_off_tu="llu"
6139 curl_format_curl_off_t="ld"
6140 curl_format_curl_off_tu="lu"
6143 curl_format_curl_off_t="d"
6144 curl_format_curl_off_tu="u"
6147 curl_format_curl_off_t="I64d"
6148 curl_format_curl_off_tu="I64u"
6151 curl_format_curl_off_t="I32d"
6152 curl_format_curl_off_tu="I32u"
6155 curl_format_curl_off_t="I16d"
6156 curl_format_curl_off_tu="I16u"
6159 { { echo "$as_me:$LINENO: error: cannot find print format string for curl_off_t." >&5
6160 echo "$as_me: error: cannot find print format string for curl_off_t." >&2;}
6161 { (exit 1); exit 1; }; }
6165 { echo "$as_me:$LINENO: result: \"$curl_format_curl_off_t\"" >&5
6166 echo "${ECHO_T}\"$curl_format_curl_off_t\"" >&6; }
6168 { echo "$as_me:$LINENO: checking formatting string directive for unsigned curl_off_t" >&5
6169 echo $ECHO_N "checking formatting string directive for unsigned curl_off_t... $ECHO_C" >&6; }
6170 { echo "$as_me:$LINENO: result: \"$curl_format_curl_off_tu\"" >&5
6171 echo "${ECHO_T}\"$curl_format_curl_off_tu\"" >&6; }
6174 { echo "$as_me:$LINENO: checking constant suffix string for curl_off_t" >&5
6175 echo $ECHO_N "checking constant suffix string for curl_off_t... $ECHO_C" >&6; }
6177 curl_suffix_curl_off_t="unknown"
6178 curl_suffix_curl_off_tu="unknown"
6180 case `echo "$curl_typeof_curl_off_t" |
$as_tr_sh` in
6181 long_long | __longlong | __longlong_t)
6191 tst_suffixes="LL:i64::"
6194 tst_suffixes="L:i32::"
6197 tst_suffixes="L:i16::"
6200 { { echo "$as_me:$LINENO: error: unexpected data type $curl_typeof_curl_off_t" >&5
6201 echo "$as_me: error: unexpected data type $curl_typeof_curl_off_t" >&2;}
6202 { (exit 1); exit 1; }; }
6206 old_IFS=$IFS; IFS=':'
6207 for tmp_ssuf in $tst_suffixes ; do
6209 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6212 tmp_usuf="u$tmp_ssuf"
6215 tmp_usuf="U$tmp_ssuf"
6221 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6229 $curl_includes_inttypes
6230 typedef $curl_typeof_curl_off_t new_t;
6248 rm -f conftest.$ac_objext
6249 if { (ac_try="$ac_compile"
6251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6252 *) ac_try_echo
=$ac_try;;
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_compile") 2>conftest.er1
6257 grep -v '^ *+' conftest.er1
>conftest.err
6259 cat conftest.err
>&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && {
6262 test -z "$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 } && test -s conftest.
$ac_objext; then
6266 curl_suffix_curl_off_t
="$tmp_ssuf"
6267 curl_suffix_curl_off_tu
="$tmp_usuf"
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.
$ac_ext >&5
6276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6281 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6282 { { echo "$as_me:$LINENO: error: cannot find constant suffix string for curl_off_t." >&5
6283 echo "$as_me: error: cannot find constant suffix string for curl_off_t." >&2;}
6284 { (exit 1); exit 1; }; }
6286 { echo "$as_me:$LINENO: result: $curl_suffix_curl_off_t" >&5
6287 echo "${ECHO_T}$curl_suffix_curl_off_t" >&6; }
6288 { echo "$as_me:$LINENO: checking constant suffix string for unsigned curl_off_t" >&5
6289 echo $ECHO_N "checking constant suffix string for unsigned curl_off_t... $ECHO_C" >&6; }
6290 { echo "$as_me:$LINENO: result: $curl_suffix_curl_off_tu" >&5
6291 echo "${ECHO_T}$curl_suffix_curl_off_tu" >&6; }
6296 if test "$x_pull_headers" = "yes"; then
6297 if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6299 cat >>confdefs.h
<<_EOF
6300 #define CURL_PULL_SYS_TYPES_H 1
6304 if test "x$ac_cv_header_stdint_h" = "xyes"; then
6306 cat >>confdefs.h
<<_EOF
6307 #define CURL_PULL_STDINT_H 1
6311 if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6313 cat >>confdefs.h
<<_EOF
6314 #define CURL_PULL_INTTYPES_H 1
6321 cat >>confdefs.h
<<_EOF
6322 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6326 cat >>confdefs.h
<<_EOF
6327 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6331 cat >>confdefs.h
<<_EOF
6332 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6336 cat >>confdefs.h
<<_EOF
6337 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6341 cat >>confdefs.h
<<_EOF
6342 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6346 cat >>confdefs.h
<<_EOF
6347 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6351 cat >>confdefs.h
<<_EOF
6352 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6361 { echo "$as_me:$LINENO: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6362 echo $ECHO_N "checking if OS is AIX (to define _ALL_SOURCE)... $ECHO_C" >&6; }
6363 cat >conftest.
$ac_ext <<_ACEOF
6366 cat confdefs.h
>>conftest.
$ac_ext
6367 cat >>conftest.
$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 $EGREP "yes_this_is_aix" >/dev
/null
2>&1; then
6378 { echo "$as_me:$LINENO: result: yes" >&5
6379 echo "${ECHO_T}yes" >&6; }
6380 cat >>confdefs.h
<<\_ACEOF
6381 #define _ALL_SOURCE 1
6387 { echo "$as_me:$LINENO: result: no" >&5
6388 echo "${ECHO_T}no" >&6; }
6397 { echo "$as_me:$LINENO: checking if _REENTRANT is already defined" >&5
6398 echo $ECHO_N "checking if _REENTRANT is already defined... $ECHO_C" >&6; }
6399 cat >conftest.
$ac_ext <<_ACEOF
6403 cat confdefs.h
>>conftest.
$ac_ext
6404 cat >>conftest.
$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6415 force compilation error
6423 rm -f conftest.
$ac_objext
6424 if { (ac_try
="$ac_compile"
6426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6441 { echo "$as_me:$LINENO: result: yes" >&5
6442 echo "${ECHO_T}yes" >&6; }
6443 tmp_reentrant_initially_defined="yes"
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6450 { echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6; }
6452 tmp_reentrant_initially_defined="no"
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 if test "$tmp_reentrant_initially_defined" = "no"; then
6459 { echo "$as_me:$LINENO: checking if _REENTRANT is actually needed" >&5
6460 echo $ECHO_N "checking if _REENTRANT is actually needed... $ECHO_C" >&6; }
6463 tmp_need_reentrant="no"
6465 if test "$tmp_need_reentrant" = "no"; then
6467 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
6475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6476 #define gmtime_r innocuous_gmtime_r
6478 /* System header to define __stub macros and hopefully few prototypes,
6479 which can conflict with char gmtime_r (); below.
6480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6481 <limits.h> exists even on freestanding compilers. */
6484 # include <limits.h>
6486 # include <assert.h>
6491 /* Override any GCC internal prototype to avoid an error.
6492 Use char because int might match the return type of a GCC
6493 builtin and then its argument prototype would still apply. */
6498 /* The GNU C library defines this for functions which it implements
6499 to always fail with ENOSYS. Some functions are actually named
6500 something starting with __ and the normal name is an alias. */
6501 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (ac_try="$ac_link"
6517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6518 *) ac_try_echo
=$ac_try;;
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_link") 2>conftest.er1
6523 grep -v '^ *+' conftest.er1
>conftest.err
6525 cat conftest.err
>&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && {
6528 test -z "$ac_c_werror_flag" ||
6529 test ! -s conftest.err
6530 } && test -s conftest
$ac_exeext &&
6531 $as_test_x conftest
$ac_exeext; then
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.
$ac_ext >&5
6544 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6545 conftest
$ac_exeext conftest.
$ac_ext
6546 if test "$tmp_gmtime_r" = "yes"; then
6547 cat >conftest.
$ac_ext <<_ACEOF
6550 cat confdefs.h
>>conftest.
$ac_ext
6551 cat >>conftest.
$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6554 #include <sys/types.h>
6558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6559 $EGREP "gmtime_r" >/dev
/null
2>&1; then
6561 tmp_gmtime_r
="proto_declared"
6565 cat >conftest.
$ac_ext <<_ACEOF
6568 cat confdefs.h
>>conftest.
$ac_ext
6569 cat >>conftest.
$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6573 #include <sys/types.h>
6577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6578 $EGREP "gmtime_r" >/dev
/null
2>&1; then
6580 tmp_gmtime_r
="proto_needs_reentrant"
6581 tmp_need_reentrant
="yes"
6593 if test "$tmp_need_reentrant" = "no"; then
6595 cat >conftest.
$ac_ext <<_ACEOF
6599 cat confdefs.h
>>conftest.
$ac_ext
6600 cat >>conftest.
$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
6603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6604 #define localtime_r innocuous_localtime_r
6606 /* System header to define __stub macros and hopefully few prototypes,
6607 which can conflict with char localtime_r (); below.
6608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6609 <limits.h> exists even on freestanding compilers. */
6612 # include <limits.h>
6614 # include <assert.h>
6619 /* Override any GCC internal prototype to avoid an error.
6620 Use char because int might match the return type of a GCC
6621 builtin and then its argument prototype would still apply. */
6625 char localtime_r ();
6626 /* The GNU C library defines this for functions which it implements
6627 to always fail with ENOSYS. Some functions are actually named
6628 something starting with __ and the normal name is an alias. */
6629 #if defined __stub_localtime_r || defined __stub___localtime_r
6636 return localtime_r ();
6642 rm -f conftest.
$ac_objext conftest
$ac_exeext
6643 if { (ac_try
="$ac_link"
6645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_link") 2>conftest.er1
6651 grep -v '^ *+' conftest.er1 >conftest.err
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && {
6656 test -z "$ac_c_werror_flag" ||
6657 test ! -s conftest.err
6658 } && test -s conftest$ac_exeext &&
6659 $as_test_x conftest$ac_exeext; then
6661 tmp_localtime_r="yes"
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6668 tmp_localtime_r="no"
6672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6673 conftest$ac_exeext conftest.$ac_ext
6674 if test "$tmp_localtime_r" = "yes"; then
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6682 #include <sys/types.h>
6686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6687 $EGREP "localtime_r" >/dev/null 2>&1; then
6689 tmp_localtime_r="proto_declared"
6693 cat >conftest.$ac_ext <<_ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6701 #include <sys/types.h>
6705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6706 $EGREP "localtime_r" >/dev/null 2>&1; then
6708 tmp_localtime_r="proto_needs_reentrant"
6709 tmp_need_reentrant="yes"
6721 if test "$tmp_need_reentrant" = "no"; then
6723 cat >conftest.$ac_ext <<_ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 /* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r.
6731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6732 #define strerror_r innocuous_strerror_r
6734 /* System header to define __stub macros and hopefully few prototypes,
6735 which can conflict with char strerror_r (); below.
6736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6737 <limits.h> exists even on freestanding compilers. */
6740 # include <limits.h>
6742 # include <assert.h>
6747 /* Override any GCC internal prototype to avoid an error.
6748 Use char because int might match the return type of a GCC
6749 builtin and then its argument prototype would still apply. */
6754 /* The GNU C library defines this for functions which it implements
6755 to always fail with ENOSYS. Some functions are actually named
6756 something starting with __ and the normal name is an alias. */
6757 #if defined __stub_strerror_r || defined __stub___strerror_r
6764 return strerror_r ();
6770 rm -f conftest.$ac_objext conftest$ac_exeext
6771 if { (ac_try="$ac_link"
6773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6774 *) ac_try_echo
=$ac_try;;
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_link") 2>conftest.er1
6779 grep -v '^ *+' conftest.er1
>conftest.err
6781 cat conftest.err
>&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest
$ac_exeext &&
6787 $as_test_x conftest
$ac_exeext; then
6789 tmp_strerror_r
="yes"
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.
$ac_ext >&5
6800 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6801 conftest
$ac_exeext conftest.
$ac_ext
6802 if test "$tmp_strerror_r" = "yes"; then
6803 cat >conftest.
$ac_ext <<_ACEOF
6806 cat confdefs.h
>>conftest.
$ac_ext
6807 cat >>conftest.
$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6810 #include <sys/types.h>
6814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815 $EGREP "strerror_r" >/dev
/null
2>&1; then
6817 tmp_strerror_r
="proto_declared"
6821 cat >conftest.
$ac_ext <<_ACEOF
6824 cat confdefs.h
>>conftest.
$ac_ext
6825 cat >>conftest.
$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6829 #include <sys/types.h>
6833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6834 $EGREP "strerror_r" >/dev
/null
2>&1; then
6836 tmp_strerror_r
="proto_needs_reentrant"
6837 tmp_need_reentrant
="yes"
6849 if test "$tmp_need_reentrant" = "no"; then
6851 cat >conftest.
$ac_ext <<_ACEOF
6855 cat confdefs.h
>>conftest.
$ac_ext
6856 cat >>conftest.
$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
6859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6860 #define strtok_r innocuous_strtok_r
6862 /* System header to define __stub macros and hopefully few prototypes,
6863 which can conflict with char strtok_r (); below.
6864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6865 <limits.h> exists even on freestanding compilers. */
6868 # include <limits.h>
6870 # include <assert.h>
6875 /* Override any GCC internal prototype to avoid an error.
6876 Use char because int might match the return type of a GCC
6877 builtin and then its argument prototype would still apply. */
6882 /* The GNU C library defines this for functions which it implements
6883 to always fail with ENOSYS. Some functions are actually named
6884 something starting with __ and the normal name is an alias. */
6885 #if defined __stub_strtok_r || defined __stub___strtok_r
6898 rm -f conftest.
$ac_objext conftest
$ac_exeext
6899 if { (ac_try
="$ac_link"
6901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_link") 2>conftest.er1
6907 grep -v '^ *+' conftest.er1 >conftest.err
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest$ac_exeext &&
6915 $as_test_x conftest$ac_exeext; then
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6929 conftest$ac_exeext conftest.$ac_ext
6930 if test "$tmp_strtok_r" = "yes"; then
6931 cat >conftest.$ac_ext <<_ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6938 #include <sys/types.h>
6942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943 $EGREP "strtok_r" >/dev/null 2>&1; then
6945 tmp_strtok_r="proto_declared"
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6957 #include <sys/types.h>
6961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6962 $EGREP "strtok_r" >/dev/null 2>&1; then
6964 tmp_strtok_r="proto_needs_reentrant"
6965 tmp_need_reentrant="yes"
6977 if test "$tmp_need_reentrant" = "no"; then
6979 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 /* Define inet_ntoa_r to an innocuous variant, in case <limits.h> declares inet_ntoa_r.
6987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6988 #define inet_ntoa_r innocuous_inet_ntoa_r
6990 /* System header to define __stub macros and hopefully few prototypes,
6991 which can conflict with char inet_ntoa_r (); below.
6992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993 <limits.h> exists even on freestanding compilers. */
6996 # include <limits.h>
6998 # include <assert.h>
7003 /* Override any GCC internal prototype to avoid an error.
7004 Use char because int might match the return type of a GCC
7005 builtin and then its argument prototype would still apply. */
7009 char inet_ntoa_r ();
7010 /* The GNU C library defines this for functions which it implements
7011 to always fail with ENOSYS. Some functions are actually named
7012 something starting with __ and the normal name is an alias. */
7013 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7020 return inet_ntoa_r ();
7026 rm -f conftest.$ac_objext conftest$ac_exeext
7027 if { (ac_try="$ac_link"
7029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7030 *) ac_try_echo
=$ac_try;;
7032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7033 (eval "$ac_link") 2>conftest.er1
7035 grep -v '^ *+' conftest.er1
>conftest.err
7037 cat conftest.err
>&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } && {
7040 test -z "$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7042 } && test -s conftest
$ac_exeext &&
7043 $as_test_x conftest
$ac_exeext; then
7045 tmp_inet_ntoa_r
="yes"
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.
$ac_ext >&5
7052 tmp_inet_ntoa_r
="no"
7056 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7057 conftest
$ac_exeext conftest.
$ac_ext
7058 if test "$tmp_inet_ntoa_r" = "yes"; then
7059 cat >conftest.
$ac_ext <<_ACEOF
7062 cat confdefs.h
>>conftest.
$ac_ext
7063 cat >>conftest.
$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7066 #include <sys/types.h>
7067 #include <sys/socket.h>
7068 #include <netinet/in.h>
7069 #include <arpa/inet.h>
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "inet_ntoa_r" >/dev
/null
2>&1; then
7075 tmp_inet_ntoa_r
="proto_declared"
7079 cat >conftest.
$ac_ext <<_ACEOF
7082 cat confdefs.h
>>conftest.
$ac_ext
7083 cat >>conftest.
$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7087 #include <sys/types.h>
7088 #include <sys/socket.h>
7089 #include <netinet/in.h>
7090 #include <arpa/inet.h>
7093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7094 $EGREP "inet_ntoa_r" >/dev
/null
2>&1; then
7096 tmp_inet_ntoa_r
="proto_needs_reentrant"
7097 tmp_need_reentrant
="yes"
7109 if test "$tmp_need_reentrant" = "no"; then
7111 cat >conftest.
$ac_ext <<_ACEOF
7115 cat confdefs.h
>>conftest.
$ac_ext
7116 cat >>conftest.
$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 /* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r.
7119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7120 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7122 /* System header to define __stub macros and hopefully few prototypes,
7123 which can conflict with char gethostbyaddr_r (); below.
7124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7125 <limits.h> exists even on freestanding compilers. */
7128 # include <limits.h>
7130 # include <assert.h>
7133 #undef gethostbyaddr_r
7135 /* Override any GCC internal prototype to avoid an error.
7136 Use char because int might match the return type of a GCC
7137 builtin and then its argument prototype would still apply. */
7141 char gethostbyaddr_r ();
7142 /* The GNU C library defines this for functions which it implements
7143 to always fail with ENOSYS. Some functions are actually named
7144 something starting with __ and the normal name is an alias. */
7145 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7152 return gethostbyaddr_r ();
7158 rm -f conftest.
$ac_objext conftest
$ac_exeext
7159 if { (ac_try
="$ac_link"
7161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_link") 2>conftest.er1
7167 grep -v '^ *+' conftest.er1 >conftest.err
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest$ac_exeext &&
7175 $as_test_x conftest$ac_exeext; then
7177 tmp_gethostbyaddr_r="yes"
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7184 tmp_gethostbyaddr_r="no"
7188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7189 conftest$ac_exeext conftest.$ac_ext
7190 if test "$tmp_gethostbyaddr_r" = "yes"; then
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7198 #include <sys/types.h>
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
7205 tmp_gethostbyaddr_r="proto_declared"
7209 cat >conftest.$ac_ext <<_ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7217 #include <sys/types.h>
7221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7222 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
7224 tmp_gethostbyaddr_r="proto_needs_reentrant"
7225 tmp_need_reentrant="yes"
7237 if test "$tmp_need_reentrant" = "no"; then
7239 cat >conftest.$ac_ext <<_ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
7247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7248 #define gethostbyname_r innocuous_gethostbyname_r
7250 /* System header to define __stub macros and hopefully few prototypes,
7251 which can conflict with char gethostbyname_r (); below.
7252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7253 <limits.h> exists even on freestanding compilers. */
7256 # include <limits.h>
7258 # include <assert.h>
7261 #undef gethostbyname_r
7263 /* Override any GCC internal prototype to avoid an error.
7264 Use char because int might match the return type of a GCC
7265 builtin and then its argument prototype would still apply. */
7269 char gethostbyname_r ();
7270 /* The GNU C library defines this for functions which it implements
7271 to always fail with ENOSYS. Some functions are actually named
7272 something starting with __ and the normal name is an alias. */
7273 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7280 return gethostbyname_r ();
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (ac_try="$ac_link"
7289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7290 *) ac_try_echo
=$ac_try;;
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_link") 2>conftest.er1
7295 grep -v '^ *+' conftest.er1
>conftest.err
7297 cat conftest.err
>&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest
$ac_exeext &&
7303 $as_test_x conftest
$ac_exeext; then
7305 tmp_gethostbyname_r
="yes"
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.
$ac_ext >&5
7312 tmp_gethostbyname_r
="no"
7316 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7317 conftest
$ac_exeext conftest.
$ac_ext
7318 if test "$tmp_gethostbyname_r" = "yes"; then
7319 cat >conftest.
$ac_ext <<_ACEOF
7322 cat confdefs.h
>>conftest.
$ac_ext
7323 cat >>conftest.
$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7326 #include <sys/types.h>
7330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331 $EGREP "gethostbyname_r" >/dev
/null
2>&1; then
7333 tmp_gethostbyname_r
="proto_declared"
7337 cat >conftest.
$ac_ext <<_ACEOF
7340 cat confdefs.h
>>conftest.
$ac_ext
7341 cat >>conftest.
$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7345 #include <sys/types.h>
7349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7350 $EGREP "gethostbyname_r" >/dev
/null
2>&1; then
7352 tmp_gethostbyname_r
="proto_needs_reentrant"
7353 tmp_need_reentrant
="yes"
7365 if test "$tmp_need_reentrant" = "no"; then
7367 cat >conftest.
$ac_ext <<_ACEOF
7371 cat confdefs.h
>>conftest.
$ac_ext
7372 cat >>conftest.
$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 /* Define getprotobyname_r to an innocuous variant, in case <limits.h> declares getprotobyname_r.
7375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7376 #define getprotobyname_r innocuous_getprotobyname_r
7378 /* System header to define __stub macros and hopefully few prototypes,
7379 which can conflict with char getprotobyname_r (); below.
7380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7381 <limits.h> exists even on freestanding compilers. */
7384 # include <limits.h>
7386 # include <assert.h>
7389 #undef getprotobyname_r
7391 /* Override any GCC internal prototype to avoid an error.
7392 Use char because int might match the return type of a GCC
7393 builtin and then its argument prototype would still apply. */
7397 char getprotobyname_r ();
7398 /* The GNU C library defines this for functions which it implements
7399 to always fail with ENOSYS. Some functions are actually named
7400 something starting with __ and the normal name is an alias. */
7401 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7408 return getprotobyname_r ();
7414 rm -f conftest.
$ac_objext conftest
$ac_exeext
7415 if { (ac_try
="$ac_link"
7417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421 (eval "$ac_link") 2>conftest.er1
7423 grep -v '^ *+' conftest.er1 >conftest.err
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest$ac_exeext &&
7431 $as_test_x conftest$ac_exeext; then
7433 tmp_getprotobyname_r="yes"
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7440 tmp_getprotobyname_r="no"
7444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7445 conftest$ac_exeext conftest.$ac_ext
7446 if test "$tmp_getprotobyname_r" = "yes"; then
7447 cat >conftest.$ac_ext <<_ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7454 #include <sys/types.h>
7458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7459 $EGREP "getprotobyname_r" >/dev/null 2>&1; then
7461 tmp_getprotobyname_r="proto_declared"
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7473 #include <sys/types.h>
7477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7478 $EGREP "getprotobyname_r" >/dev/null 2>&1; then
7480 tmp_getprotobyname_r="proto_needs_reentrant"
7481 tmp_need_reentrant="yes"
7493 if test "$tmp_need_reentrant" = "no"; then
7495 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r.
7503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7504 #define getservbyport_r innocuous_getservbyport_r
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char getservbyport_r (); below.
7508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7509 <limits.h> exists even on freestanding compilers. */
7512 # include <limits.h>
7514 # include <assert.h>
7517 #undef getservbyport_r
7519 /* Override any GCC internal prototype to avoid an error.
7520 Use char because int might match the return type of a GCC
7521 builtin and then its argument prototype would still apply. */
7525 char getservbyport_r ();
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7536 return getservbyport_r ();
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (ac_try="$ac_link"
7545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7546 *) ac_try_echo
=$ac_try;;
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_link") 2>conftest.er1
7551 grep -v '^ *+' conftest.er1
>conftest.err
7553 cat conftest.err
>&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } && {
7556 test -z "$ac_c_werror_flag" ||
7557 test ! -s conftest.err
7558 } && test -s conftest
$ac_exeext &&
7559 $as_test_x conftest
$ac_exeext; then
7561 tmp_getservbyport_r
="yes"
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.
$ac_ext >&5
7568 tmp_getservbyport_r
="no"
7572 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7573 conftest
$ac_exeext conftest.
$ac_ext
7574 if test "$tmp_getservbyport_r" = "yes"; then
7575 cat >conftest.
$ac_ext <<_ACEOF
7578 cat confdefs.h
>>conftest.
$ac_ext
7579 cat >>conftest.
$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7582 #include <sys/types.h>
7586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7587 $EGREP "getservbyport_r" >/dev
/null
2>&1; then
7589 tmp_getservbyport_r
="proto_declared"
7593 cat >conftest.
$ac_ext <<_ACEOF
7596 cat confdefs.h
>>conftest.
$ac_ext
7597 cat >>conftest.
$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7601 #include <sys/types.h>
7605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7606 $EGREP "getservbyport_r" >/dev
/null
2>&1; then
7608 tmp_getservbyport_r
="proto_needs_reentrant"
7609 tmp_need_reentrant
="yes"
7622 if test "$tmp_need_reentrant" = "yes"; then
7623 { echo "$as_me:$LINENO: result: yes" >&5
7624 echo "${ECHO_T}yes" >&6; }
7626 { echo "$as_me:$LINENO: result: no" >&5
7627 echo "${ECHO_T}no" >&6; }
7631 { echo "$as_me:$LINENO: checking if _REENTRANT is onwards defined" >&5
7632 echo $ECHO_N "checking if _REENTRANT is onwards defined... $ECHO_C" >&6; }
7633 if test "$tmp_reentrant_initially_defined" = "yes" ||
7634 test "$tmp_need_reentrant" = "yes"; then
7637 cat >>confdefs.h
<<\_ACEOF
7638 #define NEED_REENTRANT 1
7641 cat >>confdefs.h
<<_EOF
7647 { echo "$as_me:$LINENO: result: yes" >&5
7648 echo "${ECHO_T}yes" >&6; }
7650 { echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6; }
7656 # Check whether --enable-largefile was given.
7657 if test "${enable_largefile+set}" = set; then
7658 enableval
=$enable_largefile;
7661 if test "$enable_largefile" != no
; then
7663 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
7664 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
7665 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_cv_sys_largefile_CC
=no
7669 if test "$GCC" != yes; then
7672 # IRIX 6.2 and later do not support large files by default,
7673 # so use the C compiler's -n32 option if that helps.
7674 cat >conftest.
$ac_ext <<_ACEOF
7677 cat confdefs.h
>>conftest.
$ac_ext
7678 cat >>conftest.
$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 #include <sys/types.h>
7681 /* Check that off_t can represent 2**63 - 1 correctly.
7682 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7683 since some C++ compilers masquerading as C compilers
7684 incorrectly reject 9223372036854775807. */
7685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7686 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7687 && LARGE_OFF_T % 2147483647 == 1)
7697 rm -f conftest.
$ac_objext
7698 if { (ac_try
="$ac_compile"
7700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_compile") 2>conftest.er1
7706 grep -v '^ *+' conftest.er1 >conftest.err
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } && {
7711 test -z "$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 } && test -s conftest.$ac_objext; then
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7722 rm -f core conftest.err conftest.$ac_objext
7724 rm -f conftest.$ac_objext
7725 if { (ac_try="$ac_compile"
7727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7728 *) ac_try_echo
=$ac_try;;
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731 (eval "$ac_compile") 2>conftest.er1
7733 grep -v '^ *+' conftest.er1
>conftest.err
7735 cat conftest.err
>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && {
7738 test -z "$ac_c_werror_flag" ||
7739 test ! -s conftest.err
7740 } && test -s conftest.
$ac_objext; then
7741 ac_cv_sys_largefile_CC
=' -n32'; break
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.
$ac_ext >&5
7749 rm -f core conftest.err conftest.
$ac_objext
7753 rm -f conftest.
$ac_ext
7756 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
7757 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
7758 if test "$ac_cv_sys_largefile_CC" != no
; then
7759 CC
=$CC$ac_cv_sys_largefile_CC
7762 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7763 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
7764 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 cat >conftest.
$ac_ext <<_ACEOF
7771 cat confdefs.h
>>conftest.
$ac_ext
7772 cat >>conftest.
$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 #include <sys/types.h>
7775 /* Check that off_t can represent 2**63 - 1 correctly.
7776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7777 since some C++ compilers masquerading as C compilers
7778 incorrectly reject 9223372036854775807. */
7779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7781 && LARGE_OFF_T % 2147483647 == 1)
7791 rm -f conftest.
$ac_objext
7792 if { (ac_try
="$ac_compile"
7794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7800 grep -v '^ *+' conftest.er1 >conftest.err
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7808 ac_cv_sys_file_offset_bits=no; break
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 cat >conftest.$ac_ext <<_ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h. */
7823 #define _FILE_OFFSET_BITS 64
7824 #include <sys/types.h>
7825 /* Check that off_t can represent 2**63 - 1 correctly.
7826 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7827 since some C++ compilers masquerading as C compilers
7828 incorrectly reject 9223372036854775807. */
7829 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7830 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7831 && LARGE_OFF_T % 2147483647 == 1)
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7845 *) ac_try_echo
=$ac_try;;
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_compile") 2>conftest.er1
7850 grep -v '^ *+' conftest.er1
>conftest.err
7852 cat conftest.err
>&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && {
7855 test -z "$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 } && test -s conftest.
$ac_objext; then
7858 ac_cv_sys_file_offset_bits
=64; break
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.
$ac_ext >&5
7866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7867 ac_cv_sys_file_offset_bits
=unknown
7871 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7872 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
7873 case $ac_cv_sys_file_offset_bits in #(
7876 cat >>confdefs.h
<<_ACEOF
7877 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7882 if test $ac_cv_sys_file_offset_bits = unknown
; then
7883 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
7884 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
7885 if test "${ac_cv_sys_large_files+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 cat >conftest.
$ac_ext <<_ACEOF
7892 cat confdefs.h
>>conftest.
$ac_ext
7893 cat >>conftest.
$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #include <sys/types.h>
7896 /* Check that off_t can represent 2**63 - 1 correctly.
7897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7898 since some C++ compilers masquerading as C compilers
7899 incorrectly reject 9223372036854775807. */
7900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7902 && LARGE_OFF_T % 2147483647 == 1)
7912 rm -f conftest.
$ac_objext
7913 if { (ac_try
="$ac_compile"
7915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_compile") 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } && {
7926 test -z "$ac_c_werror_flag" ||
7927 test ! -s conftest.err
7928 } && test -s conftest.$ac_objext; then
7929 ac_cv_sys_large_files=no; break
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 #define _LARGE_FILES 1
7945 #include <sys/types.h>
7946 /* Check that off_t can represent 2**63 - 1 correctly.
7947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7948 since some C++ compilers masquerading as C compilers
7949 incorrectly reject 9223372036854775807. */
7950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7952 && LARGE_OFF_T % 2147483647 == 1)
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7966 *) ac_try_echo
=$ac_try;;
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1
>conftest.err
7973 cat conftest.err
>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.
$ac_objext; then
7979 ac_cv_sys_large_files
=1; break
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.
$ac_ext >&5
7987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7988 ac_cv_sys_large_files
=unknown
7992 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7993 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
7994 case $ac_cv_sys_large_files in #(
7997 cat >>confdefs.h
<<_ACEOF
7998 #define _LARGE_FILES $ac_cv_sys_large_files
8024 { echo "$as_me:$LINENO: checking if arch-OS host is AMD64-linux (to build static libraries with PIC)" >&5
8025 echo $ECHO_N "checking if arch-OS host is AMD64-linux (to build static libraries with PIC)... $ECHO_C" >&6; }
8028 { echo "$as_me:$LINENO: result: yes" >&5
8029 echo "${ECHO_T}yes" >&6; }
8033 { echo "$as_me:$LINENO: result: no" >&5
8034 echo "${ECHO_T}no" >&6; }
8038 # Check whether --enable-shared was given.
8039 if test "${enable_shared+set}" = set; then
8040 enableval
=$enable_shared; p
=${PACKAGE-default}
8042 yes) enable_shared
=yes ;;
8043 no
) enable_shared
=no
;;
8046 # Look at the argument we got. We use all the common list separators.
8047 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8048 for pkg
in $enableval; do
8050 if test "X$pkg" = "X$p"; then
8062 # Check whether --enable-static was given.
8063 if test "${enable_static+set}" = set; then
8064 enableval
=$enable_static; p
=${PACKAGE-default}
8066 yes) enable_static
=yes ;;
8067 no
) enable_static
=no
;;
8070 # Look at the argument we got. We use all the common list separators.
8071 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8072 for pkg
in $enableval; do
8074 if test "X$pkg" = "X$p"; then
8086 # Check whether --enable-fast-install was given.
8087 if test "${enable_fast_install+set}" = set; then
8088 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8090 yes) enable_fast_install
=yes ;;
8091 no
) enable_fast_install
=no
;;
8093 enable_fast_install
=no
8094 # Look at the argument we got. We use all the common list separators.
8095 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8096 for pkg
in $enableval; do
8098 if test "X$pkg" = "X$p"; then
8099 enable_fast_install
=yes
8106 enable_fast_install
=yes
8110 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
8111 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
8112 if test "${lt_cv_path_SED+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 # Loop through the user's path and test for sed and gsed.
8116 # Then use that list of sed's as ones to test for truncation.
8117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir
=.
8122 for lt_ac_prog
in sed gsed
; do
8123 for ac_exec_ext
in '' $ac_executable_extensions; do
8124 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
8125 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8133 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8134 # along with /bin/sed that truncates output.
8135 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
8136 test ! -f $lt_ac_sed && continue
8137 cat /dev
/null
> conftest.
in
8139 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
8140 # Check for GNU sed and select it if it is found.
8141 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
8142 lt_cv_path_SED
=$lt_ac_sed
8146 cat conftest.
in conftest.
in >conftest.tmp
8147 mv conftest.tmp conftest.
in
8148 cp conftest.
in conftest.
nl
8150 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
8151 cmp -s conftest.out conftest.
nl ||
break
8152 # 10000 chars as input seems more than enough
8153 test $lt_ac_count -gt 10 && break
8154 lt_ac_count
=`expr $lt_ac_count + 1`
8155 if test $lt_ac_count -gt $lt_ac_max; then
8156 lt_ac_max
=$lt_ac_count
8157 lt_cv_path_SED
=$lt_ac_sed
8166 { echo "$as_me:$LINENO: result: $SED" >&5
8167 echo "${ECHO_T}$SED" >&6; }
8170 # Check whether --with-gnu-ld was given.
8171 if test "${with_gnu_ld+set}" = set; then
8172 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8178 if test "$GCC" = yes; then
8179 # Check if gcc -print-prog-name=ld gives a path.
8180 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8181 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
8184 # gcc leaves a trailing carriage return which upsets mingw
8185 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8187 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8190 # Accept absolute paths.
8192 re_direlt
='/[^/][^/]*/\.\./'
8193 # Canonicalize the pathname of ld
8194 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
8195 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8196 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8198 test -z "$LD" && LD
="$ac_prog"
8201 # If it fails, then pretend we aren't using GCC.
8205 # If it is relative, then search for the first ld in PATH.
8209 elif test "$with_gnu_ld" = yes; then
8210 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8211 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8213 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8214 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8216 if test "${lt_cv_path_LD+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 if test -z "$LD"; then
8220 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8221 for ac_dir
in $PATH; do
8223 test -z "$ac_dir" && ac_dir
=.
8224 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8225 lt_cv_path_LD
="$ac_dir/$ac_prog"
8226 # Check to see if the program is GNU ld. I'd rather use --version,
8227 # but apparently some variants of GNU ld only accept -v.
8228 # Break only if it was the GNU/non-GNU ld that we prefer.
8229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8230 *GNU
* |
*'with BFD'*)
8231 test "$with_gnu_ld" != no
&& break
8234 test "$with_gnu_ld" != yes && break
8241 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
8246 if test -n "$LD"; then
8247 { echo "$as_me:$LINENO: result: $LD" >&5
8248 echo "${ECHO_T}$LD" >&6; }
8250 { echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6; }
8253 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8254 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8255 { (exit 1); exit 1; }; }
8256 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8257 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8258 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8262 case `$LD -v 2>&1 </dev/null` in
8263 *GNU
* |
*'with BFD'*)
8264 lt_cv_prog_gnu_ld
=yes
8267 lt_cv_prog_gnu_ld
=no
8271 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8272 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
8273 with_gnu_ld
=$lt_cv_prog_gnu_ld
8276 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8277 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
8278 if test "${lt_cv_ld_reload_flag+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 lt_cv_ld_reload_flag
='-r'
8283 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8284 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
8285 reload_flag
=$lt_cv_ld_reload_flag
8286 case $reload_flag in
8288 *) reload_flag
=" $reload_flag" ;;
8290 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
8293 if test "$GCC" = yes; then
8294 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8296 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
8301 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8302 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
8303 if test "${lt_cv_path_NM+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 if test -n "$NM"; then
8307 # Let the user override the test.
8310 lt_nm_to_check
="${ac_tool_prefix}nm"
8311 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8312 lt_nm_to_check
="$lt_nm_to_check nm"
8314 for lt_tmp_nm
in $lt_nm_to_check; do
8315 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8316 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
8318 test -z "$ac_dir" && ac_dir
=.
8319 tmp_nm
="$ac_dir/$lt_tmp_nm"
8320 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
8321 # Check to see if the nm accepts a BSD-compat flag.
8322 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8323 # nm: unknown option "B" ignored
8324 # Tru64's nm complains that /dev/null is an invalid object file
8325 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8326 */dev
/null
* |
*'Invalid file or object type'*)
8327 lt_cv_path_NM
="$tmp_nm -B"
8331 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8333 lt_cv_path_NM
="$tmp_nm -p"
8337 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8338 continue # so that we can try to find one that supports BSD flags
8347 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
8350 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8351 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
8354 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
8355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8357 if test "$LN_S" = "ln -s"; then
8358 { echo "$as_me:$LINENO: result: yes" >&5
8359 echo "${ECHO_T}yes" >&6; }
8361 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8362 echo "${ECHO_T}no, using $LN_S" >&6; }
8365 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8366 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
8367 if test "${lt_cv_deplibs_check_method+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 lt_cv_file_magic_cmd
='$MAGIC_CMD'
8371 lt_cv_file_magic_test_file
=
8372 lt_cv_deplibs_check_method
='unknown'
8373 # Need to set the preceding variable on all platforms that support
8374 # interlibrary dependencies.
8375 # 'none' -- dependencies not supported.
8376 # `unknown' -- same as none, but documents that we really don't know.
8377 # 'pass_all' -- all dependencies passed with no checks.
8378 # 'test_compile' -- check by making test program.
8379 # 'file_magic [[regex]]' -- check by looking for files in library path
8380 # which responds to the $file_magic_cmd with a given extended regex.
8381 # If you have `file' or equivalent on your system and you're not sure
8382 # whether `pass_all' will *always* work, you probably want this one.
8386 lt_cv_deplibs_check_method
=pass_all
8390 lt_cv_deplibs_check_method
=pass_all
8394 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8395 lt_cv_file_magic_cmd
='/usr/bin/file -L'
8396 lt_cv_file_magic_test_file
=/shlib
/libc.so
8400 # func_win32_libid is a shell function defined in ltmain.sh
8401 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
8402 lt_cv_file_magic_cmd
='func_win32_libid'
8406 # Base MSYS/MinGW do not provide the 'file' command needed by
8407 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8408 # unless we find 'file', for example because we are cross-compiling.
8409 if ( file / ) >/dev
/null
2>&1; then
8410 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
8411 lt_cv_file_magic_cmd
='func_win32_libid'
8413 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
8414 lt_cv_file_magic_cmd
='$OBJDUMP -f'
8418 darwin
* | rhapsody
*)
8419 lt_cv_deplibs_check_method
=pass_all
8422 freebsd
* | dragonfly
*)
8423 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
8426 # Not sure whether the presence of OpenBSD here was a mistake.
8427 # Let's accept both of them until this is cleared up.
8428 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8429 lt_cv_file_magic_cmd
=/usr
/bin
/file
8430 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
8434 lt_cv_deplibs_check_method
=pass_all
8439 lt_cv_deplibs_check_method
=pass_all
8442 hpux10.20
* | hpux11
*)
8443 lt_cv_file_magic_cmd
=/usr
/bin
/file
8446 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8447 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
8450 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8451 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
8454 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8455 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
8461 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8462 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
8465 irix5
* | irix6
* | nonstopux
*)
8467 *-32|
*"-32 ") libmagic
=32-bit;;
8468 *-n32|
*"-n32 ") libmagic
=N32
;;
8469 *-64|
*"-64 ") libmagic
=64-bit;;
8470 *) libmagic
=never-match
;;
8472 lt_cv_deplibs_check_method
=pass_all
8475 # This must be Linux ELF.
8476 linux
* | k
*bsd
*-gnu)
8477 lt_cv_deplibs_check_method
=pass_all
8480 netbsd
* | netbsdelf
*-gnu)
8481 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
8482 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8484 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8489 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8490 lt_cv_file_magic_cmd
=/usr
/bin
/file
8491 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
8495 lt_cv_deplibs_check_method
=unknown
8499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8500 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8502 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8506 osf3
* | osf4
* | osf5
*)
8507 lt_cv_deplibs_check_method
=pass_all
8511 lt_cv_deplibs_check_method
=pass_all
8515 lt_cv_deplibs_check_method
=pass_all
8519 case $host_vendor in
8521 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]'
8522 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
8525 lt_cv_deplibs_check_method
=pass_all
8528 lt_cv_file_magic_cmd
='/bin/file'
8529 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8532 lt_cv_file_magic_cmd
='/bin/file'
8533 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8534 lt_cv_file_magic_test_file
=/lib
/libc.so
8537 lt_cv_deplibs_check_method
=pass_all
8540 lt_cv_deplibs_check_method
=pass_all
8545 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
8546 lt_cv_deplibs_check_method
=pass_all
8551 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8552 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
8553 file_magic_cmd
=$lt_cv_file_magic_cmd
8554 deplibs_check_method
=$lt_cv_deplibs_check_method
8555 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
8560 # If no C compiler was specified, use CC.
8563 # If no C compiler flags were specified, use CFLAGS.
8564 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8566 # Allow CC to be a program name with arguments.
8569 # Check whether --enable-libtool-lock was given.
8570 if test "${enable_libtool_lock+set}" = set; then
8571 enableval
=$enable_libtool_lock;
8574 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
8576 # Some flags need to be propagated to the compiler or linker for good
8580 # Find out which ABI we are using.
8581 echo 'int i;' > conftest.
$ac_ext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; then
8587 case `/usr/bin/file conftest.$ac_objext` in
8599 # Find out which ABI we are using.
8600 echo '#line 8600 "configure"' > conftest.
$ac_ext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8602 (eval $ac_compile) 2>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; then
8606 if test "$lt_cv_prog_gnu_ld" = yes; then
8607 case `/usr/bin/file conftest.$ac_objext` in
8609 LD
="${LD-ld} -melf32bsmip"
8612 LD
="${LD-ld} -melf32bmipn32"
8615 LD
="${LD-ld} -melf64bmip"
8619 case `/usr/bin/file conftest.$ac_objext` in
8635 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
8636 s390
*-*linux
*|sparc
*-*linux
*)
8637 # Find out which ABI we are using.
8638 echo 'int i;' > conftest.
$ac_ext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; then
8644 case `/usr/bin/file conftest.o` in
8647 x86_64-
*kfreebsd
*-gnu)
8648 LD
="${LD-ld} -m elf_i386_fbsd"
8651 LD
="${LD-ld} -m elf_i386"
8653 ppc64-
*linux
*|powerpc64-
*linux
*)
8654 LD
="${LD-ld} -m elf32ppclinux"
8657 LD
="${LD-ld} -m elf_s390"
8660 LD
="${LD-ld} -m elf32_sparc"
8666 x86_64-
*kfreebsd
*-gnu)
8667 LD
="${LD-ld} -m elf_x86_64_fbsd"
8670 LD
="${LD-ld} -m elf_x86_64"
8672 ppc
*-*linux
*|powerpc
*-*linux
*)
8673 LD
="${LD-ld} -m elf64ppc"
8676 LD
="${LD-ld} -m elf64_s390"
8679 LD
="${LD-ld} -m elf64_sparc"
8689 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8690 SAVE_CFLAGS
="$CFLAGS"
8691 CFLAGS
="$CFLAGS -belf"
8692 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8693 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
8694 if test "${lt_cv_cc_needs_belf+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 ac_cpp
='$CPP $CPPFLAGS'
8699 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8703 cat >conftest.
$ac_ext <<_ACEOF
8706 cat confdefs.h
>>conftest.
$ac_ext
8707 cat >>conftest.
$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8718 rm -f conftest.
$ac_objext conftest
$ac_exeext
8719 if { (ac_try
="$ac_link"
8721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8722 *) ac_try_echo=$ac_try;;
8724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725 (eval "$ac_link") 2>conftest.er1
8727 grep -v '^ *+' conftest.er1 >conftest.err
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } && {
8732 test -z "$ac_c_werror_flag" ||
8733 test ! -s conftest.err
8734 } && test -s conftest$ac_exeext &&
8735 $as_test_x conftest$ac_exeext; then
8736 lt_cv_cc_needs_belf=yes
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 lt_cv_cc_needs_belf=no
8744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8745 conftest$ac_exeext conftest.$ac_ext
8747 ac_cpp='$CPP $CPPFLAGS'
8748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8753 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8754 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
8755 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8757 CFLAGS="$SAVE_CFLAGS"
8761 # Find out which ABI we are using.
8762 echo 'int i;' > conftest.$ac_ext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; then
8768 case `/usr
/bin
/file conftest.o
` in
8770 case $lt_cv_prog_gnu_ld in
8771 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8773 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8784 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
8785 if test -n "$ac_tool_prefix"; then
8786 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8787 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8790 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 if test -n "$DLLTOOL"; then
8794 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 DLLTOOL=$ac_cv_prog_DLLTOOL
8814 if test -n "$DLLTOOL"; then
8815 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8816 echo "${ECHO_T}$DLLTOOL" >&6; }
8818 { echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6; }
8824 if test -z "$ac_cv_prog_DLLTOOL"; then
8825 ac_ct_DLLTOOL=$DLLTOOL
8826 # Extract the first word of "dlltool", so it can be a program name with args.
8827 set dummy dlltool; ac_word=$2
8828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8830 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 if test -n "$ac_ct_DLLTOOL"; then
8834 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8854 if test -n "$ac_ct_DLLTOOL"; then
8855 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8856 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
8858 { echo "$as_me:$LINENO: result: no" >&5
8859 echo "${ECHO_T}no" >&6; }
8862 if test "x$ac_ct_DLLTOOL" = x; then
8865 case $cross_compiling:$ac_tool_warned in
8867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8868 whose name does not start with the host triplet. If you think this
8869 configuration is useful to you, please write to autoconf@gnu.org." >&5
8870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8871 whose name does not start with the host triplet. If you think this
8872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8873 ac_tool_warned=yes ;;
8875 DLLTOOL=$ac_ct_DLLTOOL
8878 DLLTOOL="$ac_cv_prog_DLLTOOL"
8881 if test -n "$ac_tool_prefix"; then
8882 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8883 set dummy ${ac_tool_prefix}as; ac_word=$2
8884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8886 if test "${ac_cv_prog_AS+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 if test -n "$AS"; then
8890 ac_cv_prog_AS="$AS" # Let the user override the test.
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8899 ac_cv_prog_AS="${ac_tool_prefix}as"
8900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8910 if test -n "$AS"; then
8911 { echo "$as_me:$LINENO: result: $AS" >&5
8912 echo "${ECHO_T}$AS" >&6; }
8914 { echo "$as_me:$LINENO: result: no" >&5
8915 echo "${ECHO_T}no" >&6; }
8920 if test -z "$ac_cv_prog_AS"; then
8922 # Extract the first word of "as", so it can be a program name with args.
8923 set dummy as; ac_word=$2
8924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8926 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 if test -n "$ac_ct_AS"; then
8930 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 test -z "$as_dir" && as_dir=.
8937 for ac_exec_ext in '' $ac_executable_extensions; do
8938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8939 ac_cv_prog_ac_ct_AS="as"
8940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8950 if test -n "$ac_ct_AS"; then
8951 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
8952 echo "${ECHO_T}$ac_ct_AS" >&6; }
8954 { echo "$as_me:$LINENO: result: no" >&5
8955 echo "${ECHO_T}no" >&6; }
8958 if test "x$ac_ct_AS" = x; then
8961 case $cross_compiling:$ac_tool_warned in
8963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8964 whose name does not start with the host triplet. If you think this
8965 configuration is useful to you, please write to autoconf@gnu.org." >&5
8966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8967 whose name does not start with the host triplet. If you think this
8968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8969 ac_tool_warned=yes ;;
8977 if test -n "$ac_tool_prefix"; then
8978 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8979 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8982 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 if test -n "$OBJDUMP"; then
8986 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 OBJDUMP=$ac_cv_prog_OBJDUMP
9006 if test -n "$OBJDUMP"; then
9007 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9008 echo "${ECHO_T}$OBJDUMP" >&6; }
9010 { echo "$as_me:$LINENO: result: no" >&5
9011 echo "${ECHO_T}no" >&6; }
9016 if test -z "$ac_cv_prog_OBJDUMP"; then
9017 ac_ct_OBJDUMP=$OBJDUMP
9018 # Extract the first word of "objdump", so it can be a program name with args.
9019 set dummy objdump; ac_word=$2
9020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9022 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 if test -n "$ac_ct_OBJDUMP"; then
9026 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9046 if test -n "$ac_ct_OBJDUMP"; then
9047 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9048 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
9050 { echo "$as_me:$LINENO: result: no" >&5
9051 echo "${ECHO_T}no" >&6; }
9054 if test "x$ac_ct_OBJDUMP" = x; then
9057 case $cross_compiling:$ac_tool_warned in
9059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9060 whose name does not start with the host triplet. If you think this
9061 configuration is useful to you, please write to autoconf@gnu.org." >&5
9062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9063 whose name does not start with the host triplet. If you think this
9064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9065 ac_tool_warned=yes ;;
9067 OBJDUMP=$ac_ct_OBJDUMP
9070 OBJDUMP="$ac_cv_prog_OBJDUMP"
9077 need_locks="$enable_libtool_lock"
9081 for ac_header in dlfcn.h
9083 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 ac_res=`eval echo '${'$as_ac_Header'}'`
9091 { echo "$as_me:$LINENO: result: $ac_res" >&5
9092 echo "${ECHO_T}$ac_res" >&6; }
9094 # Is the header compilable?
9095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 $ac_includes_default
9104 #include <$ac_header>
9106 rm -f conftest.$ac_objext
9107 if { (ac_try="$ac_compile"
9109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9110 *) ac_try_echo
=$ac_try;;
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_compile") 2>conftest.er1
9115 grep -v '^ *+' conftest.er1
>conftest.err
9117 cat conftest.err
>&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest.
$ac_objext; then
9123 ac_header_compiler
=yes
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.
$ac_ext >&5
9128 ac_header_compiler
=no
9131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9133 echo "${ECHO_T}$ac_header_compiler" >&6; }
9135 # Is the header present?
9136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9138 cat >conftest.
$ac_ext <<_ACEOF
9141 cat confdefs.h
>>conftest.
$ac_ext
9142 cat >>conftest.
$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <$ac_header>
9146 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9154 grep -v '^ *+' conftest.er1 >conftest.err
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } >/dev/null && {
9159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9162 ac_header_preproc=yes
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 ac_header_preproc=no
9170 rm -f conftest.err conftest.$ac_ext
9171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9172 echo "${ECHO_T}$ac_header_preproc" >&6; }
9174 # So? What about this header?
9175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9181 ac_header_preproc=yes
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9197 ## ------------------------------------------------------------------------ ##
9198 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
9199 ## ------------------------------------------------------------------------ ##
9201 ) | sed "s/^/$as_me: WARNING: /" >&2
9204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 eval "$as_ac_Header=\$ac_header_preproc"
9211 ac_res=`eval echo '${'$as_ac_Header'}'`
9212 { echo "$as_me:$LINENO: result: $ac_res" >&5
9213 echo "${ECHO_T}$ac_res" >&6; }
9216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9217 cat >>confdefs.h <<_ACEOF
9218 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9228 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9229 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
9230 (test "X$CXX" != "Xg++"))) ; then
9238 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9239 # find the maximum length of command line arguments
9240 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9241 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
9242 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 # On DJGPP, this test can blow up pretty badly due to problems in libc
9251 # (any single argument exceeding 2000 bytes causes a buffer overrun
9252 # during glob expansion). Even if it were fixed, the result of this
9253 # check would be larger than it should be.
9254 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9258 # Under GNU Hurd, this test is not required because there is
9259 # no limit to the length of command line arguments.
9260 # Libtool will interpret -1 as no limit whatsoever
9261 lt_cv_sys_max_cmd_len=-1;
9265 # On Win9x/ME, this test blows up -- it succeeds, but takes
9266 # about 5 minutes as the teststring grows exponentially.
9267 # Worse, since 9x/ME are not pre-emptively multitasking,
9268 # you end up with a "frozen" computer, even though with patience
9269 # the test eventually succeeds (with a max line length of 256k).
9270 # Instead, let's just punt: use the minimum linelength reported by
9271 # all of the supported platforms: 8192 (on NT/2K/XP).
9272 lt_cv_sys_max_cmd_len=8192;
9276 # On AmigaOS with pdksh, this test takes hours, literally.
9277 # So we just punt and use a minimum line length of 8192.
9278 lt_cv_sys_max_cmd_len=8192;
9281 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9282 # This has been around since 386BSD, at least. Likely further.
9283 if test -x /sbin/sysctl; then
9284 lt_cv_sys_max_cmd_len=`/sbin
/sysctl
-n kern.argmax
`
9285 elif test -x /usr/sbin/sysctl; then
9286 lt_cv_sys_max_cmd_len=`/usr
/sbin
/sysctl
-n kern.argmax
`
9288 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9290 # And add a safety zone
9291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
9292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
9296 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9297 lt_cv_sys_max_cmd_len=196608
9301 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9302 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9303 # nice to cause kernel panics so lets avoid the loop below.
9304 # First set a reasonable default.
9305 lt_cv_sys_max_cmd_len=16384
9307 if test -x /sbin/sysconfig; then
9308 case `/sbin
/sysconfig
-q proc exec_disable_arg_limit
` in
9309 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9314 lt_cv_sys_max_cmd_len=102400
9316 sysv5* | sco5v6* | sysv4.2uw2*)
9317 kargmax=`grep ARG_MAX
/etc
/conf
/cf.d
/stune
2>/dev
/null
`
9318 if test -n "$kargmax"; then
9319 lt_cv_sys_max_cmd_len=`echo $kargmax |
sed 's/.*[ ]//'`
9321 lt_cv_sys_max_cmd_len=32768
9325 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX
) 2> /dev
/null
`
9326 if test -n "$lt_cv_sys_max_cmd_len"; then
9327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 4`
9328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
* 3`
9330 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9331 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev
/null
` \
9332 = "XX$teststring") >/dev/null 2>&1 &&
9333 new_result=`expr "X$teststring" : ".*" 2>&1` &&
9334 lt_cv_sys_max_cmd_len=$new_result &&
9335 test $i != 17 # 1/2 MB should be enough
9338 teststring=$teststring$teststring
9341 # Add a significant safety factor because C++ compilers can tack on massive
9342 # amounts of additional arguments before passing them to the linker.
9343 # It appears as though 1/2 is a usable value.
9344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \
/ 2`
9351 if test -n $lt_cv_sys_max_cmd_len ; then
9352 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9353 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
9355 { echo "$as_me:$LINENO: result: none" >&5
9356 echo "${ECHO_T}none" >&6; }
9363 # Check for command to grab the raw symbol name followed by C symbol from nm.
9364 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9365 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9366 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 # These are sane defaults that work on at least a few old systems.
9371 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9373 # Character class describing NM global symbol codes.
9374 symcode='[BCDEGRST]'
9376 # Regexp to match symbols that can be accessed directly from C.
9377 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9379 # Transform an extracted symbol line into a proper C declaration
9380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9382 # Transform an extracted symbol line into symbol name and symbol address
9383 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9385 # Define system-specific variables.
9390 cygwin* | mingw* | pw32*)
9391 symcode='[ABCDGISTW]'
9393 hpux*) # Its linker distinguishes data from code symbols
9394 if test "$host_cpu" = ia64; then
9395 symcode='[ABCDEGRST]'
9397 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9398 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9400 linux* | k*bsd*-gnu)
9401 if test "$host_cpu" = ia64; then
9402 symcode='[ABCDGIRSTW]'
9403 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9404 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9408 symcode='[BCDEGRST]'
9411 symcode='[BCDEGQRST]'
9422 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9430 # Handle CRLF in mingw tool chain
9434 opt_cr=`echo 'x\{0,1\}' |
tr x
'\015'` # option cr in regexp
9438 # If we're using GNU nm, then use its standard symbol codes.
9439 case `$NM -V 2>&1` in
9440 *GNU* | *'with BFD'*)
9441 symcode='[ABCDGIRSTW]' ;;
9444 # Try without a prefix undercore, then with it.
9445 for ac_symprfx in "" "_"; do
9447 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9448 symxfrm="\\1 $ac_symprfx\\2 \\2"
9450 # Write the raw and C identifiers.
9451 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9453 # Check to see that the pipe works correctly.
9457 cat > conftest.$ac_ext <<EOF
9462 void nm_test_func(){}
9466 int main(){nm_test_var='a';nm_test_func();return(0);}
9469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9470 (eval $ac_compile) 2>&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; then
9474 # Now try to grab the symbols.
9476 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9477 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && test -s "$nlist"; then
9481 # Try sorting and uniquifying the output.
9482 if sort "$nlist" | uniq > "$nlist"T; then
9483 mv -f "$nlist"T "$nlist"
9488 # Make sure that we snagged all the symbols we need.
9489 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9490 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9491 cat <<EOF > conftest.$ac_ext
9497 # Now generate the symbol file.
9498 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9500 cat <<EOF >> conftest.$ac_ext
9501 #if defined (__STDC__) && __STDC__
9502 # define lt_ptr_t void *
9504 # define lt_ptr_t char *
9508 /* The mapping between symbol names and symbols. */
9513 lt_preloaded_symbols[] =
9516 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9517 cat <<\EOF >> conftest.$ac_ext
9525 # Now try linking the two files.
9526 mv conftest.$ac_objext conftstm.$ac_objext
9527 lt_save_LIBS="$LIBS"
9528 lt_save_CFLAGS="$CFLAGS"
9529 LIBS="conftstm.$ac_objext"
9530 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9538 LIBS="$lt_save_LIBS"
9539 CFLAGS="$lt_save_CFLAGS"
9541 echo "cannot find nm_test_func in $nlist" >&5
9544 echo "cannot find nm_test_var in $nlist" >&5
9547 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9550 echo "$progname: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9553 rm -rf conftest* conftst*
9555 # Do not use the global_symbol_pipe unless it works.
9556 if test "$pipe_works" = yes; then
9559 lt_cv_sys_global_symbol_pipe=
9565 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9566 lt_cv_sys_global_symbol_to_cdecl=
9568 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9569 { echo "$as_me:$LINENO: result: failed" >&5
9570 echo "${ECHO_T}failed" >&6; }
9572 { echo "$as_me:$LINENO: result: ok" >&5
9573 echo "${ECHO_T}ok" >&6; }
9576 { echo "$as_me:$LINENO: checking for objdir" >&5
9577 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9578 if test "${lt_cv_objdir+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 rm -f .libs 2>/dev/null
9582 mkdir .libs 2>/dev/null
9583 if test -d .libs; then
9586 # MS-DOS does not allow filenames that begin with a dot.
9589 rmdir .libs 2>/dev/null
9591 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9592 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9593 objdir=$lt_cv_objdir
9601 # AIX sometimes has problems with the GCC collect2 program. For some
9602 # reason, if we set the COLLECT_NAMES environment variable, the problems
9603 # vanish in a puff of smoke.
9604 if test "X${COLLECT_NAMES+set}" != Xset; then
9606 export COLLECT_NAMES
9611 # Sed substitution that helps us do robust quoting. It backslashifies
9612 # metacharacters that are still active within double-quoted strings.
9613 Xsed='sed -e 1s/^X//'
9614 sed_quote_subst='s/\([\\"\\`$
\\\\]\
)/\\\
1/g
'
9616 # Same as above, but do not quote variable references.
9617 double_quote_subst='s
/\
([\\"\\`\\\\]\)/\\\1/g'
9619 # Sed substitution to delay expansion of an escaped shell variable in a
9620 # double_quote_subst'ed string.
9621 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9623 # Sed substitution to avoid accidental globbing in evaled expressions
9624 no_glob_subst='s/\*/\\\*/g'
9630 default_ofile=libtool
9631 can_build_shared=yes
9633 # All known linkers require a `.a' archive for static linking (except MSVC,
9634 # which needs '.lib').
9636 ltmain="$ac_aux_dir/ltmain.sh
"
9637 ofile="$default_ofile"
9638 with_gnu_ld="$lt_cv_prog_gnu_ld"
9640 if test -n "$ac_tool_prefix"; then
9641 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9642 set dummy ${ac_tool_prefix}ar; ac_word=$2
9643 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9644 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9645 if test "${ac_cv_prog_AR+set}" = set; then
9646 echo $ECHO_N "(cached
) $ECHO_C" >&6
9648 if test -n "$AR"; then
9649 ac_cv_prog_AR="$AR" # Let the user override the test.
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9658 ac_cv_prog_AR="${ac_tool_prefix}ar"
9659 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9669 if test -n "$AR"; then
9670 { echo "$as_me:$LINENO: result
: $AR" >&5
9671 echo "${ECHO_T}$AR" >&6; }
9673 { echo "$as_me:$LINENO: result
: no
" >&5
9674 echo "${ECHO_T}no
" >&6; }
9679 if test -z "$ac_cv_prog_AR"; then
9681 # Extract the first word of "ar", so it can be a program name with args.
9682 set dummy ar; ac_word=$2
9683 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9684 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9685 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9686 echo $ECHO_N "(cached
) $ECHO_C" >&6
9688 if test -n "$ac_ct_AR"; then
9689 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698 ac_cv_prog_ac_ct_AR="ar"
9699 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9708 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9709 if test -n "$ac_ct_AR"; then
9710 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
9711 echo "${ECHO_T}$ac_ct_AR" >&6; }
9713 { echo "$as_me:$LINENO: result
: no
" >&5
9714 echo "${ECHO_T}no
" >&6; }
9717 if test "x
$ac_ct_AR" = x; then
9720 case $cross_compiling:$ac_tool_warned in
9722 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
9723 whose name does not start with the
host triplet. If you think this
9724 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
9725 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
9726 whose name does not start with the
host triplet. If you think this
9727 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
9728 ac_tool_warned=yes ;;
9736 if test -n "$ac_tool_prefix"; then
9737 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
9738 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9739 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9740 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9741 if test "${ac_cv_prog_RANLIB+set}" = set; then
9742 echo $ECHO_N "(cached
) $ECHO_C" >&6
9744 if test -n "$RANLIB"; then
9745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751 test -z "$as_dir" && as_dir=.
9752 for ac_exec_ext in '' $ac_executable_extensions; do
9753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
9755 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9764 RANLIB=$ac_cv_prog_RANLIB
9765 if test -n "$RANLIB"; then
9766 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
9767 echo "${ECHO_T}$RANLIB" >&6; }
9769 { echo "$as_me:$LINENO: result
: no
" >&5
9770 echo "${ECHO_T}no
" >&6; }
9775 if test -z "$ac_cv_prog_RANLIB"; then
9776 ac_ct_RANLIB=$RANLIB
9777 # Extract the first word of "ranlib
", so it can be a program name with args.
9778 set dummy ranlib; ac_word=$2
9779 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9780 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9781 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9782 echo $ECHO_N "(cached
) $ECHO_C" >&6
9784 if test -n "$ac_ct_RANLIB"; then
9785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9794 ac_cv_prog_ac_ct_RANLIB="ranlib
"
9795 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9805 if test -n "$ac_ct_RANLIB"; then
9806 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
9807 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9809 { echo "$as_me:$LINENO: result
: no
" >&5
9810 echo "${ECHO_T}no
" >&6; }
9813 if test "x
$ac_ct_RANLIB" = x; then
9816 case $cross_compiling:$ac_tool_warned in
9818 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
9819 whose name does not start with the
host triplet. If you think this
9820 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
9821 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
9822 whose name does not start with the
host triplet. If you think this
9823 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
9824 ac_tool_warned=yes ;;
9826 RANLIB=$ac_ct_RANLIB
9829 RANLIB="$ac_cv_prog_RANLIB"
9832 if test -n "$ac_tool_prefix"; then
9833 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
9834 set dummy ${ac_tool_prefix}strip; ac_word=$2
9835 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9836 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9837 if test "${ac_cv_prog_STRIP+set}" = set; then
9838 echo $ECHO_N "(cached
) $ECHO_C" >&6
9840 if test -n "$STRIP"; then
9841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
9851 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9860 STRIP=$ac_cv_prog_STRIP
9861 if test -n "$STRIP"; then
9862 { echo "$as_me:$LINENO: result
: $STRIP" >&5
9863 echo "${ECHO_T}$STRIP" >&6; }
9865 { echo "$as_me:$LINENO: result
: no
" >&5
9866 echo "${ECHO_T}no
" >&6; }
9871 if test -z "$ac_cv_prog_STRIP"; then
9873 # Extract the first word of "strip
", so it can be a program name with args.
9874 set dummy strip; ac_word=$2
9875 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9876 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9877 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9878 echo $ECHO_N "(cached
) $ECHO_C" >&6
9880 if test -n "$ac_ct_STRIP"; then
9881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890 ac_cv_prog_ac_ct_STRIP="strip
"
9891 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9901 if test -n "$ac_ct_STRIP"; then
9902 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
9903 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
9905 { echo "$as_me:$LINENO: result
: no
" >&5
9906 echo "${ECHO_T}no
" >&6; }
9909 if test "x
$ac_ct_STRIP" = x; then
9912 case $cross_compiling:$ac_tool_warned in
9914 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
9915 whose name does not start with the
host triplet. If you think this
9916 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
9917 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
9918 whose name does not start with the
host triplet. If you think this
9919 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
9920 ac_tool_warned=yes ;;
9925 STRIP="$ac_cv_prog_STRIP"
9930 old_CFLAGS="$CFLAGS"
9932 # Set sane defaults for various variables
9933 test -z "$AR" && AR=ar
9934 test -z "$AR_FLAGS" && AR_FLAGS=cru
9935 test -z "$AS" && AS=as
9936 test -z "$CC" && CC=cc
9937 test -z "$LTCC" && LTCC=$CC
9938 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9939 test -z "$DLLTOOL" && DLLTOOL=dlltool
9940 test -z "$LD" && LD=ld
9941 test -z "$LN_S" && LN_S="ln -s"
9942 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9943 test -z "$NM" && NM=nm
9944 test -z "$SED" && SED=sed
9945 test -z "$OBJDUMP" && OBJDUMP=objdump
9946 test -z "$RANLIB" && RANLIB=:
9947 test -z "$STRIP" && STRIP=:
9948 test -z "$ac_objext" && ac_objext=o
9950 # Determine commands to create old-style static archives.
9951 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9952 old_postinstall_cmds='chmod 644 $oldlib'
9953 old_postuninstall_cmds=
9955 if test -n "$RANLIB"; then
9958 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
9961 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
9964 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
9967 for cc_temp in $compiler""; do
9969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9975 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
9978 # Only perform the check for file, if the check method requires it
9979 case $deplibs_check_method in
9981 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9982 { echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
9983 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6; }
9984 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9985 echo $ECHO_N "(cached
) $ECHO_C" >&6
9989 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9992 lt_save_MAGIC_CMD="$MAGIC_CMD"
9993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9994 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9995 for ac_dir in $ac_dummy; do
9997 test -z "$ac_dir" && ac_dir=.
9998 if test -f $ac_dir/${ac_tool_prefix}file; then
9999 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10000 if test -n "$file_magic_test_file"; then
10001 case $deplibs_check_method in
10003 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
10004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10005 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10006 $EGREP "$file_magic_regex" > /dev/null; then
10011 *** Warning: the command libtool uses to detect shared libraries,
10012 *** $file_magic_cmd, produces output that libtool cannot recognize.
10013 *** The result is that libtool may fail to recognize shared libraries
10014 *** as such. This will affect the creation of libtool libraries that
10015 *** depend on shared libraries, but programs linked with such libtool
10016 *** libraries will work regardless of this problem. Nevertheless, you
10017 *** may want to report the problem to your system manager and/or to
10018 *** bug-libtool@gnu.org
10028 MAGIC_CMD="$lt_save_MAGIC_CMD"
10033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10034 if test -n "$MAGIC_CMD"; then
10035 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
10036 echo "${ECHO_T}$MAGIC_CMD" >&6; }
10038 { echo "$as_me:$LINENO: result
: no
" >&5
10039 echo "${ECHO_T}no
" >&6; }
10042 if test -z "$lt_cv_path_MAGIC_CMD"; then
10043 if test -n "$ac_tool_prefix"; then
10044 { echo "$as_me:$LINENO: checking
for file" >&5
10045 echo $ECHO_N "checking
for file...
$ECHO_C" >&6; }
10046 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10047 echo $ECHO_N "(cached
) $ECHO_C" >&6
10051 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10054 lt_save_MAGIC_CMD="$MAGIC_CMD"
10055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10056 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
10057 for ac_dir in $ac_dummy; do
10059 test -z "$ac_dir" && ac_dir=.
10060 if test -f $ac_dir/file; then
10061 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10062 if test -n "$file_magic_test_file"; then
10063 case $deplibs_check_method in
10065 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
10066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10067 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10068 $EGREP "$file_magic_regex" > /dev/null; then
10073 *** Warning: the command libtool uses to detect shared libraries,
10074 *** $file_magic_cmd, produces output that libtool cannot recognize.
10075 *** The result is that libtool may fail to recognize shared libraries
10076 *** as such. This will affect the creation of libtool libraries that
10077 *** depend on shared libraries, but programs linked with such libtool
10078 *** libraries will work regardless of this problem. Nevertheless, you
10079 *** may want to report the problem to your system manager and/or to
10080 *** bug-libtool@gnu.org
10090 MAGIC_CMD="$lt_save_MAGIC_CMD"
10095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10096 if test -n "$MAGIC_CMD"; then
10097 { echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
10098 echo "${ECHO_T}$MAGIC_CMD" >&6; }
10100 { echo "$as_me:$LINENO: result
: no
" >&5
10101 echo "${ECHO_T}no
" >&6; }
10115 rhapsody* | darwin*)
10116 if test -n "$ac_tool_prefix"; then
10117 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
10118 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10119 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10120 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10121 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10122 echo $ECHO_N "(cached
) $ECHO_C" >&6
10124 if test -n "$DSYMUTIL"; then
10125 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128 for as_dir in $PATH
10131 test -z "$as_dir" && as_dir=.
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10134 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
10135 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10144 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10145 if test -n "$DSYMUTIL"; then
10146 { echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
10147 echo "${ECHO_T}$DSYMUTIL" >&6; }
10149 { echo "$as_me:$LINENO: result
: no
" >&5
10150 echo "${ECHO_T}no
" >&6; }
10155 if test -z "$ac_cv_prog_DSYMUTIL"; then
10156 ac_ct_DSYMUTIL=$DSYMUTIL
10157 # Extract the first word of "dsymutil
", so it can be a program name with args.
10158 set dummy dsymutil; ac_word=$2
10159 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10160 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10161 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10162 echo $ECHO_N "(cached
) $ECHO_C" >&6
10164 if test -n "$ac_ct_DSYMUTIL"; then
10165 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10174 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
10175 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10184 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10185 if test -n "$ac_ct_DSYMUTIL"; then
10186 { echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
10187 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
10189 { echo "$as_me:$LINENO: result
: no
" >&5
10190 echo "${ECHO_T}no
" >&6; }
10193 if test "x
$ac_ct_DSYMUTIL" = x; then
10196 case $cross_compiling:$ac_tool_warned in
10198 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
10199 whose name does not start with the
host triplet. If you think this
10200 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
10201 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
10202 whose name does not start with the
host triplet. If you think this
10203 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
10204 ac_tool_warned=yes ;;
10206 DSYMUTIL=$ac_ct_DSYMUTIL
10209 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10212 if test -n "$ac_tool_prefix"; then
10213 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
10214 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10215 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10216 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10217 if test "${ac_cv_prog_NMEDIT+set}" = set; then
10218 echo $ECHO_N "(cached
) $ECHO_C" >&6
10220 if test -n "$NMEDIT"; then
10221 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10230 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
10231 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10240 NMEDIT=$ac_cv_prog_NMEDIT
10241 if test -n "$NMEDIT"; then
10242 { echo "$as_me:$LINENO: result
: $NMEDIT" >&5
10243 echo "${ECHO_T}$NMEDIT" >&6; }
10245 { echo "$as_me:$LINENO: result
: no
" >&5
10246 echo "${ECHO_T}no
" >&6; }
10251 if test -z "$ac_cv_prog_NMEDIT"; then
10252 ac_ct_NMEDIT=$NMEDIT
10253 # Extract the first word of "nmedit
", so it can be a program name with args.
10254 set dummy nmedit; ac_word=$2
10255 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10256 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10257 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10258 echo $ECHO_N "(cached
) $ECHO_C" >&6
10260 if test -n "$ac_ct_NMEDIT"; then
10261 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10270 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
10271 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10280 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10281 if test -n "$ac_ct_NMEDIT"; then
10282 { echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
10283 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
10285 { echo "$as_me:$LINENO: result
: no
" >&5
10286 echo "${ECHO_T}no
" >&6; }
10289 if test "x
$ac_ct_NMEDIT" = x; then
10292 case $cross_compiling:$ac_tool_warned in
10294 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
10295 whose name does not start with the
host triplet. If you think this
10296 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
10297 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
10298 whose name does not start with the
host triplet. If you think this
10299 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
10300 ac_tool_warned=yes ;;
10302 NMEDIT=$ac_ct_NMEDIT
10305 NMEDIT="$ac_cv_prog_NMEDIT"
10309 { echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
10310 echo $ECHO_N "checking
for -single_module linker flag...
$ECHO_C" >&6; }
10311 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10312 echo $ECHO_N "(cached
) $ECHO_C" >&6
10314 lt_cv_apple_cc_single_mod=no
10315 if test -z "${LT_MULTI_MODULE}"; then
10316 # By default we will add the -single_module flag. You can override
10317 # by either setting the environment variable LT_MULTI_MODULE
10318 # non-empty at configure time, or by adding -multi_module to the
10320 echo "int foo
(void
){return 1;}" > conftest.c
10321 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10322 -dynamiclib ${wl}-single_module conftest.c
10323 if test -f libconftest.dylib; then
10324 lt_cv_apple_cc_single_mod=yes
10325 rm -rf libconftest.dylib*
10330 { echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
10331 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
10332 { echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
10333 echo $ECHO_N "checking
for -exported_symbols_list linker flag...
$ECHO_C" >&6; }
10334 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10335 echo $ECHO_N "(cached
) $ECHO_C" >&6
10337 lt_cv_ld_exported_symbols_list=no
10338 save_LDFLAGS=$LDFLAGS
10339 echo "_main
" > conftest.sym
10340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
10341 cat >conftest.$ac_ext <<_ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (ac_try="$ac_link"
10358 case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_link") 2>conftest.er1
10365 grep -v '^ *+' conftest.er1 >conftest.err
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest$ac_exeext &&
10373 $as_test_x conftest$ac_exeext; then
10374 lt_cv_ld_exported_symbols_list=yes
10376 echo "$as_me: failed program was
:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 lt_cv_ld_exported_symbols_list=no
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LDFLAGS="$save_LDFLAGS"
10387 { echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
10388 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
10390 rhapsody* | darwin1.[0123])
10391 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10393 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10395 # if running on 10.5 or later, the deployment target defaults
10396 # to the OS version, if on x86, and 10.4, the deployment
10397 # target defaults to 10.4. Don't you love it?
10398 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10399 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10400 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10402 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10408 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10409 _lt_dar_single_mod='$single_module'
10411 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10412 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10414 _lt_dar_export_syms="~
$NMEDIT -s \
$output_objdir/\
${libname}-symbols.expsym \
${lib}"
10416 if test "$DSYMUTIL" != ":"; then
10417 _lt_dsymutil="~
$DSYMUTIL \
$lib ||
:"
10426 enable_win32_dll=yes
10428 # Check whether --enable-libtool-lock was given.
10429 if test "${enable_libtool_lock+set}" = set; then
10430 enableval=$enable_libtool_lock;
10433 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
10436 # Check whether --with-pic was given.
10437 if test "${with_pic+set}" = set; then
10438 withval=$with_pic; pic_mode="$withval"
10443 test -z "$pic_mode" && pic_mode=default
10445 # Use C for the default configuration in the libtool script
10449 ac_cpp='$CPP $CPPFLAGS'
10450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10455 # Source file extension for C test sources.
10458 # Object file extension for compiled C test sources.
10462 # Code to be used in simple compile tests
10463 lt_simple_compile_test_code="int some_variable
= 0;"
10465 # Code to be used in simple link tests
10466 lt_simple_link_test_code='int main(){return(0);}'
10469 # If no C compiler was specified, use CC.
10472 # If no C compiler flags were specified, use CFLAGS.
10473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10475 # Allow CC to be a program name with arguments.
10479 # save warnings/boilerplate of simple test code
10480 ac_outfile=conftest.$ac_objext
10481 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10482 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10483 _lt_compiler_boilerplate=`cat conftest.err`
10486 ac_outfile=conftest.$ac_objext
10487 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10488 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10489 _lt_linker_boilerplate=`cat conftest.err`
10494 lt_prog_compiler_no_builtin_flag=
10496 if test "$GCC" = yes; then
10497 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10500 { echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
10501 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6; }
10502 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10503 echo $ECHO_N "(cached
) $ECHO_C" >&6
10505 lt_cv_prog_compiler_rtti_exceptions=no
10506 ac_outfile=conftest.$ac_objext
10507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10508 lt_compiler_flag="-fno-rtti -fno-exceptions"
10509 # Insert the option either (1) after the last *FLAGS variable, or
10510 # (2) before a word containing "conftest.
", or (3) at the end.
10511 # Note that $ac_compile itself does not contain backslashes and begins
10512 # with a dollar sign (not a hyphen), so the echo should work correctly.
10513 # The option is referenced via a variable to avoid confusing sed.
10514 lt_compile=`echo "$ac_compile" | $SED \
10515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10517 -e 's:$: $lt_compiler_flag:'`
10518 (eval echo "\"\
$as_me:10518: $lt_compile\"" >&5)
10519 (eval "$lt_compile" 2>conftest.err)
10521 cat conftest.err >&5
10522 echo "$as_me:10522: \$?
= $ac_status" >&5
10523 if (exit $ac_status) && test -s "$ac_outfile"; then
10524 # The compiler can only warn and ignore the option if not recognized
10525 # So say no if there are warnings other than the usual output.
10526 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10529 lt_cv_prog_compiler_rtti_exceptions=yes
10535 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
10536 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10538 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10539 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10546 lt_prog_compiler_wl=
10547 lt_prog_compiler_pic=
10548 lt_prog_compiler_static=
10550 { echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
10551 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6; }
10553 if test "$GCC" = yes; then
10554 lt_prog_compiler_wl='-Wl,'
10555 lt_prog_compiler_static='-static'
10559 # All AIX code is PIC.
10560 if test "$host_cpu" = ia64; then
10561 # AIX 5 now supports IA64 processor
10562 lt_prog_compiler_static='-Bstatic'
10567 # FIXME: we need at least 68020 code to build shared libraries, but
10568 # adding the `-m68020' flag to GCC prevents building anything better,
10570 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10574 # PIC is the default for these OSes.
10577 mingw* | cygwin* | pw32* | os2*)
10578 # This hack is so that the source file can tell whether it is being
10579 # built for inclusion in a dll (and should export symbols for example).
10580 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10581 # (--disable-auto-import) libraries
10582 lt_prog_compiler_pic='-DDLL_EXPORT'
10585 darwin* | rhapsody*)
10586 # PIC is the default on this platform
10587 # Common symbols not allowed in MH_DYLIB files
10588 lt_prog_compiler_pic='-fno-common'
10592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10593 # Instead, we relocate shared libraries at runtime.
10597 # Just because we use GCC doesn't mean we suddenly get shared libraries
10598 # on systems that don't support them.
10599 lt_prog_compiler_can_build_shared=no
10604 if test -d /usr/nec; then
10605 lt_prog_compiler_pic=-Kconform_pic
10610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10611 # not for PA HP-UX.
10617 lt_prog_compiler_pic='-fPIC'
10623 lt_prog_compiler_pic='-fPIC'
10627 # PORTME Check for flag to pass linker flags through the system compiler.
10630 lt_prog_compiler_wl='-Wl,'
10631 if test "$host_cpu" = ia64; then
10632 # AIX 5 now supports IA64 processor
10633 lt_prog_compiler_static='-Bstatic'
10635 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10639 # PIC is the default on this platform
10640 # Common symbols not allowed in MH_DYLIB files
10641 case $cc_basename in
10643 lt_prog_compiler_pic='-qnocommon'
10644 lt_prog_compiler_wl='-Wl,'
10649 mingw* | cygwin* | pw32* | os2*)
10650 # This hack is so that the source file can tell whether it is being
10651 # built for inclusion in a dll (and should export symbols for example).
10652 lt_prog_compiler_pic='-DDLL_EXPORT'
10655 hpux9* | hpux10* | hpux11*)
10656 lt_prog_compiler_wl='-Wl,'
10657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10658 # not for PA HP-UX.
10664 lt_prog_compiler_pic='+Z'
10667 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10668 lt_prog_compiler_static='${wl}-a ${wl}archive'
10671 irix5* | irix6* | nonstopux*)
10672 lt_prog_compiler_wl='-Wl,'
10673 # PIC (with -KPIC) is the default.
10674 lt_prog_compiler_static='-non_shared'
10678 lt_prog_compiler_pic='-KPIC'
10679 lt_prog_compiler_static='-Bstatic'
10682 linux* | k*bsd*-gnu)
10683 case $cc_basename in
10685 lt_prog_compiler_wl='-Wl,'
10686 lt_prog_compiler_pic='-KPIC'
10687 lt_prog_compiler_static='-static'
10689 pgcc* | pgf77* | pgf90* | pgf95*)
10690 # Portland Group compilers (*not* the Pentium gcc compiler,
10691 # which looks to be a dead project)
10692 lt_prog_compiler_wl='-Wl,'
10693 lt_prog_compiler_pic='-fpic'
10694 lt_prog_compiler_static='-Bstatic'
10697 lt_prog_compiler_wl='-Wl,'
10698 # All Alpha code is PIC.
10699 lt_prog_compiler_static='-non_shared'
10702 case `$CC -V 2>&1 | sed 5q` in
10705 lt_prog_compiler_pic='-KPIC'
10706 lt_prog_compiler_static='-Bstatic'
10707 lt_prog_compiler_wl='-Wl,'
10710 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10711 lt_prog_compiler_pic='-KPIC'
10712 lt_prog_compiler_static='-Bstatic'
10713 lt_prog_compiler_wl=''
10720 osf3* | osf4* | osf5*)
10721 lt_prog_compiler_wl='-Wl,'
10722 # All OSF/1 code is PIC.
10723 lt_prog_compiler_static='-non_shared'
10727 lt_prog_compiler_static='-non_shared'
10731 lt_prog_compiler_pic='-KPIC'
10732 lt_prog_compiler_static='-Bstatic'
10733 case $cc_basename in
10734 f77* | f90* | f95*)
10735 lt_prog_compiler_wl='-Qoption ld ';;
10737 lt_prog_compiler_wl='-Wl,';;
10742 lt_prog_compiler_wl='-Qoption ld '
10743 lt_prog_compiler_pic='-PIC'
10744 lt_prog_compiler_static='-Bstatic'
10747 sysv4 | sysv4.2uw2* | sysv4.3*)
10748 lt_prog_compiler_wl='-Wl,'
10749 lt_prog_compiler_pic='-KPIC'
10750 lt_prog_compiler_static='-Bstatic'
10754 if test -d /usr/nec ;then
10755 lt_prog_compiler_pic='-Kconform_pic'
10756 lt_prog_compiler_static='-Bstatic'
10760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10761 lt_prog_compiler_wl='-Wl,'
10762 lt_prog_compiler_pic='-KPIC'
10763 lt_prog_compiler_static='-Bstatic'
10767 lt_prog_compiler_wl='-Wl,'
10768 lt_prog_compiler_can_build_shared=no
10772 lt_prog_compiler_pic='-pic'
10773 lt_prog_compiler_static='-Bstatic'
10777 lt_prog_compiler_can_build_shared=no
10782 { echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
10783 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10786 # Check to make sure the PIC flag actually works.
10788 if test -n "$lt_prog_compiler_pic"; then
10790 { echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
10791 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6; }
10792 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10793 echo $ECHO_N "(cached
) $ECHO_C" >&6
10795 lt_cv_prog_compiler_pic_works=no
10796 ac_outfile=conftest.$ac_objext
10797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10799 # Insert the option either (1) after the last *FLAGS variable, or
10800 # (2) before a word containing "conftest.
", or (3) at the end.
10801 # Note that $ac_compile itself does not contain backslashes and begins
10802 # with a dollar sign (not a hyphen), so the echo should work correctly.
10803 # The option is referenced via a variable to avoid confusing sed.
10804 lt_compile=`echo "$ac_compile" | $SED \
10805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10807 -e 's:$: $lt_compiler_flag:'`
10808 (eval echo "\"\
$as_me:10808: $lt_compile\"" >&5)
10809 (eval "$lt_compile" 2>conftest.err)
10811 cat conftest.err >&5
10812 echo "$as_me:10812: \$?
= $ac_status" >&5
10813 if (exit $ac_status) && test -s "$ac_outfile"; then
10814 # The compiler can only warn and ignore the option if not recognized
10815 # So say no if there are warnings other than the usual output.
10816 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10819 lt_cv_prog_compiler_pic_works=yes
10825 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_pic_works" >&5
10826 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
10828 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10829 case $lt_prog_compiler_pic in
10831 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10834 lt_prog_compiler_pic=
10835 lt_prog_compiler_can_build_shared=no
10840 # For platforms which do not support PIC, -DPIC is meaningless:
10842 lt_prog_compiler_pic=
10845 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10850 # Check to make sure the static flag actually works.
10852 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10853 { echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
10854 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6; }
10855 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10856 echo $ECHO_N "(cached
) $ECHO_C" >&6
10858 lt_cv_prog_compiler_static_works=no
10859 save_LDFLAGS="$LDFLAGS"
10860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10863 # The linker can only warn and ignore the option if not recognized
10864 # So say no if there are warnings
10865 if test -s conftest.err; then
10866 # Append any errors to the config.log.
10867 cat conftest.err 1>&5
10868 $echo "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10870 if diff conftest.exp conftest.er2 >/dev/null; then
10871 lt_cv_prog_compiler_static_works=yes
10874 lt_cv_prog_compiler_static_works=yes
10878 LDFLAGS="$save_LDFLAGS"
10881 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_static_works" >&5
10882 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
10884 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10887 lt_prog_compiler_static=
10891 { echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
10892 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6; }
10893 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10894 echo $ECHO_N "(cached
) $ECHO_C" >&6
10896 lt_cv_prog_compiler_c_o=no
10897 $rm -r conftest 2>/dev/null
10901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10903 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
10904 # Insert the option either (1) after the last *FLAGS variable, or
10905 # (2) before a word containing "conftest.
", or (3) at the end.
10906 # Note that $ac_compile itself does not contain backslashes and begins
10907 # with a dollar sign (not a hyphen), so the echo should work correctly.
10908 lt_compile=`echo "$ac_compile" | $SED \
10909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10911 -e 's:$: $lt_compiler_flag:'`
10912 (eval echo "\"\
$as_me:10912: $lt_compile\"" >&5)
10913 (eval "$lt_compile" 2>out/conftest.err)
10915 cat out/conftest.err >&5
10916 echo "$as_me:10916: \$?
= $ac_status" >&5
10917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10919 # The compiler can only warn and ignore the option if not recognized
10920 # So say no if there are warnings
10921 $echo "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10924 lt_cv_prog_compiler_c_o=yes
10929 # SGI C++ compiler will create directory out/ii_files/ for
10930 # template instantiation
10931 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10932 $rm out/* && rmdir out
10938 { echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
10939 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10942 hard_links="nottested
"
10943 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10944 # do not overwrite the value of need_locks provided by the user
10945 { echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
10946 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6; }
10949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10951 ln conftest.a conftest.b 2>&5 || hard_links=no
10952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10953 { echo "$as_me:$LINENO: result
: $hard_links" >&5
10954 echo "${ECHO_T}$hard_links" >&6; }
10955 if test "$hard_links" = no; then
10956 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
10957 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
10964 { echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
10965 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6; }
10968 allow_undefined_flag=
10969 enable_shared_with_static_runtimes=no
10971 archive_expsym_cmds=
10972 old_archive_From_new_cmds=
10973 old_archive_from_expsyms_cmds=
10974 export_dynamic_flag_spec=
10975 whole_archive_flag_spec=
10976 thread_safe_flag_spec=
10977 hardcode_libdir_flag_spec=
10978 hardcode_libdir_flag_spec_ld=
10979 hardcode_libdir_separator=
10981 hardcode_minus_L=no
10982 hardcode_shlibpath_var=unsupported
10983 link_all_deplibs=unknown
10984 hardcode_automatic=no
10986 module_expsym_cmds=
10987 always_export_symbols=no
10988 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10989 # include_expsyms should be a list of space-separated symbols to be *always*
10990 # included in the symbol list
10992 # exclude_expsyms can be an extended regexp of symbols to exclude
10993 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10994 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10995 # as well as any symbol that contains `d'.
10996 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10997 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10998 # platforms (ab)use it in PIC code, but their linkers get confused if
10999 # the symbol is explicitly referenced. Since portable code cannot
11000 # rely on this symbol name, it's probably fine to never include it in
11001 # preloaded symbol tables.
11002 # Exclude shared library initialization/finalization symbols.
11003 extract_expsyms_cmds=
11004 # Just being paranoid about ensuring that cc_basename is set.
11005 for cc_temp in $compiler""; do
11007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11013 cc_basename=`$echo "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
11016 cygwin* | mingw* | pw32*)
11017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11018 # When not using gcc, we currently assume that we are using
11019 # Microsoft Visual C++.
11020 if test "$GCC" != yes; then
11025 # we just hope/assume this is gcc and not c89 (= MSVC++)
11034 if test "$with_gnu_ld" = yes; then
11035 # If archive_cmds runs LD, not CC, wlarc should be empty
11038 # Set some defaults for GNU ld with shared library support. These
11039 # are reset later if shared libraries are not supported. Putting them
11040 # here allows them to be overridden if necessary.
11041 runpath_var=LD_RUN_PATH
11042 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
11043 export_dynamic_flag_spec='${wl}--export-dynamic'
11044 # ancient GNU ld didn't support --whole-archive et. al.
11045 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11046 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11048 whole_archive_flag_spec=
11050 supports_anon_versioning=no
11051 case `$LD -v 2>/dev/null` in
11052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11053 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11054 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11055 *\ 2.11.*) ;; # other 2.11 versions
11056 *) supports_anon_versioning=yes ;;
11059 # See if GNU ld supports shared libraries.
11062 # On AIX/PPC, the GNU linker is very broken
11063 if test "$host_cpu" != ia64; then
11067 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11068 *** to be unable to reliably create shared libraries on AIX.
11069 *** Therefore, libtool is disabling shared libraries support. If you
11070 *** really care for shared libraries, you may want to modify your PATH
11071 *** so that a non-GNU linker is found, and then restart.
11078 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)'
11079 hardcode_libdir_flag_spec
='-L$libdir'
11080 hardcode_minus_L
=yes
11082 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11083 # that the semantics of dynamic libraries on AmigaOS, at least up
11084 # to version 4, is to share data among multiple programs linked
11085 # with the same dynamic library. Since this doesn't match the
11086 # behavior of shared libraries on other platforms, we can't use
11092 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
11093 allow_undefined_flag
=unsupported
11094 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11095 # support --undefined. This deserves some investigation. FIXME
11096 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11102 cygwin
* | mingw
* | pw32
*)
11103 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11104 # as there is no search path for DLLs.
11105 hardcode_libdir_flag_spec
='-L$libdir'
11106 allow_undefined_flag
=unsupported
11107 always_export_symbols
=no
11108 enable_shared_with_static_runtimes
=yes
11109 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11111 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
11112 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11113 # If the export-symbols file already is a .def file (1st line
11114 # is EXPORTS), use it as is; otherwise, prepend...
11115 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11116 cp $export_symbols $output_objdir/$soname.def;
11118 echo EXPORTS > $output_objdir/$soname.def;
11119 cat $export_symbols >> $output_objdir/$soname.def;
11121 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11129 hardcode_shlibpath_var
=no
11130 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11131 export_dynamic_flag_spec
='${wl}-E'
11132 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11133 # Instead, shared libraries are loaded at an image base (0x10000000 by
11134 # default) and relocated if they conflict, which is a slow very memory
11135 # consuming and fragmenting process. To avoid this, we pick a random,
11136 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11137 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11138 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11139 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'
11142 gnu
* | linux
* | k
*bsd
*-gnu)
11143 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
11145 case $cc_basename,$host_cpu in
11146 pgcc
*) # Portland Group C compiler
11147 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11148 tmp_addflag
=' $pic_flag'
11150 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
11151 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11152 tmp_addflag
=' $pic_flag -Mnomain' ;;
11153 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
11154 tmp_addflag
=' -i_dynamic' ;;
11155 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
11156 tmp_addflag
=' -i_dynamic -nofor_main' ;;
11157 ifc
* | ifort
*) # Intel Fortran compiler
11158 tmp_addflag
=' -nofor_main' ;;
11160 case `$CC -V 2>&1 | sed 5q` in
11161 *Sun\ C
*) # Sun C 5.9
11162 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11163 tmp_sharedflag
='-G' ;;
11164 *Sun\ F
*) # Sun Fortran 8.3
11165 tmp_sharedflag
='-G' ;;
11167 tmp_sharedflag
='-shared' ;;
11169 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11171 if test $supports_anon_versioning = yes; then
11172 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
11173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11174 $echo "local: *; };" >> $output_objdir/$libname.ver~
11175 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11177 link_all_deplibs
=no
11183 netbsd
* | netbsdelf
*-gnu)
11184 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11185 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11188 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11189 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11194 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
11198 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11199 *** create shared libraries on Solaris systems. Therefore, libtool
11200 *** is disabling shared libraries support. We urge you to upgrade GNU
11201 *** binutils to release 2.9.1 or newer. Another option is to modify
11202 *** your PATH or compiler configuration so that the native linker is
11203 *** used, and then restart.
11206 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
11207 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11208 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11214 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
11215 case `$LD -v 2>&1` in
11216 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
11220 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11221 *** reliably create shared libraries on SCO systems. Therefore, libtool
11222 *** is disabling shared libraries support. We urge you to upgrade GNU
11223 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11224 *** your PATH or compiler configuration so that the native linker is
11225 *** used, and then restart.
11230 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
11231 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11232 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11233 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11242 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11244 hardcode_direct
=yes
11245 hardcode_shlibpath_var
=no
11249 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
11250 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11251 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11258 if test "$ld_shlibs" = no
; then
11260 hardcode_libdir_flag_spec
=
11261 export_dynamic_flag_spec
=
11262 whole_archive_flag_spec
=
11265 # PORTME fill in a description of your system's linker (not GNU ld)
11268 allow_undefined_flag
=unsupported
11269 always_export_symbols
=yes
11270 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'
11271 # Note: this linker hardcodes the directories in LIBPATH if there
11272 # are no directories specified by -L.
11273 hardcode_minus_L
=yes
11274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11275 # Neither direct hardcoding nor static linking is supported with a
11277 hardcode_direct
=unsupported
11282 if test "$host_cpu" = ia64
; then
11283 # On IA64, the linker does run time linking by default, so we don't
11284 # have to do anything special.
11285 aix_use_runtimelinking
=no
11286 exp_sym_flag
='-Bexport'
11289 # If we're using GNU nm, then we don't want the "-C" option.
11290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11291 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11292 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11294 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'
11296 aix_use_runtimelinking
=no
11298 # Test if we are trying to use run time linking or normal
11299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11300 # need to do runtime linking.
11301 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
11302 for ld_flag
in $LDFLAGS; do
11303 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
11304 aix_use_runtimelinking
=yes
11311 exp_sym_flag
='-bexport'
11312 no_entry_flag
='-bnoentry'
11315 # When large executables or shared objects are built, AIX ld can
11316 # have problems creating the table of contents. If linking a library
11317 # or program results in "error TOC overflow" add -mminimal-toc to
11318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11322 hardcode_direct
=yes
11323 hardcode_libdir_separator
=':'
11324 link_all_deplibs
=yes
11326 if test "$GCC" = yes; then
11327 case $host_os in aix4.
[012]|aix4.
[012].
*)
11328 # We only want to do this on AIX 4.2 and lower, the check
11329 # below for broken collect2 doesn't work under 4.3+
11330 collect2name
=`${CC} -print-prog-name=collect2`
11331 if test -f "$collect2name" && \
11332 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
11334 # We have reworked collect2
11337 # We have old collect2
11338 hardcode_direct
=unsupported
11339 # It fails to find uninstalled libraries when the uninstalled
11340 # path is not listed in the libpath. Setting hardcode_minus_L
11341 # to unsupported forces relinking
11342 hardcode_minus_L
=yes
11343 hardcode_libdir_flag_spec
='-L$libdir'
11344 hardcode_libdir_separator
=
11348 shared_flag
='-shared'
11349 if test "$aix_use_runtimelinking" = yes; then
11350 shared_flag
="$shared_flag "'${wl}-G'
11354 if test "$host_cpu" = ia64
; then
11355 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11356 # chokes on -Wl,-G. The following line is correct:
11359 if test "$aix_use_runtimelinking" = yes; then
11360 shared_flag
='${wl}-G'
11362 shared_flag
='${wl}-bM:SRE'
11367 # It seems that -bexpall does not export symbols beginning with
11368 # underscore (_), so it is better to generate a list of symbols to export.
11369 always_export_symbols
=yes
11370 if test "$aix_use_runtimelinking" = yes; then
11371 # Warning - without using the other runtime loading flags (-brtl),
11372 # -berok will link without error, but may produce a broken library.
11373 allow_undefined_flag
='-berok'
11374 # Determine the default libpath from the value encoded in an empty executable.
11375 cat >conftest.
$ac_ext <<_ACEOF
11378 cat confdefs.h
>>conftest.
$ac_ext
11379 cat >>conftest.
$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11390 rm -f conftest.
$ac_objext conftest
$ac_exeext
11391 if { (ac_try
="$ac_link"
11392 case "(($ac_try" in
11393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_link") 2>conftest.er1
11399 grep -v '^ *+' conftest.er1 >conftest.err
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } && {
11404 test -z "$ac_c_werror_flag" ||
11405 test ! -s conftest.err
11406 } && test -s conftest$ac_exeext &&
11407 $as_test_x conftest$ac_exeext; then
11409 lt_aix_libpath_sed='
11410 /Import File Strings/,/^$/ {
11416 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11417 # Check for a 64-bit object if we didn't find anything.
11418 if test -z "$aix_libpath"; then
11419 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11429 conftest$ac_exeext conftest.$ac_ext
11430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11432 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11433 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11435 if test "$host_cpu" = ia64; then
11436 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11437 allow_undefined_flag="-z nodefs"
11438 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"
11440 # Determine the default libpath from the value encoded in an empty executable.
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (ac_try="$ac_link"
11458 case "(($ac_try" in
11459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11460 *) ac_try_echo
=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_link") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1
>conftest.err
11467 cat conftest.err
>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest
$ac_exeext &&
11473 $as_test_x conftest
$ac_exeext; then
11475 lt_aix_libpath_sed
='
11476 /Import File Strings/,/^$/ {
11482 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11483 # Check for a 64-bit object if we didn't find anything.
11484 if test -z "$aix_libpath"; then
11485 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.
$ac_ext >&5
11494 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11495 conftest
$ac_exeext conftest.
$ac_ext
11496 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11498 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11499 # Warning - without using the other run time loading flags,
11500 # -berok will link without error, but may produce a broken library.
11501 no_undefined_flag
=' ${wl}-bernotok'
11502 allow_undefined_flag
=' ${wl}-berok'
11503 # Exported symbols can be pulled into shared objects from archives
11504 whole_archive_flag_spec
='$convenience'
11505 archive_cmds_need_lc
=yes
11506 # This is similar to how AIX traditionally builds its shared libraries.
11507 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'
11513 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)'
11514 hardcode_libdir_flag_spec
='-L$libdir'
11515 hardcode_minus_L
=yes
11516 # see comment about different semantics on the GNU ld section
11521 export_dynamic_flag_spec
=-rdynamic
11524 cygwin
* | mingw
* | pw32
*)
11525 # When not using gcc, we currently assume that we are using
11526 # Microsoft Visual C++.
11527 # hardcode_libdir_flag_spec is actually meaningless, as there is
11528 # no search path for DLLs.
11529 hardcode_libdir_flag_spec
=' '
11530 allow_undefined_flag
=unsupported
11531 # Tell ltmain to make .lib files, not .a files.
11533 # Tell ltmain to make .dll files, not .so files.
11535 # FIXME: Setting linknames here is a bad hack.
11536 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11537 # The linker will automatically build a .lib file if we build a DLL.
11538 old_archive_From_new_cmds
='true'
11539 # FIXME: Should let the user specify the lib program.
11540 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
11541 fix_srcfile_path
='`cygpath -w "$srcfile"`'
11542 enable_shared_with_static_runtimes
=yes
11545 darwin
* | rhapsody
*)
11547 rhapsody
* | darwin1.
[012])
11548 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
11551 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11552 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11554 case ${MACOSX_DEPLOYMENT_TARGET} in
11556 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11559 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
11565 archive_cmds_need_lc
=no
11567 hardcode_automatic
=yes
11568 hardcode_shlibpath_var
=unsupported
11569 whole_archive_flag_spec
=''
11570 link_all_deplibs
=yes
11571 if test "$GCC" = yes ; then
11572 output_verbose_link_cmd
='echo'
11573 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11574 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11575 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}"
11576 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}"
11578 case $cc_basename in
11580 output_verbose_link_cmd
='echo'
11581 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11582 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11583 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11584 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11585 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11595 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11596 hardcode_libdir_flag_spec
='-L$libdir'
11597 hardcode_shlibpath_var
=no
11604 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11605 # support. Future versions do this automatically, but an explicit c++rt0.o
11606 # does not break anything, and helps significantly (at the cost of a little
11609 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11610 hardcode_libdir_flag_spec
='-R$libdir'
11611 hardcode_direct
=yes
11612 hardcode_shlibpath_var
=no
11615 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11617 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11618 hardcode_direct
=yes
11619 hardcode_minus_L
=yes
11620 hardcode_shlibpath_var
=no
11623 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11624 freebsd
* | dragonfly
*)
11625 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11626 hardcode_libdir_flag_spec
='-R$libdir'
11627 hardcode_direct
=yes
11628 hardcode_shlibpath_var
=no
11632 if test "$GCC" = yes; then
11633 archive_cmds
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11635 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'
11637 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11638 hardcode_libdir_separator
=:
11639 hardcode_direct
=yes
11641 # hardcode_minus_L: Not really in the search PATH,
11642 # but as the default location of the library.
11643 hardcode_minus_L
=yes
11644 export_dynamic_flag_spec
='${wl}-E'
11648 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
11649 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11651 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11653 if test "$with_gnu_ld" = no
; then
11654 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11655 hardcode_libdir_separator
=:
11657 hardcode_direct
=yes
11658 export_dynamic_flag_spec
='${wl}-E'
11660 # hardcode_minus_L: Not really in the search PATH,
11661 # but as the default location of the library.
11662 hardcode_minus_L
=yes
11667 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
11670 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11673 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11676 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11682 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11685 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11688 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11692 if test "$with_gnu_ld" = no
; then
11693 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11694 hardcode_libdir_separator
=:
11698 hardcode_libdir_flag_spec_ld
='+b $libdir'
11700 hardcode_shlibpath_var
=no
11703 hardcode_direct
=yes
11704 export_dynamic_flag_spec
='${wl}-E'
11706 # hardcode_minus_L: Not really in the search PATH,
11707 # but as the default location of the library.
11708 hardcode_minus_L
=yes
11714 irix5
* | irix6
* | nonstopux
*)
11715 if test "$GCC" = yes; then
11716 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11718 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11719 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
11721 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11722 hardcode_libdir_separator
=:
11723 link_all_deplibs
=yes
11726 netbsd
* | netbsdelf
*-gnu)
11727 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11728 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11730 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11732 hardcode_libdir_flag_spec
='-R$libdir'
11733 hardcode_direct
=yes
11734 hardcode_shlibpath_var
=no
11738 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11739 hardcode_direct
=yes
11740 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11741 hardcode_libdir_separator
=:
11742 hardcode_shlibpath_var
=no
11746 if test -f /usr
/libexec
/ld.so
; then
11747 hardcode_direct
=yes
11748 hardcode_shlibpath_var
=no
11749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11750 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11751 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11752 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11753 export_dynamic_flag_spec
='${wl}-E'
11756 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
11757 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11758 hardcode_libdir_flag_spec
='-R$libdir'
11761 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11762 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11772 hardcode_libdir_flag_spec
='-L$libdir'
11773 hardcode_minus_L
=yes
11774 allow_undefined_flag
=unsupported
11775 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'
11776 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11780 if test "$GCC" = yes; then
11781 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11782 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11784 allow_undefined_flag
=' -expect_unresolved \*'
11785 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11787 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11788 hardcode_libdir_separator
=:
11791 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11792 if test "$GCC" = yes; then
11793 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11794 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11795 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11797 allow_undefined_flag
=' -expect_unresolved \*'
11798 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11799 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11800 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11802 # Both c and cxx compiler support -rpath directly
11803 hardcode_libdir_flag_spec
='-rpath $libdir'
11805 hardcode_libdir_separator
=:
11809 no_undefined_flag
=' -z text'
11810 if test "$GCC" = yes; then
11812 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11813 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11814 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11817 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11818 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11819 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11821 hardcode_libdir_flag_spec
='-R$libdir'
11822 hardcode_shlibpath_var
=no
11824 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11826 # The compiler driver will combine and reorder linker options,
11827 # but understands `-z linker_flag'. GCC discards it without `$wl',
11828 # but is careful enough not to reorder.
11829 # Supported since Solaris 2.6 (maybe 2.5.1?)
11830 if test "$GCC" = yes; then
11831 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11833 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
11837 link_all_deplibs
=yes
11841 if test "x$host_vendor" = xsequent
; then
11842 # Use $CC to link under sequent, because it throws in some extra .o
11843 # files that make .init and .fini sections work.
11844 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11846 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11848 hardcode_libdir_flag_spec
='-L$libdir'
11849 hardcode_direct
=yes
11850 hardcode_minus_L
=yes
11851 hardcode_shlibpath_var
=no
11855 case $host_vendor in
11857 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11858 hardcode_direct
=yes # is this really true???
11861 ## LD is ld it makes a PLAMLIB
11862 ## CC just makes a GrossModule.
11863 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11864 reload_cmds
='$CC -r -o $output$reload_objs'
11868 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11869 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11872 runpath_var
='LD_RUN_PATH'
11873 hardcode_shlibpath_var
=no
11877 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11878 hardcode_shlibpath_var
=no
11879 export_dynamic_flag_spec
='-Bexport'
11883 if test -d /usr
/nec
; then
11884 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11885 hardcode_shlibpath_var
=no
11886 runpath_var
=LD_RUN_PATH
11887 hardcode_runpath_var
=yes
11892 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11893 no_undefined_flag
='${wl}-z,text'
11894 archive_cmds_need_lc
=no
11895 hardcode_shlibpath_var
=no
11896 runpath_var
='LD_RUN_PATH'
11898 if test "$GCC" = yes; then
11899 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11902 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11903 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907 sysv5
* | sco3.2v5
* | sco5v6
*)
11908 # Note: We can NOT use -z defs as we might desire, because we do not
11909 # link with -lc, and that would cause any symbols used from libc to
11910 # always be unresolved, which means just about no library would
11911 # ever link correctly. If we're not using GNU ld we use -z text
11912 # though, which does catch some bad symbols but isn't as heavy-handed
11914 no_undefined_flag
='${wl}-z,text'
11915 allow_undefined_flag
='${wl}-z,nodefs'
11916 archive_cmds_need_lc
=no
11917 hardcode_shlibpath_var
=no
11918 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11919 hardcode_libdir_separator
=':'
11920 link_all_deplibs
=yes
11921 export_dynamic_flag_spec
='${wl}-Bexport'
11922 runpath_var
='LD_RUN_PATH'
11924 if test "$GCC" = yes; then
11925 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11926 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11928 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11929 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11934 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11935 hardcode_libdir_flag_spec
='-L$libdir'
11936 hardcode_shlibpath_var
=no
11945 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11946 echo "${ECHO_T}$ld_shlibs" >&6; }
11947 test "$ld_shlibs" = no
&& can_build_shared
=no
11950 # Do we need to explicitly link libc?
11952 case "x$archive_cmds_need_lc" in
11954 # Assume -lc should be added
11955 archive_cmds_need_lc
=yes
11957 if test "$enable_shared" = yes && test "$GCC" = yes; then
11958 case $archive_cmds in
11960 # FIXME: we may have to deal with multi-command sequences.
11963 # Test whether the compiler implicitly links with -lc since on some
11964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11965 # to ld, don't add -lc before -lgcc.
11966 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11967 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11969 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11972 (eval $ac_compile) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } 2>conftest.err
; then
11978 libobjs
=conftest.
$ac_objext
11980 wl
=$lt_prog_compiler_wl
11981 pic_flag
=$lt_prog_compiler_pic
11987 lt_save_allow_undefined_flag
=$allow_undefined_flag
11988 allow_undefined_flag
=
11989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11990 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }
11995 archive_cmds_need_lc
=no
11997 archive_cmds_need_lc
=yes
11999 allow_undefined_flag
=$lt_save_allow_undefined_flag
12001 cat conftest.err
1>&5
12004 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12005 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
12012 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12014 library_names_spec
=
12015 libname_spec
='lib$name'
12019 postuninstall_cmds
=
12023 shlibpath_overrides_runpath
=unknown
12025 dynamic_linker
="$host_os ld.so"
12026 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12028 if test "$GCC" = yes; then
12030 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
12031 *) lt_awk_arg
="/^libraries:/" ;;
12033 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12034 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
12035 # if the path contains ";" then we assume it to be the separator
12036 # otherwise default to the standard path separator (i.e. ":") - it is
12037 # assumed that no part of a normal pathname contains ";" but that should
12038 # okay in the real world where ";" in dirpaths is itself problematic.
12039 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12041 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12043 # Ok, now we have the path, separated by spaces, we can step through it
12044 # and add multilib dir if necessary.
12045 lt_tmp_lt_search_path_spec
=
12046 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12047 for lt_sys_path
in $lt_search_path_spec; do
12048 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12049 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12051 test -d "$lt_sys_path" && \
12052 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
12055 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
12056 BEGIN {RS=" "; FS="/|\n";} {
12059 for (lt_i = NF; lt_i > 0; lt_i--) {
12060 if ($lt_i != "" && $lt_i != ".") {
12061 if ($lt_i == "..") {
12064 if (lt_count == 0) {
12065 lt_foo="/" $lt_i lt_foo;
12072 if (lt_foo != "") { lt_freq[lt_foo]++; }
12073 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12075 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
12077 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
12079 need_lib_prefix
=unknown
12080 hardcode_into_libs
=no
12082 # when you set need_version to no, make sure it does not cause -set_version
12083 # flags to be left without arguments
12084 need_version
=unknown
12089 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12090 shlibpath_var
=LIBPATH
12092 # AIX 3 has no versioning support, so we append a major version to the name.
12093 soname_spec
='${libname}${release}${shared_ext}$major'
12100 hardcode_into_libs
=yes
12101 if test "$host_cpu" = ia64
; then
12102 # AIX 5 supports IA64
12103 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12104 shlibpath_var
=LD_LIBRARY_PATH
12106 # With GCC up to 2.95.x, collect2 would create an import file
12107 # for dependence libraries. The import file would start with
12108 # the line `#! .'. This would cause the generated library to
12109 # depend on `.', always an invalid library. This was fixed in
12110 # development snapshots of GCC prior to 3.0.
12112 aix4 | aix4.
[01] | aix4.
[01].
*)
12113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12115 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
12118 can_build_shared
=no
12122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12123 # soname into executable. Probably we can add versioning support to
12124 # collect2, so additional links can be useful in future.
12125 if test "$aix_use_runtimelinking" = yes; then
12126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12127 # instead of lib<name>.a to let people know that these are not
12128 # typical AIX shared libraries.
12129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12131 # We preserve .a as extension for shared libraries through AIX4.2
12132 # and later when we are not doing run time linking.
12133 library_names_spec
='${libname}${release}.a $libname.a'
12134 soname_spec
='${libname}${release}${shared_ext}$major'
12136 shlibpath_var
=LIBPATH
12141 library_names_spec
='$libname.ixlibrary $libname.a'
12142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12143 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12147 library_names_spec
='${libname}${shared_ext}'
12148 dynamic_linker
="$host_os ld.so"
12149 shlibpath_var
=LIBRARY_PATH
12155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156 soname_spec
='${libname}${release}${shared_ext}$major'
12157 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12158 shlibpath_var
=LD_LIBRARY_PATH
12159 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12160 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12161 # the default ld.so.conf also contains /usr/contrib/lib and
12162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12163 # libtool to hard-code these into programs
12166 cygwin
* | mingw
* | pw32
*)
12167 version_type
=windows
12172 case $GCC,$host_os in
12173 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
12174 library_names_spec
='$libname.dll.a'
12175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12176 postinstall_cmds
='base_file=`basename \${file}`~
12177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12178 dldir=$destdir/`dirname \$dlpath`~
12179 test -d \$dldir || mkdir -p \$dldir~
12180 $install_prog $dir/$dlname \$dldir/$dlname~
12181 chmod a+x \$dldir/$dlname'
12182 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12183 dlpath=$dir/\$dldll~
12185 shlibpath_overrides_runpath
=yes
12189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12190 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12191 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
12194 # MinGW DLLs use traditional 'lib' prefix
12195 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12196 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12197 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
12198 # It is most probably a Windows format PATH printed by
12199 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12200 # path with ; separators, and with drive letters. We can handle the
12201 # drive letters (cygwin fileutils understands them), so leave them,
12202 # especially as we might pass files found there to a mingw objdump,
12203 # which wouldn't understand a cygwinified path. Ahh.
12204 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12206 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12210 # pw32 DLLs use 'pw' prefix rather than 'lib'
12211 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12217 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12220 dynamic_linker
='Win32 ld.exe'
12221 # FIXME: first we should search . and the directory the executable is in
12225 darwin
* | rhapsody
*)
12226 dynamic_linker
="$host_os dyld"
12227 version_type
=darwin
12230 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12231 soname_spec
='${libname}${release}${major}$shared_ext'
12232 shlibpath_overrides_runpath
=yes
12233 shlibpath_var
=DYLD_LIBRARY_PATH
12234 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12236 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
12237 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12245 soname_spec
='${libname}${release}${shared_ext}$major'
12246 shlibpath_var
=LD_LIBRARY_PATH
12253 freebsd
* | dragonfly
*)
12254 # DragonFly does not have aout. When/if they implement a new
12255 # versioning mechanism, adjust this.
12256 if test -x /usr
/bin
/objformat
; then
12257 objformat
=`/usr/bin/objformat`
12260 freebsd
[123]*) objformat
=aout
;;
12261 *) objformat
=elf
;;
12264 version_type
=freebsd-
$objformat
12265 case $version_type in
12267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12272 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12276 shlibpath_var
=LD_LIBRARY_PATH
12279 shlibpath_overrides_runpath
=yes
12281 freebsd3.
[01]* | freebsdelf3.
[01]*)
12282 shlibpath_overrides_runpath
=yes
12283 hardcode_into_libs
=yes
12285 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12286 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12287 shlibpath_overrides_runpath
=no
12288 hardcode_into_libs
=yes
12290 *) # from 4.6 on, and DragonFly
12291 shlibpath_overrides_runpath
=yes
12292 hardcode_into_libs
=yes
12301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12302 soname_spec
='${libname}${release}${shared_ext}$major'
12303 shlibpath_var
=LD_LIBRARY_PATH
12304 hardcode_into_libs
=yes
12307 hpux9
* | hpux10
* | hpux11
*)
12308 # Give a soname corresponding to the major version so that dld.sl refuses to
12309 # link against other versions.
12316 hardcode_into_libs
=yes
12317 dynamic_linker
="$host_os dld.so"
12318 shlibpath_var
=LD_LIBRARY_PATH
12319 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12320 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12321 soname_spec
='${libname}${release}${shared_ext}$major'
12322 if test "X$HPUX_IA64_MODE" = X32
; then
12323 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12325 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12327 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12331 hardcode_into_libs
=yes
12332 dynamic_linker
="$host_os dld.sl"
12333 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12334 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12336 soname_spec
='${libname}${release}${shared_ext}$major'
12337 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12338 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12342 dynamic_linker
="$host_os dld.sl"
12343 shlibpath_var
=SHLIB_PATH
12344 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12346 soname_spec
='${libname}${release}${shared_ext}$major'
12349 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12350 postinstall_cmds
='chmod 555 $lib'
12357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12358 soname_spec
='${libname}${release}${shared_ext}$major'
12359 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12360 shlibpath_var
=LD_LIBRARY_PATH
12361 shlibpath_overrides_runpath
=no
12362 hardcode_into_libs
=yes
12365 irix5
* | irix6
* | nonstopux
*)
12367 nonstopux
*) version_type
=nonstopux
;;
12369 if test "$lt_cv_prog_gnu_ld" = yes; then
12377 soname_spec
='${libname}${release}${shared_ext}$major'
12378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12380 irix5
* | nonstopux
*)
12381 libsuff
= shlibsuff
=
12384 case $LD in # libtool.m4 will add one of these switches to LD
12385 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12386 libsuff
= shlibsuff
= libmagic
=32-bit;;
12387 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12388 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12389 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12390 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12391 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12395 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12396 shlibpath_overrides_runpath
=no
12397 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12398 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12399 hardcode_into_libs
=yes
12402 # No shared lib support for Linux oldld, aout, or coff.
12403 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12407 # This must be Linux ELF.
12408 linux
* | k
*bsd
*-gnu)
12412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12413 soname_spec
='${libname}${release}${shared_ext}$major'
12414 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12415 shlibpath_var
=LD_LIBRARY_PATH
12416 shlibpath_overrides_runpath
=no
12417 # This implies no fast_install, which is unacceptable.
12418 # Some rework will be needed to allow for fast_install
12419 # before this can be enabled.
12420 hardcode_into_libs
=yes
12422 # Append ld.so.conf contents to the search path
12423 if test -f /etc
/ld.so.conf
; then
12424 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;/^$/d' | tr '\n' ' '`
12425 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12428 # We used to test for /lib/ld.so.1 and disable shared libraries on
12429 # powerpc, because MkLinux only supported shared libraries with the
12430 # GNU dynamic linker. Since this was broken with cross compilers,
12431 # most powerpc-linux boxes support dynamic linking these days and
12432 # people can always --disable-shared, the test was removed, and we
12433 # assume the GNU/Linux dynamic linker is in use.
12434 dynamic_linker
='GNU/Linux ld.so'
12441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12442 soname_spec
='${libname}${release}${shared_ext}$major'
12443 shlibpath_var
=LD_LIBRARY_PATH
12444 shlibpath_overrides_runpath
=no
12445 hardcode_into_libs
=yes
12446 dynamic_linker
='NetBSD ld.elf_so'
12453 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12455 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12456 dynamic_linker
='NetBSD (a.out) ld.so'
12458 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12459 soname_spec
='${libname}${release}${shared_ext}$major'
12460 dynamic_linker
='NetBSD ld.elf_so'
12462 shlibpath_var
=LD_LIBRARY_PATH
12463 shlibpath_overrides_runpath
=yes
12464 hardcode_into_libs
=yes
12469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12470 shlibpath_var
=LD_LIBRARY_PATH
12471 shlibpath_overrides_runpath
=yes
12478 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12479 soname_spec
='${libname}${release}${shared_ext}$major'
12480 shlibpath_var
=LD_LIBRARY_PATH
12481 shlibpath_overrides_runpath
=yes
12486 sys_lib_dlsearch_path_spec
="/usr/lib"
12488 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12490 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12491 *) need_version
=no
;;
12493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12494 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12495 shlibpath_var
=LD_LIBRARY_PATH
12496 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12498 openbsd2.
[89] | openbsd2.
[89].
*)
12499 shlibpath_overrides_runpath
=no
12502 shlibpath_overrides_runpath
=yes
12506 shlibpath_overrides_runpath
=yes
12511 libname_spec
='$name'
12514 library_names_spec
='$libname${shared_ext} $libname.a'
12515 dynamic_linker
='OS/2 ld.exe'
12516 shlibpath_var
=LIBPATH
12519 osf3
* | osf4
* | osf5
*)
12523 soname_spec
='${libname}${release}${shared_ext}$major'
12524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12525 shlibpath_var
=LD_LIBRARY_PATH
12526 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12527 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12539 soname_spec
='${libname}${release}${shared_ext}$major'
12540 shlibpath_var
=LD_LIBRARY_PATH
12541 shlibpath_overrides_runpath
=yes
12542 hardcode_into_libs
=yes
12543 # ldd complains unless libraries are executable
12544 postinstall_cmds
='chmod +x $lib'
12549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12550 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12551 shlibpath_var
=LD_LIBRARY_PATH
12552 shlibpath_overrides_runpath
=yes
12553 if test "$with_gnu_ld" = yes; then
12561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12562 soname_spec
='${libname}${release}${shared_ext}$major'
12563 shlibpath_var
=LD_LIBRARY_PATH
12564 case $host_vendor in
12566 shlibpath_overrides_runpath
=no
12568 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12569 runpath_var
=LD_RUN_PATH
12577 shlibpath_overrides_runpath
=no
12578 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12584 if test -d /usr
/nec
;then
12586 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12587 soname_spec
='$libname${shared_ext}.$major'
12588 shlibpath_var
=LD_LIBRARY_PATH
12592 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12593 version_type
=freebsd-elf
12596 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12597 soname_spec
='${libname}${release}${shared_ext}$major'
12598 shlibpath_var
=LD_LIBRARY_PATH
12599 hardcode_into_libs
=yes
12600 if test "$with_gnu_ld" = yes; then
12601 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12602 shlibpath_overrides_runpath
=no
12604 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12605 shlibpath_overrides_runpath
=yes
12608 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12612 sys_lib_dlsearch_path_spec
='/usr/lib'
12617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12618 soname_spec
='${libname}${release}${shared_ext}$major'
12619 shlibpath_var
=LD_LIBRARY_PATH
12626 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12627 echo "${ECHO_T}$dynamic_linker" >&6; }
12628 test "$dynamic_linker" = no
&& can_build_shared
=no
12630 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
12636 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12637 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
12643 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
12645 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12646 if test "$GCC" = yes; then
12647 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12650 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12651 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12653 if test -n "$hardcode_libdir_flag_spec" || \
12654 test -n "$runpath_var" || \
12655 test "X$hardcode_automatic" = "Xyes" ; then
12657 # We can hardcode non-existant directories.
12658 if test "$hardcode_direct" != no
&&
12659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12660 # have to relink, otherwise we might link with an installed library
12661 # when we should be linking with a yet-to-be-installed one
12662 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12663 test "$hardcode_minus_L" != no
; then
12664 # Linking always hardcodes the temporary library directory.
12665 hardcode_action
=relink
12667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12668 hardcode_action
=immediate
12671 # We cannot hardcode anything, or else we can only hardcode existing
12673 hardcode_action
=unsupported
12675 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12676 echo "${ECHO_T}$hardcode_action" >&6; }
12678 if test "$hardcode_action" = relink
; then
12679 # Fast installation is not supported
12680 enable_fast_install
=no
12681 elif test "$shlibpath_overrides_runpath" = yes ||
12682 test "$enable_shared" = no
; then
12683 # Fast installation is not necessary
12684 enable_fast_install
=needless
12689 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12690 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12691 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
12692 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12693 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12694 { echo "$as_me:$LINENO: result: yes" >&5
12695 echo "${ECHO_T}yes" >&6; }
12697 # FIXME - insert some real tests, host_os isn't really good enough
12700 if test -n "$STRIP" ; then
12701 striplib
="$STRIP -x"
12702 old_striplib
="$STRIP -S"
12703 { echo "$as_me:$LINENO: result: yes" >&5
12704 echo "${ECHO_T}yes" >&6; }
12706 { echo "$as_me:$LINENO: result: no" >&5
12707 echo "${ECHO_T}no" >&6; }
12711 { echo "$as_me:$LINENO: result: no" >&5
12712 echo "${ECHO_T}no" >&6; }
12717 if test "x$enable_dlopen" != xyes
; then
12718 enable_dlopen
=unknown
12719 enable_dlopen_self
=unknown
12720 enable_dlopen_self_static
=unknown
12727 lt_cv_dlopen
="load_add_on"
12729 lt_cv_dlopen_self
=yes
12733 lt_cv_dlopen
="LoadLibrary"
12738 lt_cv_dlopen
="dlopen"
12743 # if libdl is installed we need to link against it
12744 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12745 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12746 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 ac_check_lib_save_LIBS
=$LIBS
12751 cat >conftest.
$ac_ext <<_ACEOF
12754 cat confdefs.h
>>conftest.
$ac_ext
12755 cat >>conftest.
$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12773 rm -f conftest.
$ac_objext conftest
$ac_exeext
12774 if { (ac_try
="$ac_link"
12775 case "(($ac_try" in
12776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_link") 2>conftest.er1
12782 grep -v '^ *+' conftest.er1 >conftest.err
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest$ac_exeext &&
12790 $as_test_x conftest$ac_exeext; then
12791 ac_cv_lib_dl_dlopen=yes
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 ac_cv_lib_dl_dlopen=no
12799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12800 conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12803 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12804 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12805 if test $ac_cv_lib_dl_dlopen = yes; then
12806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12809 lt_cv_dlopen="dyld"
12811 lt_cv_dlopen_self=yes
12818 { echo "$as_me:$LINENO: checking for shl_load" >&5
12819 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12820 if test "${ac_cv_func_shl_load+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12831 #define shl_load innocuous_shl_load
12833 /* System header to define __stub macros and hopefully few prototypes,
12834 which can conflict with char shl_load (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
12839 # include <limits.h>
12841 # include <assert.h>
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12853 /* The GNU C library defines this for functions which it implements
12854 to always fail with ENOSYS. Some functions are actually named
12855 something starting with __ and the normal name is an alias. */
12856 #if defined __stub_shl_load || defined __stub___shl_load
12863 return shl_load ();
12868 rm -f conftest.$ac_objext conftest$ac_exeext
12869 if { (ac_try="$ac_link"
12870 case "(($ac_try" in
12871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12872 *) ac_try_echo
=$ac_try;;
12874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12875 (eval "$ac_link") 2>conftest.er1
12877 grep -v '^ *+' conftest.er1
>conftest.err
12879 cat conftest.err
>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } && {
12882 test -z "$ac_c_werror_flag" ||
12883 test ! -s conftest.err
12884 } && test -s conftest
$ac_exeext &&
12885 $as_test_x conftest
$ac_exeext; then
12886 ac_cv_func_shl_load
=yes
12888 echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.
$ac_ext >&5
12891 ac_cv_func_shl_load
=no
12894 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12895 conftest
$ac_exeext conftest.
$ac_ext
12897 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12898 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12899 if test $ac_cv_func_shl_load = yes; then
12900 lt_cv_dlopen
="shl_load"
12902 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12903 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12904 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 ac_check_lib_save_LIBS
=$LIBS
12909 cat >conftest.
$ac_ext <<_ACEOF
12912 cat confdefs.h
>>conftest.
$ac_ext
12913 cat >>conftest.
$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12926 return shl_load ();
12931 rm -f conftest.
$ac_objext conftest
$ac_exeext
12932 if { (ac_try
="$ac_link"
12933 case "(($ac_try" in
12934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12935 *) ac_try_echo=$ac_try;;
12937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12938 (eval "$ac_link") 2>conftest.er1
12940 grep -v '^ *+' conftest.er1 >conftest.err
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } && {
12945 test -z "$ac_c_werror_flag" ||
12946 test ! -s conftest.err
12947 } && test -s conftest$ac_exeext &&
12948 $as_test_x conftest$ac_exeext; then
12949 ac_cv_lib_dld_shl_load=yes
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12954 ac_cv_lib_dld_shl_load=no
12957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12958 conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12961 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12962 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12963 if test $ac_cv_lib_dld_shl_load = yes; then
12964 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12966 { echo "$as_me:$LINENO: checking for dlopen" >&5
12967 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12968 if test "${ac_cv_func_dlopen+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 cat >conftest.$ac_ext <<_ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12977 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12979 #define dlopen innocuous_dlopen
12981 /* System header to define __stub macros and hopefully few prototypes,
12982 which can conflict with char dlopen (); below.
12983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12984 <limits.h> exists even on freestanding compilers. */
12987 # include <limits.h>
12989 # include <assert.h>
12994 /* Override any GCC internal prototype to avoid an error.
12995 Use char because int might match the return type of a GCC
12996 builtin and then its argument prototype would still apply. */
13001 /* The GNU C library defines this for functions which it implements
13002 to always fail with ENOSYS. Some functions are actually named
13003 something starting with __ and the normal name is an alias. */
13004 #if defined __stub_dlopen || defined __stub___dlopen
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13020 *) ac_try_echo
=$ac_try;;
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_link") 2>conftest.er1
13025 grep -v '^ *+' conftest.er1
>conftest.err
13027 cat conftest.err
>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } && {
13030 test -z "$ac_c_werror_flag" ||
13031 test ! -s conftest.err
13032 } && test -s conftest
$ac_exeext &&
13033 $as_test_x conftest
$ac_exeext; then
13034 ac_cv_func_dlopen
=yes
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.
$ac_ext >&5
13039 ac_cv_func_dlopen
=no
13042 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13043 conftest
$ac_exeext conftest.
$ac_ext
13045 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13046 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13047 if test $ac_cv_func_dlopen = yes; then
13048 lt_cv_dlopen
="dlopen"
13050 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13051 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13052 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 ac_check_lib_save_LIBS
=$LIBS
13057 cat >conftest.
$ac_ext <<_ACEOF
13060 cat confdefs.h
>>conftest.
$ac_ext
13061 cat >>conftest.
$ac_ext <<_ACEOF
13062 /* end confdefs.h. */
13064 /* Override any GCC internal prototype to avoid an error.
13065 Use char because int might match the return type of a GCC
13066 builtin and then its argument prototype would still apply. */
13079 rm -f conftest.
$ac_objext conftest
$ac_exeext
13080 if { (ac_try
="$ac_link"
13081 case "(($ac_try" in
13082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_link") 2>conftest.er1
13088 grep -v '^ *+' conftest.er1 >conftest.err
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } && {
13093 test -z "$ac_c_werror_flag" ||
13094 test ! -s conftest.err
13095 } && test -s conftest$ac_exeext &&
13096 $as_test_x conftest$ac_exeext; then
13097 ac_cv_lib_dl_dlopen=yes
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13102 ac_cv_lib_dl_dlopen=no
13105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13106 conftest$ac_exeext conftest.$ac_ext
13107 LIBS=$ac_check_lib_save_LIBS
13109 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13110 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13111 if test $ac_cv_lib_dl_dlopen = yes; then
13112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13114 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13115 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13116 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 ac_check_lib_save_LIBS=$LIBS
13120 LIBS="-lsvld $LIBS"
13121 cat >conftest.$ac_ext <<_ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13128 /* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13143 rm -f conftest.$ac_objext conftest$ac_exeext
13144 if { (ac_try="$ac_link"
13145 case "(($ac_try" in
13146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13147 *) ac_try_echo
=$ac_try;;
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_link") 2>conftest.er1
13152 grep -v '^ *+' conftest.er1
>conftest.err
13154 cat conftest.err
>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest
$ac_exeext &&
13160 $as_test_x conftest
$ac_exeext; then
13161 ac_cv_lib_svld_dlopen
=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.
$ac_ext >&5
13166 ac_cv_lib_svld_dlopen
=no
13169 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13170 conftest
$ac_exeext conftest.
$ac_ext
13171 LIBS
=$ac_check_lib_save_LIBS
13173 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13174 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13175 if test $ac_cv_lib_svld_dlopen = yes; then
13176 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
13178 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13179 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13180 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 ac_check_lib_save_LIBS
=$LIBS
13185 cat >conftest.
$ac_ext <<_ACEOF
13188 cat confdefs.h
>>conftest.
$ac_ext
13189 cat >>conftest.
$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13202 return dld_link ();
13207 rm -f conftest.
$ac_objext conftest
$ac_exeext
13208 if { (ac_try
="$ac_link"
13209 case "(($ac_try" in
13210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>conftest.er1
13216 grep -v '^ *+' conftest.er1 >conftest.err
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } && {
13221 test -z "$ac_c_werror_flag" ||
13222 test ! -s conftest.err
13223 } && test -s conftest$ac_exeext &&
13224 $as_test_x conftest$ac_exeext; then
13225 ac_cv_lib_dld_dld_link=yes
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 ac_cv_lib_dld_dld_link=no
13233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13234 conftest$ac_exeext conftest.$ac_ext
13235 LIBS=$ac_check_lib_save_LIBS
13237 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13238 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13239 if test $ac_cv_lib_dld_dld_link = yes; then
13240 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13261 if test "x$lt_cv_dlopen" != xno; then
13267 case $lt_cv_dlopen in
13269 save_CPPFLAGS="$CPPFLAGS"
13270 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13272 save_LDFLAGS="$LDFLAGS"
13273 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13276 LIBS="$lt_cv_dlopen_libs $LIBS"
13278 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13279 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13280 if test "${lt_cv_dlopen_self+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 if test "$cross_compiling" = yes; then :
13284 lt_cv_dlopen_self=cross
13286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13287 lt_status=$lt_dlunknown
13288 cat > conftest.$ac_ext <<EOF
13289 #line 13289 "configure"
13290 #include "confdefs.h"
13299 # define LT_DLGLOBAL RTLD_GLOBAL
13302 # define LT_DLGLOBAL DL_GLOBAL
13304 # define LT_DLGLOBAL 0
13308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13309 find out it does not work in some platform. */
13310 #ifndef LT_DLLAZY_OR_NOW
13312 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13315 # define LT_DLLAZY_OR_NOW DL_LAZY
13318 # define LT_DLLAZY_OR_NOW RTLD_NOW
13321 # define LT_DLLAZY_OR_NOW DL_NOW
13323 # define LT_DLLAZY_OR_NOW 0
13331 extern "C" void exit (int);
13334 void fnord() { int i=42;}
13337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13338 int status = $lt_dlunknown;
13342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13344 /* dlclose (self); */
13352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13357 (./conftest; exit; ) >&5 2>/dev/null
13359 case x$lt_status in
13360 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13361 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13362 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13365 # compilation failed
13366 lt_cv_dlopen_self=no
13373 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13374 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13376 if test "x$lt_cv_dlopen_self" = xyes; then
13377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13378 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13379 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13380 if test "${lt_cv_dlopen_self_static+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 if test "$cross_compiling" = yes; then :
13384 lt_cv_dlopen_self_static=cross
13386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13387 lt_status=$lt_dlunknown
13388 cat > conftest.$ac_ext <<EOF
13389 #line 13389 "configure"
13390 #include "confdefs.h"
13399 # define LT_DLGLOBAL RTLD_GLOBAL
13402 # define LT_DLGLOBAL DL_GLOBAL
13404 # define LT_DLGLOBAL 0
13408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13409 find out it does not work in some platform. */
13410 #ifndef LT_DLLAZY_OR_NOW
13412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13415 # define LT_DLLAZY_OR_NOW DL_LAZY
13418 # define LT_DLLAZY_OR_NOW RTLD_NOW
13421 # define LT_DLLAZY_OR_NOW DL_NOW
13423 # define LT_DLLAZY_OR_NOW 0
13431 extern "C" void exit (int);
13434 void fnord() { int i=42;}
13437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13438 int status = $lt_dlunknown;
13442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13443 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13444 /* dlclose (self); */
13452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13453 (eval $ac_link) 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13457 (./conftest; exit; ) >&5 2>/dev/null
13459 case x$lt_status in
13460 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13461 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13462 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13465 # compilation failed
13466 lt_cv_dlopen_self_static=no
13473 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13474 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13477 CPPFLAGS="$save_CPPFLAGS"
13478 LDFLAGS="$save_LDFLAGS"
13483 case $lt_cv_dlopen_self in
13484 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13485 *) enable_dlopen_self=unknown ;;
13488 case $lt_cv_dlopen_self_static in
13489 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13490 *) enable_dlopen_self_static=unknown ;;
13495 # Report which library types will actually be built
13496 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13497 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13498 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13499 echo "${ECHO_T}$can_build_shared" >&6; }
13501 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13502 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13503 test "$can_build_shared" = "no" && enable_shared=no
13505 # On AIX, shared libraries and static libraries use the same namespace, and
13506 # are all built from PIC.
13509 test "$enable_shared" = yes && enable_static=no
13510 if test -n "$RANLIB"; then
13511 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13512 postinstall_cmds='$RANLIB $lib'
13517 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13518 test "$enable_shared" = yes && enable_static=no
13522 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13523 echo "${ECHO_T}$enable_shared" >&6; }
13525 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13526 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13527 # Make sure either enable_shared or enable_static is yes.
13528 test "$enable_shared" = yes || enable_static=yes
13529 { echo "$as_me:$LINENO: result: $enable_static" >&5
13530 echo "${ECHO_T}$enable_static" >&6; }
13532 # The else clause should only fire when bootstrapping the
13533 # libtool distribution, otherwise you forgot to ship ltmain.sh
13534 # with your package, and you will get complaints that there are
13535 # no rules to generate ltmain.sh.
13536 if test -f "$ltmain"; then
13537 # See if we are running on zsh, and set the options which allow our commands through
13538 # without removal of \ escapes.
13539 if test -n "${ZSH_VERSION+set}" ; then
13540 setopt NO_GLOB_SUBST
13542 # Now quote all the things that may contain metacharacters while being
13543 # careful not to overquote the AC_SUBSTed values. We take copies of the
13544 # variables and quote the copies for generation of the libtool script.
13545 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13547 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13548 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13549 deplibs_check_method reload_flag reload_cmds need_locks \
13550 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13551 lt_cv_sys_global_symbol_to_c_name_address \
13552 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13553 old_postinstall_cmds old_postuninstall_cmds \
13557 lt_prog_compiler_wl \
13558 lt_prog_compiler_pic \
13559 lt_prog_compiler_static \
13560 lt_prog_compiler_no_builtin_flag \
13561 export_dynamic_flag_spec \
13562 thread_safe_flag_spec \
13563 whole_archive_flag_spec \
13564 enable_shared_with_static_runtimes \
13566 old_archive_from_new_cmds \
13571 compiler_lib_search_path \
13572 compiler_lib_search_dirs \
13574 archive_expsym_cmds \
13576 postuninstall_cmds \
13577 old_archive_from_expsyms_cmds \
13578 allow_undefined_flag \
13579 no_undefined_flag \
13580 export_symbols_cmds \
13581 hardcode_libdir_flag_spec \
13582 hardcode_libdir_flag_spec_ld \
13583 hardcode_libdir_separator \
13584 hardcode_automatic \
13586 module_expsym_cmds \
13587 lt_cv_prog_compiler_c_o \
13590 include_expsyms; do
13593 old_archive_cmds | \
13594 old_archive_from_new_cmds | \
13596 archive_expsym_cmds | \
13598 module_expsym_cmds | \
13599 old_archive_from_expsyms_cmds | \
13600 export_symbols_cmds | \
13601 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13602 postinstall_cmds | postuninstall_cmds | \
13603 old_postinstall_cmds | old_postuninstall_cmds | \
13604 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13605 # Double-quote double-evaled strings.
13606 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
13609 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
13615 *'\$0 --fallback-echo"')
13616 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13620 cfgfile="${ofile}T"
13621 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13623 { echo "$as_me:$LINENO: creating $ofile" >&5
13624 echo "$as_me: creating $ofile" >&6;}
13626 cat <<__EOF__ >> "$cfgfile"
13629 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
13630 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13631 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13633 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
13634 # Free Software Foundation, Inc.
13636 # This file is part of GNU Libtool:
13637 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13639 # This program is free software; you can redistribute it and/or modify
13640 # it under the terms of the GNU General Public License as published by
13641 # the Free Software Foundation; either version 2 of the License, or
13642 # (at your option) any later version.
13644 # This program is distributed in the hope that it will be useful, but
13645 # WITHOUT ANY WARRANTY; without even the implied warranty of
13646 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13647 # General Public License for more details.
13649 # You should have received a copy of the GNU General Public License
13650 # along with this program; if not, write to the Free Software
13651 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13653 # As a special exception to the GNU General Public License, if you
13654 # distribute this file as part of a program that contains a
13655 # configuration script generated by Autoconf, you may include it under
13656 # the same distribution terms that you use for the rest of that program.
13658 # A sed program that does not truncate output.
13661 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13662 Xsed="$SED -e 1s/^X//"
13664 # The HP-UX ksh and POSIX shell print the target directory to stdout
13665 # if CDPATH is set.
13666 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13668 # The names of the tagged configurations supported by this script.
13671 # ### BEGIN LIBTOOL CONFIG
13673 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
13675 # Shell to use when invoking shell scripts.
13678 # Whether or not to build shared libraries.
13679 build_libtool_libs=$enable_shared
13681 # Whether or not to build static libraries.
13682 build_old_libs=$enable_static
13684 # Whether or not to add -lc for building shared libraries.
13685 build_libtool_need_lc=$archive_cmds_need_lc
13687 # Whether or not to disallow shared libs when runtime libs are static
13688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13690 # Whether or not to optimize for fast installation.
13691 fast_install=$enable_fast_install
13694 host_alias=$host_alias
13698 # The build system.
13699 build_alias=$build_alias
13703 # An echo program that does not interpret backslashes.
13708 AR_FLAGS=$lt_AR_FLAGS
13713 # LTCC compiler flags.
13714 LTCFLAGS=$lt_LTCFLAGS
13716 # A language-specific compiler.
13719 # Is the compiler the GNU C compiler?
13725 # The linker used to build libraries.
13728 # Whether we need hard or soft links.
13731 # A BSD-compatible nm program.
13734 # A symbol stripping program
13737 # Used to examine libraries when file_magic_cmd begins "file"
13738 MAGIC_CMD=$MAGIC_CMD
13740 # Used on cygwin: DLL creation program.
13743 # Used on cygwin: object dumper.
13746 # Used on cygwin: assembler.
13749 # The name of the directory that contains temporary libtool files.
13752 # How to create reloadable object files.
13753 reload_flag=$lt_reload_flag
13754 reload_cmds=$lt_reload_cmds
13756 # How to pass a linker flag through the compiler.
13757 wl=$lt_lt_prog_compiler_wl
13759 # Object file suffix (normally "o").
13760 objext="$ac_objext"
13762 # Old archive suffix (normally "a").
13765 # Shared library suffix (normally ".so").
13766 shrext_cmds='$shrext_cmds'
13768 # Executable file suffix (normally "").
13771 # Additional compiler flags for building library objects.
13772 pic_flag=$lt_lt_prog_compiler_pic
13775 # What is the maximum length of a command?
13776 max_cmd_len=$lt_cv_sys_max_cmd_len
13778 # Does compiler simultaneously support -c and -o options?
13779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13781 # Must we lock files when doing compilation?
13782 need_locks=$lt_need_locks
13784 # Do we need the lib prefix for modules?
13785 need_lib_prefix=$need_lib_prefix
13787 # Do we need a version for libraries?
13788 need_version=$need_version
13790 # Whether dlopen is supported.
13791 dlopen_support=$enable_dlopen
13793 # Whether dlopen of programs is supported.
13794 dlopen_self=$enable_dlopen_self
13796 # Whether dlopen of statically linked programs is supported.
13797 dlopen_self_static=$enable_dlopen_self_static
13799 # Compiler flag to prevent dynamic linking.
13800 link_static_flag=$lt_lt_prog_compiler_static
13802 # Compiler flag to turn off builtin functions.
13803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13805 # Compiler flag to allow reflexive dlopens.
13806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13808 # Compiler flag to generate shared objects directly from archives.
13809 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13811 # Compiler flag to generate thread-safe objects.
13812 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13814 # Library versioning type.
13815 version_type=$version_type
13817 # Format of library name prefix.
13818 libname_spec=$lt_libname_spec
13820 # List of archive names. First name is the real one, the rest are links.
13821 # The last name is the one that the linker finds with -lNAME.
13822 library_names_spec=$lt_library_names_spec
13824 # The coded name of the library, if different from the real name.
13825 soname_spec=$lt_soname_spec
13827 # Commands used to build and install an old-style archive.
13829 old_archive_cmds=$lt_old_archive_cmds
13830 old_postinstall_cmds=$lt_old_postinstall_cmds
13831 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13833 # Create an old-style archive from a shared archive.
13834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13836 # Create a temporary old-style archive to link instead of a shared archive.
13837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13839 # Commands used to build and install a shared archive.
13840 archive_cmds=$lt_archive_cmds
13841 archive_expsym_cmds=$lt_archive_expsym_cmds
13842 postinstall_cmds=$lt_postinstall_cmds
13843 postuninstall_cmds=$lt_postuninstall_cmds
13845 # Commands used to build a loadable module (assumed same as above if empty)
13846 module_cmds=$lt_module_cmds
13847 module_expsym_cmds=$lt_module_expsym_cmds
13849 # Commands to strip libraries.
13850 old_striplib=$lt_old_striplib
13851 striplib=$lt_striplib
13853 # Dependencies to place before the objects being linked to create a
13855 predep_objects=$lt_predep_objects
13857 # Dependencies to place after the objects being linked to create a
13859 postdep_objects=$lt_postdep_objects
13861 # Dependencies to place before the objects being linked to create a
13863 predeps=$lt_predeps
13865 # Dependencies to place after the objects being linked to create a
13867 postdeps=$lt_postdeps
13869 # The directories searched by this compiler when creating a shared
13871 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
13873 # The library search path used internally by the compiler when linking
13874 # a shared library.
13875 compiler_lib_search_path=$lt_compiler_lib_search_path
13877 # Method to check whether dependent libraries are shared objects.
13878 deplibs_check_method=$lt_deplibs_check_method
13880 # Command to use when deplibs_check_method == file_magic.
13881 file_magic_cmd=$lt_file_magic_cmd
13883 # Flag that allows shared libraries with undefined symbols to be built.
13884 allow_undefined_flag=$lt_allow_undefined_flag
13886 # Flag that forces no undefined symbols.
13887 no_undefined_flag=$lt_no_undefined_flag
13889 # Commands used to finish a libtool library installation in a directory.
13890 finish_cmds=$lt_finish_cmds
13892 # Same as above, but a single script fragment to be evaled but not shown.
13893 finish_eval=$lt_finish_eval
13895 # Take the output of nm and produce a listing of raw symbols and C names.
13896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13898 # Transform the output of nm in a proper C declaration
13899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13901 # Transform the output of nm in a C name address pair
13902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13904 # This is the shared library runtime path variable.
13905 runpath_var=$runpath_var
13907 # This is the shared library path variable.
13908 shlibpath_var=$shlibpath_var
13910 # Is shlibpath searched before the hard-coded library search path?
13911 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13913 # How to hardcode a shared library path into an executable.
13914 hardcode_action=$hardcode_action
13916 # Whether we should hardcode library paths into libraries.
13917 hardcode_into_libs=$hardcode_into_libs
13919 # Flag to hardcode \$libdir into a binary during linking.
13920 # This must work even if \$libdir does not exist.
13921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13923 # If ld is used when linking, flag to hardcode \$libdir into
13924 # a binary during linking. This must work even if \$libdir does
13926 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13928 # Whether we need a single -rpath flag with a separated argument.
13929 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13931 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13932 # resulting binary.
13933 hardcode_direct=$hardcode_direct
13935 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13936 # resulting binary.
13937 hardcode_minus_L=$hardcode_minus_L
13939 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13940 # the resulting binary.
13941 hardcode_shlibpath_var=$hardcode_shlibpath_var
13943 # Set to yes if building a shared library automatically hardcodes DIR into the library
13944 # and all subsequent libraries and executables linked against it.
13945 hardcode_automatic=$hardcode_automatic
13947 # Variables whose values should be saved in libtool wrapper scripts and
13948 # restored at relink time.
13949 variables_saved_for_relink="$variables_saved_for_relink"
13951 # Whether libtool must link a program against all its dependency libraries.
13952 link_all_deplibs=$link_all_deplibs
13954 # Compile-time system search path for libraries
13955 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13957 # Run-time system search path for libraries
13958 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13960 # Fix the shell variable \$srcfile for the compiler.
13961 fix_srcfile_path=$lt_fix_srcfile_path
13963 # Set to yes if exported symbols are required.
13964 always_export_symbols=$always_export_symbols
13966 # The commands to list exported symbols.
13967 export_symbols_cmds=$lt_export_symbols_cmds
13969 # The commands to extract the exported symbol list from a shared archive.
13970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13972 # Symbols that should not be listed in the preloaded symbols.
13973 exclude_expsyms=$lt_exclude_expsyms
13975 # Symbols that must always be exported.
13976 include_expsyms=$lt_include_expsyms
13978 # ### END LIBTOOL CONFIG
13985 cat <<\EOF >> "$cfgfile"
13987 # AIX sometimes has problems with the GCC collect2 program. For some
13988 # reason, if we set the COLLECT_NAMES environment variable, the problems
13989 # vanish in a puff of smoke.
13990 if test "X${COLLECT_NAMES+set}" != Xset; then
13992 export COLLECT_NAMES
13998 # We use sed instead of cat because bash on DJGPP gets confused if
13999 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14000 # text mode, it properly converts lines to CR/LF. This bash problem
14001 # is reportedly fixed, but why not run on old versions too?
14002 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14004 mv -f "$cfgfile" "$ofile" || \
14005 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14009 # If there is no Makefile yet, we rely on a make rule to execute
14010 # `config.status
--recheck' to rerun these tests and create the
14011 # libtool script then.
14012 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
14013 if test -f "$ltmain_in"; then
14014 test -f Makefile && make "$ltmain"
14020 ac_cpp='$CPP $CPPFLAGS'
14021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
14022 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
14023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14028 # Check whether --with-tags was given.
14029 if test "${with_tags+set}" = set; then
14030 withval=$with_tags; tagnames="$withval"
14034 if test -f "$ltmain" && test -n "$tagnames"; then
14035 if test ! -f "${ofile}"; then
14036 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
14037 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
14040 if test -z "$LTCC"; then
14041 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
14042 if test -z "$LTCC"; then
14043 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14044 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
14046 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
14047 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
14050 if test -z "$LTCFLAGS"; then
14051 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
14054 # Extract list of available tagged configurations in $ofile.
14055 # Note that this assumes the entire list is on one line.
14056 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14059 for tagname in $tagnames; do
14061 # Check whether tagname contains only valid characters
14062 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14064 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14065 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14066 { (exit 1); exit 1; }; }
14070 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14072 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14073 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14074 { (exit 1); exit 1; }; }
14077 # Update the list of available tags.
14078 if test -n "$tagname"; then
14079 echo appending configuration tag \"$tagname\" to $ofile
14083 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14084 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
14085 (test "X$CXX" != "Xg++"))) ; then
14087 ac_cpp='$CXXCPP $CPPFLAGS'
14088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14095 archive_cmds_need_lc_CXX=no
14096 allow_undefined_flag_CXX=
14097 always_export_symbols_CXX=no
14098 archive_expsym_cmds_CXX=
14099 export_dynamic_flag_spec_CXX=
14100 hardcode_direct_CXX=no
14101 hardcode_libdir_flag_spec_CXX=
14102 hardcode_libdir_flag_spec_ld_CXX=
14103 hardcode_libdir_separator_CXX=
14104 hardcode_minus_L_CXX=no
14105 hardcode_shlibpath_var_CXX=unsupported
14106 hardcode_automatic_CXX=no
14108 module_expsym_cmds_CXX=
14109 link_all_deplibs_CXX=unknown
14110 old_archive_cmds_CXX=$old_archive_cmds
14111 no_undefined_flag_CXX=
14112 whole_archive_flag_spec_CXX=
14113 enable_shared_with_static_runtimes_CXX=no
14115 # Dependencies to place before and after the object being linked:
14116 predep_objects_CXX=
14117 postdep_objects_CXX=
14120 compiler_lib_search_path_CXX=
14121 compiler_lib_search_dirs_CXX=
14123 # Source file extension for C++ test sources.
14126 # Object file extension for compiled C++ test sources.
14130 # Code to be used in simple compile tests
14131 lt_simple_compile_test_code="int some_variable = 0;"
14133 # Code to be used in simple link tests
14134 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14136 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14138 # If no C compiler was specified, use CC.
14141 # If no C compiler flags were specified, use CFLAGS.
14142 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14144 # Allow CC to be a program name with arguments.
14148 # save warnings/boilerplate of simple test code
14149 ac_outfile=conftest.$ac_objext
14150 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14152 _lt_compiler_boilerplate=`cat conftest.err
`
14155 ac_outfile=conftest.$ac_objext
14156 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14158 _lt_linker_boilerplate=`cat conftest.err
`
14162 # Allow CC to be a program name with arguments.
14167 lt_save_with_gnu_ld=$with_gnu_ld
14168 lt_save_path_LD=$lt_cv_path_LD
14169 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14170 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14172 $as_unset lt_cv_prog_gnu_ld
14174 if test -n "${lt_cv_path_LDCXX+set}"; then
14175 lt_cv_path_LD=$lt_cv_path_LDCXX
14177 $as_unset lt_cv_path_LD
14179 test -z "${LDCXX+set}" || LD=$LDCXX
14183 for cc_temp in $compiler""; do
14185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14191 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14194 # We don't want -fno-exception wen compiling C++ code, so set the
14195 # no_builtin_flag separately
14196 if test "$GXX" = yes; then
14197 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14199 lt_prog_compiler_no_builtin_flag_CXX=
14202 if test "$GXX" = yes; then
14203 # Set up default GNU C++ configuration
14206 # Check whether --with-gnu-ld was given.
14207 if test "${with_gnu_ld+set}" = set; then
14208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14214 if test "$GCC" = yes; then
14215 # Check if gcc -print-prog-name=ld gives a path.
14216 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14217 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
14220 # gcc leaves a trailing carriage return which upsets mingw
14221 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
14223 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
14226 # Accept absolute paths.
14228 re_direlt='/[^/][^/]*/\.\./'
14229 # Canonicalize the pathname of ld
14230 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
14231 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14232 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
14234 test -z "$LD" && LD="$ac_prog"
14237 # If it fails, then pretend we aren't using GCC.
14241 # If it is relative, then search for the first ld in PATH.
14242 with_gnu_ld=unknown
14245 elif test "$with_gnu_ld" = yes; then
14246 { echo "$as_me:$LINENO: checking for GNU ld" >&5
14247 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
14249 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14250 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
14252 if test "${lt_cv_path_LD+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 if test -z "$LD"; then
14256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14257 for ac_dir in $PATH; do
14259 test -z "$ac_dir" && ac_dir=.
14260 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14261 lt_cv_path_LD="$ac_dir/$ac_prog"
14262 # Check to see if the program is GNU ld. I'd rather use --version,
14263 # but apparently some variants of GNU ld only accept -v.
14264 # Break only if it was the GNU/non-GNU ld that we prefer.
14265 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
14266 *GNU* | *'with BFD'*)
14267 test "$with_gnu_ld" != no && break
14270 test "$with_gnu_ld" != yes && break
14277 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14281 LD="$lt_cv_path_LD"
14282 if test -n "$LD"; then
14283 { echo "$as_me:$LINENO: result: $LD" >&5
14284 echo "${ECHO_T}$LD" >&6; }
14286 { echo "$as_me:$LINENO: result: no" >&5
14287 echo "${ECHO_T}no" >&6; }
14289 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14290 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14291 { (exit 1); exit 1; }; }
14292 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14293 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
14294 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14298 case `$LD -v 2>&1 </dev
/null
` in
14299 *GNU* | *'with BFD'*)
14300 lt_cv_prog_gnu_ld=yes
14303 lt_cv_prog_gnu_ld=no
14307 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14308 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
14309 with_gnu_ld=$lt_cv_prog_gnu_ld
14313 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14314 # archiving commands below assume that GNU ld is being used.
14315 if test "$with_gnu_ld" = yes; then
14316 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14319 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14320 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14322 # If archive_cmds runs LD, not CC, wlarc should be empty
14323 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14324 # investigate it a little bit more. (MM)
14327 # ancient GNU ld didn't support --whole-archive et. al.
14328 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
14329 grep 'no-whole-archive' > /dev/null; then
14330 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14332 whole_archive_flag_spec_CXX=
14338 # A generic and very simple default shared library creation
14339 # command for GNU C++ for the case where it uses the native
14340 # linker, instead of GNU ld. If possible, this setting should
14341 # overridden to take advantage of the native linker features on
14342 # the platform it is being used on.
14343 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14346 # Commands to make compiler produce verbose output that lists
14347 # what "hidden" libraries, object files and flags are used when
14348 # linking a shared library.
14349 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14357 # PORTME: fill in a description of your system's C++ link characteristics
14358 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14363 # FIXME: insert proper C++ library support
14367 if test "$host_cpu" = ia64; then
14368 # On IA64, the linker does run time linking by default, so we don't
14369 # have to do anything special.
14370 aix_use_runtimelinking=no
14371 exp_sym_flag='-Bexport'
14374 aix_use_runtimelinking=no
14376 # Test if we are trying to use run time linking or normal
14377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14378 # need to do runtime linking.
14379 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14380 for ld_flag in $LDFLAGS; do
14383 aix_use_runtimelinking=yes
14391 exp_sym_flag='-bexport'
14392 no_entry_flag='-bnoentry'
14395 # When large executables or shared objects are built, AIX ld can
14396 # have problems creating the table of contents. If linking a library
14397 # or program results in "error TOC overflow" add -mminimal-toc to
14398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14401 archive_cmds_CXX=''
14402 hardcode_direct_CXX=yes
14403 hardcode_libdir_separator_CXX=':'
14404 link_all_deplibs_CXX=yes
14406 if test "$GXX" = yes; then
14407 case $host_os in aix4.[012]|aix4.[012].*)
14408 # We only want to do this on AIX 4.2 and lower, the check
14409 # below for broken collect2 doesn't work under 4.3+
14410 collect2name=`${CC} -print-prog-name=collect2
`
14411 if test -f "$collect2name" && \
14412 strings "$collect2name" | grep resolve_lib_name >/dev/null
14414 # We have reworked collect2
14417 # We have old collect2
14418 hardcode_direct_CXX=unsupported
14419 # It fails to find uninstalled libraries when the uninstalled
14420 # path is not listed in the libpath. Setting hardcode_minus_L
14421 # to unsupported forces relinking
14422 hardcode_minus_L_CXX=yes
14423 hardcode_libdir_flag_spec_CXX='-L$libdir'
14424 hardcode_libdir_separator_CXX=
14428 shared_flag='-shared'
14429 if test "$aix_use_runtimelinking" = yes; then
14430 shared_flag="$shared_flag "'${wl}-G'
14434 if test "$host_cpu" = ia64; then
14435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14436 # chokes on -Wl,-G. The following line is correct:
14439 if test "$aix_use_runtimelinking" = yes; then
14440 shared_flag='${wl}-G'
14442 shared_flag='${wl}-bM:SRE'
14447 # It seems that -bexpall does not export symbols beginning with
14448 # underscore (_), so it is better to generate a list of symbols to export.
14449 always_export_symbols_CXX=yes
14450 if test "$aix_use_runtimelinking" = yes; then
14451 # Warning - without using the other runtime loading flags (-brtl),
14452 # -berok will link without error, but may produce a broken library.
14453 allow_undefined_flag_CXX='-berok'
14454 # Determine the default libpath from the value encoded in an empty executable.
14455 cat >conftest.$ac_ext <<_ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14470 rm -f conftest.$ac_objext conftest$ac_exeext
14471 if { (ac_try="$ac_link"
14472 case "(($ac_try" in
14473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14474 *) ac_try_echo
=$ac_try;;
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_link") 2>conftest.er1
14479 grep -v '^ *+' conftest.er1
>conftest.err
14481 cat conftest.err
>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } && {
14484 test -z "$ac_cxx_werror_flag" ||
14485 test ! -s conftest.err
14486 } && test -s conftest
$ac_exeext &&
14487 $as_test_x conftest
$ac_exeext; then
14489 lt_aix_libpath_sed
='
14490 /Import File Strings/,/^$/ {
14496 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14497 # Check for a 64-bit object if we didn't find anything.
14498 if test -z "$aix_libpath"; then
14499 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.
$ac_ext >&5
14508 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14509 conftest
$ac_exeext conftest.
$ac_ext
14510 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14512 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
14514 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14516 if test "$host_cpu" = ia64
; then
14517 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
14518 allow_undefined_flag_CXX
="-z nodefs"
14519 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"
14521 # Determine the default libpath from the value encoded in an empty executable.
14522 cat >conftest.
$ac_ext <<_ACEOF
14525 cat confdefs.h
>>conftest.
$ac_ext
14526 cat >>conftest.
$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14537 rm -f conftest.
$ac_objext conftest
$ac_exeext
14538 if { (ac_try
="$ac_link"
14539 case "(($ac_try" in
14540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_link") 2>conftest.er1
14546 grep -v '^ *+' conftest.er1 >conftest.err
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } && {
14551 test -z "$ac_cxx_werror_flag" ||
14552 test ! -s conftest.err
14553 } && test -s conftest$ac_exeext &&
14554 $as_test_x conftest$ac_exeext; then
14556 lt_aix_libpath_sed='
14557 /Import File Strings/,/^$/ {
14563 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14564 # Check for a 64-bit object if we didn't find anything.
14565 if test -z "$aix_libpath"; then
14566 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14576 conftest$ac_exeext conftest.$ac_ext
14577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14579 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14580 # Warning - without using the other run time loading flags,
14581 # -berok will link without error, but may produce a broken library.
14582 no_undefined_flag_CXX=' ${wl}-bernotok'
14583 allow_undefined_flag_CXX=' ${wl}-berok'
14584 # Exported symbols can be pulled into shared objects from archives
14585 whole_archive_flag_spec_CXX='$convenience'
14586 archive_cmds_need_lc_CXX=yes
14587 # This is similar to how AIX traditionally builds its shared libraries.
14588 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'
14594 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14595 allow_undefined_flag_CXX=unsupported
14596 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14597 # support --undefined. This deserves some investigation. FIXME
14598 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14605 case $cc_basename in
14607 # FIXME: insert proper C++ library support
14613 cygwin* | mingw* | pw32*)
14614 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14615 # as there is no search path for DLLs.
14616 hardcode_libdir_flag_spec_CXX='-L$libdir'
14617 allow_undefined_flag_CXX=unsupported
14618 always_export_symbols_CXX=no
14619 enable_shared_with_static_runtimes_CXX=yes
14621 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14622 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'
14623 # If the export-symbols file already is a .def file (1st line
14624 # is EXPORTS), use it as is; otherwise, prepend...
14625 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
14626 cp $export_symbols $output_objdir/$soname.def;
14628 echo EXPORTS > $output_objdir/$soname.def;
14629 cat $export_symbols >> $output_objdir/$soname.def;
14631 $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'
14636 darwin* | rhapsody*)
14637 archive_cmds_need_lc_CXX=no
14638 hardcode_direct_CXX=no
14639 hardcode_automatic_CXX=yes
14640 hardcode_shlibpath_var_CXX=unsupported
14641 whole_archive_flag_spec_CXX=''
14642 link_all_deplibs_CXX=yes
14643 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14644 if test "$GXX" = yes ; then
14645 output_verbose_link_cmd='echo'
14646 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}"
14647 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14648 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}"
14649 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}"
14650 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14651 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}"
14652 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}"
14655 case $cc_basename in
14657 output_verbose_link_cmd='echo'
14658 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14659 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14661 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14662 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14672 case $cc_basename in
14674 # FIXME: insert proper C++ library support
14678 # Green Hills C++ Compiler
14679 # FIXME: insert proper C++ library support
14683 # FIXME: insert proper C++ library support
14689 # C++ shared libraries reported to be fairly broken before switch to ELF
14693 archive_cmds_need_lc_CXX=no
14695 freebsd* | dragonfly*)
14696 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14703 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14704 hardcode_libdir_separator_CXX=:
14705 export_dynamic_flag_spec_CXX='${wl}-E'
14706 hardcode_direct_CXX=yes
14707 hardcode_minus_L_CXX=yes # Not in the search PATH,
14708 # but as the default
14709 # location of the library.
14711 case $cc_basename in
14713 # FIXME: insert proper C++ library support
14717 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'
14718 # Commands to make compiler produce verbose output that lists
14719 # what "hidden" libraries, object files and flags are used when
14720 # linking a shared library.
14722 # There doesn't appear to be a way to prevent this compiler from
14723 # explicitly linking system object files so we need to strip them
14724 # from the output so that they don't get included in the library
14726 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; echo $list'
14729 if test "$GXX" = yes; then
14730 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
14732 # FIXME: insert proper C++ library support
14739 if test $with_gnu_ld = no; then
14740 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14741 hardcode_libdir_separator_CXX=:
14746 export_dynamic_flag_spec_CXX='${wl}-E'
14752 hardcode_direct_CXX=no
14753 hardcode_shlibpath_var_CXX=no
14756 hardcode_direct_CXX=yes
14757 hardcode_minus_L_CXX=yes # Not in the search PATH,
14758 # but as the default
14759 # location of the library.
14763 case $cc_basename in
14765 # FIXME: insert proper C++ library support
14771 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14774 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14777 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14780 # Commands to make compiler produce verbose output that lists
14781 # what "hidden" libraries, object files and flags are used when
14782 # linking a shared library.
14784 # There doesn't appear to be a way to prevent this compiler from
14785 # explicitly linking system object files so we need to strip them
14786 # from the output so that they don't get included in the library
14788 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; echo $list'
14791 if test "$GXX" = yes; then
14792 if test $with_gnu_ld = no; then
14795 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14798 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14801 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14806 # FIXME: insert proper C++ library support
14813 hardcode_direct_CXX=no
14814 hardcode_shlibpath_var_CXX=no
14815 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14816 export_dynamic_flag_spec_CXX='${wl}-E'
14817 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14818 # Instead, shared libraries are loaded at an image base (0x10000000 by
14819 # default) and relocated if they conflict, which is a slow very memory
14820 # consuming and fragmenting process. To avoid this, we pick a random,
14821 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14822 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14823 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'
14824 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'
14827 case $cc_basename in
14830 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14832 # Archives containing C++ object files must be created using
14833 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14834 # necessary to make sure instantiated templates are included
14836 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14839 if test "$GXX" = yes; then
14840 if test "$with_gnu_ld" = no; then
14841 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14843 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
14846 link_all_deplibs_CXX=yes
14849 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14850 hardcode_libdir_separator_CXX=:
14852 linux* | k*bsd*-gnu)
14853 case $cc_basename in
14855 # Kuck and Associates, Inc. (KAI) C++ Compiler
14857 # KCC will only create a shared library if the output file
14858 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14859 # to its proper name (with version) after linking.
14860 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'
14861 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'
14862 # Commands to make compiler produce verbose output that lists
14863 # what "hidden" libraries, object files and flags are used when
14864 # linking a shared library.
14866 # There doesn't appear to be a way to prevent this compiler from
14867 # explicitly linking system object files so we need to strip them
14868 # from the output so that they don't get included in the library
14870 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; echo $list'
14872 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
14873 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
14875 # Archives containing C++ object files must be created using
14876 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14877 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
14882 # version 8.0 and above of icpc choke on multiply defined symbols
14883 # if we add $predep_objects and $postdep_objects, however 7.1 and
14884 # earlier do not add the objects themselves.
14885 case `$CC -V 2>&1` in
14887 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 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'
14890 *) # Version 8.0 or newer
14893 ia64
*) tmp_idyn
=' -i_dynamic';;
14895 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896 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'
14899 archive_cmds_need_lc_CXX
=no
14900 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
14901 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
14902 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14905 # Portland Group C++ compiler
14906 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14907 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'
14909 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
14910 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
14911 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14915 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14916 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'
14918 runpath_var
=LD_RUN_PATH
14919 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
14920 hardcode_libdir_separator_CXX
=:
14922 # Commands to make compiler produce verbose output that lists
14923 # what "hidden" libraries, object files and flags are used when
14924 # linking a shared library.
14926 # There doesn't appear to be a way to prevent this compiler from
14927 # explicitly linking system object files so we need to strip them
14928 # from the output so that they don't get included in the library
14930 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
14933 case `$CC -V 2>&1 | sed 5q` in
14936 no_undefined_flag_CXX
=' -zdefs'
14937 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14938 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'
14939 hardcode_libdir_flag_spec_CXX
='-R$libdir'
14940 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14942 # Not sure whether something based on
14943 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14945 output_verbose_link_cmd
='echo'
14947 # Archives containing C++ object files must be created using
14948 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14949 # necessary to make sure instantiated templates are included
14951 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
14958 # FIXME: insert proper C++ library support
14962 # FIXME: insert proper C++ library support
14966 case $cc_basename in
14968 # FIXME: insert proper C++ library support
14972 # FIXME: insert proper C++ library support
14977 netbsd
* | netbsdelf
*-gnu)
14978 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14979 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14981 hardcode_libdir_flag_spec_CXX
='-R$libdir'
14982 hardcode_direct_CXX
=yes
14983 hardcode_shlibpath_var_CXX
=no
14985 # Workaround some broken pre-1.5 toolchains
14986 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14989 # C++ shared libraries are fairly broken
14993 if test -f /usr
/libexec
/ld.so
; then
14994 hardcode_direct_CXX
=yes
14995 hardcode_shlibpath_var_CXX
=no
14996 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14997 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
14998 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14999 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15000 export_dynamic_flag_spec_CXX
='${wl}-E'
15001 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15003 output_verbose_link_cmd
='echo'
15009 case $cc_basename in
15011 # Kuck and Associates, Inc. (KAI) C++ Compiler
15013 # KCC will only create a shared library if the output file
15014 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15015 # to its proper name (with version) after linking.
15016 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'
15018 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
15019 hardcode_libdir_separator_CXX
=:
15021 # Archives containing C++ object files must be created using
15022 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15023 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
15027 # Rational C++ 2.4.1
15028 # FIXME: insert proper C++ library support
15032 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
15033 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15035 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
15036 hardcode_libdir_separator_CXX
=:
15038 # Commands to make compiler produce verbose output that lists
15039 # what "hidden" libraries, object files and flags are used when
15040 # linking a shared library.
15042 # There doesn't appear to be a way to prevent this compiler from
15043 # explicitly linking system object files so we need to strip them
15044 # from the output so that they don't get included in the library
15046 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
15049 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
15050 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
15051 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15053 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
15054 hardcode_libdir_separator_CXX
=:
15056 # Commands to make compiler produce verbose output that lists
15057 # what "hidden" libraries, object files and flags are used when
15058 # linking a shared library.
15059 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15062 # FIXME: insert proper C++ library support
15069 case $cc_basename in
15071 # Kuck and Associates, Inc. (KAI) C++ Compiler
15073 # KCC will only create a shared library if the output file
15074 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15075 # to its proper name (with version) after linking.
15076 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'
15078 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
15079 hardcode_libdir_separator_CXX
=:
15081 # Archives containing C++ object files must be created using
15082 # the KAI C++ compiler.
15083 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
15086 # Rational C++ 2.4.1
15087 # FIXME: insert proper C++ library support
15091 allow_undefined_flag_CXX
=' -expect_unresolved \*'
15092 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15093 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15094 echo "-hidden">> $lib.exp~
15095 $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~
15098 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
15099 hardcode_libdir_separator_CXX
=:
15101 # Commands to make compiler produce verbose output that lists
15102 # what "hidden" libraries, object files and flags are used when
15103 # linking a shared library.
15105 # There doesn't appear to be a way to prevent this compiler from
15106 # explicitly linking system object files so we need to strip them
15107 # from the output so that they don't get included in the library
15109 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
15112 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
15113 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
15114 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15116 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
15117 hardcode_libdir_separator_CXX
=:
15119 # Commands to make compiler produce verbose output that lists
15120 # what "hidden" libraries, object files and flags are used when
15121 # linking a shared library.
15122 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15125 # FIXME: insert proper C++ library support
15132 # FIXME: insert proper C++ library support
15136 case $cc_basename in
15139 # FIXME: insert proper C++ library support
15144 # FIXME: insert proper C++ library support
15148 # FIXME: insert proper C++ library support
15154 case $cc_basename in
15156 # Sun C++ 4.2, 5.x and Centerline C++
15157 archive_cmds_need_lc_CXX
=yes
15158 no_undefined_flag_CXX
=' -zdefs'
15159 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15160 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15161 $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'
15163 hardcode_libdir_flag_spec_CXX
='-R$libdir'
15164 hardcode_shlibpath_var_CXX
=no
15166 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15168 # The compiler driver will combine and reorder linker options,
15169 # but understands `-z linker_flag'.
15170 # Supported since Solaris 2.6 (maybe 2.5.1?)
15171 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
15174 link_all_deplibs_CXX
=yes
15176 output_verbose_link_cmd
='echo'
15178 # Archives containing C++ object files must be created using
15179 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15180 # necessary to make sure instantiated templates are included
15182 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
15185 # Green Hills C++ Compiler
15186 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15188 # The C++ compiler must be used to create the archive.
15189 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15192 # GNU C++ compiler with Solaris linker
15193 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
15194 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
15195 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
15196 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15197 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15198 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15200 # Commands to make compiler produce verbose output that lists
15201 # what "hidden" libraries, object files and flags are used when
15202 # linking a shared library.
15203 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15205 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15207 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15208 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15209 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15211 # Commands to make compiler produce verbose output that lists
15212 # what "hidden" libraries, object files and flags are used when
15213 # linking a shared library.
15214 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15217 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
15219 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15221 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15228 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15229 no_undefined_flag_CXX
='${wl}-z,text'
15230 archive_cmds_need_lc_CXX
=no
15231 hardcode_shlibpath_var_CXX
=no
15232 runpath_var
='LD_RUN_PATH'
15234 case $cc_basename in
15236 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15237 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15241 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15245 sysv5
* | sco3.2v5
* | sco5v6
*)
15246 # Note: We can NOT use -z defs as we might desire, because we do not
15247 # link with -lc, and that would cause any symbols used from libc to
15248 # always be unresolved, which means just about no library would
15249 # ever link correctly. If we're not using GNU ld we use -z text
15250 # though, which does catch some bad symbols but isn't as heavy-handed
15252 # For security reasons, it is highly recommended that you always
15253 # use absolute paths for naming shared libraries, and exclude the
15254 # DT_RUNPATH tag from executables and libraries. But doing so
15255 # requires that you compile everything twice, which is a pain.
15256 # So that behaviour is only enabled if SCOABSPATH is set to a
15257 # non-empty value in the environment. Most likely only useful for
15258 # creating official distributions of packages.
15259 # This is a hack until libtool officially supports absolute path
15260 # names for shared libraries.
15261 no_undefined_flag_CXX
='${wl}-z,text'
15262 allow_undefined_flag_CXX
='${wl}-z,nodefs'
15263 archive_cmds_need_lc_CXX
=no
15264 hardcode_shlibpath_var_CXX
=no
15265 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15266 hardcode_libdir_separator_CXX
=':'
15267 link_all_deplibs_CXX
=yes
15268 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
15269 runpath_var
='LD_RUN_PATH'
15271 case $cc_basename in
15273 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15274 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15277 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15278 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15283 case $cc_basename in
15285 # NonStop-UX NCC 3.20
15286 # FIXME: insert proper C++ library support
15290 # FIXME: insert proper C++ library support
15296 # FIXME: insert proper C++ library support
15300 # FIXME: insert proper C++ library support
15304 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15305 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15306 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
15311 cat > conftest.
$ac_ext <<EOF
15315 Foo (void) { a = 0; }
15321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15322 (eval $ac_compile) 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; then
15326 # Parse the compiler output and extract the necessary
15327 # objects, libraries and library flags.
15329 # Sentinel used to keep track of whether or not we are before
15330 # the conftest object file.
15331 pre_test_object_deps_done
=no
15333 # The `*' in the case matches for architectures that use `case' in
15334 # $output_verbose_cmd can trigger glob expansion during the loop
15335 # eval without this substitution.
15336 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
15338 for p
in `eval $output_verbose_link_cmd`; do
15342 # Some compilers place space between "-{L,R}" and the path.
15343 # Remove the space.
15344 if test $p = "-L" \
15345 ||
test $p = "-R"; then
15352 if test "$pre_test_object_deps_done" = no
; then
15355 # Internal compiler library paths should come after those
15356 # provided the user. The postdeps already come after the
15357 # user supplied libs so there is no need to process them.
15358 if test -z "$compiler_lib_search_path_CXX"; then
15359 compiler_lib_search_path_CXX
="${prev}${p}"
15361 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
15364 # The "-l" case would never come before the object being
15365 # linked, so don't bother handling this case.
15368 if test -z "$postdeps_CXX"; then
15369 postdeps_CXX
="${prev}${p}"
15371 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
15377 # This assumes that the test object file only shows up
15378 # once in the compiler output.
15379 if test "$p" = "conftest.$objext"; then
15380 pre_test_object_deps_done
=yes
15384 if test "$pre_test_object_deps_done" = no
; then
15385 if test -z "$predep_objects_CXX"; then
15386 predep_objects_CXX
="$p"
15388 predep_objects_CXX
="$predep_objects_CXX $p"
15391 if test -z "$postdep_objects_CXX"; then
15392 postdep_objects_CXX
="$p"
15394 postdep_objects_CXX
="$postdep_objects_CXX $p"
15399 *) ;; # Ignore the rest.
15407 echo "libtool.m4: error: problem compiling CXX test program"
15410 $rm -f confest.
$objext
15412 compiler_lib_search_dirs_CXX
=
15413 if test -n "$compiler_lib_search_path_CXX"; then
15414 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15417 # PORTME: override above test on systems where it is broken
15420 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15421 # hack all around it, let's just trust "g++" to DTRT.
15422 predep_objects_CXX
=
15423 postdep_objects_CXX
=
15428 case `$CC -V 2>&1 | sed 5q` in
15432 # The more standards-conforming stlport4 library is
15433 # incompatible with the Cstd library. Avoid specifying
15434 # it if it's in CXXFLAGS. Ignore libCrun as
15435 # -library=stlport4 depends on it.
15436 case " $CXX $CXXFLAGS " in
15437 *" -library=stlport4 "*)
15438 solaris_use_stlport4
=yes
15441 if test "$solaris_use_stlport4" != yes; then
15442 postdeps_CXX
='-library=Cstd -library=Crun'
15449 case $cc_basename in
15451 # The more standards-conforming stlport4 library is
15452 # incompatible with the Cstd library. Avoid specifying
15453 # it if it's in CXXFLAGS. Ignore libCrun as
15454 # -library=stlport4 depends on it.
15455 case " $CXX $CXXFLAGS " in
15456 *" -library=stlport4 "*)
15457 solaris_use_stlport4
=yes
15461 # Adding this requires a known-good setup of shared libraries for
15462 # Sun compiler versions before 5.6, else PIC objects from an old
15463 # archive will be linked into the output, leading to subtle bugs.
15464 if test "$solaris_use_stlport4" != yes; then
15465 postdeps_CXX
='-library=Cstd -library=Crun'
15472 case " $postdeps_CXX " in
15473 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
15476 lt_prog_compiler_wl_CXX
=
15477 lt_prog_compiler_pic_CXX
=
15478 lt_prog_compiler_static_CXX
=
15480 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15481 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15483 # C++ specific cases for pic, static, wl, etc.
15484 if test "$GXX" = yes; then
15485 lt_prog_compiler_wl_CXX
='-Wl,'
15486 lt_prog_compiler_static_CXX
='-static'
15490 # All AIX code is PIC.
15491 if test "$host_cpu" = ia64
; then
15492 # AIX 5 now supports IA64 processor
15493 lt_prog_compiler_static_CXX
='-Bstatic'
15497 # FIXME: we need at least 68020 code to build shared libraries, but
15498 # adding the `-m68020' flag to GCC prevents building anything better,
15500 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
15502 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15503 # PIC is the default for these OSes.
15505 mingw
* | cygwin
* | os2
* | pw32
*)
15506 # This hack is so that the source file can tell whether it is being
15507 # built for inclusion in a dll (and should export symbols for example).
15508 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15509 # (--disable-auto-import) libraries
15510 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
15512 darwin
* | rhapsody
*)
15513 # PIC is the default on this platform
15514 # Common symbols not allowed in MH_DYLIB files
15515 lt_prog_compiler_pic_CXX
='-fno-common'
15518 # DJGPP does not support shared libraries at all
15519 lt_prog_compiler_pic_CXX
=
15522 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15523 # Instead, we relocate shared libraries at runtime.
15526 if test -d /usr
/nec
; then
15527 lt_prog_compiler_pic_CXX
=-Kconform_pic
15531 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15532 # not for PA HP-UX.
15537 lt_prog_compiler_pic_CXX
='-fPIC'
15542 lt_prog_compiler_pic_CXX
='-fPIC'
15548 # All AIX code is PIC.
15549 if test "$host_cpu" = ia64
; then
15550 # AIX 5 now supports IA64 processor
15551 lt_prog_compiler_static_CXX
='-Bstatic'
15553 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
15557 case $cc_basename in
15559 # Green Hills C++ Compiler
15560 # _LT_AC_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"
15565 # PIC is the default on this platform
15566 # Common symbols not allowed in MH_DYLIB files
15567 case $cc_basename in
15569 lt_prog_compiler_pic_CXX
='-qnocommon'
15570 lt_prog_compiler_wl_CXX
='-Wl,'
15575 case $cc_basename in
15577 lt_prog_compiler_pic_CXX
='-KPIC'
15580 # Green Hills C++ Compiler
15581 lt_prog_compiler_pic_CXX
='-pic'
15587 freebsd
* | dragonfly
*)
15588 # FreeBSD uses GNU C++
15590 hpux9
* | hpux10
* | hpux11
*)
15591 case $cc_basename in
15593 lt_prog_compiler_wl_CXX
='-Wl,'
15594 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
15595 if test "$host_cpu" != ia64
; then
15596 lt_prog_compiler_pic_CXX
='+Z'
15600 lt_prog_compiler_wl_CXX
='-Wl,'
15601 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
15607 lt_prog_compiler_pic_CXX
='+Z'
15616 # This is c89, which is MS Visual C++ (no shared libs)
15617 # Anyone wants to do a port?
15619 irix5
* | irix6
* | nonstopux
*)
15620 case $cc_basename in
15622 lt_prog_compiler_wl_CXX
='-Wl,'
15623 lt_prog_compiler_static_CXX
='-non_shared'
15624 # CC pic flag -KPIC is the default.
15630 linux
* | k
*bsd
*-gnu)
15631 case $cc_basename in
15634 lt_prog_compiler_wl_CXX
='--backend -Wl,'
15635 lt_prog_compiler_pic_CXX
='-fPIC'
15639 lt_prog_compiler_wl_CXX
='-Wl,'
15640 lt_prog_compiler_pic_CXX
='-KPIC'
15641 lt_prog_compiler_static_CXX
='-static'
15644 # Portland Group C++ compiler.
15645 lt_prog_compiler_wl_CXX
='-Wl,'
15646 lt_prog_compiler_pic_CXX
='-fpic'
15647 lt_prog_compiler_static_CXX
='-Bstatic'
15651 # Make sure the PIC flag is empty. It appears that all Alpha
15652 # Linux and Compaq Tru64 Unix objects are PIC.
15653 lt_prog_compiler_pic_CXX
=
15654 lt_prog_compiler_static_CXX
='-non_shared'
15657 case `$CC -V 2>&1 | sed 5q` in
15660 lt_prog_compiler_pic_CXX
='-KPIC'
15661 lt_prog_compiler_static_CXX
='-Bstatic'
15662 lt_prog_compiler_wl_CXX
='-Qoption ld '
15673 case $cc_basename in
15675 lt_prog_compiler_pic_CXX
='-W c,exportall'
15681 netbsd
* | netbsdelf
*-gnu)
15683 osf3
* | osf4
* | osf5
*)
15684 case $cc_basename in
15686 lt_prog_compiler_wl_CXX
='--backend -Wl,'
15689 # Rational C++ 2.4.1
15690 lt_prog_compiler_pic_CXX
='-pic'
15693 # Digital/Compaq C++
15694 lt_prog_compiler_wl_CXX
='-Wl,'
15695 # Make sure the PIC flag is empty. It appears that all Alpha
15696 # Linux and Compaq Tru64 Unix objects are PIC.
15697 lt_prog_compiler_pic_CXX
=
15698 lt_prog_compiler_static_CXX
='-non_shared'
15707 case $cc_basename in
15709 # Sun C++ 4.2, 5.x and Centerline C++
15710 lt_prog_compiler_pic_CXX
='-KPIC'
15711 lt_prog_compiler_static_CXX
='-Bstatic'
15712 lt_prog_compiler_wl_CXX
='-Qoption ld '
15715 # Green Hills C++ Compiler
15716 lt_prog_compiler_pic_CXX
='-PIC'
15723 case $cc_basename in
15726 lt_prog_compiler_pic_CXX
='-pic'
15727 lt_prog_compiler_static_CXX
='-Bstatic'
15731 lt_prog_compiler_pic_CXX
='-pic'
15738 case $cc_basename in
15740 # NonStop-UX NCC 3.20
15741 lt_prog_compiler_pic_CXX
='-KPIC'
15747 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
15748 case $cc_basename in
15750 lt_prog_compiler_wl_CXX
='-Wl,'
15751 lt_prog_compiler_pic_CXX
='-KPIC'
15752 lt_prog_compiler_static_CXX
='-Bstatic'
15759 lt_prog_compiler_can_build_shared_CXX
=no
15764 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15765 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
15768 # Check to make sure the PIC flag actually works.
15770 if test -n "$lt_prog_compiler_pic_CXX"; then
15772 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15773 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
15774 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 lt_cv_prog_compiler_pic_works_CXX
=no
15778 ac_outfile
=conftest.
$ac_objext
15779 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15780 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
15781 # Insert the option either (1) after the last *FLAGS variable, or
15782 # (2) before a word containing "conftest.", or (3) at the end.
15783 # Note that $ac_compile itself does not contain backslashes and begins
15784 # with a dollar sign (not a hyphen), so the echo should work correctly.
15785 # The option is referenced via a variable to avoid confusing sed.
15786 lt_compile
=`echo "$ac_compile" | $SED \
15787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15789 -e 's:$: $lt_compiler_flag:'`
15790 (eval echo "\"\$as_me:15790: $lt_compile\"" >&5)
15791 (eval "$lt_compile" 2>conftest.err
)
15793 cat conftest.err
>&5
15794 echo "$as_me:15794: \$? = $ac_status" >&5
15795 if (exit $ac_status) && test -s "$ac_outfile"; then
15796 # The compiler can only warn and ignore the option if not recognized
15797 # So say no if there are warnings other than the usual output.
15798 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
15799 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15800 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
15801 lt_cv_prog_compiler_pic_works_CXX
=yes
15807 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15808 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15810 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
15811 case $lt_prog_compiler_pic_CXX in
15813 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
15816 lt_prog_compiler_pic_CXX
=
15817 lt_prog_compiler_can_build_shared_CXX
=no
15822 # For platforms which do not support PIC, -DPIC is meaningless:
15824 lt_prog_compiler_pic_CXX
=
15827 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
15832 # Check to make sure the static flag actually works.
15834 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
15835 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15836 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15837 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 lt_cv_prog_compiler_static_works_CXX
=no
15841 save_LDFLAGS
="$LDFLAGS"
15842 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
15843 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15844 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15845 # The linker can only warn and ignore the option if not recognized
15846 # So say no if there are warnings
15847 if test -s conftest.err
; then
15848 # Append any errors to the config.log.
15849 cat conftest.err
1>&5
15850 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
15851 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15852 if diff conftest.exp conftest.er2
>/dev
/null
; then
15853 lt_cv_prog_compiler_static_works_CXX
=yes
15856 lt_cv_prog_compiler_static_works_CXX
=yes
15860 LDFLAGS
="$save_LDFLAGS"
15863 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15864 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
15866 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
15869 lt_prog_compiler_static_CXX
=
15873 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15874 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15875 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 lt_cv_prog_compiler_c_o_CXX
=no
15879 $rm -r conftest
2>/dev
/null
15883 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15885 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15886 # Insert the option either (1) after the last *FLAGS variable, or
15887 # (2) before a word containing "conftest.", or (3) at the end.
15888 # Note that $ac_compile itself does not contain backslashes and begins
15889 # with a dollar sign (not a hyphen), so the echo should work correctly.
15890 lt_compile
=`echo "$ac_compile" | $SED \
15891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15893 -e 's:$: $lt_compiler_flag:'`
15894 (eval echo "\"\$as_me:15894: $lt_compile\"" >&5)
15895 (eval "$lt_compile" 2>out
/conftest.err
)
15897 cat out
/conftest.err
>&5
15898 echo "$as_me:15898: \$? = $ac_status" >&5
15899 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15901 # The compiler can only warn and ignore the option if not recognized
15902 # So say no if there are warnings
15903 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
15904 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
15905 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
15906 lt_cv_prog_compiler_c_o_CXX
=yes
15911 # SGI C++ compiler will create directory out/ii_files/ for
15912 # template instantiation
15913 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
15914 $rm out
/* && rmdir out
15920 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15924 hard_links
="nottested"
15925 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
15926 # do not overwrite the value of need_locks provided by the user
15927 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15931 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15933 ln conftest.a conftest.b
2>&5 || hard_links
=no
15934 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15935 { echo "$as_me:$LINENO: result: $hard_links" >&5
15936 echo "${ECHO_T}$hard_links" >&6; }
15937 if test "$hard_links" = no
; then
15938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15946 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15949 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15952 # If we're using GNU nm, then we don't want the "-C" option.
15953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15954 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
15955 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15957 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'
15961 export_symbols_cmds_CXX
="$ltdll_cmds"
15964 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15966 linux
* | k
*bsd
*-gnu)
15967 link_all_deplibs_CXX
=no
15970 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15973 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15975 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15976 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15977 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
15980 # Do we need to explicitly link libc?
15982 case "x$archive_cmds_need_lc_CXX" in
15984 # Assume -lc should be added
15985 archive_cmds_need_lc_CXX
=yes
15987 if test "$enable_shared" = yes && test "$GCC" = yes; then
15988 case $archive_cmds_CXX in
15990 # FIXME: we may have to deal with multi-command sequences.
15993 # Test whether the compiler implicitly links with -lc since on some
15994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15995 # to ld, don't add -lc before -lgcc.
15996 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15997 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15999 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16002 (eval $ac_compile) 2>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } 2>conftest.err
; then
16008 libobjs
=conftest.
$ac_objext
16010 wl
=$lt_prog_compiler_wl_CXX
16011 pic_flag
=$lt_prog_compiler_pic_CXX
16017 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
16018 allow_undefined_flag_CXX
=
16019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16020 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }
16025 archive_cmds_need_lc_CXX
=no
16027 archive_cmds_need_lc_CXX
=yes
16029 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
16031 cat conftest.err
1>&5
16034 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16035 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
16042 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16043 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16044 library_names_spec
=
16045 libname_spec
='lib$name'
16049 postuninstall_cmds
=
16053 shlibpath_overrides_runpath
=unknown
16055 dynamic_linker
="$host_os ld.so"
16056 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16058 need_lib_prefix
=unknown
16059 hardcode_into_libs
=no
16061 # when you set need_version to no, make sure it does not cause -set_version
16062 # flags to be left without arguments
16063 need_version
=unknown
16068 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16069 shlibpath_var
=LIBPATH
16071 # AIX 3 has no versioning support, so we append a major version to the name.
16072 soname_spec
='${libname}${release}${shared_ext}$major'
16079 hardcode_into_libs
=yes
16080 if test "$host_cpu" = ia64
; then
16081 # AIX 5 supports IA64
16082 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16083 shlibpath_var
=LD_LIBRARY_PATH
16085 # With GCC up to 2.95.x, collect2 would create an import file
16086 # for dependence libraries. The import file would start with
16087 # the line `#! .'. This would cause the generated library to
16088 # depend on `.', always an invalid library. This was fixed in
16089 # development snapshots of GCC prior to 3.0.
16091 aix4 | aix4.
[01] | aix4.
[01].
*)
16092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16094 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
16097 can_build_shared
=no
16101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16102 # soname into executable. Probably we can add versioning support to
16103 # collect2, so additional links can be useful in future.
16104 if test "$aix_use_runtimelinking" = yes; then
16105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16106 # instead of lib<name>.a to let people know that these are not
16107 # typical AIX shared libraries.
16108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110 # We preserve .a as extension for shared libraries through AIX4.2
16111 # and later when we are not doing run time linking.
16112 library_names_spec
='${libname}${release}.a $libname.a'
16113 soname_spec
='${libname}${release}${shared_ext}$major'
16115 shlibpath_var
=LIBPATH
16120 library_names_spec
='$libname.ixlibrary $libname.a'
16121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16122 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
16126 library_names_spec
='${libname}${shared_ext}'
16127 dynamic_linker
="$host_os ld.so"
16128 shlibpath_var
=LIBRARY_PATH
16134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 soname_spec
='${libname}${release}${shared_ext}$major'
16136 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16137 shlibpath_var
=LD_LIBRARY_PATH
16138 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16139 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16140 # the default ld.so.conf also contains /usr/contrib/lib and
16141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16142 # libtool to hard-code these into programs
16145 cygwin
* | mingw
* | pw32
*)
16146 version_type
=windows
16151 case $GCC,$host_os in
16152 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
16153 library_names_spec
='$libname.dll.a'
16154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16155 postinstall_cmds
='base_file=`basename \${file}`~
16156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16157 dldir=$destdir/`dirname \$dlpath`~
16158 test -d \$dldir || mkdir -p \$dldir~
16159 $install_prog $dir/$dlname \$dldir/$dlname~
16160 chmod a+x \$dldir/$dlname'
16161 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16162 dlpath=$dir/\$dldll~
16164 shlibpath_overrides_runpath
=yes
16168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16169 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16170 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
16173 # MinGW DLLs use traditional 'lib' prefix
16174 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16175 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16176 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
16177 # It is most probably a Windows format PATH printed by
16178 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16179 # path with ; separators, and with drive letters. We can handle the
16180 # drive letters (cygwin fileutils understands them), so leave them,
16181 # especially as we might pass files found there to a mingw objdump,
16182 # which wouldn't understand a cygwinified path. Ahh.
16183 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16185 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16189 # pw32 DLLs use 'pw' prefix rather than 'lib'
16190 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16196 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16199 dynamic_linker
='Win32 ld.exe'
16200 # FIXME: first we should search . and the directory the executable is in
16204 darwin
* | rhapsody
*)
16205 dynamic_linker
="$host_os dyld"
16206 version_type
=darwin
16209 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16210 soname_spec
='${libname}${release}${major}$shared_ext'
16211 shlibpath_overrides_runpath
=yes
16212 shlibpath_var
=DYLD_LIBRARY_PATH
16213 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16215 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16223 soname_spec
='${libname}${release}${shared_ext}$major'
16224 shlibpath_var
=LD_LIBRARY_PATH
16231 freebsd
* | dragonfly
*)
16232 # DragonFly does not have aout. When/if they implement a new
16233 # versioning mechanism, adjust this.
16234 if test -x /usr
/bin
/objformat
; then
16235 objformat
=`/usr/bin/objformat`
16238 freebsd
[123]*) objformat
=aout
;;
16239 *) objformat
=elf
;;
16242 version_type
=freebsd-
$objformat
16243 case $version_type in
16245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16250 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16254 shlibpath_var
=LD_LIBRARY_PATH
16257 shlibpath_overrides_runpath
=yes
16259 freebsd3.
[01]* | freebsdelf3.
[01]*)
16260 shlibpath_overrides_runpath
=yes
16261 hardcode_into_libs
=yes
16263 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16264 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16265 shlibpath_overrides_runpath
=no
16266 hardcode_into_libs
=yes
16268 *) # from 4.6 on, and DragonFly
16269 shlibpath_overrides_runpath
=yes
16270 hardcode_into_libs
=yes
16279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16280 soname_spec
='${libname}${release}${shared_ext}$major'
16281 shlibpath_var
=LD_LIBRARY_PATH
16282 hardcode_into_libs
=yes
16285 hpux9
* | hpux10
* | hpux11
*)
16286 # Give a soname corresponding to the major version so that dld.sl refuses to
16287 # link against other versions.
16294 hardcode_into_libs
=yes
16295 dynamic_linker
="$host_os dld.so"
16296 shlibpath_var
=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299 soname_spec
='${libname}${release}${shared_ext}$major'
16300 if test "X$HPUX_IA64_MODE" = X32
; then
16301 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16303 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16305 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16309 hardcode_into_libs
=yes
16310 dynamic_linker
="$host_os dld.sl"
16311 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16312 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16313 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16314 soname_spec
='${libname}${release}${shared_ext}$major'
16315 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16316 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16320 dynamic_linker
="$host_os dld.sl"
16321 shlibpath_var
=SHLIB_PATH
16322 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324 soname_spec
='${libname}${release}${shared_ext}$major'
16327 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16328 postinstall_cmds
='chmod 555 $lib'
16335 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16336 soname_spec
='${libname}${release}${shared_ext}$major'
16337 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16338 shlibpath_var
=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath
=no
16340 hardcode_into_libs
=yes
16343 irix5
* | irix6
* | nonstopux
*)
16345 nonstopux
*) version_type
=nonstopux
;;
16347 if test "$lt_cv_prog_gnu_ld" = yes; then
16355 soname_spec
='${libname}${release}${shared_ext}$major'
16356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16358 irix5
* | nonstopux
*)
16359 libsuff
= shlibsuff
=
16362 case $LD in # libtool.m4 will add one of these switches to LD
16363 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16364 libsuff
= shlibsuff
= libmagic
=32-bit;;
16365 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16366 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16367 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16368 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16369 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16373 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16374 shlibpath_overrides_runpath
=no
16375 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16376 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16377 hardcode_into_libs
=yes
16380 # No shared lib support for Linux oldld, aout, or coff.
16381 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16385 # This must be Linux ELF.
16386 linux
* | k
*bsd
*-gnu)
16390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 soname_spec
='${libname}${release}${shared_ext}$major'
16392 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16393 shlibpath_var
=LD_LIBRARY_PATH
16394 shlibpath_overrides_runpath
=no
16395 # This implies no fast_install, which is unacceptable.
16396 # Some rework will be needed to allow for fast_install
16397 # before this can be enabled.
16398 hardcode_into_libs
=yes
16400 # Append ld.so.conf contents to the search path
16401 if test -f /etc
/ld.so.conf
; then
16402 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;/^$/d' | tr '\n' ' '`
16403 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16406 # We used to test for /lib/ld.so.1 and disable shared libraries on
16407 # powerpc, because MkLinux only supported shared libraries with the
16408 # GNU dynamic linker. Since this was broken with cross compilers,
16409 # most powerpc-linux boxes support dynamic linking these days and
16410 # people can always --disable-shared, the test was removed, and we
16411 # assume the GNU/Linux dynamic linker is in use.
16412 dynamic_linker
='GNU/Linux ld.so'
16419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16420 soname_spec
='${libname}${release}${shared_ext}$major'
16421 shlibpath_var
=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath
=no
16423 hardcode_into_libs
=yes
16424 dynamic_linker
='NetBSD ld.elf_so'
16431 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16433 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16434 dynamic_linker
='NetBSD (a.out) ld.so'
16436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16437 soname_spec
='${libname}${release}${shared_ext}$major'
16438 dynamic_linker
='NetBSD ld.elf_so'
16440 shlibpath_var
=LD_LIBRARY_PATH
16441 shlibpath_overrides_runpath
=yes
16442 hardcode_into_libs
=yes
16447 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448 shlibpath_var
=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath
=yes
16456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16457 soname_spec
='${libname}${release}${shared_ext}$major'
16458 shlibpath_var
=LD_LIBRARY_PATH
16459 shlibpath_overrides_runpath
=yes
16464 sys_lib_dlsearch_path_spec
="/usr/lib"
16466 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16468 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16469 *) need_version
=no
;;
16471 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16472 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16473 shlibpath_var
=LD_LIBRARY_PATH
16474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16476 openbsd2.
[89] | openbsd2.
[89].
*)
16477 shlibpath_overrides_runpath
=no
16480 shlibpath_overrides_runpath
=yes
16484 shlibpath_overrides_runpath
=yes
16489 libname_spec
='$name'
16492 library_names_spec
='$libname${shared_ext} $libname.a'
16493 dynamic_linker
='OS/2 ld.exe'
16494 shlibpath_var
=LIBPATH
16497 osf3
* | osf4
* | osf5
*)
16501 soname_spec
='${libname}${release}${shared_ext}$major'
16502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 shlibpath_var
=LD_LIBRARY_PATH
16504 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16505 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16516 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16517 soname_spec
='${libname}${release}${shared_ext}$major'
16518 shlibpath_var
=LD_LIBRARY_PATH
16519 shlibpath_overrides_runpath
=yes
16520 hardcode_into_libs
=yes
16521 # ldd complains unless libraries are executable
16522 postinstall_cmds
='chmod +x $lib'
16527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16528 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16529 shlibpath_var
=LD_LIBRARY_PATH
16530 shlibpath_overrides_runpath
=yes
16531 if test "$with_gnu_ld" = yes; then
16539 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540 soname_spec
='${libname}${release}${shared_ext}$major'
16541 shlibpath_var
=LD_LIBRARY_PATH
16542 case $host_vendor in
16544 shlibpath_overrides_runpath
=no
16546 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16547 runpath_var
=LD_RUN_PATH
16555 shlibpath_overrides_runpath
=no
16556 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16562 if test -d /usr
/nec
;then
16564 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16565 soname_spec
='$libname${shared_ext}.$major'
16566 shlibpath_var
=LD_LIBRARY_PATH
16570 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16571 version_type
=freebsd-elf
16574 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16575 soname_spec
='${libname}${release}${shared_ext}$major'
16576 shlibpath_var
=LD_LIBRARY_PATH
16577 hardcode_into_libs
=yes
16578 if test "$with_gnu_ld" = yes; then
16579 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16580 shlibpath_overrides_runpath
=no
16582 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16583 shlibpath_overrides_runpath
=yes
16586 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16590 sys_lib_dlsearch_path_spec
='/usr/lib'
16595 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596 soname_spec
='${libname}${release}${shared_ext}$major'
16597 shlibpath_var
=LD_LIBRARY_PATH
16604 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16605 echo "${ECHO_T}$dynamic_linker" >&6; }
16606 test "$dynamic_linker" = no
&& can_build_shared
=no
16608 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
16614 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16615 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
16621 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16623 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16624 if test "$GCC" = yes; then
16625 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16628 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16629 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16630 hardcode_action_CXX
=
16631 if test -n "$hardcode_libdir_flag_spec_CXX" || \
16632 test -n "$runpath_var_CXX" || \
16633 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16635 # We can hardcode non-existant directories.
16636 if test "$hardcode_direct_CXX" != no
&&
16637 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16638 # have to relink, otherwise we might link with an installed library
16639 # when we should be linking with a yet-to-be-installed one
16640 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16641 test "$hardcode_minus_L_CXX" != no
; then
16642 # Linking always hardcodes the temporary library directory.
16643 hardcode_action_CXX
=relink
16645 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16646 hardcode_action_CXX
=immediate
16649 # We cannot hardcode anything, or else we can only hardcode existing
16651 hardcode_action_CXX
=unsupported
16653 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16654 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
16656 if test "$hardcode_action_CXX" = relink
; then
16657 # Fast installation is not supported
16658 enable_fast_install
=no
16659 elif test "$shlibpath_overrides_runpath" = yes ||
16660 test "$enable_shared" = no
; then
16661 # Fast installation is not necessary
16662 enable_fast_install
=needless
16666 # The else clause should only fire when bootstrapping the
16667 # libtool distribution, otherwise you forgot to ship ltmain.sh
16668 # with your package, and you will get complaints that there are
16669 # no rules to generate ltmain.sh.
16670 if test -f "$ltmain"; then
16671 # See if we are running on zsh, and set the options which allow our commands through
16672 # without removal of \ escapes.
16673 if test -n "${ZSH_VERSION+set}" ; then
16674 setopt NO_GLOB_SUBST
16676 # Now quote all the things that may contain metacharacters while being
16677 # careful not to overquote the AC_SUBSTed values. We take copies of the
16678 # variables and quote the copies for generation of the libtool script.
16679 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16681 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16682 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16683 deplibs_check_method reload_flag reload_cmds need_locks \
16684 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16685 lt_cv_sys_global_symbol_to_c_name_address \
16686 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16687 old_postinstall_cmds old_postuninstall_cmds \
16691 lt_prog_compiler_wl_CXX \
16692 lt_prog_compiler_pic_CXX \
16693 lt_prog_compiler_static_CXX \
16694 lt_prog_compiler_no_builtin_flag_CXX \
16695 export_dynamic_flag_spec_CXX \
16696 thread_safe_flag_spec_CXX \
16697 whole_archive_flag_spec_CXX \
16698 enable_shared_with_static_runtimes_CXX \
16699 old_archive_cmds_CXX \
16700 old_archive_from_new_cmds_CXX \
16701 predep_objects_CXX \
16702 postdep_objects_CXX \
16705 compiler_lib_search_path_CXX \
16706 compiler_lib_search_dirs_CXX \
16708 archive_expsym_cmds_CXX \
16709 postinstall_cmds_CXX \
16710 postuninstall_cmds_CXX \
16711 old_archive_from_expsyms_cmds_CXX \
16712 allow_undefined_flag_CXX \
16713 no_undefined_flag_CXX \
16714 export_symbols_cmds_CXX \
16715 hardcode_libdir_flag_spec_CXX \
16716 hardcode_libdir_flag_spec_ld_CXX \
16717 hardcode_libdir_separator_CXX \
16718 hardcode_automatic_CXX \
16720 module_expsym_cmds_CXX \
16721 lt_cv_prog_compiler_c_o_CXX \
16722 fix_srcfile_path_CXX \
16723 exclude_expsyms_CXX \
16724 include_expsyms_CXX
; do
16727 old_archive_cmds_CXX | \
16728 old_archive_from_new_cmds_CXX | \
16729 archive_cmds_CXX | \
16730 archive_expsym_cmds_CXX | \
16731 module_cmds_CXX | \
16732 module_expsym_cmds_CXX | \
16733 old_archive_from_expsyms_cmds_CXX | \
16734 export_symbols_cmds_CXX | \
16735 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16736 postinstall_cmds | postuninstall_cmds | \
16737 old_postinstall_cmds | old_postuninstall_cmds | \
16738 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16739 # Double-quote double-evaled strings.
16740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16749 *'\$0 --fallback-echo"')
16750 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16756 cat <<__EOF__ >> "$cfgfile"
16757 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16761 # Shell to use when invoking shell scripts.
16764 # Whether or not to build shared libraries.
16765 build_libtool_libs=$enable_shared
16767 # Whether or not to build static libraries.
16768 build_old_libs=$enable_static
16770 # Whether or not to add -lc for building shared libraries.
16771 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16773 # Whether or not to disallow shared libs when runtime libs are static
16774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16776 # Whether or not to optimize for fast installation.
16777 fast_install=$enable_fast_install
16780 host_alias=$host_alias
16784 # The build system.
16785 build_alias=$build_alias
16789 # An echo program that does not interpret backslashes.
16794 AR_FLAGS=$lt_AR_FLAGS
16799 # LTCC compiler flags.
16800 LTCFLAGS=$lt_LTCFLAGS
16802 # A language-specific compiler.
16803 CC=$lt_compiler_CXX
16805 # Is the compiler the GNU C compiler?
16811 # The linker used to build libraries.
16814 # Whether we need hard or soft links.
16817 # A BSD-compatible nm program.
16820 # A symbol stripping program
16823 # Used to examine libraries when file_magic_cmd begins "file"
16824 MAGIC_CMD=$MAGIC_CMD
16826 # Used on cygwin: DLL creation program.
16829 # Used on cygwin: object dumper.
16832 # Used on cygwin: assembler.
16835 # The name of the directory that contains temporary libtool files.
16838 # How to create reloadable object files.
16839 reload_flag=$lt_reload_flag
16840 reload_cmds=$lt_reload_cmds
16842 # How to pass a linker flag through the compiler.
16843 wl=$lt_lt_prog_compiler_wl_CXX
16845 # Object file suffix (normally "o").
16846 objext="$ac_objext"
16848 # Old archive suffix (normally "a").
16851 # Shared library suffix (normally ".so").
16852 shrext_cmds='$shrext_cmds'
16854 # Executable file suffix (normally "").
16857 # Additional compiler flags for building library objects.
16858 pic_flag=$lt_lt_prog_compiler_pic_CXX
16861 # What is the maximum length of a command?
16862 max_cmd_len=$lt_cv_sys_max_cmd_len
16864 # Does compiler simultaneously support -c and -o options?
16865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16867 # Must we lock files when doing compilation?
16868 need_locks=$lt_need_locks
16870 # Do we need the lib prefix for modules?
16871 need_lib_prefix=$need_lib_prefix
16873 # Do we need a version for libraries?
16874 need_version=$need_version
16876 # Whether dlopen is supported.
16877 dlopen_support=$enable_dlopen
16879 # Whether dlopen of programs is supported.
16880 dlopen_self=$enable_dlopen_self
16882 # Whether dlopen of statically linked programs is supported.
16883 dlopen_self_static=$enable_dlopen_self_static
16885 # Compiler flag to prevent dynamic linking.
16886 link_static_flag=$lt_lt_prog_compiler_static_CXX
16888 # Compiler flag to turn off builtin functions.
16889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16891 # Compiler flag to allow reflexive dlopens.
16892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16894 # Compiler flag to generate shared objects directly from archives.
16895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16897 # Compiler flag to generate thread-safe objects.
16898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16900 # Library versioning type.
16901 version_type=$version_type
16903 # Format of library name prefix.
16904 libname_spec=$lt_libname_spec
16906 # List of archive names. First name is the real one, the rest are links.
16907 # The last name is the one that the linker finds with -lNAME.
16908 library_names_spec=$lt_library_names_spec
16910 # The coded name of the library, if different from the real name.
16911 soname_spec=$lt_soname_spec
16913 # Commands used to build and install an old-style archive.
16915 old_archive_cmds=$lt_old_archive_cmds_CXX
16916 old_postinstall_cmds=$lt_old_postinstall_cmds
16917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16919 # Create an old-style archive from a shared archive.
16920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16922 # Create a temporary old-style archive to link instead of a shared archive.
16923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16925 # Commands used to build and install a shared archive.
16926 archive_cmds=$lt_archive_cmds_CXX
16927 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16928 postinstall_cmds=$lt_postinstall_cmds
16929 postuninstall_cmds=$lt_postuninstall_cmds
16931 # Commands used to build a loadable module (assumed same as above if empty)
16932 module_cmds=$lt_module_cmds_CXX
16933 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16935 # Commands to strip libraries.
16936 old_striplib=$lt_old_striplib
16937 striplib=$lt_striplib
16939 # Dependencies to place before the objects being linked to create a
16941 predep_objects=$lt_predep_objects_CXX
16943 # Dependencies to place after the objects being linked to create a
16945 postdep_objects=$lt_postdep_objects_CXX
16947 # Dependencies to place before the objects being linked to create a
16949 predeps=$lt_predeps_CXX
16951 # Dependencies to place after the objects being linked to create a
16953 postdeps=$lt_postdeps_CXX
16955 # The directories searched by this compiler when creating a shared
16957 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16959 # The library search path used internally by the compiler when linking
16960 # a shared library.
16961 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16963 # Method to check whether dependent libraries are shared objects.
16964 deplibs_check_method=$lt_deplibs_check_method
16966 # Command to use when deplibs_check_method == file_magic.
16967 file_magic_cmd=$lt_file_magic_cmd
16969 # Flag that allows shared libraries with undefined symbols to be built.
16970 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16972 # Flag that forces no undefined symbols.
16973 no_undefined_flag=$lt_no_undefined_flag_CXX
16975 # Commands used to finish a libtool library installation in a directory.
16976 finish_cmds=$lt_finish_cmds
16978 # Same as above, but a single script fragment to be evaled but not shown.
16979 finish_eval=$lt_finish_eval
16981 # Take the output of nm and produce a listing of raw symbols and C names.
16982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16984 # Transform the output of nm in a proper C declaration
16985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16987 # Transform the output of nm in a C name address pair
16988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16990 # This is the shared library runtime path variable.
16991 runpath_var=$runpath_var
16993 # This is the shared library path variable.
16994 shlibpath_var=$shlibpath_var
16996 # Is shlibpath searched before the hard-coded library search path?
16997 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16999 # How to hardcode a shared library path into an executable.
17000 hardcode_action=$hardcode_action_CXX
17002 # Whether we should hardcode library paths into libraries.
17003 hardcode_into_libs=$hardcode_into_libs
17005 # Flag to hardcode \$libdir into a binary during linking.
17006 # This must work even if \$libdir does not exist.
17007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17009 # If ld is used when linking, flag to hardcode \$libdir into
17010 # a binary during linking. This must work even if \$libdir does
17012 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17014 # Whether we need a single -rpath flag with a separated argument.
17015 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17017 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17018 # resulting binary.
17019 hardcode_direct=$hardcode_direct_CXX
17021 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17022 # resulting binary.
17023 hardcode_minus_L=$hardcode_minus_L_CXX
17025 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17026 # the resulting binary.
17027 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17029 # Set to yes if building a shared library automatically hardcodes DIR into the library
17030 # and all subsequent libraries and executables linked against it.
17031 hardcode_automatic=$hardcode_automatic_CXX
17033 # Variables whose values should be saved in libtool wrapper scripts and
17034 # restored at relink time.
17035 variables_saved_for_relink="$variables_saved_for_relink"
17037 # Whether libtool must link a program against all its dependency libraries.
17038 link_all_deplibs=$link_all_deplibs_CXX
17040 # Compile-time system search path for libraries
17041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17043 # Run-time system search path for libraries
17044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17046 # Fix the shell variable \$srcfile for the compiler.
17047 fix_srcfile_path=$lt_fix_srcfile_path
17049 # Set to yes if exported symbols are required.
17050 always_export_symbols=$always_export_symbols_CXX
17052 # The commands to list exported symbols.
17053 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17055 # The commands to extract the exported symbol list from a shared archive.
17056 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17058 # Symbols that should not be listed in the preloaded symbols.
17059 exclude_expsyms=$lt_exclude_expsyms_CXX
17061 # Symbols that must always be exported.
17062 include_expsyms=$lt_include_expsyms_CXX
17064 # ### END LIBTOOL TAG CONFIG: $tagname
17070 # If there is no Makefile yet, we rely on a make rule to execute
17071 # `config.status --recheck' to rerun these tests and create the
17072 # libtool script then.
17073 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17074 if test -f "$ltmain_in"; then
17075 test -f Makefile
&& make "$ltmain"
17081 ac_cpp
='$CPP $CPPFLAGS'
17082 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17083 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17084 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17090 with_gnu_ldcxx
=$with_gnu_ld
17091 with_gnu_ld
=$lt_save_with_gnu_ld
17092 lt_cv_path_LDCXX
=$lt_cv_path_LD
17093 lt_cv_path_LD
=$lt_save_path_LD
17094 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
17095 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
17103 if test -n "$F77" && test "X$F77" != "Xno"; then
17106 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17107 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17108 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
17111 archive_cmds_need_lc_F77
=no
17112 allow_undefined_flag_F77
=
17113 always_export_symbols_F77
=no
17114 archive_expsym_cmds_F77
=
17115 export_dynamic_flag_spec_F77
=
17116 hardcode_direct_F77
=no
17117 hardcode_libdir_flag_spec_F77
=
17118 hardcode_libdir_flag_spec_ld_F77
=
17119 hardcode_libdir_separator_F77
=
17120 hardcode_minus_L_F77
=no
17121 hardcode_automatic_F77
=no
17123 module_expsym_cmds_F77
=
17124 link_all_deplibs_F77
=unknown
17125 old_archive_cmds_F77
=$old_archive_cmds
17126 no_undefined_flag_F77
=
17127 whole_archive_flag_spec_F77
=
17128 enable_shared_with_static_runtimes_F77
=no
17130 # Source file extension for f77 test sources.
17133 # Object file extension for compiled f77 test sources.
17137 # Code to be used in simple compile tests
17138 lt_simple_compile_test_code
="\
17144 # Code to be used in simple link tests
17145 lt_simple_link_test_code
="\
17150 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17152 # If no C compiler was specified, use CC.
17155 # If no C compiler flags were specified, use CFLAGS.
17156 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17158 # Allow CC to be a program name with arguments.
17162 # save warnings/boilerplate of simple test code
17163 ac_outfile
=conftest.
$ac_objext
17164 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17165 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17166 _lt_compiler_boilerplate
=`cat conftest.err`
17169 ac_outfile
=conftest.
$ac_objext
17170 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17171 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17172 _lt_linker_boilerplate
=`cat conftest.err`
17176 # Allow CC to be a program name with arguments.
17181 for cc_temp
in $compiler""; do
17183 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17184 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17189 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17192 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17193 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17194 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17195 echo "${ECHO_T}$can_build_shared" >&6; }
17197 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17198 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17199 test "$can_build_shared" = "no" && enable_shared
=no
17201 # On AIX, shared libraries and static libraries use the same namespace, and
17202 # are all built from PIC.
17205 test "$enable_shared" = yes && enable_static
=no
17206 if test -n "$RANLIB"; then
17207 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17208 postinstall_cmds
='$RANLIB $lib'
17212 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17213 test "$enable_shared" = yes && enable_static
=no
17217 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17218 echo "${ECHO_T}$enable_shared" >&6; }
17220 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17221 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17222 # Make sure either enable_shared or enable_static is yes.
17223 test "$enable_shared" = yes || enable_static
=yes
17224 { echo "$as_me:$LINENO: result: $enable_static" >&5
17225 echo "${ECHO_T}$enable_static" >&6; }
17230 lt_prog_compiler_wl_F77
=
17231 lt_prog_compiler_pic_F77
=
17232 lt_prog_compiler_static_F77
=
17234 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17235 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17237 if test "$GCC" = yes; then
17238 lt_prog_compiler_wl_F77
='-Wl,'
17239 lt_prog_compiler_static_F77
='-static'
17243 # All AIX code is PIC.
17244 if test "$host_cpu" = ia64
; then
17245 # AIX 5 now supports IA64 processor
17246 lt_prog_compiler_static_F77
='-Bstatic'
17251 # FIXME: we need at least 68020 code to build shared libraries, but
17252 # adding the `-m68020' flag to GCC prevents building anything better,
17254 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
17257 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
17258 # PIC is the default for these OSes.
17261 mingw
* | cygwin
* | pw32
* | os2
*)
17262 # This hack is so that the source file can tell whether it is being
17263 # built for inclusion in a dll (and should export symbols for example).
17264 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17265 # (--disable-auto-import) libraries
17266 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
17269 darwin
* | rhapsody
*)
17270 # PIC is the default on this platform
17271 # Common symbols not allowed in MH_DYLIB files
17272 lt_prog_compiler_pic_F77
='-fno-common'
17276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17277 # Instead, we relocate shared libraries at runtime.
17281 # Just because we use GCC doesn't mean we suddenly get shared libraries
17282 # on systems that don't support them.
17283 lt_prog_compiler_can_build_shared_F77
=no
17288 if test -d /usr
/nec
; then
17289 lt_prog_compiler_pic_F77
=-Kconform_pic
17294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17295 # not for PA HP-UX.
17301 lt_prog_compiler_pic_F77
='-fPIC'
17307 lt_prog_compiler_pic_F77
='-fPIC'
17311 # PORTME Check for flag to pass linker flags through the system compiler.
17314 lt_prog_compiler_wl_F77
='-Wl,'
17315 if test "$host_cpu" = ia64
; then
17316 # AIX 5 now supports IA64 processor
17317 lt_prog_compiler_static_F77
='-Bstatic'
17319 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
17323 # PIC is the default on this platform
17324 # Common symbols not allowed in MH_DYLIB files
17325 case $cc_basename in
17327 lt_prog_compiler_pic_F77
='-qnocommon'
17328 lt_prog_compiler_wl_F77
='-Wl,'
17333 mingw
* | cygwin
* | pw32
* | os2
*)
17334 # This hack is so that the source file can tell whether it is being
17335 # built for inclusion in a dll (and should export symbols for example).
17336 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
17339 hpux9
* | hpux10
* | hpux11
*)
17340 lt_prog_compiler_wl_F77
='-Wl,'
17341 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17342 # not for PA HP-UX.
17348 lt_prog_compiler_pic_F77
='+Z'
17351 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17352 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
17355 irix5
* | irix6
* | nonstopux
*)
17356 lt_prog_compiler_wl_F77
='-Wl,'
17357 # PIC (with -KPIC) is the default.
17358 lt_prog_compiler_static_F77
='-non_shared'
17362 lt_prog_compiler_pic_F77
='-KPIC'
17363 lt_prog_compiler_static_F77
='-Bstatic'
17366 linux
* | k
*bsd
*-gnu)
17367 case $cc_basename in
17369 lt_prog_compiler_wl_F77
='-Wl,'
17370 lt_prog_compiler_pic_F77
='-KPIC'
17371 lt_prog_compiler_static_F77
='-static'
17373 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
17374 # Portland Group compilers (*not* the Pentium gcc compiler,
17375 # which looks to be a dead project)
17376 lt_prog_compiler_wl_F77
='-Wl,'
17377 lt_prog_compiler_pic_F77
='-fpic'
17378 lt_prog_compiler_static_F77
='-Bstatic'
17381 lt_prog_compiler_wl_F77
='-Wl,'
17382 # All Alpha code is PIC.
17383 lt_prog_compiler_static_F77
='-non_shared'
17386 case `$CC -V 2>&1 | sed 5q` in
17389 lt_prog_compiler_pic_F77
='-KPIC'
17390 lt_prog_compiler_static_F77
='-Bstatic'
17391 lt_prog_compiler_wl_F77
='-Wl,'
17394 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17395 lt_prog_compiler_pic_F77
='-KPIC'
17396 lt_prog_compiler_static_F77
='-Bstatic'
17397 lt_prog_compiler_wl_F77
=''
17404 osf3
* | osf4
* | osf5
*)
17405 lt_prog_compiler_wl_F77
='-Wl,'
17406 # All OSF/1 code is PIC.
17407 lt_prog_compiler_static_F77
='-non_shared'
17411 lt_prog_compiler_static_F77
='-non_shared'
17415 lt_prog_compiler_pic_F77
='-KPIC'
17416 lt_prog_compiler_static_F77
='-Bstatic'
17417 case $cc_basename in
17418 f77
* | f90
* | f95
*)
17419 lt_prog_compiler_wl_F77
='-Qoption ld ';;
17421 lt_prog_compiler_wl_F77
='-Wl,';;
17426 lt_prog_compiler_wl_F77
='-Qoption ld '
17427 lt_prog_compiler_pic_F77
='-PIC'
17428 lt_prog_compiler_static_F77
='-Bstatic'
17431 sysv4 | sysv4.2uw2
* | sysv4.3
*)
17432 lt_prog_compiler_wl_F77
='-Wl,'
17433 lt_prog_compiler_pic_F77
='-KPIC'
17434 lt_prog_compiler_static_F77
='-Bstatic'
17438 if test -d /usr
/nec
;then
17439 lt_prog_compiler_pic_F77
='-Kconform_pic'
17440 lt_prog_compiler_static_F77
='-Bstatic'
17444 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
17445 lt_prog_compiler_wl_F77
='-Wl,'
17446 lt_prog_compiler_pic_F77
='-KPIC'
17447 lt_prog_compiler_static_F77
='-Bstatic'
17451 lt_prog_compiler_wl_F77
='-Wl,'
17452 lt_prog_compiler_can_build_shared_F77
=no
17456 lt_prog_compiler_pic_F77
='-pic'
17457 lt_prog_compiler_static_F77
='-Bstatic'
17461 lt_prog_compiler_can_build_shared_F77
=no
17466 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17467 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
17470 # Check to make sure the PIC flag actually works.
17472 if test -n "$lt_prog_compiler_pic_F77"; then
17474 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17475 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
17476 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 lt_cv_prog_compiler_pic_works_F77
=no
17480 ac_outfile
=conftest.
$ac_objext
17481 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17482 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
17483 # Insert the option either (1) after the last *FLAGS variable, or
17484 # (2) before a word containing "conftest.", or (3) at the end.
17485 # Note that $ac_compile itself does not contain backslashes and begins
17486 # with a dollar sign (not a hyphen), so the echo should work correctly.
17487 # The option is referenced via a variable to avoid confusing sed.
17488 lt_compile
=`echo "$ac_compile" | $SED \
17489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17491 -e 's:$: $lt_compiler_flag:'`
17492 (eval echo "\"\$as_me:17492: $lt_compile\"" >&5)
17493 (eval "$lt_compile" 2>conftest.err
)
17495 cat conftest.err
>&5
17496 echo "$as_me:17496: \$? = $ac_status" >&5
17497 if (exit $ac_status) && test -s "$ac_outfile"; then
17498 # The compiler can only warn and ignore the option if not recognized
17499 # So say no if there are warnings other than the usual output.
17500 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17501 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17502 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17503 lt_cv_prog_compiler_pic_works_F77
=yes
17509 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
17510 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
17512 if test x
"$lt_cv_prog_compiler_pic_works_F77" = xyes
; then
17513 case $lt_prog_compiler_pic_F77 in
17515 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
17518 lt_prog_compiler_pic_F77
=
17519 lt_prog_compiler_can_build_shared_F77
=no
17524 # For platforms which do not support PIC, -DPIC is meaningless:
17526 lt_prog_compiler_pic_F77
=
17529 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
17534 # Check to make sure the static flag actually works.
17536 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
17537 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17538 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17539 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17542 lt_cv_prog_compiler_static_works_F77
=no
17543 save_LDFLAGS
="$LDFLAGS"
17544 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17545 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17546 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17547 # The linker can only warn and ignore the option if not recognized
17548 # So say no if there are warnings
17549 if test -s conftest.err
; then
17550 # Append any errors to the config.log.
17551 cat conftest.err
1>&5
17552 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17553 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17554 if diff conftest.exp conftest.er2
>/dev
/null
; then
17555 lt_cv_prog_compiler_static_works_F77
=yes
17558 lt_cv_prog_compiler_static_works_F77
=yes
17562 LDFLAGS
="$save_LDFLAGS"
17565 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
17566 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
17568 if test x
"$lt_cv_prog_compiler_static_works_F77" = xyes
; then
17571 lt_prog_compiler_static_F77
=
17575 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17576 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17577 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 lt_cv_prog_compiler_c_o_F77
=no
17581 $rm -r conftest
2>/dev
/null
17585 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17587 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17588 # Insert the option either (1) after the last *FLAGS variable, or
17589 # (2) before a word containing "conftest.", or (3) at the end.
17590 # Note that $ac_compile itself does not contain backslashes and begins
17591 # with a dollar sign (not a hyphen), so the echo should work correctly.
17592 lt_compile
=`echo "$ac_compile" | $SED \
17593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17595 -e 's:$: $lt_compiler_flag:'`
17596 (eval echo "\"\$as_me:17596: $lt_compile\"" >&5)
17597 (eval "$lt_compile" 2>out
/conftest.err
)
17599 cat out
/conftest.err
>&5
17600 echo "$as_me:17600: \$? = $ac_status" >&5
17601 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17603 # The compiler can only warn and ignore the option if not recognized
17604 # So say no if there are warnings
17605 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17606 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17607 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17608 lt_cv_prog_compiler_c_o_F77
=yes
17613 # SGI C++ compiler will create directory out/ii_files/ for
17614 # template instantiation
17615 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
17616 $rm out
/* && rmdir out
17622 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17623 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
17626 hard_links
="nottested"
17627 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
17628 # do not overwrite the value of need_locks provided by the user
17629 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17630 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17633 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17635 ln conftest.a conftest.b
2>&5 || hard_links
=no
17636 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17637 { echo "$as_me:$LINENO: result: $hard_links" >&5
17638 echo "${ECHO_T}$hard_links" >&6; }
17639 if test "$hard_links" = no
; then
17640 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17641 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17648 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17649 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17652 allow_undefined_flag_F77
=
17653 enable_shared_with_static_runtimes_F77
=no
17655 archive_expsym_cmds_F77
=
17656 old_archive_From_new_cmds_F77
=
17657 old_archive_from_expsyms_cmds_F77
=
17658 export_dynamic_flag_spec_F77
=
17659 whole_archive_flag_spec_F77
=
17660 thread_safe_flag_spec_F77
=
17661 hardcode_libdir_flag_spec_F77
=
17662 hardcode_libdir_flag_spec_ld_F77
=
17663 hardcode_libdir_separator_F77
=
17664 hardcode_direct_F77
=no
17665 hardcode_minus_L_F77
=no
17666 hardcode_shlibpath_var_F77
=unsupported
17667 link_all_deplibs_F77
=unknown
17668 hardcode_automatic_F77
=no
17670 module_expsym_cmds_F77
=
17671 always_export_symbols_F77
=no
17672 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17673 # include_expsyms should be a list of space-separated symbols to be *always*
17674 # included in the symbol list
17675 include_expsyms_F77
=
17676 # exclude_expsyms can be an extended regexp of symbols to exclude
17677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17679 # as well as any symbol that contains `d'.
17680 exclude_expsyms_F77
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17682 # platforms (ab)use it in PIC code, but their linkers get confused if
17683 # the symbol is explicitly referenced. Since portable code cannot
17684 # rely on this symbol name, it's probably fine to never include it in
17685 # preloaded symbol tables.
17686 # Exclude shared library initialization/finalization symbols.
17687 extract_expsyms_cmds
=
17688 # Just being paranoid about ensuring that cc_basename is set.
17689 for cc_temp
in $compiler""; do
17691 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17692 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17697 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17700 cygwin
* | mingw
* | pw32
*)
17701 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17702 # When not using gcc, we currently assume that we are using
17703 # Microsoft Visual C++.
17704 if test "$GCC" != yes; then
17709 # we just hope/assume this is gcc and not c89 (= MSVC++)
17718 if test "$with_gnu_ld" = yes; then
17719 # If archive_cmds runs LD, not CC, wlarc should be empty
17722 # Set some defaults for GNU ld with shared library support. These
17723 # are reset later if shared libraries are not supported. Putting them
17724 # here allows them to be overridden if necessary.
17725 runpath_var
=LD_RUN_PATH
17726 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
17727 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
17728 # ancient GNU ld didn't support --whole-archive et. al.
17729 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
17730 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17732 whole_archive_flag_spec_F77
=
17734 supports_anon_versioning
=no
17735 case `$LD -v 2>/dev/null` in
17736 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17737 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17738 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17739 *\
2.11.
*) ;; # other 2.11 versions
17740 *) supports_anon_versioning
=yes ;;
17743 # See if GNU ld supports shared libraries.
17746 # On AIX/PPC, the GNU linker is very broken
17747 if test "$host_cpu" != ia64
; then
17751 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17752 *** to be unable to reliably create shared libraries on AIX.
17753 *** Therefore, libtool is disabling shared libraries support. If you
17754 *** really care for shared libraries, you may want to modify your PATH
17755 *** so that a non-GNU linker is found, and then restart.
17762 archive_cmds_F77
='$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)'
17763 hardcode_libdir_flag_spec_F77
='-L$libdir'
17764 hardcode_minus_L_F77
=yes
17766 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17767 # that the semantics of dynamic libraries on AmigaOS, at least up
17768 # to version 4, is to share data among multiple programs linked
17769 # with the same dynamic library. Since this doesn't match the
17770 # behavior of shared libraries on other platforms, we can't use
17776 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17777 allow_undefined_flag_F77
=unsupported
17778 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17779 # support --undefined. This deserves some investigation. FIXME
17780 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17786 cygwin
* | mingw
* | pw32
*)
17787 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17788 # as there is no search path for DLLs.
17789 hardcode_libdir_flag_spec_F77
='-L$libdir'
17790 allow_undefined_flag_F77
=unsupported
17791 always_export_symbols_F77
=no
17792 enable_shared_with_static_runtimes_F77
=yes
17793 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17795 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
17796 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17797 # If the export-symbols file already is a .def file (1st line
17798 # is EXPORTS), use it as is; otherwise, prepend...
17799 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17800 cp $export_symbols $output_objdir/$soname.def;
17802 echo EXPORTS > $output_objdir/$soname.def;
17803 cat $export_symbols >> $output_objdir/$soname.def;
17805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17812 hardcode_direct_F77
=no
17813 hardcode_shlibpath_var_F77
=no
17814 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
17815 export_dynamic_flag_spec_F77
='${wl}-E'
17816 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17817 # Instead, shared libraries are loaded at an image base (0x10000000 by
17818 # default) and relocated if they conflict, which is a slow very memory
17819 # consuming and fragmenting process. To avoid this, we pick a random,
17820 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17821 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17822 archive_cmds_F77
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17823 archive_expsym_cmds_F77
='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'
17826 gnu
* | linux
* | k
*bsd
*-gnu)
17827 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17829 case $cc_basename,$host_cpu in
17830 pgcc
*) # Portland Group C compiler
17831 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17832 tmp_addflag
=' $pic_flag'
17834 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17835 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17836 tmp_addflag
=' $pic_flag -Mnomain' ;;
17837 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17838 tmp_addflag
=' -i_dynamic' ;;
17839 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17840 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17841 ifc
* | ifort
*) # Intel Fortran compiler
17842 tmp_addflag
=' -nofor_main' ;;
17844 case `$CC -V 2>&1 | sed 5q` in
17845 *Sun\ C
*) # Sun C 5.9
17846 whole_archive_flag_spec_F77
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17847 tmp_sharedflag
='-G' ;;
17848 *Sun\ F
*) # Sun Fortran 8.3
17849 tmp_sharedflag
='-G' ;;
17851 tmp_sharedflag
='-shared' ;;
17853 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17855 if test $supports_anon_versioning = yes; then
17856 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
17857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17858 $echo "local: *; };" >> $output_objdir/$libname.ver~
17859 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17861 link_all_deplibs_F77
=no
17867 netbsd
* | netbsdelf
*-gnu)
17868 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17869 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17872 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17873 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17878 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
17882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17883 *** create shared libraries on Solaris systems. Therefore, libtool
17884 *** is disabling shared libraries support. We urge you to upgrade GNU
17885 *** binutils to release 2.9.1 or newer. Another option is to modify
17886 *** your PATH or compiler configuration so that the native linker is
17887 *** used, and then restart.
17890 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17891 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17892 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17898 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17899 case `$LD -v 2>&1` in
17900 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17905 *** reliably create shared libraries on SCO systems. Therefore, libtool
17906 *** is disabling shared libraries support. We urge you to upgrade GNU
17907 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17908 *** your PATH or compiler configuration so that the native linker is
17909 *** used, and then restart.
17914 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17915 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17916 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17917 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17926 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17928 hardcode_direct_F77
=yes
17929 hardcode_shlibpath_var_F77
=no
17933 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17934 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17935 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17942 if test "$ld_shlibs_F77" = no
; then
17944 hardcode_libdir_flag_spec_F77
=
17945 export_dynamic_flag_spec_F77
=
17946 whole_archive_flag_spec_F77
=
17949 # PORTME fill in a description of your system's linker (not GNU ld)
17952 allow_undefined_flag_F77
=unsupported
17953 always_export_symbols_F77
=yes
17954 archive_expsym_cmds_F77
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17955 # Note: this linker hardcodes the directories in LIBPATH if there
17956 # are no directories specified by -L.
17957 hardcode_minus_L_F77
=yes
17958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17959 # Neither direct hardcoding nor static linking is supported with a
17961 hardcode_direct_F77
=unsupported
17966 if test "$host_cpu" = ia64
; then
17967 # On IA64, the linker does run time linking by default, so we don't
17968 # have to do anything special.
17969 aix_use_runtimelinking
=no
17970 exp_sym_flag
='-Bexport'
17973 # If we're using GNU nm, then we don't want the "-C" option.
17974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17975 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17976 export_symbols_cmds_F77
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17978 export_symbols_cmds_F77
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17980 aix_use_runtimelinking
=no
17982 # Test if we are trying to use run time linking or normal
17983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17984 # need to do runtime linking.
17985 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17986 for ld_flag
in $LDFLAGS; do
17987 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17988 aix_use_runtimelinking
=yes
17995 exp_sym_flag
='-bexport'
17996 no_entry_flag
='-bnoentry'
17999 # When large executables or shared objects are built, AIX ld can
18000 # have problems creating the table of contents. If linking a library
18001 # or program results in "error TOC overflow" add -mminimal-toc to
18002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18005 archive_cmds_F77
=''
18006 hardcode_direct_F77
=yes
18007 hardcode_libdir_separator_F77
=':'
18008 link_all_deplibs_F77
=yes
18010 if test "$GCC" = yes; then
18011 case $host_os in aix4.
[012]|aix4.
[012].
*)
18012 # We only want to do this on AIX 4.2 and lower, the check
18013 # below for broken collect2 doesn't work under 4.3+
18014 collect2name
=`${CC} -print-prog-name=collect2`
18015 if test -f "$collect2name" && \
18016 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
18018 # We have reworked collect2
18021 # We have old collect2
18022 hardcode_direct_F77
=unsupported
18023 # It fails to find uninstalled libraries when the uninstalled
18024 # path is not listed in the libpath. Setting hardcode_minus_L
18025 # to unsupported forces relinking
18026 hardcode_minus_L_F77
=yes
18027 hardcode_libdir_flag_spec_F77
='-L$libdir'
18028 hardcode_libdir_separator_F77
=
18032 shared_flag
='-shared'
18033 if test "$aix_use_runtimelinking" = yes; then
18034 shared_flag
="$shared_flag "'${wl}-G'
18038 if test "$host_cpu" = ia64
; then
18039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18040 # chokes on -Wl,-G. The following line is correct:
18043 if test "$aix_use_runtimelinking" = yes; then
18044 shared_flag
='${wl}-G'
18046 shared_flag
='${wl}-bM:SRE'
18051 # It seems that -bexpall does not export symbols beginning with
18052 # underscore (_), so it is better to generate a list of symbols to export.
18053 always_export_symbols_F77
=yes
18054 if test "$aix_use_runtimelinking" = yes; then
18055 # Warning - without using the other runtime loading flags (-brtl),
18056 # -berok will link without error, but may produce a broken library.
18057 allow_undefined_flag_F77
='-berok'
18058 # Determine the default libpath from the value encoded in an empty executable.
18059 cat >conftest.
$ac_ext <<_ACEOF
18064 rm -f conftest.
$ac_objext conftest
$ac_exeext
18065 if { (ac_try
="$ac_link"
18066 case "(($ac_try" in
18067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_link") 2>conftest.er1
18073 grep -v '^ *+' conftest.er1 >conftest.err
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_f77_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest$ac_exeext &&
18081 $as_test_x conftest$ac_exeext; then
18083 lt_aix_libpath_sed='
18084 /Import File Strings/,/^$/ {
18090 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
18091 # Check for a 64-bit object if we didn't find anything.
18092 if test -z "$aix_libpath"; then
18093 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18103 conftest$ac_exeext conftest.$ac_ext
18104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18106 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18107 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18109 if test "$host_cpu" = ia64; then
18110 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18111 allow_undefined_flag_F77="-z nodefs"
18112 archive_expsym_cmds_F77="\$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"
18114 # Determine the default libpath from the value encoded in an empty executable.
18115 cat >conftest.$ac_ext <<_ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18124 *) ac_try_echo
=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_link") 2>conftest.er1
18129 grep -v '^ *+' conftest.er1
>conftest.err
18131 cat conftest.err
>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } && {
18134 test -z "$ac_f77_werror_flag" ||
18135 test ! -s conftest.err
18136 } && test -s conftest
$ac_exeext &&
18137 $as_test_x conftest
$ac_exeext; then
18139 lt_aix_libpath_sed
='
18140 /Import File Strings/,/^$/ {
18146 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18147 # Check for a 64-bit object if we didn't find anything.
18148 if test -z "$aix_libpath"; then
18149 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.
$ac_ext >&5
18158 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18159 conftest
$ac_exeext conftest.
$ac_ext
18160 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18162 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
18163 # Warning - without using the other run time loading flags,
18164 # -berok will link without error, but may produce a broken library.
18165 no_undefined_flag_F77
=' ${wl}-bernotok'
18166 allow_undefined_flag_F77
=' ${wl}-berok'
18167 # Exported symbols can be pulled into shared objects from archives
18168 whole_archive_flag_spec_F77
='$convenience'
18169 archive_cmds_need_lc_F77
=yes
18170 # This is similar to how AIX traditionally builds its shared libraries.
18171 archive_expsym_cmds_F77
="\$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'
18177 archive_cmds_F77
='$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)'
18178 hardcode_libdir_flag_spec_F77
='-L$libdir'
18179 hardcode_minus_L_F77
=yes
18180 # see comment about different semantics on the GNU ld section
18185 export_dynamic_flag_spec_F77
=-rdynamic
18188 cygwin
* | mingw
* | pw32
*)
18189 # When not using gcc, we currently assume that we are using
18190 # Microsoft Visual C++.
18191 # hardcode_libdir_flag_spec is actually meaningless, as there is
18192 # no search path for DLLs.
18193 hardcode_libdir_flag_spec_F77
=' '
18194 allow_undefined_flag_F77
=unsupported
18195 # Tell ltmain to make .lib files, not .a files.
18197 # Tell ltmain to make .dll files, not .so files.
18199 # FIXME: Setting linknames here is a bad hack.
18200 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18201 # The linker will automatically build a .lib file if we build a DLL.
18202 old_archive_From_new_cmds_F77
='true'
18203 # FIXME: Should let the user specify the lib program.
18204 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
18205 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
18206 enable_shared_with_static_runtimes_F77
=yes
18209 darwin
* | rhapsody
*)
18211 rhapsody
* | darwin1.
[012])
18212 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
18215 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18216 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18218 case ${MACOSX_DEPLOYMENT_TARGET} in
18220 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18223 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
18229 archive_cmds_need_lc_F77
=no
18230 hardcode_direct_F77
=no
18231 hardcode_automatic_F77
=yes
18232 hardcode_shlibpath_var_F77
=unsupported
18233 whole_archive_flag_spec_F77
=''
18234 link_all_deplibs_F77
=yes
18235 if test "$GCC" = yes ; then
18236 output_verbose_link_cmd
='echo'
18237 archive_cmds_F77
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18238 module_cmds_F77
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18239 archive_expsym_cmds_F77
="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}"
18240 module_expsym_cmds_F77
="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}"
18242 case $cc_basename in
18244 output_verbose_link_cmd
='echo'
18245 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18246 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18247 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18248 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18249 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18259 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18260 hardcode_libdir_flag_spec_F77
='-L$libdir'
18261 hardcode_shlibpath_var_F77
=no
18268 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18269 # support. Future versions do this automatically, but an explicit c++rt0.o
18270 # does not break anything, and helps significantly (at the cost of a little
18273 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18274 hardcode_libdir_flag_spec_F77
='-R$libdir'
18275 hardcode_direct_F77
=yes
18276 hardcode_shlibpath_var_F77
=no
18279 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18281 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18282 hardcode_direct_F77
=yes
18283 hardcode_minus_L_F77
=yes
18284 hardcode_shlibpath_var_F77
=no
18287 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18288 freebsd
* | dragonfly
*)
18289 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18290 hardcode_libdir_flag_spec_F77
='-R$libdir'
18291 hardcode_direct_F77
=yes
18292 hardcode_shlibpath_var_F77
=no
18296 if test "$GCC" = yes; then
18297 archive_cmds_F77
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18299 archive_cmds_F77
='$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'
18301 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
18302 hardcode_libdir_separator_F77
=:
18303 hardcode_direct_F77
=yes
18305 # hardcode_minus_L: Not really in the search PATH,
18306 # but as the default location of the library.
18307 hardcode_minus_L_F77
=yes
18308 export_dynamic_flag_spec_F77
='${wl}-E'
18312 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18313 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18315 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18317 if test "$with_gnu_ld" = no
; then
18318 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
18319 hardcode_libdir_separator_F77
=:
18321 hardcode_direct_F77
=yes
18322 export_dynamic_flag_spec_F77
='${wl}-E'
18324 # hardcode_minus_L: Not really in the search PATH,
18325 # but as the default location of the library.
18326 hardcode_minus_L_F77
=yes
18331 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
18334 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18337 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18340 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18346 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18349 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18352 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18356 if test "$with_gnu_ld" = no
; then
18357 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
18358 hardcode_libdir_separator_F77
=:
18362 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
18363 hardcode_direct_F77
=no
18364 hardcode_shlibpath_var_F77
=no
18367 hardcode_direct_F77
=yes
18368 export_dynamic_flag_spec_F77
='${wl}-E'
18370 # hardcode_minus_L: Not really in the search PATH,
18371 # but as the default location of the library.
18372 hardcode_minus_L_F77
=yes
18378 irix5
* | irix6
* | nonstopux
*)
18379 if test "$GCC" = yes; then
18380 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18382 archive_cmds_F77
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18383 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
18385 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
18386 hardcode_libdir_separator_F77
=:
18387 link_all_deplibs_F77
=yes
18390 netbsd
* | netbsdelf
*-gnu)
18391 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18392 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18394 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18396 hardcode_libdir_flag_spec_F77
='-R$libdir'
18397 hardcode_direct_F77
=yes
18398 hardcode_shlibpath_var_F77
=no
18402 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18403 hardcode_direct_F77
=yes
18404 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
18405 hardcode_libdir_separator_F77
=:
18406 hardcode_shlibpath_var_F77
=no
18410 if test -f /usr
/libexec
/ld.so
; then
18411 hardcode_direct_F77
=yes
18412 hardcode_shlibpath_var_F77
=no
18413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18414 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18415 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18416 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
18417 export_dynamic_flag_spec_F77
='${wl}-E'
18420 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
18421 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18422 hardcode_libdir_flag_spec_F77
='-R$libdir'
18425 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18426 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
18436 hardcode_libdir_flag_spec_F77
='-L$libdir'
18437 hardcode_minus_L_F77
=yes
18438 allow_undefined_flag_F77
=unsupported
18439 archive_cmds_F77
='$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'
18440 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18444 if test "$GCC" = yes; then
18445 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
18446 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18448 allow_undefined_flag_F77
=' -expect_unresolved \*'
18449 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18451 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
18452 hardcode_libdir_separator_F77
=:
18455 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
18456 if test "$GCC" = yes; then
18457 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
18458 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18459 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
18461 allow_undefined_flag_F77
=' -expect_unresolved \*'
18462 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18463 archive_expsym_cmds_F77
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18464 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18466 # Both c and cxx compiler support -rpath directly
18467 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
18469 hardcode_libdir_separator_F77
=:
18473 no_undefined_flag_F77
=' -z text'
18474 if test "$GCC" = yes; then
18476 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18477 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18478 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18481 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18482 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18483 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18485 hardcode_libdir_flag_spec_F77
='-R$libdir'
18486 hardcode_shlibpath_var_F77
=no
18488 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18490 # The compiler driver will combine and reorder linker options,
18491 # but understands `-z linker_flag'. GCC discards it without `$wl',
18492 # but is careful enough not to reorder.
18493 # Supported since Solaris 2.6 (maybe 2.5.1?)
18494 if test "$GCC" = yes; then
18495 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18497 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
18501 link_all_deplibs_F77
=yes
18505 if test "x$host_vendor" = xsequent
; then
18506 # Use $CC to link under sequent, because it throws in some extra .o
18507 # files that make .init and .fini sections work.
18508 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18510 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18512 hardcode_libdir_flag_spec_F77
='-L$libdir'
18513 hardcode_direct_F77
=yes
18514 hardcode_minus_L_F77
=yes
18515 hardcode_shlibpath_var_F77
=no
18519 case $host_vendor in
18521 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18522 hardcode_direct_F77
=yes # is this really true???
18525 ## LD is ld it makes a PLAMLIB
18526 ## CC just makes a GrossModule.
18527 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18528 reload_cmds_F77
='$CC -r -o $output$reload_objs'
18529 hardcode_direct_F77
=no
18532 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18533 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
18536 runpath_var
='LD_RUN_PATH'
18537 hardcode_shlibpath_var_F77
=no
18541 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18542 hardcode_shlibpath_var_F77
=no
18543 export_dynamic_flag_spec_F77
='-Bexport'
18547 if test -d /usr
/nec
; then
18548 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18549 hardcode_shlibpath_var_F77
=no
18550 runpath_var
=LD_RUN_PATH
18551 hardcode_runpath_var
=yes
18556 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18557 no_undefined_flag_F77
='${wl}-z,text'
18558 archive_cmds_need_lc_F77
=no
18559 hardcode_shlibpath_var_F77
=no
18560 runpath_var
='LD_RUN_PATH'
18562 if test "$GCC" = yes; then
18563 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18564 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18566 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18567 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18571 sysv5
* | sco3.2v5
* | sco5v6
*)
18572 # Note: We can NOT use -z defs as we might desire, because we do not
18573 # link with -lc, and that would cause any symbols used from libc to
18574 # always be unresolved, which means just about no library would
18575 # ever link correctly. If we're not using GNU ld we use -z text
18576 # though, which does catch some bad symbols but isn't as heavy-handed
18578 no_undefined_flag_F77
='${wl}-z,text'
18579 allow_undefined_flag_F77
='${wl}-z,nodefs'
18580 archive_cmds_need_lc_F77
=no
18581 hardcode_shlibpath_var_F77
=no
18582 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18583 hardcode_libdir_separator_F77
=':'
18584 link_all_deplibs_F77
=yes
18585 export_dynamic_flag_spec_F77
='${wl}-Bexport'
18586 runpath_var
='LD_RUN_PATH'
18588 if test "$GCC" = yes; then
18589 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18590 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18592 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18593 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18598 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18599 hardcode_libdir_flag_spec_F77
='-L$libdir'
18600 hardcode_shlibpath_var_F77
=no
18609 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18610 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
18611 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
18614 # Do we need to explicitly link libc?
18616 case "x$archive_cmds_need_lc_F77" in
18618 # Assume -lc should be added
18619 archive_cmds_need_lc_F77
=yes
18621 if test "$enable_shared" = yes && test "$GCC" = yes; then
18622 case $archive_cmds_F77 in
18624 # FIXME: we may have to deal with multi-command sequences.
18627 # Test whether the compiler implicitly links with -lc since on some
18628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18629 # to ld, don't add -lc before -lgcc.
18630 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18633 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18636 (eval $ac_compile) 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); } 2>conftest.err
; then
18642 libobjs
=conftest.
$ac_objext
18644 wl
=$lt_prog_compiler_wl_F77
18645 pic_flag
=$lt_prog_compiler_pic_F77
18651 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
18652 allow_undefined_flag_F77
=
18653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18654 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }
18659 archive_cmds_need_lc_F77
=no
18661 archive_cmds_need_lc_F77
=yes
18663 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
18665 cat conftest.err
1>&5
18668 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18669 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
18676 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18678 library_names_spec
=
18679 libname_spec
='lib$name'
18683 postuninstall_cmds
=
18687 shlibpath_overrides_runpath
=unknown
18689 dynamic_linker
="$host_os ld.so"
18690 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18692 need_lib_prefix
=unknown
18693 hardcode_into_libs
=no
18695 # when you set need_version to no, make sure it does not cause -set_version
18696 # flags to be left without arguments
18697 need_version
=unknown
18702 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18703 shlibpath_var
=LIBPATH
18705 # AIX 3 has no versioning support, so we append a major version to the name.
18706 soname_spec
='${libname}${release}${shared_ext}$major'
18713 hardcode_into_libs
=yes
18714 if test "$host_cpu" = ia64
; then
18715 # AIX 5 supports IA64
18716 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18717 shlibpath_var
=LD_LIBRARY_PATH
18719 # With GCC up to 2.95.x, collect2 would create an import file
18720 # for dependence libraries. The import file would start with
18721 # the line `#! .'. This would cause the generated library to
18722 # depend on `.', always an invalid library. This was fixed in
18723 # development snapshots of GCC prior to 3.0.
18725 aix4 | aix4.
[01] | aix4.
[01].
*)
18726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18728 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
18731 can_build_shared
=no
18735 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18736 # soname into executable. Probably we can add versioning support to
18737 # collect2, so additional links can be useful in future.
18738 if test "$aix_use_runtimelinking" = yes; then
18739 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18740 # instead of lib<name>.a to let people know that these are not
18741 # typical AIX shared libraries.
18742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18744 # We preserve .a as extension for shared libraries through AIX4.2
18745 # and later when we are not doing run time linking.
18746 library_names_spec
='${libname}${release}.a $libname.a'
18747 soname_spec
='${libname}${release}${shared_ext}$major'
18749 shlibpath_var
=LIBPATH
18754 library_names_spec
='$libname.ixlibrary $libname.a'
18755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18756 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
18760 library_names_spec
='${libname}${shared_ext}'
18761 dynamic_linker
="$host_os ld.so"
18762 shlibpath_var
=LIBRARY_PATH
18768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18769 soname_spec
='${libname}${release}${shared_ext}$major'
18770 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18771 shlibpath_var
=LD_LIBRARY_PATH
18772 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18773 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18774 # the default ld.so.conf also contains /usr/contrib/lib and
18775 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18776 # libtool to hard-code these into programs
18779 cygwin
* | mingw
* | pw32
*)
18780 version_type
=windows
18785 case $GCC,$host_os in
18786 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18787 library_names_spec
='$libname.dll.a'
18788 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18789 postinstall_cmds
='base_file=`basename \${file}`~
18790 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18791 dldir=$destdir/`dirname \$dlpath`~
18792 test -d \$dldir || mkdir -p \$dldir~
18793 $install_prog $dir/$dlname \$dldir/$dlname~
18794 chmod a+x \$dldir/$dlname'
18795 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18796 dlpath=$dir/\$dldll~
18798 shlibpath_overrides_runpath
=yes
18802 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18803 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18804 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18807 # MinGW DLLs use traditional 'lib' prefix
18808 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18809 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18810 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
18811 # It is most probably a Windows format PATH printed by
18812 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18813 # path with ; separators, and with drive letters. We can handle the
18814 # drive letters (cygwin fileutils understands them), so leave them,
18815 # especially as we might pass files found there to a mingw objdump,
18816 # which wouldn't understand a cygwinified path. Ahh.
18817 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18819 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18823 # pw32 DLLs use 'pw' prefix rather than 'lib'
18824 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18830 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18833 dynamic_linker
='Win32 ld.exe'
18834 # FIXME: first we should search . and the directory the executable is in
18838 darwin
* | rhapsody
*)
18839 dynamic_linker
="$host_os dyld"
18840 version_type
=darwin
18843 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18844 soname_spec
='${libname}${release}${major}$shared_ext'
18845 shlibpath_overrides_runpath
=yes
18846 shlibpath_var
=DYLD_LIBRARY_PATH
18847 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18849 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18856 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18857 soname_spec
='${libname}${release}${shared_ext}$major'
18858 shlibpath_var
=LD_LIBRARY_PATH
18865 freebsd
* | dragonfly
*)
18866 # DragonFly does not have aout. When/if they implement a new
18867 # versioning mechanism, adjust this.
18868 if test -x /usr
/bin
/objformat
; then
18869 objformat
=`/usr/bin/objformat`
18872 freebsd
[123]*) objformat
=aout
;;
18873 *) objformat
=elf
;;
18876 version_type
=freebsd-
$objformat
18877 case $version_type in
18879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18884 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18888 shlibpath_var
=LD_LIBRARY_PATH
18891 shlibpath_overrides_runpath
=yes
18893 freebsd3.
[01]* | freebsdelf3.
[01]*)
18894 shlibpath_overrides_runpath
=yes
18895 hardcode_into_libs
=yes
18897 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18898 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18899 shlibpath_overrides_runpath
=no
18900 hardcode_into_libs
=yes
18902 *) # from 4.6 on, and DragonFly
18903 shlibpath_overrides_runpath
=yes
18904 hardcode_into_libs
=yes
18913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18914 soname_spec
='${libname}${release}${shared_ext}$major'
18915 shlibpath_var
=LD_LIBRARY_PATH
18916 hardcode_into_libs
=yes
18919 hpux9
* | hpux10
* | hpux11
*)
18920 # Give a soname corresponding to the major version so that dld.sl refuses to
18921 # link against other versions.
18928 hardcode_into_libs
=yes
18929 dynamic_linker
="$host_os dld.so"
18930 shlibpath_var
=LD_LIBRARY_PATH
18931 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933 soname_spec
='${libname}${release}${shared_ext}$major'
18934 if test "X$HPUX_IA64_MODE" = X32
; then
18935 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18937 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18939 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18943 hardcode_into_libs
=yes
18944 dynamic_linker
="$host_os dld.sl"
18945 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18946 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948 soname_spec
='${libname}${release}${shared_ext}$major'
18949 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18950 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18954 dynamic_linker
="$host_os dld.sl"
18955 shlibpath_var
=SHLIB_PATH
18956 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18958 soname_spec
='${libname}${release}${shared_ext}$major'
18961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18962 postinstall_cmds
='chmod 555 $lib'
18969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18970 soname_spec
='${libname}${release}${shared_ext}$major'
18971 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18972 shlibpath_var
=LD_LIBRARY_PATH
18973 shlibpath_overrides_runpath
=no
18974 hardcode_into_libs
=yes
18977 irix5
* | irix6
* | nonstopux
*)
18979 nonstopux
*) version_type
=nonstopux
;;
18981 if test "$lt_cv_prog_gnu_ld" = yes; then
18989 soname_spec
='${libname}${release}${shared_ext}$major'
18990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18992 irix5
* | nonstopux
*)
18993 libsuff
= shlibsuff
=
18996 case $LD in # libtool.m4 will add one of these switches to LD
18997 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18998 libsuff
= shlibsuff
= libmagic
=32-bit;;
18999 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
19000 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
19001 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
19002 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
19003 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
19007 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
19008 shlibpath_overrides_runpath
=no
19009 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19010 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
19011 hardcode_into_libs
=yes
19014 # No shared lib support for Linux oldld, aout, or coff.
19015 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
19019 # This must be Linux ELF.
19020 linux
* | k
*bsd
*-gnu)
19024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19025 soname_spec
='${libname}${release}${shared_ext}$major'
19026 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19027 shlibpath_var
=LD_LIBRARY_PATH
19028 shlibpath_overrides_runpath
=no
19029 # This implies no fast_install, which is unacceptable.
19030 # Some rework will be needed to allow for fast_install
19031 # before this can be enabled.
19032 hardcode_into_libs
=yes
19034 # Append ld.so.conf contents to the search path
19035 if test -f /etc
/ld.so.conf
; then
19036 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;/^$/d' | tr '\n' ' '`
19037 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
19040 # We used to test for /lib/ld.so.1 and disable shared libraries on
19041 # powerpc, because MkLinux only supported shared libraries with the
19042 # GNU dynamic linker. Since this was broken with cross compilers,
19043 # most powerpc-linux boxes support dynamic linking these days and
19044 # people can always --disable-shared, the test was removed, and we
19045 # assume the GNU/Linux dynamic linker is in use.
19046 dynamic_linker
='GNU/Linux ld.so'
19053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19054 soname_spec
='${libname}${release}${shared_ext}$major'
19055 shlibpath_var
=LD_LIBRARY_PATH
19056 shlibpath_overrides_runpath
=no
19057 hardcode_into_libs
=yes
19058 dynamic_linker
='NetBSD ld.elf_so'
19065 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19066 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19067 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19068 dynamic_linker
='NetBSD (a.out) ld.so'
19070 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19071 soname_spec
='${libname}${release}${shared_ext}$major'
19072 dynamic_linker
='NetBSD ld.elf_so'
19074 shlibpath_var
=LD_LIBRARY_PATH
19075 shlibpath_overrides_runpath
=yes
19076 hardcode_into_libs
=yes
19081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19082 shlibpath_var
=LD_LIBRARY_PATH
19083 shlibpath_overrides_runpath
=yes
19090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19091 soname_spec
='${libname}${release}${shared_ext}$major'
19092 shlibpath_var
=LD_LIBRARY_PATH
19093 shlibpath_overrides_runpath
=yes
19098 sys_lib_dlsearch_path_spec
="/usr/lib"
19100 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19102 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
19103 *) need_version
=no
;;
19105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19106 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19107 shlibpath_var
=LD_LIBRARY_PATH
19108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19110 openbsd2.
[89] | openbsd2.
[89].
*)
19111 shlibpath_overrides_runpath
=no
19114 shlibpath_overrides_runpath
=yes
19118 shlibpath_overrides_runpath
=yes
19123 libname_spec
='$name'
19126 library_names_spec
='$libname${shared_ext} $libname.a'
19127 dynamic_linker
='OS/2 ld.exe'
19128 shlibpath_var
=LIBPATH
19131 osf3
* | osf4
* | osf5
*)
19135 soname_spec
='${libname}${release}${shared_ext}$major'
19136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19137 shlibpath_var
=LD_LIBRARY_PATH
19138 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19139 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
19150 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19151 soname_spec
='${libname}${release}${shared_ext}$major'
19152 shlibpath_var
=LD_LIBRARY_PATH
19153 shlibpath_overrides_runpath
=yes
19154 hardcode_into_libs
=yes
19155 # ldd complains unless libraries are executable
19156 postinstall_cmds
='chmod +x $lib'
19161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19162 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19163 shlibpath_var
=LD_LIBRARY_PATH
19164 shlibpath_overrides_runpath
=yes
19165 if test "$with_gnu_ld" = yes; then
19173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19174 soname_spec
='${libname}${release}${shared_ext}$major'
19175 shlibpath_var
=LD_LIBRARY_PATH
19176 case $host_vendor in
19178 shlibpath_overrides_runpath
=no
19180 export_dynamic_flag_spec
='${wl}-Blargedynsym'
19181 runpath_var
=LD_RUN_PATH
19189 shlibpath_overrides_runpath
=no
19190 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
19196 if test -d /usr
/nec
;then
19198 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19199 soname_spec
='$libname${shared_ext}.$major'
19200 shlibpath_var
=LD_LIBRARY_PATH
19204 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
19205 version_type
=freebsd-elf
19208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19209 soname_spec
='${libname}${release}${shared_ext}$major'
19210 shlibpath_var
=LD_LIBRARY_PATH
19211 hardcode_into_libs
=yes
19212 if test "$with_gnu_ld" = yes; then
19213 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19214 shlibpath_overrides_runpath
=no
19216 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
19217 shlibpath_overrides_runpath
=yes
19220 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
19224 sys_lib_dlsearch_path_spec
='/usr/lib'
19229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230 soname_spec
='${libname}${release}${shared_ext}$major'
19231 shlibpath_var
=LD_LIBRARY_PATH
19238 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19239 echo "${ECHO_T}$dynamic_linker" >&6; }
19240 test "$dynamic_linker" = no
&& can_build_shared
=no
19242 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
19248 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
19249 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
19255 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
19257 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
19258 if test "$GCC" = yes; then
19259 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19262 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19263 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19264 hardcode_action_F77
=
19265 if test -n "$hardcode_libdir_flag_spec_F77" || \
19266 test -n "$runpath_var_F77" || \
19267 test "X$hardcode_automatic_F77" = "Xyes" ; then
19269 # We can hardcode non-existant directories.
19270 if test "$hardcode_direct_F77" != no
&&
19271 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19272 # have to relink, otherwise we might link with an installed library
19273 # when we should be linking with a yet-to-be-installed one
19274 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19275 test "$hardcode_minus_L_F77" != no
; then
19276 # Linking always hardcodes the temporary library directory.
19277 hardcode_action_F77
=relink
19279 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19280 hardcode_action_F77
=immediate
19283 # We cannot hardcode anything, or else we can only hardcode existing
19285 hardcode_action_F77
=unsupported
19287 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
19288 echo "${ECHO_T}$hardcode_action_F77" >&6; }
19290 if test "$hardcode_action_F77" = relink
; then
19291 # Fast installation is not supported
19292 enable_fast_install
=no
19293 elif test "$shlibpath_overrides_runpath" = yes ||
19294 test "$enable_shared" = no
; then
19295 # Fast installation is not necessary
19296 enable_fast_install
=needless
19300 # The else clause should only fire when bootstrapping the
19301 # libtool distribution, otherwise you forgot to ship ltmain.sh
19302 # with your package, and you will get complaints that there are
19303 # no rules to generate ltmain.sh.
19304 if test -f "$ltmain"; then
19305 # See if we are running on zsh, and set the options which allow our commands through
19306 # without removal of \ escapes.
19307 if test -n "${ZSH_VERSION+set}" ; then
19308 setopt NO_GLOB_SUBST
19310 # Now quote all the things that may contain metacharacters while being
19311 # careful not to overquote the AC_SUBSTed values. We take copies of the
19312 # variables and quote the copies for generation of the libtool script.
19313 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19315 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19316 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19317 deplibs_check_method reload_flag reload_cmds need_locks \
19318 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19319 lt_cv_sys_global_symbol_to_c_name_address \
19320 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19321 old_postinstall_cmds old_postuninstall_cmds \
19325 lt_prog_compiler_wl_F77 \
19326 lt_prog_compiler_pic_F77 \
19327 lt_prog_compiler_static_F77 \
19328 lt_prog_compiler_no_builtin_flag_F77 \
19329 export_dynamic_flag_spec_F77 \
19330 thread_safe_flag_spec_F77 \
19331 whole_archive_flag_spec_F77 \
19332 enable_shared_with_static_runtimes_F77 \
19333 old_archive_cmds_F77 \
19334 old_archive_from_new_cmds_F77 \
19335 predep_objects_F77 \
19336 postdep_objects_F77 \
19339 compiler_lib_search_path_F77 \
19340 compiler_lib_search_dirs_F77 \
19342 archive_expsym_cmds_F77 \
19343 postinstall_cmds_F77 \
19344 postuninstall_cmds_F77 \
19345 old_archive_from_expsyms_cmds_F77 \
19346 allow_undefined_flag_F77 \
19347 no_undefined_flag_F77 \
19348 export_symbols_cmds_F77 \
19349 hardcode_libdir_flag_spec_F77 \
19350 hardcode_libdir_flag_spec_ld_F77 \
19351 hardcode_libdir_separator_F77 \
19352 hardcode_automatic_F77 \
19354 module_expsym_cmds_F77 \
19355 lt_cv_prog_compiler_c_o_F77 \
19356 fix_srcfile_path_F77 \
19357 exclude_expsyms_F77 \
19358 include_expsyms_F77
; do
19361 old_archive_cmds_F77 | \
19362 old_archive_from_new_cmds_F77 | \
19363 archive_cmds_F77 | \
19364 archive_expsym_cmds_F77 | \
19365 module_cmds_F77 | \
19366 module_expsym_cmds_F77 | \
19367 old_archive_from_expsyms_cmds_F77 | \
19368 export_symbols_cmds_F77 | \
19369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19370 postinstall_cmds | postuninstall_cmds | \
19371 old_postinstall_cmds | old_postuninstall_cmds | \
19372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19373 # Double-quote double-evaled strings.
19374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19383 *'\$0 --fallback-echo"')
19384 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19390 cat <<__EOF__ >> "$cfgfile"
19391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19395 # Shell to use when invoking shell scripts.
19398 # Whether or not to build shared libraries.
19399 build_libtool_libs=$enable_shared
19401 # Whether or not to build static libraries.
19402 build_old_libs=$enable_static
19404 # Whether or not to add -lc for building shared libraries.
19405 build_libtool_need_lc=$archive_cmds_need_lc_F77
19407 # Whether or not to disallow shared libs when runtime libs are static
19408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19410 # Whether or not to optimize for fast installation.
19411 fast_install=$enable_fast_install
19414 host_alias=$host_alias
19418 # The build system.
19419 build_alias=$build_alias
19423 # An echo program that does not interpret backslashes.
19428 AR_FLAGS=$lt_AR_FLAGS
19433 # LTCC compiler flags.
19434 LTCFLAGS=$lt_LTCFLAGS
19436 # A language-specific compiler.
19437 CC=$lt_compiler_F77
19439 # Is the compiler the GNU C compiler?
19445 # The linker used to build libraries.
19448 # Whether we need hard or soft links.
19451 # A BSD-compatible nm program.
19454 # A symbol stripping program
19457 # Used to examine libraries when file_magic_cmd begins "file"
19458 MAGIC_CMD=$MAGIC_CMD
19460 # Used on cygwin: DLL creation program.
19463 # Used on cygwin: object dumper.
19466 # Used on cygwin: assembler.
19469 # The name of the directory that contains temporary libtool files.
19472 # How to create reloadable object files.
19473 reload_flag=$lt_reload_flag
19474 reload_cmds=$lt_reload_cmds
19476 # How to pass a linker flag through the compiler.
19477 wl=$lt_lt_prog_compiler_wl_F77
19479 # Object file suffix (normally "o").
19480 objext="$ac_objext"
19482 # Old archive suffix (normally "a").
19485 # Shared library suffix (normally ".so").
19486 shrext_cmds='$shrext_cmds'
19488 # Executable file suffix (normally "").
19491 # Additional compiler flags for building library objects.
19492 pic_flag=$lt_lt_prog_compiler_pic_F77
19495 # What is the maximum length of a command?
19496 max_cmd_len=$lt_cv_sys_max_cmd_len
19498 # Does compiler simultaneously support -c and -o options?
19499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19501 # Must we lock files when doing compilation?
19502 need_locks=$lt_need_locks
19504 # Do we need the lib prefix for modules?
19505 need_lib_prefix=$need_lib_prefix
19507 # Do we need a version for libraries?
19508 need_version=$need_version
19510 # Whether dlopen is supported.
19511 dlopen_support=$enable_dlopen
19513 # Whether dlopen of programs is supported.
19514 dlopen_self=$enable_dlopen_self
19516 # Whether dlopen of statically linked programs is supported.
19517 dlopen_self_static=$enable_dlopen_self_static
19519 # Compiler flag to prevent dynamic linking.
19520 link_static_flag=$lt_lt_prog_compiler_static_F77
19522 # Compiler flag to turn off builtin functions.
19523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19525 # Compiler flag to allow reflexive dlopens.
19526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19528 # Compiler flag to generate shared objects directly from archives.
19529 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19531 # Compiler flag to generate thread-safe objects.
19532 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19534 # Library versioning type.
19535 version_type=$version_type
19537 # Format of library name prefix.
19538 libname_spec=$lt_libname_spec
19540 # List of archive names. First name is the real one, the rest are links.
19541 # The last name is the one that the linker finds with -lNAME.
19542 library_names_spec=$lt_library_names_spec
19544 # The coded name of the library, if different from the real name.
19545 soname_spec=$lt_soname_spec
19547 # Commands used to build and install an old-style archive.
19549 old_archive_cmds=$lt_old_archive_cmds_F77
19550 old_postinstall_cmds=$lt_old_postinstall_cmds
19551 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19553 # Create an old-style archive from a shared archive.
19554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19556 # Create a temporary old-style archive to link instead of a shared archive.
19557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19559 # Commands used to build and install a shared archive.
19560 archive_cmds=$lt_archive_cmds_F77
19561 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19562 postinstall_cmds=$lt_postinstall_cmds
19563 postuninstall_cmds=$lt_postuninstall_cmds
19565 # Commands used to build a loadable module (assumed same as above if empty)
19566 module_cmds=$lt_module_cmds_F77
19567 module_expsym_cmds=$lt_module_expsym_cmds_F77
19569 # Commands to strip libraries.
19570 old_striplib=$lt_old_striplib
19571 striplib=$lt_striplib
19573 # Dependencies to place before the objects being linked to create a
19575 predep_objects=$lt_predep_objects_F77
19577 # Dependencies to place after the objects being linked to create a
19579 postdep_objects=$lt_postdep_objects_F77
19581 # Dependencies to place before the objects being linked to create a
19583 predeps=$lt_predeps_F77
19585 # Dependencies to place after the objects being linked to create a
19587 postdeps=$lt_postdeps_F77
19589 # The directories searched by this compiler when creating a shared
19591 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
19593 # The library search path used internally by the compiler when linking
19594 # a shared library.
19595 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19597 # Method to check whether dependent libraries are shared objects.
19598 deplibs_check_method=$lt_deplibs_check_method
19600 # Command to use when deplibs_check_method == file_magic.
19601 file_magic_cmd=$lt_file_magic_cmd
19603 # Flag that allows shared libraries with undefined symbols to be built.
19604 allow_undefined_flag=$lt_allow_undefined_flag_F77
19606 # Flag that forces no undefined symbols.
19607 no_undefined_flag=$lt_no_undefined_flag_F77
19609 # Commands used to finish a libtool library installation in a directory.
19610 finish_cmds=$lt_finish_cmds
19612 # Same as above, but a single script fragment to be evaled but not shown.
19613 finish_eval=$lt_finish_eval
19615 # Take the output of nm and produce a listing of raw symbols and C names.
19616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19618 # Transform the output of nm in a proper C declaration
19619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19621 # Transform the output of nm in a C name address pair
19622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19624 # This is the shared library runtime path variable.
19625 runpath_var=$runpath_var
19627 # This is the shared library path variable.
19628 shlibpath_var=$shlibpath_var
19630 # Is shlibpath searched before the hard-coded library search path?
19631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19633 # How to hardcode a shared library path into an executable.
19634 hardcode_action=$hardcode_action_F77
19636 # Whether we should hardcode library paths into libraries.
19637 hardcode_into_libs=$hardcode_into_libs
19639 # Flag to hardcode \$libdir into a binary during linking.
19640 # This must work even if \$libdir does not exist.
19641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19643 # If ld is used when linking, flag to hardcode \$libdir into
19644 # a binary during linking. This must work even if \$libdir does
19646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19648 # Whether we need a single -rpath flag with a separated argument.
19649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19652 # resulting binary.
19653 hardcode_direct=$hardcode_direct_F77
19655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19656 # resulting binary.
19657 hardcode_minus_L=$hardcode_minus_L_F77
19659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19660 # the resulting binary.
19661 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19663 # Set to yes if building a shared library automatically hardcodes DIR into the library
19664 # and all subsequent libraries and executables linked against it.
19665 hardcode_automatic=$hardcode_automatic_F77
19667 # Variables whose values should be saved in libtool wrapper scripts and
19668 # restored at relink time.
19669 variables_saved_for_relink="$variables_saved_for_relink"
19671 # Whether libtool must link a program against all its dependency libraries.
19672 link_all_deplibs=$link_all_deplibs_F77
19674 # Compile-time system search path for libraries
19675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19677 # Run-time system search path for libraries
19678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19680 # Fix the shell variable \$srcfile for the compiler.
19681 fix_srcfile_path=$lt_fix_srcfile_path
19683 # Set to yes if exported symbols are required.
19684 always_export_symbols=$always_export_symbols_F77
19686 # The commands to list exported symbols.
19687 export_symbols_cmds=$lt_export_symbols_cmds_F77
19689 # The commands to extract the exported symbol list from a shared archive.
19690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19692 # Symbols that should not be listed in the preloaded symbols.
19693 exclude_expsyms=$lt_exclude_expsyms_F77
19695 # Symbols that must always be exported.
19696 include_expsyms=$lt_include_expsyms_F77
19698 # ### END LIBTOOL TAG CONFIG: $tagname
19704 # If there is no Makefile yet, we rely on a make rule to execute
19705 # `config.status --recheck' to rerun these tests and create the
19706 # libtool script then.
19707 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19708 if test -f "$ltmain_in"; then
19709 test -f Makefile
&& make "$ltmain"
19715 ac_cpp
='$CPP $CPPFLAGS'
19716 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19717 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19718 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19728 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19731 # Source file extension for Java test sources.
19734 # Object file extension for compiled Java test sources.
19738 # Code to be used in simple compile tests
19739 lt_simple_compile_test_code
="class foo {}"
19741 # Code to be used in simple link tests
19742 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
19744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19746 # If no C compiler was specified, use CC.
19749 # If no C compiler flags were specified, use CFLAGS.
19750 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19752 # Allow CC to be a program name with arguments.
19756 # save warnings/boilerplate of simple test code
19757 ac_outfile
=conftest.
$ac_objext
19758 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19759 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19760 _lt_compiler_boilerplate
=`cat conftest.err`
19763 ac_outfile
=conftest.
$ac_objext
19764 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19765 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19766 _lt_linker_boilerplate
=`cat conftest.err`
19770 # Allow CC to be a program name with arguments.
19775 for cc_temp
in $compiler""; do
19777 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19778 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19783 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19786 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19787 archive_cmds_need_lc_GCJ
=no
19789 old_archive_cmds_GCJ
=$old_archive_cmds
19792 lt_prog_compiler_no_builtin_flag_GCJ
=
19794 if test "$GCC" = yes; then
19795 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
19798 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19799 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
19800 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 lt_cv_prog_compiler_rtti_exceptions
=no
19804 ac_outfile
=conftest.
$ac_objext
19805 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19806 lt_compiler_flag
="-fno-rtti -fno-exceptions"
19807 # Insert the option either (1) after the last *FLAGS variable, or
19808 # (2) before a word containing "conftest.", or (3) at the end.
19809 # Note that $ac_compile itself does not contain backslashes and begins
19810 # with a dollar sign (not a hyphen), so the echo should work correctly.
19811 # The option is referenced via a variable to avoid confusing sed.
19812 lt_compile
=`echo "$ac_compile" | $SED \
19813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19815 -e 's:$: $lt_compiler_flag:'`
19816 (eval echo "\"\$as_me:19816: $lt_compile\"" >&5)
19817 (eval "$lt_compile" 2>conftest.err
)
19819 cat conftest.err
>&5
19820 echo "$as_me:19820: \$? = $ac_status" >&5
19821 if (exit $ac_status) && test -s "$ac_outfile"; then
19822 # The compiler can only warn and ignore the option if not recognized
19823 # So say no if there are warnings other than the usual output.
19824 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
19825 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19826 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19827 lt_cv_prog_compiler_rtti_exceptions
=yes
19833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19834 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19836 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
19837 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19844 lt_prog_compiler_wl_GCJ
=
19845 lt_prog_compiler_pic_GCJ
=
19846 lt_prog_compiler_static_GCJ
=
19848 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19851 if test "$GCC" = yes; then
19852 lt_prog_compiler_wl_GCJ
='-Wl,'
19853 lt_prog_compiler_static_GCJ
='-static'
19857 # All AIX code is PIC.
19858 if test "$host_cpu" = ia64
; then
19859 # AIX 5 now supports IA64 processor
19860 lt_prog_compiler_static_GCJ
='-Bstatic'
19865 # FIXME: we need at least 68020 code to build shared libraries, but
19866 # adding the `-m68020' flag to GCC prevents building anything better,
19868 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
19871 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19872 # PIC is the default for these OSes.
19875 mingw
* | cygwin
* | pw32
* | os2
*)
19876 # This hack is so that the source file can tell whether it is being
19877 # built for inclusion in a dll (and should export symbols for example).
19878 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19879 # (--disable-auto-import) libraries
19883 darwin
* | rhapsody
*)
19884 # PIC is the default on this platform
19885 # Common symbols not allowed in MH_DYLIB files
19886 lt_prog_compiler_pic_GCJ
='-fno-common'
19890 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19891 # Instead, we relocate shared libraries at runtime.
19895 # Just because we use GCC doesn't mean we suddenly get shared libraries
19896 # on systems that don't support them.
19897 lt_prog_compiler_can_build_shared_GCJ
=no
19902 if test -d /usr
/nec
; then
19903 lt_prog_compiler_pic_GCJ
=-Kconform_pic
19908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19909 # not for PA HP-UX.
19915 lt_prog_compiler_pic_GCJ
='-fPIC'
19921 lt_prog_compiler_pic_GCJ
='-fPIC'
19925 # PORTME Check for flag to pass linker flags through the system compiler.
19928 lt_prog_compiler_wl_GCJ
='-Wl,'
19929 if test "$host_cpu" = ia64
; then
19930 # AIX 5 now supports IA64 processor
19931 lt_prog_compiler_static_GCJ
='-Bstatic'
19933 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
19937 # PIC is the default on this platform
19938 # Common symbols not allowed in MH_DYLIB files
19939 case $cc_basename in
19941 lt_prog_compiler_pic_GCJ
='-qnocommon'
19942 lt_prog_compiler_wl_GCJ
='-Wl,'
19947 mingw
* | cygwin
* | pw32
* | os2
*)
19948 # This hack is so that the source file can tell whether it is being
19949 # built for inclusion in a dll (and should export symbols for example).
19953 hpux9
* | hpux10
* | hpux11
*)
19954 lt_prog_compiler_wl_GCJ
='-Wl,'
19955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19956 # not for PA HP-UX.
19962 lt_prog_compiler_pic_GCJ
='+Z'
19965 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19966 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
19969 irix5
* | irix6
* | nonstopux
*)
19970 lt_prog_compiler_wl_GCJ
='-Wl,'
19971 # PIC (with -KPIC) is the default.
19972 lt_prog_compiler_static_GCJ
='-non_shared'
19976 lt_prog_compiler_pic_GCJ
='-KPIC'
19977 lt_prog_compiler_static_GCJ
='-Bstatic'
19980 linux
* | k
*bsd
*-gnu)
19981 case $cc_basename in
19983 lt_prog_compiler_wl_GCJ
='-Wl,'
19984 lt_prog_compiler_pic_GCJ
='-KPIC'
19985 lt_prog_compiler_static_GCJ
='-static'
19987 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
19988 # Portland Group compilers (*not* the Pentium gcc compiler,
19989 # which looks to be a dead project)
19990 lt_prog_compiler_wl_GCJ
='-Wl,'
19991 lt_prog_compiler_pic_GCJ
='-fpic'
19992 lt_prog_compiler_static_GCJ
='-Bstatic'
19995 lt_prog_compiler_wl_GCJ
='-Wl,'
19996 # All Alpha code is PIC.
19997 lt_prog_compiler_static_GCJ
='-non_shared'
20000 case `$CC -V 2>&1 | sed 5q` in
20003 lt_prog_compiler_pic_GCJ
='-KPIC'
20004 lt_prog_compiler_static_GCJ
='-Bstatic'
20005 lt_prog_compiler_wl_GCJ
='-Wl,'
20008 # Sun Fortran 8.3 passes all unrecognized flags to the linker
20009 lt_prog_compiler_pic_GCJ
='-KPIC'
20010 lt_prog_compiler_static_GCJ
='-Bstatic'
20011 lt_prog_compiler_wl_GCJ
=''
20018 osf3
* | osf4
* | osf5
*)
20019 lt_prog_compiler_wl_GCJ
='-Wl,'
20020 # All OSF/1 code is PIC.
20021 lt_prog_compiler_static_GCJ
='-non_shared'
20025 lt_prog_compiler_static_GCJ
='-non_shared'
20029 lt_prog_compiler_pic_GCJ
='-KPIC'
20030 lt_prog_compiler_static_GCJ
='-Bstatic'
20031 case $cc_basename in
20032 f77
* | f90
* | f95
*)
20033 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
20035 lt_prog_compiler_wl_GCJ
='-Wl,';;
20040 lt_prog_compiler_wl_GCJ
='-Qoption ld '
20041 lt_prog_compiler_pic_GCJ
='-PIC'
20042 lt_prog_compiler_static_GCJ
='-Bstatic'
20045 sysv4 | sysv4.2uw2
* | sysv4.3
*)
20046 lt_prog_compiler_wl_GCJ
='-Wl,'
20047 lt_prog_compiler_pic_GCJ
='-KPIC'
20048 lt_prog_compiler_static_GCJ
='-Bstatic'
20052 if test -d /usr
/nec
;then
20053 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
20054 lt_prog_compiler_static_GCJ
='-Bstatic'
20058 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20059 lt_prog_compiler_wl_GCJ
='-Wl,'
20060 lt_prog_compiler_pic_GCJ
='-KPIC'
20061 lt_prog_compiler_static_GCJ
='-Bstatic'
20065 lt_prog_compiler_wl_GCJ
='-Wl,'
20066 lt_prog_compiler_can_build_shared_GCJ
=no
20070 lt_prog_compiler_pic_GCJ
='-pic'
20071 lt_prog_compiler_static_GCJ
='-Bstatic'
20075 lt_prog_compiler_can_build_shared_GCJ
=no
20080 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
20081 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
20084 # Check to make sure the PIC flag actually works.
20086 if test -n "$lt_prog_compiler_pic_GCJ"; then
20088 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
20089 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
20090 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 lt_cv_prog_compiler_pic_works_GCJ
=no
20094 ac_outfile
=conftest.
$ac_objext
20095 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20096 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
20097 # Insert the option either (1) after the last *FLAGS variable, or
20098 # (2) before a word containing "conftest.", or (3) at the end.
20099 # Note that $ac_compile itself does not contain backslashes and begins
20100 # with a dollar sign (not a hyphen), so the echo should work correctly.
20101 # The option is referenced via a variable to avoid confusing sed.
20102 lt_compile
=`echo "$ac_compile" | $SED \
20103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20105 -e 's:$: $lt_compiler_flag:'`
20106 (eval echo "\"\$as_me:20106: $lt_compile\"" >&5)
20107 (eval "$lt_compile" 2>conftest.err
)
20109 cat conftest.err
>&5
20110 echo "$as_me:20110: \$? = $ac_status" >&5
20111 if (exit $ac_status) && test -s "$ac_outfile"; then
20112 # The compiler can only warn and ignore the option if not recognized
20113 # So say no if there are warnings other than the usual output.
20114 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
20115 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20116 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20117 lt_cv_prog_compiler_pic_works_GCJ
=yes
20123 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
20124 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
20126 if test x
"$lt_cv_prog_compiler_pic_works_GCJ" = xyes
; then
20127 case $lt_prog_compiler_pic_GCJ in
20129 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
20132 lt_prog_compiler_pic_GCJ
=
20133 lt_prog_compiler_can_build_shared_GCJ
=no
20138 # For platforms which do not support PIC, -DPIC is meaningless:
20140 lt_prog_compiler_pic_GCJ
=
20143 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
20148 # Check to make sure the static flag actually works.
20150 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
20151 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20152 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20153 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 lt_cv_prog_compiler_static_works_GCJ
=no
20157 save_LDFLAGS
="$LDFLAGS"
20158 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20159 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20160 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20161 # The linker can only warn and ignore the option if not recognized
20162 # So say no if there are warnings
20163 if test -s conftest.err
; then
20164 # Append any errors to the config.log.
20165 cat conftest.err
1>&5
20166 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
20167 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20168 if diff conftest.exp conftest.er2
>/dev
/null
; then
20169 lt_cv_prog_compiler_static_works_GCJ
=yes
20172 lt_cv_prog_compiler_static_works_GCJ
=yes
20176 LDFLAGS
="$save_LDFLAGS"
20179 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
20180 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
20182 if test x
"$lt_cv_prog_compiler_static_works_GCJ" = xyes
; then
20185 lt_prog_compiler_static_GCJ
=
20189 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20190 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20191 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 lt_cv_prog_compiler_c_o_GCJ
=no
20195 $rm -r conftest
2>/dev
/null
20199 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20201 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20202 # Insert the option either (1) after the last *FLAGS variable, or
20203 # (2) before a word containing "conftest.", or (3) at the end.
20204 # Note that $ac_compile itself does not contain backslashes and begins
20205 # with a dollar sign (not a hyphen), so the echo should work correctly.
20206 lt_compile
=`echo "$ac_compile" | $SED \
20207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20209 -e 's:$: $lt_compiler_flag:'`
20210 (eval echo "\"\$as_me:20210: $lt_compile\"" >&5)
20211 (eval "$lt_compile" 2>out
/conftest.err
)
20213 cat out
/conftest.err
>&5
20214 echo "$as_me:20214: \$? = $ac_status" >&5
20215 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20217 # The compiler can only warn and ignore the option if not recognized
20218 # So say no if there are warnings
20219 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
20220 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20221 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20222 lt_cv_prog_compiler_c_o_GCJ
=yes
20227 # SGI C++ compiler will create directory out/ii_files/ for
20228 # template instantiation
20229 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
20230 $rm out
/* && rmdir out
20236 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20237 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
20240 hard_links
="nottested"
20241 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
20242 # do not overwrite the value of need_locks provided by the user
20243 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20244 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20247 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20249 ln conftest.a conftest.b
2>&5 || hard_links
=no
20250 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20251 { echo "$as_me:$LINENO: result: $hard_links" >&5
20252 echo "${ECHO_T}$hard_links" >&6; }
20253 if test "$hard_links" = no
; then
20254 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20255 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20262 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20263 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20266 allow_undefined_flag_GCJ
=
20267 enable_shared_with_static_runtimes_GCJ
=no
20269 archive_expsym_cmds_GCJ
=
20270 old_archive_From_new_cmds_GCJ
=
20271 old_archive_from_expsyms_cmds_GCJ
=
20272 export_dynamic_flag_spec_GCJ
=
20273 whole_archive_flag_spec_GCJ
=
20274 thread_safe_flag_spec_GCJ
=
20275 hardcode_libdir_flag_spec_GCJ
=
20276 hardcode_libdir_flag_spec_ld_GCJ
=
20277 hardcode_libdir_separator_GCJ
=
20278 hardcode_direct_GCJ
=no
20279 hardcode_minus_L_GCJ
=no
20280 hardcode_shlibpath_var_GCJ
=unsupported
20281 link_all_deplibs_GCJ
=unknown
20282 hardcode_automatic_GCJ
=no
20284 module_expsym_cmds_GCJ
=
20285 always_export_symbols_GCJ
=no
20286 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20287 # include_expsyms should be a list of space-separated symbols to be *always*
20288 # included in the symbol list
20289 include_expsyms_GCJ
=
20290 # exclude_expsyms can be an extended regexp of symbols to exclude
20291 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20292 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20293 # as well as any symbol that contains `d'.
20294 exclude_expsyms_GCJ
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20295 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20296 # platforms (ab)use it in PIC code, but their linkers get confused if
20297 # the symbol is explicitly referenced. Since portable code cannot
20298 # rely on this symbol name, it's probably fine to never include it in
20299 # preloaded symbol tables.
20300 # Exclude shared library initialization/finalization symbols.
20301 extract_expsyms_cmds
=
20302 # Just being paranoid about ensuring that cc_basename is set.
20303 for cc_temp
in $compiler""; do
20305 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
20306 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
20311 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20314 cygwin
* | mingw
* | pw32
*)
20315 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20316 # When not using gcc, we currently assume that we are using
20317 # Microsoft Visual C++.
20318 if test "$GCC" != yes; then
20323 # we just hope/assume this is gcc and not c89 (= MSVC++)
20332 if test "$with_gnu_ld" = yes; then
20333 # If archive_cmds runs LD, not CC, wlarc should be empty
20336 # Set some defaults for GNU ld with shared library support. These
20337 # are reset later if shared libraries are not supported. Putting them
20338 # here allows them to be overridden if necessary.
20339 runpath_var
=LD_RUN_PATH
20340 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
20341 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
20342 # ancient GNU ld didn't support --whole-archive et. al.
20343 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
20344 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20346 whole_archive_flag_spec_GCJ
=
20348 supports_anon_versioning
=no
20349 case `$LD -v 2>/dev/null` in
20350 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
20351 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
20352 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
20353 *\
2.11.
*) ;; # other 2.11 versions
20354 *) supports_anon_versioning
=yes ;;
20357 # See if GNU ld supports shared libraries.
20360 # On AIX/PPC, the GNU linker is very broken
20361 if test "$host_cpu" != ia64
; then
20365 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20366 *** to be unable to reliably create shared libraries on AIX.
20367 *** Therefore, libtool is disabling shared libraries support. If you
20368 *** really care for shared libraries, you may want to modify your PATH
20369 *** so that a non-GNU linker is found, and then restart.
20376 archive_cmds_GCJ
='$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)'
20377 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
20378 hardcode_minus_L_GCJ
=yes
20380 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20381 # that the semantics of dynamic libraries on AmigaOS, at least up
20382 # to version 4, is to share data among multiple programs linked
20383 # with the same dynamic library. Since this doesn't match the
20384 # behavior of shared libraries on other platforms, we can't use
20390 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
20391 allow_undefined_flag_GCJ
=unsupported
20392 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20393 # support --undefined. This deserves some investigation. FIXME
20394 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20400 cygwin
* | mingw
* | pw32
*)
20401 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
20402 # as there is no search path for DLLs.
20403 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
20404 allow_undefined_flag_GCJ
=unsupported
20405 always_export_symbols_GCJ
=no
20406 enable_shared_with_static_runtimes_GCJ
=yes
20407 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20409 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
20410 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20411 # If the export-symbols file already is a .def file (1st line
20412 # is EXPORTS), use it as is; otherwise, prepend...
20413 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20414 cp $export_symbols $output_objdir/$soname.def;
20416 echo EXPORTS > $output_objdir/$soname.def;
20417 cat $export_symbols >> $output_objdir/$soname.def;
20419 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20426 hardcode_direct_GCJ
=no
20427 hardcode_shlibpath_var_GCJ
=no
20428 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
20429 export_dynamic_flag_spec_GCJ
='${wl}-E'
20430 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20431 # Instead, shared libraries are loaded at an image base (0x10000000 by
20432 # default) and relocated if they conflict, which is a slow very memory
20433 # consuming and fragmenting process. To avoid this, we pick a random,
20434 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20435 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20436 archive_cmds_GCJ
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20437 archive_expsym_cmds_GCJ
='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'
20440 gnu
* | linux
* | k
*bsd
*-gnu)
20441 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
20443 case $cc_basename,$host_cpu in
20444 pgcc
*) # Portland Group C compiler
20445 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20446 tmp_addflag
=' $pic_flag'
20448 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
20449 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20450 tmp_addflag
=' $pic_flag -Mnomain' ;;
20451 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
20452 tmp_addflag
=' -i_dynamic' ;;
20453 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
20454 tmp_addflag
=' -i_dynamic -nofor_main' ;;
20455 ifc
* | ifort
*) # Intel Fortran compiler
20456 tmp_addflag
=' -nofor_main' ;;
20458 case `$CC -V 2>&1 | sed 5q` in
20459 *Sun\ C
*) # Sun C 5.9
20460 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20461 tmp_sharedflag
='-G' ;;
20462 *Sun\ F
*) # Sun Fortran 8.3
20463 tmp_sharedflag
='-G' ;;
20465 tmp_sharedflag
='-shared' ;;
20467 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20469 if test $supports_anon_versioning = yes; then
20470 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
20471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20472 $echo "local: *; };" >> $output_objdir/$libname.ver~
20473 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20475 link_all_deplibs_GCJ
=no
20481 netbsd
* | netbsdelf
*-gnu)
20482 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20483 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20486 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20487 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20492 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
20496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20497 *** create shared libraries on Solaris systems. Therefore, libtool
20498 *** is disabling shared libraries support. We urge you to upgrade GNU
20499 *** binutils to release 2.9.1 or newer. Another option is to modify
20500 *** your PATH or compiler configuration so that the native linker is
20501 *** used, and then restart.
20504 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
20505 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20506 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20512 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
20513 case `$LD -v 2>&1` in
20514 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
20518 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20519 *** reliably create shared libraries on SCO systems. Therefore, libtool
20520 *** is disabling shared libraries support. We urge you to upgrade GNU
20521 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20522 *** your PATH or compiler configuration so that the native linker is
20523 *** used, and then restart.
20528 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
20529 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20530 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20531 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20540 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20542 hardcode_direct_GCJ
=yes
20543 hardcode_shlibpath_var_GCJ
=no
20547 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
20548 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20549 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20556 if test "$ld_shlibs_GCJ" = no
; then
20558 hardcode_libdir_flag_spec_GCJ
=
20559 export_dynamic_flag_spec_GCJ
=
20560 whole_archive_flag_spec_GCJ
=
20563 # PORTME fill in a description of your system's linker (not GNU ld)
20566 allow_undefined_flag_GCJ
=unsupported
20567 always_export_symbols_GCJ
=yes
20568 archive_expsym_cmds_GCJ
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
20569 # Note: this linker hardcodes the directories in LIBPATH if there
20570 # are no directories specified by -L.
20571 hardcode_minus_L_GCJ
=yes
20572 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20573 # Neither direct hardcoding nor static linking is supported with a
20575 hardcode_direct_GCJ
=unsupported
20580 if test "$host_cpu" = ia64
; then
20581 # On IA64, the linker does run time linking by default, so we don't
20582 # have to do anything special.
20583 aix_use_runtimelinking
=no
20584 exp_sym_flag
='-Bexport'
20587 # If we're using GNU nm, then we don't want the "-C" option.
20588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20589 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
20590 export_symbols_cmds_GCJ
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20592 export_symbols_cmds_GCJ
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20594 aix_use_runtimelinking
=no
20596 # Test if we are trying to use run time linking or normal
20597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20598 # need to do runtime linking.
20599 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20600 for ld_flag
in $LDFLAGS; do
20601 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
20602 aix_use_runtimelinking
=yes
20609 exp_sym_flag
='-bexport'
20610 no_entry_flag
='-bnoentry'
20613 # When large executables or shared objects are built, AIX ld can
20614 # have problems creating the table of contents. If linking a library
20615 # or program results in "error TOC overflow" add -mminimal-toc to
20616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20619 archive_cmds_GCJ
=''
20620 hardcode_direct_GCJ
=yes
20621 hardcode_libdir_separator_GCJ
=':'
20622 link_all_deplibs_GCJ
=yes
20624 if test "$GCC" = yes; then
20625 case $host_os in aix4.
[012]|aix4.
[012].
*)
20626 # We only want to do this on AIX 4.2 and lower, the check
20627 # below for broken collect2 doesn't work under 4.3+
20628 collect2name
=`${CC} -print-prog-name=collect2`
20629 if test -f "$collect2name" && \
20630 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
20632 # We have reworked collect2
20635 # We have old collect2
20636 hardcode_direct_GCJ
=unsupported
20637 # It fails to find uninstalled libraries when the uninstalled
20638 # path is not listed in the libpath. Setting hardcode_minus_L
20639 # to unsupported forces relinking
20640 hardcode_minus_L_GCJ
=yes
20641 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
20642 hardcode_libdir_separator_GCJ
=
20646 shared_flag
='-shared'
20647 if test "$aix_use_runtimelinking" = yes; then
20648 shared_flag
="$shared_flag "'${wl}-G'
20652 if test "$host_cpu" = ia64
; then
20653 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20654 # chokes on -Wl,-G. The following line is correct:
20657 if test "$aix_use_runtimelinking" = yes; then
20658 shared_flag
='${wl}-G'
20660 shared_flag
='${wl}-bM:SRE'
20665 # It seems that -bexpall does not export symbols beginning with
20666 # underscore (_), so it is better to generate a list of symbols to export.
20667 always_export_symbols_GCJ
=yes
20668 if test "$aix_use_runtimelinking" = yes; then
20669 # Warning - without using the other runtime loading flags (-brtl),
20670 # -berok will link without error, but may produce a broken library.
20671 allow_undefined_flag_GCJ
='-berok'
20672 # Determine the default libpath from the value encoded in an empty executable.
20673 cat >conftest.
$ac_ext <<_ACEOF
20676 cat confdefs.h
>>conftest.
$ac_ext
20677 cat >>conftest.
$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20688 rm -f conftest.
$ac_objext conftest
$ac_exeext
20689 if { (ac_try
="$ac_link"
20690 case "(($ac_try" in
20691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_link") 2>conftest.er1
20697 grep -v '^ *+' conftest.er1 >conftest.err
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } && {
20702 test -z "$ac_c_werror_flag" ||
20703 test ! -s conftest.err
20704 } && test -s conftest$ac_exeext &&
20705 $as_test_x conftest$ac_exeext; then
20707 lt_aix_libpath_sed='
20708 /Import File Strings/,/^$/ {
20714 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
20715 # Check for a 64-bit object if we didn't find anything.
20716 if test -z "$aix_libpath"; then
20717 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20727 conftest$ac_exeext conftest.$ac_ext
20728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20730 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20731 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20733 if test "$host_cpu" = ia64; then
20734 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20735 allow_undefined_flag_GCJ="-z nodefs"
20736 archive_expsym_cmds_GCJ="\$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"
20738 # Determine the default libpath from the value encoded in an empty executable.
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20754 rm -f conftest.$ac_objext conftest$ac_exeext
20755 if { (ac_try="$ac_link"
20756 case "(($ac_try" in
20757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20758 *) ac_try_echo
=$ac_try;;
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_link") 2>conftest.er1
20763 grep -v '^ *+' conftest.er1
>conftest.err
20765 cat conftest.err
>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } && {
20768 test -z "$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 } && test -s conftest
$ac_exeext &&
20771 $as_test_x conftest
$ac_exeext; then
20773 lt_aix_libpath_sed
='
20774 /Import File Strings/,/^$/ {
20780 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20781 # Check for a 64-bit object if we didn't find anything.
20782 if test -z "$aix_libpath"; then
20783 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.
$ac_ext >&5
20792 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20793 conftest
$ac_exeext conftest.
$ac_ext
20794 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20796 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
20797 # Warning - without using the other run time loading flags,
20798 # -berok will link without error, but may produce a broken library.
20799 no_undefined_flag_GCJ
=' ${wl}-bernotok'
20800 allow_undefined_flag_GCJ
=' ${wl}-berok'
20801 # Exported symbols can be pulled into shared objects from archives
20802 whole_archive_flag_spec_GCJ
='$convenience'
20803 archive_cmds_need_lc_GCJ
=yes
20804 # This is similar to how AIX traditionally builds its shared libraries.
20805 archive_expsym_cmds_GCJ
="\$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'
20811 archive_cmds_GCJ
='$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)'
20812 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
20813 hardcode_minus_L_GCJ
=yes
20814 # see comment about different semantics on the GNU ld section
20819 export_dynamic_flag_spec_GCJ
=-rdynamic
20822 cygwin
* | mingw
* | pw32
*)
20823 # When not using gcc, we currently assume that we are using
20824 # Microsoft Visual C++.
20825 # hardcode_libdir_flag_spec is actually meaningless, as there is
20826 # no search path for DLLs.
20827 hardcode_libdir_flag_spec_GCJ
=' '
20828 allow_undefined_flag_GCJ
=unsupported
20829 # Tell ltmain to make .lib files, not .a files.
20831 # Tell ltmain to make .dll files, not .so files.
20833 # FIXME: Setting linknames here is a bad hack.
20834 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20835 # The linker will automatically build a .lib file if we build a DLL.
20836 old_archive_From_new_cmds_GCJ
='true'
20837 # FIXME: Should let the user specify the lib program.
20838 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
20839 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
20840 enable_shared_with_static_runtimes_GCJ
=yes
20843 darwin
* | rhapsody
*)
20845 rhapsody
* | darwin1.
[012])
20846 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
20849 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20850 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20852 case ${MACOSX_DEPLOYMENT_TARGET} in
20854 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20857 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
20863 archive_cmds_need_lc_GCJ
=no
20864 hardcode_direct_GCJ
=no
20865 hardcode_automatic_GCJ
=yes
20866 hardcode_shlibpath_var_GCJ
=unsupported
20867 whole_archive_flag_spec_GCJ
=''
20868 link_all_deplibs_GCJ
=yes
20869 if test "$GCC" = yes ; then
20870 output_verbose_link_cmd
='echo'
20871 archive_cmds_GCJ
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20872 module_cmds_GCJ
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20873 archive_expsym_cmds_GCJ
="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}"
20874 module_expsym_cmds_GCJ
="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}"
20876 case $cc_basename in
20878 output_verbose_link_cmd
='echo'
20879 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20880 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20881 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20882 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20883 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20893 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20894 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
20895 hardcode_shlibpath_var_GCJ
=no
20902 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20903 # support. Future versions do this automatically, but an explicit c++rt0.o
20904 # does not break anything, and helps significantly (at the cost of a little
20907 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20908 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
20909 hardcode_direct_GCJ
=yes
20910 hardcode_shlibpath_var_GCJ
=no
20913 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20915 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20916 hardcode_direct_GCJ
=yes
20917 hardcode_minus_L_GCJ
=yes
20918 hardcode_shlibpath_var_GCJ
=no
20921 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20922 freebsd
* | dragonfly
*)
20923 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20924 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
20925 hardcode_direct_GCJ
=yes
20926 hardcode_shlibpath_var_GCJ
=no
20930 if test "$GCC" = yes; then
20931 archive_cmds_GCJ
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20933 archive_cmds_GCJ
='$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'
20935 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
20936 hardcode_libdir_separator_GCJ
=:
20937 hardcode_direct_GCJ
=yes
20939 # hardcode_minus_L: Not really in the search PATH,
20940 # but as the default location of the library.
20941 hardcode_minus_L_GCJ
=yes
20942 export_dynamic_flag_spec_GCJ
='${wl}-E'
20946 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
20947 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20949 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20951 if test "$with_gnu_ld" = no
; then
20952 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
20953 hardcode_libdir_separator_GCJ
=:
20955 hardcode_direct_GCJ
=yes
20956 export_dynamic_flag_spec_GCJ
='${wl}-E'
20958 # hardcode_minus_L: Not really in the search PATH,
20959 # but as the default location of the library.
20960 hardcode_minus_L_GCJ
=yes
20965 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
20968 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20971 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20974 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20980 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20983 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20986 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20990 if test "$with_gnu_ld" = no
; then
20991 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
20992 hardcode_libdir_separator_GCJ
=:
20996 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
20997 hardcode_direct_GCJ
=no
20998 hardcode_shlibpath_var_GCJ
=no
21001 hardcode_direct_GCJ
=yes
21002 export_dynamic_flag_spec_GCJ
='${wl}-E'
21004 # hardcode_minus_L: Not really in the search PATH,
21005 # but as the default location of the library.
21006 hardcode_minus_L_GCJ
=yes
21012 irix5
* | irix6
* | nonstopux
*)
21013 if test "$GCC" = yes; then
21014 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21016 archive_cmds_GCJ
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21017 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
21019 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
21020 hardcode_libdir_separator_GCJ
=:
21021 link_all_deplibs_GCJ
=yes
21024 netbsd
* | netbsdelf
*-gnu)
21025 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
21026 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21028 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21030 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
21031 hardcode_direct_GCJ
=yes
21032 hardcode_shlibpath_var_GCJ
=no
21036 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21037 hardcode_direct_GCJ
=yes
21038 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
21039 hardcode_libdir_separator_GCJ
=:
21040 hardcode_shlibpath_var_GCJ
=no
21044 if test -f /usr
/libexec
/ld.so
; then
21045 hardcode_direct_GCJ
=yes
21046 hardcode_shlibpath_var_GCJ
=no
21047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21048 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21049 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21050 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
21051 export_dynamic_flag_spec_GCJ
='${wl}-E'
21054 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
21055 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21056 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
21059 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21060 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
21070 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
21071 hardcode_minus_L_GCJ
=yes
21072 allow_undefined_flag_GCJ
=unsupported
21073 archive_cmds_GCJ
='$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'
21074 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21078 if test "$GCC" = yes; then
21079 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
21080 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21082 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
21083 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21085 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
21086 hardcode_libdir_separator_GCJ
=:
21089 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
21090 if test "$GCC" = yes; then
21091 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
21092 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21093 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
21095 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
21096 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21097 archive_expsym_cmds_GCJ
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
21098 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
21100 # Both c and cxx compiler support -rpath directly
21101 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
21103 hardcode_libdir_separator_GCJ
=:
21107 no_undefined_flag_GCJ
=' -z text'
21108 if test "$GCC" = yes; then
21110 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21111 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21112 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21115 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21116 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21117 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21119 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
21120 hardcode_shlibpath_var_GCJ
=no
21122 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
21124 # The compiler driver will combine and reorder linker options,
21125 # but understands `-z linker_flag'. GCC discards it without `$wl',
21126 # but is careful enough not to reorder.
21127 # Supported since Solaris 2.6 (maybe 2.5.1?)
21128 if test "$GCC" = yes; then
21129 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21131 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
21135 link_all_deplibs_GCJ
=yes
21139 if test "x$host_vendor" = xsequent
; then
21140 # Use $CC to link under sequent, because it throws in some extra .o
21141 # files that make .init and .fini sections work.
21142 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21144 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21146 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
21147 hardcode_direct_GCJ
=yes
21148 hardcode_minus_L_GCJ
=yes
21149 hardcode_shlibpath_var_GCJ
=no
21153 case $host_vendor in
21155 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21156 hardcode_direct_GCJ
=yes # is this really true???
21159 ## LD is ld it makes a PLAMLIB
21160 ## CC just makes a GrossModule.
21161 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21162 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
21163 hardcode_direct_GCJ
=no
21166 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21167 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
21170 runpath_var
='LD_RUN_PATH'
21171 hardcode_shlibpath_var_GCJ
=no
21175 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21176 hardcode_shlibpath_var_GCJ
=no
21177 export_dynamic_flag_spec_GCJ
='-Bexport'
21181 if test -d /usr
/nec
; then
21182 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21183 hardcode_shlibpath_var_GCJ
=no
21184 runpath_var
=LD_RUN_PATH
21185 hardcode_runpath_var
=yes
21190 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
21191 no_undefined_flag_GCJ
='${wl}-z,text'
21192 archive_cmds_need_lc_GCJ
=no
21193 hardcode_shlibpath_var_GCJ
=no
21194 runpath_var
='LD_RUN_PATH'
21196 if test "$GCC" = yes; then
21197 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21198 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21200 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21201 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21205 sysv5
* | sco3.2v5
* | sco5v6
*)
21206 # Note: We can NOT use -z defs as we might desire, because we do not
21207 # link with -lc, and that would cause any symbols used from libc to
21208 # always be unresolved, which means just about no library would
21209 # ever link correctly. If we're not using GNU ld we use -z text
21210 # though, which does catch some bad symbols but isn't as heavy-handed
21212 no_undefined_flag_GCJ
='${wl}-z,text'
21213 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
21214 archive_cmds_need_lc_GCJ
=no
21215 hardcode_shlibpath_var_GCJ
=no
21216 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21217 hardcode_libdir_separator_GCJ
=':'
21218 link_all_deplibs_GCJ
=yes
21219 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
21220 runpath_var
='LD_RUN_PATH'
21222 if test "$GCC" = yes; then
21223 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21224 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21226 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21227 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21232 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21233 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
21234 hardcode_shlibpath_var_GCJ
=no
21243 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
21244 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
21245 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
21248 # Do we need to explicitly link libc?
21250 case "x$archive_cmds_need_lc_GCJ" in
21252 # Assume -lc should be added
21253 archive_cmds_need_lc_GCJ
=yes
21255 if test "$enable_shared" = yes && test "$GCC" = yes; then
21256 case $archive_cmds_GCJ in
21258 # FIXME: we may have to deal with multi-command sequences.
21261 # Test whether the compiler implicitly links with -lc since on some
21262 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21263 # to ld, don't add -lc before -lgcc.
21264 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21265 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21267 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21270 (eval $ac_compile) 2>&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } 2>conftest.err
; then
21276 libobjs
=conftest.
$ac_objext
21278 wl
=$lt_prog_compiler_wl_GCJ
21279 pic_flag
=$lt_prog_compiler_pic_GCJ
21285 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
21286 allow_undefined_flag_GCJ
=
21287 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21288 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }
21293 archive_cmds_need_lc_GCJ
=no
21295 archive_cmds_need_lc_GCJ
=yes
21297 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
21299 cat conftest.err
1>&5
21302 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
21303 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
21310 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21311 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21312 library_names_spec
=
21313 libname_spec
='lib$name'
21317 postuninstall_cmds
=
21321 shlibpath_overrides_runpath
=unknown
21323 dynamic_linker
="$host_os ld.so"
21324 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21326 need_lib_prefix
=unknown
21327 hardcode_into_libs
=no
21329 # when you set need_version to no, make sure it does not cause -set_version
21330 # flags to be left without arguments
21331 need_version
=unknown
21336 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21337 shlibpath_var
=LIBPATH
21339 # AIX 3 has no versioning support, so we append a major version to the name.
21340 soname_spec
='${libname}${release}${shared_ext}$major'
21347 hardcode_into_libs
=yes
21348 if test "$host_cpu" = ia64
; then
21349 # AIX 5 supports IA64
21350 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21351 shlibpath_var
=LD_LIBRARY_PATH
21353 # With GCC up to 2.95.x, collect2 would create an import file
21354 # for dependence libraries. The import file would start with
21355 # the line `#! .'. This would cause the generated library to
21356 # depend on `.', always an invalid library. This was fixed in
21357 # development snapshots of GCC prior to 3.0.
21359 aix4 | aix4.
[01] | aix4.
[01].
*)
21360 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21362 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
21365 can_build_shared
=no
21369 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21370 # soname into executable. Probably we can add versioning support to
21371 # collect2, so additional links can be useful in future.
21372 if test "$aix_use_runtimelinking" = yes; then
21373 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21374 # instead of lib<name>.a to let people know that these are not
21375 # typical AIX shared libraries.
21376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21378 # We preserve .a as extension for shared libraries through AIX4.2
21379 # and later when we are not doing run time linking.
21380 library_names_spec
='${libname}${release}.a $libname.a'
21381 soname_spec
='${libname}${release}${shared_ext}$major'
21383 shlibpath_var
=LIBPATH
21388 library_names_spec
='$libname.ixlibrary $libname.a'
21389 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21390 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
21394 library_names_spec
='${libname}${shared_ext}'
21395 dynamic_linker
="$host_os ld.so"
21396 shlibpath_var
=LIBRARY_PATH
21402 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21403 soname_spec
='${libname}${release}${shared_ext}$major'
21404 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21405 shlibpath_var
=LD_LIBRARY_PATH
21406 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21407 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21408 # the default ld.so.conf also contains /usr/contrib/lib and
21409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21410 # libtool to hard-code these into programs
21413 cygwin
* | mingw
* | pw32
*)
21414 version_type
=windows
21419 case $GCC,$host_os in
21420 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
21421 library_names_spec
='$libname.dll.a'
21422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21423 postinstall_cmds
='base_file=`basename \${file}`~
21424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21425 dldir=$destdir/`dirname \$dlpath`~
21426 test -d \$dldir || mkdir -p \$dldir~
21427 $install_prog $dir/$dlname \$dldir/$dlname~
21428 chmod a+x \$dldir/$dlname'
21429 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21430 dlpath=$dir/\$dldll~
21432 shlibpath_overrides_runpath
=yes
21436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21437 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21438 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
21441 # MinGW DLLs use traditional 'lib' prefix
21442 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21443 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21444 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
21445 # It is most probably a Windows format PATH printed by
21446 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21447 # path with ; separators, and with drive letters. We can handle the
21448 # drive letters (cygwin fileutils understands them), so leave them,
21449 # especially as we might pass files found there to a mingw objdump,
21450 # which wouldn't understand a cygwinified path. Ahh.
21451 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21453 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21457 # pw32 DLLs use 'pw' prefix rather than 'lib'
21458 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21464 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21467 dynamic_linker
='Win32 ld.exe'
21468 # FIXME: first we should search . and the directory the executable is in
21472 darwin
* | rhapsody
*)
21473 dynamic_linker
="$host_os dyld"
21474 version_type
=darwin
21477 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21478 soname_spec
='${libname}${release}${major}$shared_ext'
21479 shlibpath_overrides_runpath
=yes
21480 shlibpath_var
=DYLD_LIBRARY_PATH
21481 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21483 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21490 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21491 soname_spec
='${libname}${release}${shared_ext}$major'
21492 shlibpath_var
=LD_LIBRARY_PATH
21499 freebsd
* | dragonfly
*)
21500 # DragonFly does not have aout. When/if they implement a new
21501 # versioning mechanism, adjust this.
21502 if test -x /usr
/bin
/objformat
; then
21503 objformat
=`/usr/bin/objformat`
21506 freebsd
[123]*) objformat
=aout
;;
21507 *) objformat
=elf
;;
21510 version_type
=freebsd-
$objformat
21511 case $version_type in
21513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21518 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21522 shlibpath_var
=LD_LIBRARY_PATH
21525 shlibpath_overrides_runpath
=yes
21527 freebsd3.
[01]* | freebsdelf3.
[01]*)
21528 shlibpath_overrides_runpath
=yes
21529 hardcode_into_libs
=yes
21531 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21532 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21533 shlibpath_overrides_runpath
=no
21534 hardcode_into_libs
=yes
21536 *) # from 4.6 on, and DragonFly
21537 shlibpath_overrides_runpath
=yes
21538 hardcode_into_libs
=yes
21547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21548 soname_spec
='${libname}${release}${shared_ext}$major'
21549 shlibpath_var
=LD_LIBRARY_PATH
21550 hardcode_into_libs
=yes
21553 hpux9
* | hpux10
* | hpux11
*)
21554 # Give a soname corresponding to the major version so that dld.sl refuses to
21555 # link against other versions.
21562 hardcode_into_libs
=yes
21563 dynamic_linker
="$host_os dld.so"
21564 shlibpath_var
=LD_LIBRARY_PATH
21565 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21567 soname_spec
='${libname}${release}${shared_ext}$major'
21568 if test "X$HPUX_IA64_MODE" = X32
; then
21569 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21571 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21573 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21577 hardcode_into_libs
=yes
21578 dynamic_linker
="$host_os dld.sl"
21579 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21580 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21581 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21582 soname_spec
='${libname}${release}${shared_ext}$major'
21583 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21584 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21588 dynamic_linker
="$host_os dld.sl"
21589 shlibpath_var
=SHLIB_PATH
21590 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21592 soname_spec
='${libname}${release}${shared_ext}$major'
21595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21596 postinstall_cmds
='chmod 555 $lib'
21603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21604 soname_spec
='${libname}${release}${shared_ext}$major'
21605 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21606 shlibpath_var
=LD_LIBRARY_PATH
21607 shlibpath_overrides_runpath
=no
21608 hardcode_into_libs
=yes
21611 irix5
* | irix6
* | nonstopux
*)
21613 nonstopux
*) version_type
=nonstopux
;;
21615 if test "$lt_cv_prog_gnu_ld" = yes; then
21623 soname_spec
='${libname}${release}${shared_ext}$major'
21624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21626 irix5
* | nonstopux
*)
21627 libsuff
= shlibsuff
=
21630 case $LD in # libtool.m4 will add one of these switches to LD
21631 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21632 libsuff
= shlibsuff
= libmagic
=32-bit;;
21633 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21634 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21635 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21636 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21637 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21641 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21642 shlibpath_overrides_runpath
=no
21643 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21644 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21645 hardcode_into_libs
=yes
21648 # No shared lib support for Linux oldld, aout, or coff.
21649 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21653 # This must be Linux ELF.
21654 linux
* | k
*bsd
*-gnu)
21658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21659 soname_spec
='${libname}${release}${shared_ext}$major'
21660 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21661 shlibpath_var
=LD_LIBRARY_PATH
21662 shlibpath_overrides_runpath
=no
21663 # This implies no fast_install, which is unacceptable.
21664 # Some rework will be needed to allow for fast_install
21665 # before this can be enabled.
21666 hardcode_into_libs
=yes
21668 # Append ld.so.conf contents to the search path
21669 if test -f /etc
/ld.so.conf
; then
21670 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;/^$/d' | tr '\n' ' '`
21671 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21674 # We used to test for /lib/ld.so.1 and disable shared libraries on
21675 # powerpc, because MkLinux only supported shared libraries with the
21676 # GNU dynamic linker. Since this was broken with cross compilers,
21677 # most powerpc-linux boxes support dynamic linking these days and
21678 # people can always --disable-shared, the test was removed, and we
21679 # assume the GNU/Linux dynamic linker is in use.
21680 dynamic_linker
='GNU/Linux ld.so'
21687 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21688 soname_spec
='${libname}${release}${shared_ext}$major'
21689 shlibpath_var
=LD_LIBRARY_PATH
21690 shlibpath_overrides_runpath
=no
21691 hardcode_into_libs
=yes
21692 dynamic_linker
='NetBSD ld.elf_so'
21699 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
21700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21701 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21702 dynamic_linker
='NetBSD (a.out) ld.so'
21704 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21705 soname_spec
='${libname}${release}${shared_ext}$major'
21706 dynamic_linker
='NetBSD ld.elf_so'
21708 shlibpath_var
=LD_LIBRARY_PATH
21709 shlibpath_overrides_runpath
=yes
21710 hardcode_into_libs
=yes
21715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21716 shlibpath_var
=LD_LIBRARY_PATH
21717 shlibpath_overrides_runpath
=yes
21724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21725 soname_spec
='${libname}${release}${shared_ext}$major'
21726 shlibpath_var
=LD_LIBRARY_PATH
21727 shlibpath_overrides_runpath
=yes
21732 sys_lib_dlsearch_path_spec
="/usr/lib"
21734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21736 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21737 *) need_version
=no
;;
21739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21740 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21741 shlibpath_var
=LD_LIBRARY_PATH
21742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21744 openbsd2.
[89] | openbsd2.
[89].
*)
21745 shlibpath_overrides_runpath
=no
21748 shlibpath_overrides_runpath
=yes
21752 shlibpath_overrides_runpath
=yes
21757 libname_spec
='$name'
21760 library_names_spec
='$libname${shared_ext} $libname.a'
21761 dynamic_linker
='OS/2 ld.exe'
21762 shlibpath_var
=LIBPATH
21765 osf3
* | osf4
* | osf5
*)
21769 soname_spec
='${libname}${release}${shared_ext}$major'
21770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21771 shlibpath_var
=LD_LIBRARY_PATH
21772 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21773 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21785 soname_spec
='${libname}${release}${shared_ext}$major'
21786 shlibpath_var
=LD_LIBRARY_PATH
21787 shlibpath_overrides_runpath
=yes
21788 hardcode_into_libs
=yes
21789 # ldd complains unless libraries are executable
21790 postinstall_cmds
='chmod +x $lib'
21795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21796 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21797 shlibpath_var
=LD_LIBRARY_PATH
21798 shlibpath_overrides_runpath
=yes
21799 if test "$with_gnu_ld" = yes; then
21807 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21808 soname_spec
='${libname}${release}${shared_ext}$major'
21809 shlibpath_var
=LD_LIBRARY_PATH
21810 case $host_vendor in
21812 shlibpath_overrides_runpath
=no
21814 export_dynamic_flag_spec
='${wl}-Blargedynsym'
21815 runpath_var
=LD_RUN_PATH
21823 shlibpath_overrides_runpath
=no
21824 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21830 if test -d /usr
/nec
;then
21832 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21833 soname_spec
='$libname${shared_ext}.$major'
21834 shlibpath_var
=LD_LIBRARY_PATH
21838 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21839 version_type
=freebsd-elf
21842 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21843 soname_spec
='${libname}${release}${shared_ext}$major'
21844 shlibpath_var
=LD_LIBRARY_PATH
21845 hardcode_into_libs
=yes
21846 if test "$with_gnu_ld" = yes; then
21847 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21848 shlibpath_overrides_runpath
=no
21850 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21851 shlibpath_overrides_runpath
=yes
21854 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21858 sys_lib_dlsearch_path_spec
='/usr/lib'
21863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21864 soname_spec
='${libname}${release}${shared_ext}$major'
21865 shlibpath_var
=LD_LIBRARY_PATH
21872 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21873 echo "${ECHO_T}$dynamic_linker" >&6; }
21874 test "$dynamic_linker" = no
&& can_build_shared
=no
21876 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21879 lt_cv_sys_lib_search_path_spec
="$sys_lib_search_path_spec"
21882 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21883 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21886 lt_cv_sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec"
21889 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21891 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21892 if test "$GCC" = yes; then
21893 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21896 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21897 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21898 hardcode_action_GCJ
=
21899 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21900 test -n "$runpath_var_GCJ" || \
21901 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21903 # We can hardcode non-existant directories.
21904 if test "$hardcode_direct_GCJ" != no
&&
21905 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21906 # have to relink, otherwise we might link with an installed library
21907 # when we should be linking with a yet-to-be-installed one
21908 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21909 test "$hardcode_minus_L_GCJ" != no
; then
21910 # Linking always hardcodes the temporary library directory.
21911 hardcode_action_GCJ
=relink
21913 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21914 hardcode_action_GCJ
=immediate
21917 # We cannot hardcode anything, or else we can only hardcode existing
21919 hardcode_action_GCJ
=unsupported
21921 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21922 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
21924 if test "$hardcode_action_GCJ" = relink
; then
21925 # Fast installation is not supported
21926 enable_fast_install
=no
21927 elif test "$shlibpath_overrides_runpath" = yes ||
21928 test "$enable_shared" = no
; then
21929 # Fast installation is not necessary
21930 enable_fast_install
=needless
21934 # The else clause should only fire when bootstrapping the
21935 # libtool distribution, otherwise you forgot to ship ltmain.sh
21936 # with your package, and you will get complaints that there are
21937 # no rules to generate ltmain.sh.
21938 if test -f "$ltmain"; then
21939 # See if we are running on zsh, and set the options which allow our commands through
21940 # without removal of \ escapes.
21941 if test -n "${ZSH_VERSION+set}" ; then
21942 setopt NO_GLOB_SUBST
21944 # Now quote all the things that may contain metacharacters while being
21945 # careful not to overquote the AC_SUBSTed values. We take copies of the
21946 # variables and quote the copies for generation of the libtool script.
21947 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21949 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21950 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21951 deplibs_check_method reload_flag reload_cmds need_locks \
21952 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21953 lt_cv_sys_global_symbol_to_c_name_address \
21954 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21955 old_postinstall_cmds old_postuninstall_cmds \
21959 lt_prog_compiler_wl_GCJ \
21960 lt_prog_compiler_pic_GCJ \
21961 lt_prog_compiler_static_GCJ \
21962 lt_prog_compiler_no_builtin_flag_GCJ \
21963 export_dynamic_flag_spec_GCJ \
21964 thread_safe_flag_spec_GCJ \
21965 whole_archive_flag_spec_GCJ \
21966 enable_shared_with_static_runtimes_GCJ \
21967 old_archive_cmds_GCJ \
21968 old_archive_from_new_cmds_GCJ \
21969 predep_objects_GCJ \
21970 postdep_objects_GCJ \
21973 compiler_lib_search_path_GCJ \
21974 compiler_lib_search_dirs_GCJ \
21976 archive_expsym_cmds_GCJ \
21977 postinstall_cmds_GCJ \
21978 postuninstall_cmds_GCJ \
21979 old_archive_from_expsyms_cmds_GCJ \
21980 allow_undefined_flag_GCJ \
21981 no_undefined_flag_GCJ \
21982 export_symbols_cmds_GCJ \
21983 hardcode_libdir_flag_spec_GCJ \
21984 hardcode_libdir_flag_spec_ld_GCJ \
21985 hardcode_libdir_separator_GCJ \
21986 hardcode_automatic_GCJ \
21988 module_expsym_cmds_GCJ \
21989 lt_cv_prog_compiler_c_o_GCJ \
21990 fix_srcfile_path_GCJ \
21991 exclude_expsyms_GCJ \
21992 include_expsyms_GCJ
; do
21995 old_archive_cmds_GCJ | \
21996 old_archive_from_new_cmds_GCJ | \
21997 archive_cmds_GCJ | \
21998 archive_expsym_cmds_GCJ | \
21999 module_cmds_GCJ | \
22000 module_expsym_cmds_GCJ | \
22001 old_archive_from_expsyms_cmds_GCJ | \
22002 export_symbols_cmds_GCJ | \
22003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22004 postinstall_cmds | postuninstall_cmds | \
22005 old_postinstall_cmds | old_postuninstall_cmds | \
22006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
22007 # Double-quote double-evaled strings.
22008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22017 *'\$0 --fallback-echo"')
22018 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22024 cat <<__EOF__ >> "$cfgfile"
22025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22029 # Shell to use when invoking shell scripts.
22032 # Whether or not to build shared libraries.
22033 build_libtool_libs=$enable_shared
22035 # Whether or not to build static libraries.
22036 build_old_libs=$enable_static
22038 # Whether or not to add -lc for building shared libraries.
22039 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22041 # Whether or not to disallow shared libs when runtime libs are static
22042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22044 # Whether or not to optimize for fast installation.
22045 fast_install=$enable_fast_install
22048 host_alias=$host_alias
22052 # The build system.
22053 build_alias=$build_alias
22057 # An echo program that does not interpret backslashes.
22062 AR_FLAGS=$lt_AR_FLAGS
22067 # LTCC compiler flags.
22068 LTCFLAGS=$lt_LTCFLAGS
22070 # A language-specific compiler.
22071 CC=$lt_compiler_GCJ
22073 # Is the compiler the GNU C compiler?
22079 # The linker used to build libraries.
22082 # Whether we need hard or soft links.
22085 # A BSD-compatible nm program.
22088 # A symbol stripping program
22091 # Used to examine libraries when file_magic_cmd begins "file"
22092 MAGIC_CMD=$MAGIC_CMD
22094 # Used on cygwin: DLL creation program.
22097 # Used on cygwin: object dumper.
22100 # Used on cygwin: assembler.
22103 # The name of the directory that contains temporary libtool files.
22106 # How to create reloadable object files.
22107 reload_flag=$lt_reload_flag
22108 reload_cmds=$lt_reload_cmds
22110 # How to pass a linker flag through the compiler.
22111 wl=$lt_lt_prog_compiler_wl_GCJ
22113 # Object file suffix (normally "o").
22114 objext="$ac_objext"
22116 # Old archive suffix (normally "a").
22119 # Shared library suffix (normally ".so").
22120 shrext_cmds='$shrext_cmds'
22122 # Executable file suffix (normally "").
22125 # Additional compiler flags for building library objects.
22126 pic_flag=$lt_lt_prog_compiler_pic_GCJ
22129 # What is the maximum length of a command?
22130 max_cmd_len=$lt_cv_sys_max_cmd_len
22132 # Does compiler simultaneously support -c and -o options?
22133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22135 # Must we lock files when doing compilation?
22136 need_locks=$lt_need_locks
22138 # Do we need the lib prefix for modules?
22139 need_lib_prefix=$need_lib_prefix
22141 # Do we need a version for libraries?
22142 need_version=$need_version
22144 # Whether dlopen is supported.
22145 dlopen_support=$enable_dlopen
22147 # Whether dlopen of programs is supported.
22148 dlopen_self=$enable_dlopen_self
22150 # Whether dlopen of statically linked programs is supported.
22151 dlopen_self_static=$enable_dlopen_self_static
22153 # Compiler flag to prevent dynamic linking.
22154 link_static_flag=$lt_lt_prog_compiler_static_GCJ
22156 # Compiler flag to turn off builtin functions.
22157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22159 # Compiler flag to allow reflexive dlopens.
22160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22162 # Compiler flag to generate shared objects directly from archives.
22163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22165 # Compiler flag to generate thread-safe objects.
22166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22168 # Library versioning type.
22169 version_type=$version_type
22171 # Format of library name prefix.
22172 libname_spec=$lt_libname_spec
22174 # List of archive names. First name is the real one, the rest are links.
22175 # The last name is the one that the linker finds with -lNAME.
22176 library_names_spec=$lt_library_names_spec
22178 # The coded name of the library, if different from the real name.
22179 soname_spec=$lt_soname_spec
22181 # Commands used to build and install an old-style archive.
22183 old_archive_cmds=$lt_old_archive_cmds_GCJ
22184 old_postinstall_cmds=$lt_old_postinstall_cmds
22185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22187 # Create an old-style archive from a shared archive.
22188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22190 # Create a temporary old-style archive to link instead of a shared archive.
22191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22193 # Commands used to build and install a shared archive.
22194 archive_cmds=$lt_archive_cmds_GCJ
22195 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22196 postinstall_cmds=$lt_postinstall_cmds
22197 postuninstall_cmds=$lt_postuninstall_cmds
22199 # Commands used to build a loadable module (assumed same as above if empty)
22200 module_cmds=$lt_module_cmds_GCJ
22201 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22203 # Commands to strip libraries.
22204 old_striplib=$lt_old_striplib
22205 striplib=$lt_striplib
22207 # Dependencies to place before the objects being linked to create a
22209 predep_objects=$lt_predep_objects_GCJ
22211 # Dependencies to place after the objects being linked to create a
22213 postdep_objects=$lt_postdep_objects_GCJ
22215 # Dependencies to place before the objects being linked to create a
22217 predeps=$lt_predeps_GCJ
22219 # Dependencies to place after the objects being linked to create a
22221 postdeps=$lt_postdeps_GCJ
22223 # The directories searched by this compiler when creating a shared
22225 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
22227 # The library search path used internally by the compiler when linking
22228 # a shared library.
22229 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22231 # Method to check whether dependent libraries are shared objects.
22232 deplibs_check_method=$lt_deplibs_check_method
22234 # Command to use when deplibs_check_method == file_magic.
22235 file_magic_cmd=$lt_file_magic_cmd
22237 # Flag that allows shared libraries with undefined symbols to be built.
22238 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22240 # Flag that forces no undefined symbols.
22241 no_undefined_flag=$lt_no_undefined_flag_GCJ
22243 # Commands used to finish a libtool library installation in a directory.
22244 finish_cmds=$lt_finish_cmds
22246 # Same as above, but a single script fragment to be evaled but not shown.
22247 finish_eval=$lt_finish_eval
22249 # Take the output of nm and produce a listing of raw symbols and C names.
22250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22252 # Transform the output of nm in a proper C declaration
22253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22255 # Transform the output of nm in a C name address pair
22256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22258 # This is the shared library runtime path variable.
22259 runpath_var=$runpath_var
22261 # This is the shared library path variable.
22262 shlibpath_var=$shlibpath_var
22264 # Is shlibpath searched before the hard-coded library search path?
22265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22267 # How to hardcode a shared library path into an executable.
22268 hardcode_action=$hardcode_action_GCJ
22270 # Whether we should hardcode library paths into libraries.
22271 hardcode_into_libs=$hardcode_into_libs
22273 # Flag to hardcode \$libdir into a binary during linking.
22274 # This must work even if \$libdir does not exist.
22275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22277 # If ld is used when linking, flag to hardcode \$libdir into
22278 # a binary during linking. This must work even if \$libdir does
22280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22282 # Whether we need a single -rpath flag with a separated argument.
22283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22286 # resulting binary.
22287 hardcode_direct=$hardcode_direct_GCJ
22289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22290 # resulting binary.
22291 hardcode_minus_L=$hardcode_minus_L_GCJ
22293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22294 # the resulting binary.
22295 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22297 # Set to yes if building a shared library automatically hardcodes DIR into the library
22298 # and all subsequent libraries and executables linked against it.
22299 hardcode_automatic=$hardcode_automatic_GCJ
22301 # Variables whose values should be saved in libtool wrapper scripts and
22302 # restored at relink time.
22303 variables_saved_for_relink="$variables_saved_for_relink"
22305 # Whether libtool must link a program against all its dependency libraries.
22306 link_all_deplibs=$link_all_deplibs_GCJ
22308 # Compile-time system search path for libraries
22309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22311 # Run-time system search path for libraries
22312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22314 # Fix the shell variable \$srcfile for the compiler.
22315 fix_srcfile_path=$lt_fix_srcfile_path
22317 # Set to yes if exported symbols are required.
22318 always_export_symbols=$always_export_symbols_GCJ
22320 # The commands to list exported symbols.
22321 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22323 # The commands to extract the exported symbol list from a shared archive.
22324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22326 # Symbols that should not be listed in the preloaded symbols.
22327 exclude_expsyms=$lt_exclude_expsyms_GCJ
22329 # Symbols that must always be exported.
22330 include_expsyms=$lt_include_expsyms_GCJ
22332 # ### END LIBTOOL TAG CONFIG: $tagname
22338 # If there is no Makefile yet, we rely on a make rule to execute
22339 # `config.status --recheck' to rerun these tests and create the
22340 # libtool script then.
22341 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22342 if test -f "$ltmain_in"; then
22343 test -f Makefile
&& make "$ltmain"
22349 ac_cpp
='$CPP $CPPFLAGS'
22350 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22351 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22352 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
22364 # Source file extension for RC test sources.
22367 # Object file extension for compiled RC test sources.
22371 # Code to be used in simple compile tests
22372 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
22374 # Code to be used in simple link tests
22375 lt_simple_link_test_code
="$lt_simple_compile_test_code"
22377 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22379 # If no C compiler was specified, use CC.
22382 # If no C compiler flags were specified, use CFLAGS.
22383 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
22385 # Allow CC to be a program name with arguments.
22389 # save warnings/boilerplate of simple test code
22390 ac_outfile
=conftest.
$ac_objext
22391 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
22392 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
22393 _lt_compiler_boilerplate
=`cat conftest.err`
22396 ac_outfile
=conftest.
$ac_objext
22397 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
22398 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
22399 _lt_linker_boilerplate
=`cat conftest.err`
22403 # Allow CC to be a program name with arguments.
22408 for cc_temp
in $compiler""; do
22410 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
22411 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
22416 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22418 lt_cv_prog_compiler_c_o_RC
=yes
22420 # The else clause should only fire when bootstrapping the
22421 # libtool distribution, otherwise you forgot to ship ltmain.sh
22422 # with your package, and you will get complaints that there are
22423 # no rules to generate ltmain.sh.
22424 if test -f "$ltmain"; then
22425 # See if we are running on zsh, and set the options which allow our commands through
22426 # without removal of \ escapes.
22427 if test -n "${ZSH_VERSION+set}" ; then
22428 setopt NO_GLOB_SUBST
22430 # Now quote all the things that may contain metacharacters while being
22431 # careful not to overquote the AC_SUBSTed values. We take copies of the
22432 # variables and quote the copies for generation of the libtool script.
22433 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22437 deplibs_check_method reload_flag reload_cmds need_locks \
22438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22439 lt_cv_sys_global_symbol_to_c_name_address \
22440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22441 old_postinstall_cmds old_postuninstall_cmds \
22445 lt_prog_compiler_wl_RC \
22446 lt_prog_compiler_pic_RC \
22447 lt_prog_compiler_static_RC \
22448 lt_prog_compiler_no_builtin_flag_RC \
22449 export_dynamic_flag_spec_RC \
22450 thread_safe_flag_spec_RC \
22451 whole_archive_flag_spec_RC \
22452 enable_shared_with_static_runtimes_RC \
22453 old_archive_cmds_RC \
22454 old_archive_from_new_cmds_RC \
22455 predep_objects_RC \
22456 postdep_objects_RC \
22459 compiler_lib_search_path_RC \
22460 compiler_lib_search_dirs_RC \
22462 archive_expsym_cmds_RC \
22463 postinstall_cmds_RC \
22464 postuninstall_cmds_RC \
22465 old_archive_from_expsyms_cmds_RC \
22466 allow_undefined_flag_RC \
22467 no_undefined_flag_RC \
22468 export_symbols_cmds_RC \
22469 hardcode_libdir_flag_spec_RC \
22470 hardcode_libdir_flag_spec_ld_RC \
22471 hardcode_libdir_separator_RC \
22472 hardcode_automatic_RC \
22474 module_expsym_cmds_RC \
22475 lt_cv_prog_compiler_c_o_RC \
22476 fix_srcfile_path_RC \
22477 exclude_expsyms_RC \
22478 include_expsyms_RC
; do
22481 old_archive_cmds_RC | \
22482 old_archive_from_new_cmds_RC | \
22483 archive_cmds_RC | \
22484 archive_expsym_cmds_RC | \
22486 module_expsym_cmds_RC | \
22487 old_archive_from_expsyms_cmds_RC | \
22488 export_symbols_cmds_RC | \
22489 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22490 postinstall_cmds | postuninstall_cmds | \
22491 old_postinstall_cmds | old_postuninstall_cmds | \
22492 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
22493 # Double-quote double-evaled strings.
22494 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22497 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22503 *'\$0 --fallback-echo"')
22504 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22510 cat <<__EOF__ >> "$cfgfile"
22511 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22513 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22515 # Shell to use when invoking shell scripts.
22518 # Whether or not to build shared libraries.
22519 build_libtool_libs=$enable_shared
22521 # Whether or not to build static libraries.
22522 build_old_libs=$enable_static
22524 # Whether or not to add -lc for building shared libraries.
22525 build_libtool_need_lc=$archive_cmds_need_lc_RC
22527 # Whether or not to disallow shared libs when runtime libs are static
22528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22530 # Whether or not to optimize for fast installation.
22531 fast_install=$enable_fast_install
22534 host_alias=$host_alias
22538 # The build system.
22539 build_alias=$build_alias
22543 # An echo program that does not interpret backslashes.
22548 AR_FLAGS=$lt_AR_FLAGS
22553 # LTCC compiler flags.
22554 LTCFLAGS=$lt_LTCFLAGS
22556 # A language-specific compiler.
22559 # Is the compiler the GNU C compiler?
22565 # The linker used to build libraries.
22568 # Whether we need hard or soft links.
22571 # A BSD-compatible nm program.
22574 # A symbol stripping program
22577 # Used to examine libraries when file_magic_cmd begins "file"
22578 MAGIC_CMD=$MAGIC_CMD
22580 # Used on cygwin: DLL creation program.
22583 # Used on cygwin: object dumper.
22586 # Used on cygwin: assembler.
22589 # The name of the directory that contains temporary libtool files.
22592 # How to create reloadable object files.
22593 reload_flag=$lt_reload_flag
22594 reload_cmds=$lt_reload_cmds
22596 # How to pass a linker flag through the compiler.
22597 wl=$lt_lt_prog_compiler_wl_RC
22599 # Object file suffix (normally "o").
22600 objext="$ac_objext"
22602 # Old archive suffix (normally "a").
22605 # Shared library suffix (normally ".so").
22606 shrext_cmds='$shrext_cmds'
22608 # Executable file suffix (normally "").
22611 # Additional compiler flags for building library objects.
22612 pic_flag=$lt_lt_prog_compiler_pic_RC
22615 # What is the maximum length of a command?
22616 max_cmd_len=$lt_cv_sys_max_cmd_len
22618 # Does compiler simultaneously support -c and -o options?
22619 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22621 # Must we lock files when doing compilation?
22622 need_locks=$lt_need_locks
22624 # Do we need the lib prefix for modules?
22625 need_lib_prefix=$need_lib_prefix
22627 # Do we need a version for libraries?
22628 need_version=$need_version
22630 # Whether dlopen is supported.
22631 dlopen_support=$enable_dlopen
22633 # Whether dlopen of programs is supported.
22634 dlopen_self=$enable_dlopen_self
22636 # Whether dlopen of statically linked programs is supported.
22637 dlopen_self_static=$enable_dlopen_self_static
22639 # Compiler flag to prevent dynamic linking.
22640 link_static_flag=$lt_lt_prog_compiler_static_RC
22642 # Compiler flag to turn off builtin functions.
22643 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22645 # Compiler flag to allow reflexive dlopens.
22646 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22648 # Compiler flag to generate shared objects directly from archives.
22649 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22651 # Compiler flag to generate thread-safe objects.
22652 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22654 # Library versioning type.
22655 version_type=$version_type
22657 # Format of library name prefix.
22658 libname_spec=$lt_libname_spec
22660 # List of archive names. First name is the real one, the rest are links.
22661 # The last name is the one that the linker finds with -lNAME.
22662 library_names_spec=$lt_library_names_spec
22664 # The coded name of the library, if different from the real name.
22665 soname_spec=$lt_soname_spec
22667 # Commands used to build and install an old-style archive.
22669 old_archive_cmds=$lt_old_archive_cmds_RC
22670 old_postinstall_cmds=$lt_old_postinstall_cmds
22671 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22673 # Create an old-style archive from a shared archive.
22674 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22676 # Create a temporary old-style archive to link instead of a shared archive.
22677 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22679 # Commands used to build and install a shared archive.
22680 archive_cmds=$lt_archive_cmds_RC
22681 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22682 postinstall_cmds=$lt_postinstall_cmds
22683 postuninstall_cmds=$lt_postuninstall_cmds
22685 # Commands used to build a loadable module (assumed same as above if empty)
22686 module_cmds=$lt_module_cmds_RC
22687 module_expsym_cmds=$lt_module_expsym_cmds_RC
22689 # Commands to strip libraries.
22690 old_striplib=$lt_old_striplib
22691 striplib=$lt_striplib
22693 # Dependencies to place before the objects being linked to create a
22695 predep_objects=$lt_predep_objects_RC
22697 # Dependencies to place after the objects being linked to create a
22699 postdep_objects=$lt_postdep_objects_RC
22701 # Dependencies to place before the objects being linked to create a
22703 predeps=$lt_predeps_RC
22705 # Dependencies to place after the objects being linked to create a
22707 postdeps=$lt_postdeps_RC
22709 # The directories searched by this compiler when creating a shared
22711 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22713 # The library search path used internally by the compiler when linking
22714 # a shared library.
22715 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22717 # Method to check whether dependent libraries are shared objects.
22718 deplibs_check_method=$lt_deplibs_check_method
22720 # Command to use when deplibs_check_method == file_magic.
22721 file_magic_cmd=$lt_file_magic_cmd
22723 # Flag that allows shared libraries with undefined symbols to be built.
22724 allow_undefined_flag=$lt_allow_undefined_flag_RC
22726 # Flag that forces no undefined symbols.
22727 no_undefined_flag=$lt_no_undefined_flag_RC
22729 # Commands used to finish a libtool library installation in a directory.
22730 finish_cmds=$lt_finish_cmds
22732 # Same as above, but a single script fragment to be evaled but not shown.
22733 finish_eval=$lt_finish_eval
22735 # Take the output of nm and produce a listing of raw symbols and C names.
22736 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22738 # Transform the output of nm in a proper C declaration
22739 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22741 # Transform the output of nm in a C name address pair
22742 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22744 # This is the shared library runtime path variable.
22745 runpath_var=$runpath_var
22747 # This is the shared library path variable.
22748 shlibpath_var=$shlibpath_var
22750 # Is shlibpath searched before the hard-coded library search path?
22751 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22753 # How to hardcode a shared library path into an executable.
22754 hardcode_action=$hardcode_action_RC
22756 # Whether we should hardcode library paths into libraries.
22757 hardcode_into_libs=$hardcode_into_libs
22759 # Flag to hardcode \$libdir into a binary during linking.
22760 # This must work even if \$libdir does not exist.
22761 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22763 # If ld is used when linking, flag to hardcode \$libdir into
22764 # a binary during linking. This must work even if \$libdir does
22766 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22768 # Whether we need a single -rpath flag with a separated argument.
22769 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22771 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22772 # resulting binary.
22773 hardcode_direct=$hardcode_direct_RC
22775 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22776 # resulting binary.
22777 hardcode_minus_L=$hardcode_minus_L_RC
22779 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22780 # the resulting binary.
22781 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22783 # Set to yes if building a shared library automatically hardcodes DIR into the library
22784 # and all subsequent libraries and executables linked against it.
22785 hardcode_automatic=$hardcode_automatic_RC
22787 # Variables whose values should be saved in libtool wrapper scripts and
22788 # restored at relink time.
22789 variables_saved_for_relink="$variables_saved_for_relink"
22791 # Whether libtool must link a program against all its dependency libraries.
22792 link_all_deplibs=$link_all_deplibs_RC
22794 # Compile-time system search path for libraries
22795 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22797 # Run-time system search path for libraries
22798 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22800 # Fix the shell variable \$srcfile for the compiler.
22801 fix_srcfile_path=$lt_fix_srcfile_path
22803 # Set to yes if exported symbols are required.
22804 always_export_symbols=$always_export_symbols_RC
22806 # The commands to list exported symbols.
22807 export_symbols_cmds=$lt_export_symbols_cmds_RC
22809 # The commands to extract the exported symbol list from a shared archive.
22810 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22812 # Symbols that should not be listed in the preloaded symbols.
22813 exclude_expsyms=$lt_exclude_expsyms_RC
22815 # Symbols that must always be exported.
22816 include_expsyms=$lt_include_expsyms_RC
22818 # ### END LIBTOOL TAG CONFIG: $tagname
22824 # If there is no Makefile yet, we rely on a make rule to execute
22825 # `config.status --recheck' to rerun these tests and create the
22826 # libtool script then.
22827 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22828 if test -f "$ltmain_in"; then
22829 test -f Makefile
&& make "$ltmain"
22835 ac_cpp
='$CPP $CPPFLAGS'
22836 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22837 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22838 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
22845 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22846 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22847 { (exit 1); exit 1; }; }
22851 # Append the new tag name to the list of available tags.
22852 if test -n "$tagname" ; then
22853 available_tags
="$available_tags $tagname"
22859 # Now substitute the updated list of available tags.
22860 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22861 mv "${ofile}T" "$ofile"
22865 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22866 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22867 { (exit 1); exit 1; }; }
22873 # This can be used to rebuild libtool when needed
22874 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
22876 # Always use our own libtool.
22877 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
22879 # Prevent multiple expansion
22890 { echo "$as_me:$LINENO: checking if we need -no-undefined" >&5
22891 echo $ECHO_N "checking if we need -no-undefined... $ECHO_C" >&6; }
22893 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-cegcc*)
22894 need_no_undefined
=yes
22897 need_no_undefined
=no
22900 { echo "$as_me:$LINENO: result: $need_no_undefined" >&5
22901 echo "${ECHO_T}$need_no_undefined" >&6; }
22904 if test x
$need_no_undefined = xyes
; then
22906 NO_UNDEFINED_FALSE
='#'
22908 NO_UNDEFINED_TRUE
='#'
22909 NO_UNDEFINED_FALSE
=
22913 { echo "$as_me:$LINENO: checking if we need -mimpure-text" >&5
22914 echo $ECHO_N "checking if we need -mimpure-text... $ECHO_C" >&6; }
22918 if test "$GCC" = "yes"; then
22925 { echo "$as_me:$LINENO: result: $mimpure" >&5
22926 echo "${ECHO_T}$mimpure" >&6; }
22929 if test x
$mimpure = xyes
; then
22941 STATICLIB_FALSE
='#'
22948 { echo "$as_me:$LINENO: checking if we need BUILDING_LIBCURL" >&5
22949 echo $ECHO_N "checking if we need BUILDING_LIBCURL... $ECHO_C" >&6; }
22953 cat >>confdefs.h
<<\_ACEOF
22954 #define BUILDING_LIBCURL 1
22957 { echo "$as_me:$LINENO: result: yes" >&5
22958 echo "${ECHO_T}yes" >&6; }
22959 { echo "$as_me:$LINENO: checking if we need CURL_STATICLIB" >&5
22960 echo $ECHO_N "checking if we need CURL_STATICLIB... $ECHO_C" >&6; }
22961 if test "X$enable_shared" = "Xno"
22964 cat >>confdefs.h
<<\_ACEOF
22965 #define CURL_STATICLIB 1
22968 { echo "$as_me:$LINENO: result: yes" >&5
22969 echo "${ECHO_T}yes" >&6; }
22974 STATICLIB_FALSE
='#'
22981 { echo "$as_me:$LINENO: result: no" >&5
22982 echo "${ECHO_T}no" >&6; }
22986 { echo "$as_me:$LINENO: result: no" >&5
22987 echo "${ECHO_T}no" >&6; }
22991 # Determine whether all dependent libraries must be specified when linking
22992 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
22994 REQUIRE_LIB_DEPS
=no
22996 REQUIRE_LIB_DEPS
=yes
23000 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
23001 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
23002 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
23003 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
23006 cat >conftest.
make <<\_ACEOF
23009 @
echo '@@@%%%=$(MAKE)=@@@%%%'
23011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23012 case `${MAKE-make} -f conftest.make 2>/dev/null` in
23013 *@@@
%%%=?
*=@@@
%%%*)
23014 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
23016 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
23018 rm -f conftest.
make
23020 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
23021 { echo "$as_me:$LINENO: result: yes" >&5
23022 echo "${ECHO_T}yes" >&6; }
23025 { echo "$as_me:$LINENO: result: no" >&5
23026 echo "${ECHO_T}no" >&6; }
23027 SET_MAKE
="MAKE=${MAKE-make}"
23031 { echo "$as_me:$LINENO: checking for inline" >&5
23032 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23033 if test "${ac_cv_c_inline+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23037 for ac_kw
in inline __inline__ __inline
; do
23038 cat >conftest.
$ac_ext <<_ACEOF
23041 cat confdefs.h
>>conftest.
$ac_ext
23042 cat >>conftest.
$ac_ext <<_ACEOF
23043 /* end confdefs.h. */
23044 #ifndef __cplusplus
23046 static $ac_kw foo_t static_foo () {return 0; }
23047 $ac_kw foo_t foo () {return 0; }
23051 rm -f conftest.
$ac_objext
23052 if { (ac_try
="$ac_compile"
23053 case "(($ac_try" in
23054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_compile") 2>conftest.er1
23060 grep -v '^ *+' conftest.er1 >conftest.err
23062 cat conftest.err >&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } && {
23065 test -z "$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23067 } && test -s conftest.$ac_objext; then
23068 ac_cv_c_inline=$ac_kw
23070 echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23077 test "$ac_cv_c_inline" != no && break
23081 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23082 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23085 case $ac_cv_c_inline in
23088 case $ac_cv_c_inline in
23090 *) ac_val=$ac_cv_c_inline;;
23092 cat >>confdefs.h <<_ACEOF
23093 #ifndef __cplusplus
23094 #define inline $ac_val
23106 if test "z$ICC" = "z"; then
23109 { echo "$as_me:$LINENO: checking for icc in use" >&5
23110 echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
23111 if test "$GCC" = "yes"; then
23112 cat >conftest.$ac_ext <<_ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23121 $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
23125 { echo "$as_me:$LINENO: result: yes" >&5
23126 echo "${ECHO_T}yes" >&6; }
23133 if test "$ICC" = "no"; then
23135 { echo "$as_me:$LINENO: result: no" >&5
23136 echo "${ECHO_T}no" >&6; }
23141 if test "$ICC" = "yes"; then
23142 { echo "$as_me:$LINENO: checking icc version" >&5
23143 echo $ECHO_N "checking icc version... $ECHO_C" >&6; }
23144 iccver=`$CC -dumpversion`
23145 iccnhi=`echo $iccver | cut
-d .
-f1`
23146 iccnlo=`echo $iccver | cut
-d .
-f2`
23147 iccnum=`(expr $iccnhi "*" 100 + $iccnlo) 2>/dev
/null
`
23148 { echo "$as_me:$LINENO: result: $iccver" >&5
23149 echo "${ECHO_T}$iccver" >&6; }
23151 if test "$iccnum" -ge "900" && test "$iccnum" -lt "1000"; then
23152 CFLAGS="$CFLAGS -i-dynamic"
23155 if test "$iccnum" -ge "1000"; then
23156 CFLAGS="$CFLAGS -shared-intel"
23164 { echo "$as_me:$LINENO: checking whether we are using the IBM C compiler" >&5
23165 echo $ECHO_N "checking whether we are using the IBM C compiler... $ECHO_C" >&6; }
23167 if test -z "$SED"; then
23168 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
23169 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
23170 { (exit 1); exit 1; }; }
23172 if test -z "$GREP"; then
23173 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
23174 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
23175 { (exit 1); exit 1; }; }
23179 cat >conftest.$ac_ext <<_ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23188 CURL_DEF_TOKEN __IBMC__
23193 if { (ac_try="$ac_cpp conftest.$ac_ext"
23194 case "(($ac_try" in
23195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23196 *) ac_try_echo
=$ac_try;;
23198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23201 grep -v '^ *+' conftest.er1
>conftest.err
23203 cat conftest.err
>&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } >/dev
/null
&& {
23206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23207 test ! -s conftest.err
23210 tmp_exp
=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23211 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23212 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
23213 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23214 if test -z "$tmp_exp" ||
test "$tmp_exp" = "__IBMC__"; then
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.
$ac_ext >&5
23225 rm -f conftest.err conftest.
$ac_ext
23226 if test -z "$tmp_exp"; then
23227 curl_cv_have_def___IBMC__
=no
23230 curl_cv_have_def___IBMC__
=yes
23231 curl_cv_def___IBMC__
=$tmp_exp
23235 if test "$curl_cv_have_def___IBMC__" = "yes"; then
23236 { echo "$as_me:$LINENO: result: yes" >&5
23237 echo "${ECHO_T}yes" >&6; }
23238 CFLAGS
="$CFLAGS -qthreaded"
23239 CFLAGS
="$CFLAGS -qnoansialias"
23240 CFLAGS
="$CFLAGS -qhalt=e"
23242 { echo "$as_me:$LINENO: result: no" >&5
23243 echo "${ECHO_T}no" >&6; }
23246 { echo "$as_me:$LINENO: checking whether we are using the DEC/Compaq C compiler" >&5
23247 echo $ECHO_N "checking whether we are using the DEC/Compaq C compiler... $ECHO_C" >&6; }
23249 if test -z "$SED"; then
23250 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
23251 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
23252 { (exit 1); exit 1; }; }
23254 if test -z "$GREP"; then
23255 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
23256 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
23257 { (exit 1); exit 1; }; }
23261 cat >conftest.
$ac_ext <<_ACEOF
23265 cat confdefs.h
>>conftest.
$ac_ext
23266 cat >>conftest.
$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23270 CURL_DEF_TOKEN __DECC
23275 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23276 case "(($ac_try" in
23277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23283 grep -v '^ *+' conftest.er1 >conftest.err
23285 cat conftest.err >&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } >/dev/null && {
23288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23289 test ! -s conftest.err
23292 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev
/null | \
23293 "$GREP" CURL_DEF_TOKEN
2>/dev
/null | \
23294 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev
/null | \
23295 "$SED" 's/["][ ]*["]//g' 2>/dev
/null
`
23296 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
23301 echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23307 rm -f conftest.err conftest.$ac_ext
23308 if test -z "$tmp_exp"; then
23309 curl_cv_have_def___DECC=no
23312 curl_cv_have_def___DECC=yes
23313 curl_cv_def___DECC=$tmp_exp
23318 if test -z "$SED"; then
23319 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
23320 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
23321 { (exit 1); exit 1; }; }
23323 if test -z "$GREP"; then
23324 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
23325 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
23326 { (exit 1); exit 1; }; }
23330 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23339 CURL_DEF_TOKEN __DECC_VER
23344 if { (ac_try="$ac_cpp conftest.$ac_ext"
23345 case "(($ac_try" in
23346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23347 *) ac_try_echo
=$ac_try;;
23349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23352 grep -v '^ *+' conftest.er1
>conftest.err
23354 cat conftest.err
>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } >/dev
/null
&& {
23357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23358 test ! -s conftest.err
23361 tmp_exp
=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23362 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23363 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
23364 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23365 if test -z "$tmp_exp" ||
test "$tmp_exp" = "__DECC_VER"; then
23370 echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.
$ac_ext >&5
23376 rm -f conftest.err conftest.
$ac_ext
23377 if test -z "$tmp_exp"; then
23378 curl_cv_have_def___DECC_VER
=no
23381 curl_cv_have_def___DECC_VER
=yes
23382 curl_cv_def___DECC_VER
=$tmp_exp
23386 if test "$curl_cv_have_def___DECC" = "yes" &&
23387 test "$curl_cv_have_def___DECC_VER" = "yes"; then
23388 { echo "$as_me:$LINENO: result: yes" >&5
23389 echo "${ECHO_T}yes" >&6; }
23390 CFLAGS
="$CFLAGS -std1"
23391 CFLAGS
="$CFLAGS -noansi_alias"
23392 CFLAGS
="$CFLAGS -msg_enable level3"
23393 CFLAGS
="$CFLAGS -warnprotos"
23394 CFLAGS
="$CFLAGS -msg_fatal toofewargs,toomanyargs"
23396 { echo "$as_me:$LINENO: result: no" >&5
23397 echo "${ECHO_T}no" >&6; }
23401 { echo "$as_me:$LINENO: checking if compiler halts on compilation errors" >&5
23402 echo $ECHO_N "checking if compiler halts on compilation errors... $ECHO_C" >&6; }
23403 cat >conftest.
$ac_ext <<_ACEOF
23407 cat confdefs.h
>>conftest.
$ac_ext
23408 cat >>conftest.
$ac_ext <<_ACEOF
23409 /* end confdefs.h. */
23416 force compilation error
23423 rm -f conftest.
$ac_objext
23424 if { (ac_try
="$ac_compile"
23425 case "(($ac_try" in
23426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23427 *) ac_try_echo=$ac_try;;
23429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23430 (eval "$ac_compile") 2>conftest.er1
23432 grep -v '^ *+' conftest.er1 >conftest.err
23434 cat conftest.err >&5
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); } && {
23437 test -z "$ac_c_werror_flag" ||
23438 test ! -s conftest.err
23439 } && test -s conftest.$ac_objext; then
23441 { echo "$as_me:$LINENO: result: no" >&5
23442 echo "${ECHO_T}no" >&6; }
23443 { { echo "$as_me:$LINENO: error: compiler does not halt on compilation errors." >&5
23444 echo "$as_me: error: compiler does not halt on compilation errors." >&2;}
23445 { (exit 1); exit 1; }; }
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23452 { echo "$as_me:$LINENO: result: yes" >&5
23453 echo "${ECHO_T}yes" >&6; }
23457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23460 { echo "$as_me:$LINENO: checking if compiler halts on negative sized arrays" >&5
23461 echo $ECHO_N "checking if compiler halts on negative sized arrays... $ECHO_C" >&6; }
23462 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23470 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
23483 rm -f conftest.$ac_objext
23484 if { (ac_try="$ac_compile"
23485 case "(($ac_try" in
23486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23487 *) ac_try_echo
=$ac_try;;
23489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23490 (eval "$ac_compile") 2>conftest.er1
23492 grep -v '^ *+' conftest.er1
>conftest.err
23494 cat conftest.err
>&5
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); } && {
23497 test -z "$ac_c_werror_flag" ||
23498 test ! -s conftest.err
23499 } && test -s conftest.
$ac_objext; then
23501 { echo "$as_me:$LINENO: result: no" >&5
23502 echo "${ECHO_T}no" >&6; }
23503 { { echo "$as_me:$LINENO: error: compiler does not halt on negative sized arrays." >&5
23504 echo "$as_me: error: compiler does not halt on negative sized arrays." >&2;}
23505 { (exit 1); exit 1; }; }
23508 echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.
$ac_ext >&5
23512 { echo "$as_me:$LINENO: result: yes" >&5
23513 echo "${ECHO_T}yes" >&6; }
23517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23523 { echo "$as_me:$LINENO: checking for windows.h" >&5
23524 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
23525 if test "${ac_cv_header_windows_h+set}" = set; then
23526 echo $ECHO_N "(cached) $ECHO_C" >&6
23529 cat >conftest.
$ac_ext <<_ACEOF
23533 cat confdefs.h
>>conftest.
$ac_ext
23534 cat >>conftest.
$ac_ext <<_ACEOF
23535 /* end confdefs.h. */
23538 #ifndef WIN32_LEAN_AND_MEAN
23539 #define WIN32_LEAN_AND_MEAN
23541 #include <windows.h>
23547 #if defined(__CYGWIN__) || defined(__CEGCC__)
23548 HAVE_WINDOWS_H shall not be defined.
23550 int dummy=2*WINVER;
23558 rm -f conftest.
$ac_objext
23559 if { (ac_try
="$ac_compile"
23560 case "(($ac_try" in
23561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_compile") 2>conftest.er1
23567 grep -v '^ *+' conftest.er1 >conftest.err
23569 cat conftest.err >&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); } && {
23572 test -z "$ac_c_werror_flag" ||
23573 test ! -s conftest.err
23574 } && test -s conftest.$ac_objext; then
23576 ac_cv_header_windows_h="yes"
23579 echo "$as_me: failed program was:" >&5
23580 sed 's/^/| /' conftest.$ac_ext >&5
23583 ac_cv_header_windows_h="no"
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23591 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
23592 case "$ac_cv_header_windows_h" in
23595 cat >>confdefs.h <<_ACEOF
23596 #define HAVE_WINDOWS_H 1
23600 cat >>confdefs.h <<_ACEOF
23601 #define WIN32_LEAN_AND_MEAN 1
23608 { echo "$as_me:$LINENO: checking whether build target is a native Windows one" >&5
23609 echo $ECHO_N "checking whether build target is a native Windows one... $ECHO_C" >&6; }
23610 if test "${ac_cv_native_windows+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 if test "$ac_cv_header_windows_h" = "no"; then
23615 ac_cv_native_windows="no"
23617 cat >conftest.$ac_ext <<_ACEOF
23621 cat confdefs.h >>conftest.$ac_ext
23622 cat >>conftest.$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23630 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
23631 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
23634 Not a native Windows build target.
23642 rm -f conftest.$ac_objext
23643 if { (ac_try="$ac_compile"
23644 case "(($ac_try" in
23645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23646 *) ac_try_echo
=$ac_try;;
23648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649 (eval "$ac_compile") 2>conftest.er1
23651 grep -v '^ *+' conftest.er1
>conftest.err
23653 cat conftest.err
>&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } && {
23656 test -z "$ac_c_werror_flag" ||
23657 test ! -s conftest.err
23658 } && test -s conftest.
$ac_objext; then
23660 ac_cv_native_windows
="yes"
23663 echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.
$ac_ext >&5
23667 ac_cv_native_windows
="no"
23671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23675 { echo "$as_me:$LINENO: result: $ac_cv_native_windows" >&5
23676 echo "${ECHO_T}$ac_cv_native_windows" >&6; }
23677 case "$ac_cv_native_windows" in
23680 cat >>confdefs.h
<<_ACEOF
23681 #define NATIVE_WINDOWS 1
23687 case X-
"$ac_cv_native_windows" in
23690 { echo "$as_me:$LINENO: checking for winsock.h" >&5
23691 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
23692 if test "${ac_cv_header_winsock_h+set}" = set; then
23693 echo $ECHO_N "(cached) $ECHO_C" >&6
23696 cat >conftest.
$ac_ext <<_ACEOF
23700 cat confdefs.h
>>conftest.
$ac_ext
23701 cat >>conftest.
$ac_ext <<_ACEOF
23702 /* end confdefs.h. */
23705 #ifndef WIN32_LEAN_AND_MEAN
23706 #define WIN32_LEAN_AND_MEAN
23708 #include <windows.h>
23709 #include <winsock.h>
23715 #if defined(__CYGWIN__) || defined(__CEGCC__)
23716 HAVE_WINSOCK_H shall not be defined.
23718 int dummy=WSACleanup();
23726 rm -f conftest.
$ac_objext
23727 if { (ac_try
="$ac_compile"
23728 case "(($ac_try" in
23729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_compile") 2>conftest.er1
23735 grep -v '^ *+' conftest.er1 >conftest.err
23737 cat conftest.err >&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && {
23740 test -z "$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 } && test -s conftest.$ac_objext; then
23744 ac_cv_header_winsock_h="yes"
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23751 ac_cv_header_winsock_h="no"
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
23759 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
23760 case "$ac_cv_header_winsock_h" in
23763 cat >>confdefs.h <<_ACEOF
23764 #define HAVE_WINSOCK_H 1
23771 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
23772 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
23773 if test "${ac_cv_header_winsock2_h+set}" = set; then
23774 echo $ECHO_N "(cached) $ECHO_C" >&6
23777 cat >conftest.$ac_ext <<_ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h. */
23786 #ifndef WIN32_LEAN_AND_MEAN
23787 #define WIN32_LEAN_AND_MEAN
23789 #include <windows.h>
23790 #include <winsock2.h>
23796 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23797 HAVE_WINSOCK2_H shall not be defined.
23799 int dummy=2*IPPROTO_ESP;
23807 rm -f conftest.$ac_objext
23808 if { (ac_try="$ac_compile"
23809 case "(($ac_try" in
23810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23811 *) ac_try_echo
=$ac_try;;
23813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23814 (eval "$ac_compile") 2>conftest.er1
23816 grep -v '^ *+' conftest.er1
>conftest.err
23818 cat conftest.err
>&5
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } && {
23821 test -z "$ac_c_werror_flag" ||
23822 test ! -s conftest.err
23823 } && test -s conftest.
$ac_objext; then
23825 ac_cv_header_winsock2_h
="yes"
23828 echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.
$ac_ext >&5
23832 ac_cv_header_winsock2_h
="no"
23836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23839 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
23840 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
23841 case "$ac_cv_header_winsock2_h" in
23844 cat >>confdefs.h
<<_ACEOF
23845 #define HAVE_WINSOCK2_H 1
23852 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
23853 echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
23854 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23858 cat >conftest.
$ac_ext <<_ACEOF
23862 cat confdefs.h
>>conftest.
$ac_ext
23863 cat >>conftest.
$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23867 #ifndef WIN32_LEAN_AND_MEAN
23868 #define WIN32_LEAN_AND_MEAN
23870 #include <windows.h>
23871 #include <winsock2.h>
23872 #include <ws2tcpip.h>
23878 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23879 HAVE_WS2TCPIP_H shall not be defined.
23881 int dummy=2*IP_PKTINFO;
23889 rm -f conftest.
$ac_objext
23890 if { (ac_try
="$ac_compile"
23891 case "(($ac_try" in
23892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23893 *) ac_try_echo=$ac_try;;
23895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896 (eval "$ac_compile") 2>conftest.er1
23898 grep -v '^ *+' conftest.er1 >conftest.err
23900 cat conftest.err >&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); } && {
23903 test -z "$ac_c_werror_flag" ||
23904 test ! -s conftest.err
23905 } && test -s conftest.$ac_objext; then
23907 ac_cv_header_ws2tcpip_h="yes"
23910 echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23914 ac_cv_header_ws2tcpip_h="no"
23918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
23922 echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
23923 case "$ac_cv_header_ws2tcpip_h" in
23926 cat >>confdefs.h <<_ACEOF
23927 #define HAVE_WS2TCPIP_H 1
23934 { echo "$as_me:$LINENO: checking for winldap.h" >&5
23935 echo $ECHO_N "checking for winldap.h... $ECHO_C" >&6; }
23936 if test "${ac_cv_header_winldap_h+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23940 cat >conftest.$ac_ext <<_ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23949 #ifdef HAVE_WINDOWS_H
23950 #ifndef WIN32_LEAN_AND_MEAN
23951 #define WIN32_LEAN_AND_MEAN
23953 #include <windows.h>
23955 #include <winldap.h>
23961 #if defined(__CYGWIN__) || defined(__CEGCC__)
23962 HAVE_WINLDAP_H shall not be defined.
23964 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
23965 ULONG res = ldap_unbind(ldp);
23973 rm -f conftest.$ac_objext
23974 if { (ac_try="$ac_compile"
23975 case "(($ac_try" in
23976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23977 *) ac_try_echo
=$ac_try;;
23979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23980 (eval "$ac_compile") 2>conftest.er1
23982 grep -v '^ *+' conftest.er1
>conftest.err
23984 cat conftest.err
>&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } && {
23987 test -z "$ac_c_werror_flag" ||
23988 test ! -s conftest.err
23989 } && test -s conftest.
$ac_objext; then
23991 ac_cv_header_winldap_h
="yes"
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.
$ac_ext >&5
23998 ac_cv_header_winldap_h
="no"
24002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24005 { echo "$as_me:$LINENO: result: $ac_cv_header_winldap_h" >&5
24006 echo "${ECHO_T}$ac_cv_header_winldap_h" >&6; }
24007 case "$ac_cv_header_winldap_h" in
24010 cat >>confdefs.h
<<_ACEOF
24011 #define HAVE_WINLDAP_H 1
24018 { echo "$as_me:$LINENO: checking for winber.h" >&5
24019 echo $ECHO_N "checking for winber.h... $ECHO_C" >&6; }
24020 if test "${ac_cv_header_winber_h+set}" = set; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24024 cat >conftest.
$ac_ext <<_ACEOF
24028 cat confdefs.h
>>conftest.
$ac_ext
24029 cat >>conftest.
$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24033 #ifdef HAVE_WINDOWS_H
24034 #ifndef WIN32_LEAN_AND_MEAN
24035 #define WIN32_LEAN_AND_MEAN
24037 #include <windows.h>
24039 #include <winldap.h>
24040 #include <winber.h>
24046 #if defined(__CYGWIN__) || defined(__CEGCC__)
24047 HAVE_WINBER_H shall not be defined.
24049 BERVAL *bvp = NULL;
24050 BerElement *bep = ber_init(bvp);
24059 rm -f conftest.
$ac_objext
24060 if { (ac_try
="$ac_compile"
24061 case "(($ac_try" in
24062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24063 *) ac_try_echo=$ac_try;;
24065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066 (eval "$ac_compile") 2>conftest.er1
24068 grep -v '^ *+' conftest.er1 >conftest.err
24070 cat conftest.err >&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } && {
24073 test -z "$ac_c_werror_flag" ||
24074 test ! -s conftest.err
24075 } && test -s conftest.$ac_objext; then
24077 ac_cv_header_winber_h="yes"
24080 echo "$as_me: failed program was:" >&5
24081 sed 's/^/| /' conftest.$ac_ext >&5
24084 ac_cv_header_winber_h="no"
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24091 { echo "$as_me:$LINENO: result: $ac_cv_header_winber_h" >&5
24092 echo "${ECHO_T}$ac_cv_header_winber_h" >&6; }
24093 case "$ac_cv_header_winber_h" in
24096 cat >>confdefs.h <<_ACEOF
24097 #define HAVE_WINBER_H 1
24105 ac_cv_header_winsock_h="no"
24106 ac_cv_header_winsock2_h="no"
24107 ac_cv_header_ws2tcpip_h="no"
24108 ac_cv_header_winldap_h="no"
24109 ac_cv_header_winber_h="no"
24113 { echo "$as_me:$LINENO: checking whether build target supports WIN32 file API" >&5
24114 echo $ECHO_N "checking whether build target supports WIN32 file API... $ECHO_C" >&6; }
24115 curl_win32_file_api="no"
24116 if test "$ac_cv_header_windows_h" = "yes"; then
24117 if test x"$enable_largefile" != "xno"; then
24118 cat >conftest.$ac_ext <<_ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24131 #if !defined(_WIN32_WCE) && \
24132 (defined(__MINGW32__) || \
24133 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
24136 WIN32 large file API not supported.
24144 rm -f conftest.$ac_objext
24145 if { (ac_try="$ac_compile"
24146 case "(($ac_try" in
24147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24148 *) ac_try_echo
=$ac_try;;
24150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24151 (eval "$ac_compile") 2>conftest.er1
24153 grep -v '^ *+' conftest.er1
>conftest.err
24155 cat conftest.err
>&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } && {
24158 test -z "$ac_c_werror_flag" ||
24159 test ! -s conftest.err
24160 } && test -s conftest.
$ac_objext; then
24162 curl_win32_file_api
="win32_large_files"
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.
$ac_ext >&5
24171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24173 if test "$curl_win32_file_api" = "no"; then
24174 cat >conftest.
$ac_ext <<_ACEOF
24178 cat confdefs.h
>>conftest.
$ac_ext
24179 cat >>conftest.
$ac_ext <<_ACEOF
24180 /* end confdefs.h. */
24187 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
24190 WIN32 small file API not supported.
24198 rm -f conftest.
$ac_objext
24199 if { (ac_try
="$ac_compile"
24200 case "(($ac_try" in
24201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_compile") 2>conftest.er1
24207 grep -v '^ *+' conftest.er1 >conftest.err
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && {
24212 test -z "$ac_c_werror_flag" ||
24213 test ! -s conftest.err
24214 } && test -s conftest.$ac_objext; then
24216 curl_win32_file_api="win32_small_files"
24219 echo "$as_me: failed program was:" >&5
24220 sed 's/^/| /' conftest.$ac_ext >&5
24225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24228 case "$curl_win32_file_api" in
24230 { echo "$as_me:$LINENO: result: yes (large file enabled)" >&5
24231 echo "${ECHO_T}yes (large file enabled)" >&6; }
24233 cat >>confdefs.h <<_ACEOF
24234 #define USE_WIN32_LARGE_FILES 1
24239 { echo "$as_me:$LINENO: result: yes (large file disabled)" >&5
24240 echo "${ECHO_T}yes (large file disabled)" >&6; }
24242 cat >>confdefs.h <<_ACEOF
24243 #define USE_WIN32_LARGE_FILES 1
24248 { echo "$as_me:$LINENO: result: no" >&5
24249 echo "${ECHO_T}no" >&6; }
24254 { echo "$as_me:$LINENO: checking whether to support http" >&5
24255 echo $ECHO_N "checking whether to support http... $ECHO_C" >&6; }
24256 # Check whether --enable-http was given.
24257 if test "${enable_http+set}" = set; then
24258 enableval=$enable_http; case "$enableval" in
24260 { echo "$as_me:$LINENO: result: no" >&5
24261 echo "${ECHO_T}no" >&6; }
24263 cat >>confdefs.h <<\_ACEOF
24264 #define CURL_DISABLE_HTTP 1
24267 { echo "$as_me:$LINENO: WARNING: disable HTTP disables FTP over proxy" >&5
24268 echo "$as_me: WARNING: disable HTTP disables FTP over proxy" >&2;}
24269 CURL_DISABLE_HTTP=1
24272 *) { echo "$as_me:$LINENO: result: yes" >&5
24273 echo "${ECHO_T}yes" >&6; }
24277 { echo "$as_me:$LINENO: result: yes" >&5
24278 echo "${ECHO_T}yes" >&6; }
24282 { echo "$as_me:$LINENO: checking whether to support ftp" >&5
24283 echo $ECHO_N "checking whether to support ftp... $ECHO_C" >&6; }
24284 # Check whether --enable-ftp was given.
24285 if test "${enable_ftp+set}" = set; then
24286 enableval=$enable_ftp; case "$enableval" in
24288 { echo "$as_me:$LINENO: result: no" >&5
24289 echo "${ECHO_T}no" >&6; }
24291 cat >>confdefs.h <<\_ACEOF
24292 #define CURL_DISABLE_FTP 1
24298 *) { echo "$as_me:$LINENO: result: yes" >&5
24299 echo "${ECHO_T}yes" >&6; }
24303 { echo "$as_me:$LINENO: result: yes" >&5
24304 echo "${ECHO_T}yes" >&6; }
24308 { echo "$as_me:$LINENO: checking whether to support file" >&5
24309 echo $ECHO_N "checking whether to support file... $ECHO_C" >&6; }
24310 # Check whether --enable-file was given.
24311 if test "${enable_file+set}" = set; then
24312 enableval=$enable_file; case "$enableval" in
24314 { echo "$as_me:$LINENO: result: no" >&5
24315 echo "${ECHO_T}no" >&6; }
24317 cat >>confdefs.h <<\_ACEOF
24318 #define CURL_DISABLE_FILE 1
24321 CURL_DISABLE_FILE=1
24324 *) { echo "$as_me:$LINENO: result: yes" >&5
24325 echo "${ECHO_T}yes" >&6; }
24329 { echo "$as_me:$LINENO: result: yes" >&5
24330 echo "${ECHO_T}yes" >&6; }
24334 { echo "$as_me:$LINENO: checking whether to support ldap" >&5
24335 echo $ECHO_N "checking whether to support ldap... $ECHO_C" >&6; }
24336 # Check whether --enable-ldap was given.
24337 if test "${enable_ldap+set}" = set; then
24338 enableval=$enable_ldap; case "$enableval" in
24340 { echo "$as_me:$LINENO: result: no" >&5
24341 echo "${ECHO_T}no" >&6; }
24343 cat >>confdefs.h <<\_ACEOF
24344 #define CURL_DISABLE_LDAP 1
24347 CURL_DISABLE_LDAP=1
24353 # Force no ldap. config/build process is broken for cygwin
24355 cat >>confdefs.h <<\_ACEOF
24356 #define CURL_DISABLE_LDAP 1
24359 CURL_DISABLE_LDAP=1
24361 { echo "$as_me:$LINENO: result: no" >&5
24362 echo "${ECHO_T}no" >&6; }
24365 { echo "$as_me:$LINENO: result: yes" >&5
24366 echo "${ECHO_T}yes" >&6; }
24374 # Force no ldap. config/build process is broken for cygwin
24376 cat >>confdefs.h <<\_ACEOF
24377 #define CURL_DISABLE_LDAP 1
24380 CURL_DISABLE_LDAP=1
24382 { echo "$as_me:$LINENO: result: no" >&5
24383 echo "${ECHO_T}no" >&6; }
24386 { echo "$as_me:$LINENO: result: yes" >&5
24387 echo "${ECHO_T}yes" >&6; }
24392 { echo "$as_me:$LINENO: checking whether to support ldaps" >&5
24393 echo $ECHO_N "checking whether to support ldaps... $ECHO_C" >&6; }
24394 # Check whether --enable-ldaps was given.
24395 if test "${enable_ldaps+set}" = set; then
24396 enableval=$enable_ldaps; case "$enableval" in
24398 { echo "$as_me:$LINENO: result: no" >&5
24399 echo "${ECHO_T}no" >&6; }
24401 cat >>confdefs.h <<\_ACEOF
24402 #define CURL_DISABLE_LDAPS 1
24405 CURL_DISABLE_LDAPS=1
24408 *) if test x$CURL_DISABLE_LDAP = x1 ; then
24409 { echo "$as_me:$LINENO: result: LDAP support needs to be enabled in order to enable LDAPS support!" >&5
24410 echo "${ECHO_T}LDAP support needs to be enabled in order to enable LDAPS support!" >&6; }
24412 cat >>confdefs.h <<\_ACEOF
24413 #define CURL_DISABLE_LDAPS 1
24416 CURL_DISABLE_LDAPS=1
24419 { echo "$as_me:$LINENO: result: yes" >&5
24420 echo "${ECHO_T}yes" >&6; }
24422 cat >>confdefs.h <<\_ACEOF
24423 #define HAVE_LDAP_SSL 1
24426 curl_ldaps_msg="enabled"
24431 { echo "$as_me:$LINENO: result: no" >&5
24432 echo "${ECHO_T}no" >&6; }
24434 cat >>confdefs.h <<\_ACEOF
24435 #define CURL_DISABLE_LDAPS 1
24438 CURL_DISABLE_LDAPS=1
24444 { echo "$as_me:$LINENO: checking whether to support dict" >&5
24445 echo $ECHO_N "checking whether to support dict... $ECHO_C" >&6; }
24446 # Check whether --enable-dict was given.
24447 if test "${enable_dict+set}" = set; then
24448 enableval=$enable_dict; case "$enableval" in
24450 { echo "$as_me:$LINENO: result: no" >&5
24451 echo "${ECHO_T}no" >&6; }
24453 cat >>confdefs.h <<\_ACEOF
24454 #define CURL_DISABLE_DICT 1
24457 CURL_DISABLE_DICT=1
24460 *) { echo "$as_me:$LINENO: result: yes" >&5
24461 echo "${ECHO_T}yes" >&6; }
24465 { echo "$as_me:$LINENO: result: yes" >&5
24466 echo "${ECHO_T}yes" >&6; }
24470 { echo "$as_me:$LINENO: checking whether to support telnet" >&5
24471 echo $ECHO_N "checking whether to support telnet... $ECHO_C" >&6; }
24472 # Check whether --enable-telnet was given.
24473 if test "${enable_telnet+set}" = set; then
24474 enableval=$enable_telnet; case "$enableval" in
24476 { echo "$as_me:$LINENO: result: no" >&5
24477 echo "${ECHO_T}no" >&6; }
24479 cat >>confdefs.h <<\_ACEOF
24480 #define CURL_DISABLE_TELNET 1
24483 CURL_DISABLE_TELNET=1
24486 *) { echo "$as_me:$LINENO: result: yes" >&5
24487 echo "${ECHO_T}yes" >&6; }
24491 { echo "$as_me:$LINENO: result: yes" >&5
24492 echo "${ECHO_T}yes" >&6; }
24496 { echo "$as_me:$LINENO: checking whether to support tftp" >&5
24497 echo $ECHO_N "checking whether to support tftp... $ECHO_C" >&6; }
24498 # Check whether --enable-tftp was given.
24499 if test "${enable_tftp+set}" = set; then
24500 enableval=$enable_tftp; case "$enableval" in
24502 { echo "$as_me:$LINENO: result: no" >&5
24503 echo "${ECHO_T}no" >&6; }
24505 cat >>confdefs.h <<\_ACEOF
24506 #define CURL_DISABLE_TFTP 1
24509 CURL_DISABLE_TFTP=1
24512 *) { echo "$as_me:$LINENO: result: yes" >&5
24513 echo "${ECHO_T}yes" >&6; }
24517 { echo "$as_me:$LINENO: result: yes" >&5
24518 echo "${ECHO_T}yes" >&6; }
24524 { echo "$as_me:$LINENO: checking whether to provide built-in manual" >&5
24525 echo $ECHO_N "checking whether to provide built-in manual... $ECHO_C" >&6; }
24526 # Check whether --enable-manual was given.
24527 if test "${enable_manual+set}" = set; then
24528 enableval=$enable_manual; case "$enableval" in
24530 { echo "$as_me:$LINENO: result: no" >&5
24531 echo "${ECHO_T}no" >&6; }
24533 *) { echo "$as_me:$LINENO: result: yes" >&5
24534 echo "${ECHO_T}yes" >&6; }
24539 { echo "$as_me:$LINENO: result: yes" >&5
24540 echo "${ECHO_T}yes" >&6; }
24548 { echo "$as_me:$LINENO: checking for icc in use" >&5
24549 echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
24550 if test "$GCC" = "yes"; then
24551 cat >conftest.$ac_ext <<_ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24560 $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
24564 { echo "$as_me:$LINENO: result: yes" >&5
24565 echo "${ECHO_T}yes" >&6; }
24566 CFLAGS="$CFLAGS -we 147"
24572 if test "$ICC" = "no"; then
24574 { echo "$as_me:$LINENO: result: no" >&5
24575 echo "${ECHO_T}no" >&6; }
24580 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
24581 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
24582 if test "${ac_cv_func_gethostbyname+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24585 cat >conftest.$ac_ext <<_ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h. */
24591 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24593 #define gethostbyname innocuous_gethostbyname
24595 /* System header to define __stub macros and hopefully few prototypes,
24596 which can conflict with char gethostbyname (); below.
24597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24598 <limits.h> exists even on freestanding compilers. */
24601 # include <limits.h>
24603 # include <assert.h>
24606 #undef gethostbyname
24608 /* Override any GCC internal prototype to avoid an error.
24609 Use char because int might match the return type of a GCC
24610 builtin and then its argument prototype would still apply. */
24614 char gethostbyname ();
24615 /* The GNU C library defines this for functions which it implements
24616 to always fail with ENOSYS. Some functions are actually named
24617 something starting with __ and the normal name is an alias. */
24618 #if defined __stub_gethostbyname || defined __stub___gethostbyname
24625 return gethostbyname ();
24630 rm -f conftest.$ac_objext conftest$ac_exeext
24631 if { (ac_try="$ac_link"
24632 case "(($ac_try" in
24633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24634 *) ac_try_echo
=$ac_try;;
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_link") 2>conftest.er1
24639 grep -v '^ *+' conftest.er1
>conftest.err
24641 cat conftest.err
>&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && {
24644 test -z "$ac_c_werror_flag" ||
24645 test ! -s conftest.err
24646 } && test -s conftest
$ac_exeext &&
24647 $as_test_x conftest
$ac_exeext; then
24648 ac_cv_func_gethostbyname
=yes
24650 echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.
$ac_ext >&5
24653 ac_cv_func_gethostbyname
=no
24656 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24657 conftest
$ac_exeext conftest.
$ac_ext
24659 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24660 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
24661 if test $ac_cv_func_gethostbyname = yes; then
24662 HAVE_GETHOSTBYNAME
="1"
24665 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24666 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
24667 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24668 echo $ECHO_N "(cached) $ECHO_C" >&6
24670 ac_check_lib_save_LIBS
=$LIBS
24672 cat >conftest.
$ac_ext <<_ACEOF
24675 cat confdefs.h
>>conftest.
$ac_ext
24676 cat >>conftest.
$ac_ext <<_ACEOF
24677 /* end confdefs.h. */
24679 /* Override any GCC internal prototype to avoid an error.
24680 Use char because int might match the return type of a GCC
24681 builtin and then its argument prototype would still apply. */
24685 char gethostbyname ();
24689 return gethostbyname ();
24694 rm -f conftest.
$ac_objext conftest
$ac_exeext
24695 if { (ac_try
="$ac_link"
24696 case "(($ac_try" in
24697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_link") 2>conftest.er1
24703 grep -v '^ *+' conftest.er1 >conftest.err
24705 cat conftest.err >&5
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); } && {
24708 test -z "$ac_c_werror_flag" ||
24709 test ! -s conftest.err
24710 } && test -s conftest$ac_exeext &&
24711 $as_test_x conftest$ac_exeext; then
24712 ac_cv_lib_nsl_gethostbyname=yes
24714 echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24717 ac_cv_lib_nsl_gethostbyname=no
24720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24721 conftest$ac_exeext conftest.$ac_ext
24722 LIBS=$ac_check_lib_save_LIBS
24724 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24725 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
24726 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24727 HAVE_GETHOSTBYNAME="1"
24736 if test "$HAVE_GETHOSTBYNAME" != "1"
24738 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
24739 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
24740 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24743 ac_check_lib_save_LIBS=$LIBS
24744 LIBS="-lsocket $LIBS"
24745 cat >conftest.$ac_ext <<_ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h. */
24752 /* Override any GCC internal prototype to avoid an error.
24753 Use char because int might match the return type of a GCC
24754 builtin and then its argument prototype would still apply. */
24758 char gethostbyname ();
24762 return gethostbyname ();
24767 rm -f conftest.$ac_objext conftest$ac_exeext
24768 if { (ac_try="$ac_link"
24769 case "(($ac_try" in
24770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24771 *) ac_try_echo
=$ac_try;;
24773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24774 (eval "$ac_link") 2>conftest.er1
24776 grep -v '^ *+' conftest.er1
>conftest.err
24778 cat conftest.err
>&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } && {
24781 test -z "$ac_c_werror_flag" ||
24782 test ! -s conftest.err
24783 } && test -s conftest
$ac_exeext &&
24784 $as_test_x conftest
$ac_exeext; then
24785 ac_cv_lib_socket_gethostbyname
=yes
24787 echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.
$ac_ext >&5
24790 ac_cv_lib_socket_gethostbyname
=no
24793 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24794 conftest
$ac_exeext conftest.
$ac_ext
24795 LIBS
=$ac_check_lib_save_LIBS
24797 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
24798 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
24799 if test $ac_cv_lib_socket_gethostbyname = yes; then
24800 HAVE_GETHOSTBYNAME
="1"
24801 LIBS
="$LIBS -lsocket"
24807 if test "$HAVE_GETHOSTBYNAME" != "1"
24809 { echo "$as_me:$LINENO: checking for gethostbyname with both nsl and socket libs" >&5
24810 echo $ECHO_N "checking for gethostbyname with both nsl and socket libs... $ECHO_C" >&6; }
24811 my_ac_save_LIBS
=$LIBS
24812 LIBS
="-lnsl -lsocket $LIBS"
24813 cat >conftest.
$ac_ext <<_ACEOF
24817 cat confdefs.h
>>conftest.
$ac_ext
24818 cat >>conftest.
$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24833 rm -f conftest.
$ac_objext conftest
$ac_exeext
24834 if { (ac_try
="$ac_link"
24835 case "(($ac_try" in
24836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24837 *) ac_try_echo=$ac_try;;
24839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24840 (eval "$ac_link") 2>conftest.er1
24842 grep -v '^ *+' conftest.er1 >conftest.err
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } && {
24847 test -z "$ac_c_werror_flag" ||
24848 test ! -s conftest.err
24849 } && test -s conftest$ac_exeext &&
24850 $as_test_x conftest$ac_exeext; then
24852 { echo "$as_me:$LINENO: result: yes" >&5
24853 echo "${ECHO_T}yes" >&6; }
24854 HAVE_GETHOSTBYNAME="1"
24857 echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24861 { echo "$as_me:$LINENO: result: no" >&5
24862 echo "${ECHO_T}no" >&6; }
24863 LIBS=$my_ac_save_LIBS
24867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24868 conftest$ac_exeext conftest.$ac_ext
24871 if test "$HAVE_GETHOSTBYNAME" != "1"
24873 if test "$ac_cv_header_windows_h" = "yes"; then
24874 if test "$ac_cv_header_winsock_h" = "yes"; then
24877 winsock_LIB="-lwinsock"
24880 winsock_LIB="-lwsock32"
24884 if test "$ac_cv_header_winsock2_h" = "yes"; then
24885 winsock_LIB="-lws2_32"
24887 if test ! -z "$winsock_LIB"; then
24888 my_ac_save_LIBS=$LIBS
24889 LIBS="$winsock_LIB $LIBS"
24890 { echo "$as_me:$LINENO: checking for gethostbyname in $winsock_LIB" >&5
24891 echo $ECHO_N "checking for gethostbyname in $winsock_LIB... $ECHO_C" >&6; }
24892 cat >conftest.$ac_ext <<_ACEOF
24896 cat confdefs.h >>conftest.$ac_ext
24897 cat >>conftest.$ac_ext <<_ACEOF
24898 /* end confdefs.h. */
24900 #ifdef HAVE_WINDOWS_H
24901 #ifndef WIN32_LEAN_AND_MEAN
24902 #define WIN32_LEAN_AND_MEAN
24904 #include <windows.h>
24905 #ifdef HAVE_WINSOCK2_H
24906 #include <winsock2.h>
24908 #ifdef HAVE_WINSOCK_H
24909 #include <winsock.h>
24918 gethostbyname("www.dummysite.com");
24925 rm -f conftest.$ac_objext conftest$ac_exeext
24926 if { (ac_try="$ac_link"
24927 case "(($ac_try" in
24928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24929 *) ac_try_echo
=$ac_try;;
24931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24932 (eval "$ac_link") 2>conftest.er1
24934 grep -v '^ *+' conftest.er1
>conftest.err
24936 cat conftest.err
>&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } && {
24939 test -z "$ac_c_werror_flag" ||
24940 test ! -s conftest.err
24941 } && test -s conftest
$ac_exeext &&
24942 $as_test_x conftest
$ac_exeext; then
24944 { echo "$as_me:$LINENO: result: yes" >&5
24945 echo "${ECHO_T}yes" >&6; }
24946 HAVE_GETHOSTBYNAME
="1"
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.
$ac_ext >&5
24953 { echo "$as_me:$LINENO: result: no" >&5
24954 echo "${ECHO_T}no" >&6; }
24956 LIBS
=$my_ac_save_LIBS
24960 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24961 conftest
$ac_exeext conftest.
$ac_ext
24966 if test "$HAVE_GETHOSTBYNAME" != "1"
24968 { echo "$as_me:$LINENO: checking for gethostbyname for Minix 3" >&5
24969 echo $ECHO_N "checking for gethostbyname for Minix 3... $ECHO_C" >&6; }
24970 cat >conftest.
$ac_ext <<_ACEOF
24974 cat confdefs.h
>>conftest.
$ac_ext
24975 cat >>conftest.
$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24978 /* Older Minix versions may need <net/gen/netdb.h> here instead */
24985 gethostbyname("www.dummysite.com");
24992 rm -f conftest.
$ac_objext conftest
$ac_exeext
24993 if { (ac_try
="$ac_link"
24994 case "(($ac_try" in
24995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_link") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && {
25006 test -z "$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 } && test -s conftest$ac_exeext &&
25009 $as_test_x conftest$ac_exeext; then
25011 { echo "$as_me:$LINENO: result: yes" >&5
25012 echo "${ECHO_T}yes" >&6; }
25013 HAVE_GETHOSTBYNAME="1"
25016 echo "$as_me: failed program was:" >&5
25017 sed 's/^/| /' conftest.$ac_ext >&5
25020 { echo "$as_me:$LINENO: result: no" >&5
25021 echo "${ECHO_T}no" >&6; }
25025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25026 conftest$ac_exeext conftest.$ac_ext
25029 if test "$HAVE_GETHOSTBYNAME" != "1"
25031 { echo "$as_me:$LINENO: checking for gethostbyname for eCos" >&5
25032 echo $ECHO_N "checking for gethostbyname for eCos... $ECHO_C" >&6; }
25033 cat >conftest.$ac_ext <<_ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h. */
25048 gethostbyname("www.dummysite.com");
25055 rm -f conftest.$ac_objext conftest$ac_exeext
25056 if { (ac_try="$ac_link"
25057 case "(($ac_try" in
25058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25059 *) ac_try_echo
=$ac_try;;
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062 (eval "$ac_link") 2>conftest.er1
25064 grep -v '^ *+' conftest.er1
>conftest.err
25066 cat conftest.err
>&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); } && {
25069 test -z "$ac_c_werror_flag" ||
25070 test ! -s conftest.err
25071 } && test -s conftest
$ac_exeext &&
25072 $as_test_x conftest
$ac_exeext; then
25074 { echo "$as_me:$LINENO: result: yes" >&5
25075 echo "${ECHO_T}yes" >&6; }
25076 HAVE_GETHOSTBYNAME
="1"
25079 echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.
$ac_ext >&5
25083 { echo "$as_me:$LINENO: result: no" >&5
25084 echo "${ECHO_T}no" >&6; }
25088 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25089 conftest
$ac_exeext conftest.
$ac_ext
25092 if test "$HAVE_GETHOSTBYNAME" != "1"
25094 { echo "$as_me:$LINENO: checking for gethostbyname in -lnetwork" >&5
25095 echo $ECHO_N "checking for gethostbyname in -lnetwork... $ECHO_C" >&6; }
25096 if test "${ac_cv_lib_network_gethostbyname+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 ac_check_lib_save_LIBS
=$LIBS
25100 LIBS
="-lnetwork $LIBS"
25101 cat >conftest.
$ac_ext <<_ACEOF
25104 cat confdefs.h
>>conftest.
$ac_ext
25105 cat >>conftest.
$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25108 /* Override any GCC internal prototype to avoid an error.
25109 Use char because int might match the return type of a GCC
25110 builtin and then its argument prototype would still apply. */
25114 char gethostbyname ();
25118 return gethostbyname ();
25123 rm -f conftest.
$ac_objext conftest
$ac_exeext
25124 if { (ac_try
="$ac_link"
25125 case "(($ac_try" in
25126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_link") 2>conftest.er1
25132 grep -v '^ *+' conftest.er1 >conftest.err
25134 cat conftest.err >&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } && {
25137 test -z "$ac_c_werror_flag" ||
25138 test ! -s conftest.err
25139 } && test -s conftest$ac_exeext &&
25140 $as_test_x conftest$ac_exeext; then
25141 ac_cv_lib_network_gethostbyname=yes
25143 echo "$as_me: failed program was:" >&5
25144 sed 's/^/| /' conftest.$ac_ext >&5
25146 ac_cv_lib_network_gethostbyname=no
25149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25150 conftest$ac_exeext conftest.$ac_ext
25151 LIBS=$ac_check_lib_save_LIBS
25153 { echo "$as_me:$LINENO: result: $ac_cv_lib_network_gethostbyname" >&5
25154 echo "${ECHO_T}$ac_cv_lib_network_gethostbyname" >&6; }
25155 if test $ac_cv_lib_network_gethostbyname = yes; then
25156 HAVE_GETHOSTBYNAME="1"
25157 LIBS="$LIBS -lnetwork"
25163 if test "$HAVE_GETHOSTBYNAME" != "1"
25165 { echo "$as_me:$LINENO: checking for gethostbyname in -lnet" >&5
25166 echo $ECHO_N "checking for gethostbyname in -lnet... $ECHO_C" >&6; }
25167 if test "${ac_cv_lib_net_gethostbyname+set}" = set; then
25168 echo $ECHO_N "(cached) $ECHO_C" >&6
25170 ac_check_lib_save_LIBS=$LIBS
25172 cat >conftest.$ac_ext <<_ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h. */
25179 /* Override any GCC internal prototype to avoid an error.
25180 Use char because int might match the return type of a GCC
25181 builtin and then its argument prototype would still apply. */
25185 char gethostbyname ();
25189 return gethostbyname ();
25194 rm -f conftest.$ac_objext conftest$ac_exeext
25195 if { (ac_try="$ac_link"
25196 case "(($ac_try" in
25197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25198 *) ac_try_echo
=$ac_try;;
25200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25201 (eval "$ac_link") 2>conftest.er1
25203 grep -v '^ *+' conftest.er1
>conftest.err
25205 cat conftest.err
>&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } && {
25208 test -z "$ac_c_werror_flag" ||
25209 test ! -s conftest.err
25210 } && test -s conftest
$ac_exeext &&
25211 $as_test_x conftest
$ac_exeext; then
25212 ac_cv_lib_net_gethostbyname
=yes
25214 echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.
$ac_ext >&5
25217 ac_cv_lib_net_gethostbyname
=no
25220 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25221 conftest
$ac_exeext conftest.
$ac_ext
25222 LIBS
=$ac_check_lib_save_LIBS
25224 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_gethostbyname" >&5
25225 echo "${ECHO_T}$ac_cv_lib_net_gethostbyname" >&6; }
25226 if test $ac_cv_lib_net_gethostbyname = yes; then
25227 HAVE_GETHOSTBYNAME
="1"
25235 if test "$HAVE_GETHOSTBYNAME" = "1"; then
25237 cat >>confdefs.h
<<\_ACEOF
25238 #define HAVE_GETHOSTBYNAME 1
25242 { { echo "$as_me:$LINENO: error: couldn't find libraries for gethostbyname()" >&5
25243 echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
25244 { (exit 1); exit 1; }; }
25247 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
25248 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
25249 if test "${ac_cv_func_strcasecmp+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25252 cat >conftest.
$ac_ext <<_ACEOF
25255 cat confdefs.h
>>conftest.
$ac_ext
25256 cat >>conftest.
$ac_ext <<_ACEOF
25257 /* end confdefs.h. */
25258 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
25259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25260 #define strcasecmp innocuous_strcasecmp
25262 /* System header to define __stub macros and hopefully few prototypes,
25263 which can conflict with char strcasecmp (); below.
25264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25265 <limits.h> exists even on freestanding compilers. */
25268 # include <limits.h>
25270 # include <assert.h>
25275 /* Override any GCC internal prototype to avoid an error.
25276 Use char because int might match the return type of a GCC
25277 builtin and then its argument prototype would still apply. */
25281 char strcasecmp ();
25282 /* The GNU C library defines this for functions which it implements
25283 to always fail with ENOSYS. Some functions are actually named
25284 something starting with __ and the normal name is an alias. */
25285 #if defined __stub_strcasecmp || defined __stub___strcasecmp
25292 return strcasecmp ();
25297 rm -f conftest.
$ac_objext conftest
$ac_exeext
25298 if { (ac_try
="$ac_link"
25299 case "(($ac_try" in
25300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25301 *) ac_try_echo=$ac_try;;
25303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25304 (eval "$ac_link") 2>conftest.er1
25306 grep -v '^ *+' conftest.er1 >conftest.err
25308 cat conftest.err >&5
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); } && {
25311 test -z "$ac_c_werror_flag" ||
25312 test ! -s conftest.err
25313 } && test -s conftest$ac_exeext &&
25314 $as_test_x conftest$ac_exeext; then
25315 ac_cv_func_strcasecmp=yes
25317 echo "$as_me: failed program was:" >&5
25318 sed 's/^/| /' conftest.$ac_ext >&5
25320 ac_cv_func_strcasecmp=no
25323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25324 conftest$ac_exeext conftest.$ac_ext
25326 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
25327 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
25328 if test $ac_cv_func_strcasecmp = yes; then
25332 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
25333 echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6; }
25334 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
25335 echo $ECHO_N "(cached) $ECHO_C" >&6
25337 ac_check_lib_save_LIBS=$LIBS
25338 LIBS="-lresolve $LIBS"
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25346 /* Override any GCC internal prototype to avoid an error.
25347 Use char because int might match the return type of a GCC
25348 builtin and then its argument prototype would still apply. */
25352 char strcasecmp ();
25356 return strcasecmp ();
25361 rm -f conftest.$ac_objext conftest$ac_exeext
25362 if { (ac_try="$ac_link"
25363 case "(($ac_try" in
25364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25365 *) ac_try_echo
=$ac_try;;
25367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25368 (eval "$ac_link") 2>conftest.er1
25370 grep -v '^ *+' conftest.er1
>conftest.err
25372 cat conftest.err
>&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } && {
25375 test -z "$ac_c_werror_flag" ||
25376 test ! -s conftest.err
25377 } && test -s conftest
$ac_exeext &&
25378 $as_test_x conftest
$ac_exeext; then
25379 ac_cv_lib_resolve_strcasecmp
=yes
25381 echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.
$ac_ext >&5
25384 ac_cv_lib_resolve_strcasecmp
=no
25387 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25388 conftest
$ac_exeext conftest.
$ac_ext
25389 LIBS
=$ac_check_lib_save_LIBS
25391 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
25392 echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6; }
25393 if test $ac_cv_lib_resolve_strcasecmp = yes; then
25394 cat >>confdefs.h
<<_ACEOF
25395 #define HAVE_LIBRESOLVE 1
25398 LIBS
="-lresolve $LIBS"
25405 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
25406 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
25407 echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6; }
25408 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
25409 echo $ECHO_N "(cached) $ECHO_C" >&6
25411 ac_check_lib_save_LIBS
=$LIBS
25412 LIBS
="-lresolve -lnsl $LIBS"
25413 cat >conftest.
$ac_ext <<_ACEOF
25416 cat confdefs.h
>>conftest.
$ac_ext
25417 cat >>conftest.
$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25420 /* Override any GCC internal prototype to avoid an error.
25421 Use char because int might match the return type of a GCC
25422 builtin and then its argument prototype would still apply. */
25426 char strcasecmp ();
25430 return strcasecmp ();
25435 rm -f conftest.
$ac_objext conftest
$ac_exeext
25436 if { (ac_try
="$ac_link"
25437 case "(($ac_try" in
25438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25439 *) ac_try_echo=$ac_try;;
25441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25442 (eval "$ac_link") 2>conftest.er1
25444 grep -v '^ *+' conftest.er1 >conftest.err
25446 cat conftest.err >&5
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); } && {
25449 test -z "$ac_c_werror_flag" ||
25450 test ! -s conftest.err
25451 } && test -s conftest$ac_exeext &&
25452 $as_test_x conftest$ac_exeext; then
25453 ac_cv_lib_resolve_strcasecmp=yes
25455 echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25458 ac_cv_lib_resolve_strcasecmp=no
25461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25462 conftest$ac_exeext conftest.$ac_ext
25463 LIBS=$ac_check_lib_save_LIBS
25465 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
25466 echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6; }
25467 if test $ac_cv_lib_resolve_strcasecmp = yes; then
25468 LIBS="-lresolve $LIBS"
25473 { echo "$as_me:$LINENO: checking for connect" >&5
25474 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
25475 if test "${ac_cv_func_connect+set}" = set; then
25476 echo $ECHO_N "(cached) $ECHO_C" >&6
25478 cat >conftest.$ac_ext <<_ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25484 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
25485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25486 #define connect innocuous_connect
25488 /* System header to define __stub macros and hopefully few prototypes,
25489 which can conflict with char connect (); below.
25490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25491 <limits.h> exists even on freestanding compilers. */
25494 # include <limits.h>
25496 # include <assert.h>
25501 /* Override any GCC internal prototype to avoid an error.
25502 Use char because int might match the return type of a GCC
25503 builtin and then its argument prototype would still apply. */
25508 /* The GNU C library defines this for functions which it implements
25509 to always fail with ENOSYS. Some functions are actually named
25510 something starting with __ and the normal name is an alias. */
25511 #if defined __stub_connect || defined __stub___connect
25523 rm -f conftest.$ac_objext conftest$ac_exeext
25524 if { (ac_try="$ac_link"
25525 case "(($ac_try" in
25526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25527 *) ac_try_echo
=$ac_try;;
25529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25530 (eval "$ac_link") 2>conftest.er1
25532 grep -v '^ *+' conftest.er1
>conftest.err
25534 cat conftest.err
>&5
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && {
25537 test -z "$ac_c_werror_flag" ||
25538 test ! -s conftest.err
25539 } && test -s conftest
$ac_exeext &&
25540 $as_test_x conftest
$ac_exeext; then
25541 ac_cv_func_connect
=yes
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.
$ac_ext >&5
25546 ac_cv_func_connect
=no
25549 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25550 conftest
$ac_exeext conftest.
$ac_ext
25552 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25553 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
25554 if test $ac_cv_func_connect = yes; then
25558 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25559 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25560 if test "${ac_cv_lib_socket_connect+set}" = set; then
25561 echo $ECHO_N "(cached) $ECHO_C" >&6
25563 ac_check_lib_save_LIBS
=$LIBS
25564 LIBS
="-lsocket $LIBS"
25565 cat >conftest.
$ac_ext <<_ACEOF
25568 cat confdefs.h
>>conftest.
$ac_ext
25569 cat >>conftest.
$ac_ext <<_ACEOF
25570 /* end confdefs.h. */
25572 /* Override any GCC internal prototype to avoid an error.
25573 Use char because int might match the return type of a GCC
25574 builtin and then its argument prototype would still apply. */
25587 rm -f conftest.
$ac_objext conftest
$ac_exeext
25588 if { (ac_try
="$ac_link"
25589 case "(($ac_try" in
25590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25594 (eval "$ac_link") 2>conftest.er1
25596 grep -v '^ *+' conftest.er1 >conftest.err
25598 cat conftest.err >&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); } && {
25601 test -z "$ac_c_werror_flag" ||
25602 test ! -s conftest.err
25603 } && test -s conftest$ac_exeext &&
25604 $as_test_x conftest$ac_exeext; then
25605 ac_cv_lib_socket_connect=yes
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25610 ac_cv_lib_socket_connect=no
25613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25614 conftest$ac_exeext conftest.$ac_ext
25615 LIBS=$ac_check_lib_save_LIBS
25617 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25618 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25619 if test $ac_cv_lib_socket_connect = yes; then
25620 cat >>confdefs.h <<_ACEOF
25621 #define HAVE_LIBSOCKET 1
25624 LIBS="-lsocket $LIBS"
25631 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25632 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25633 if test "${ac_cv_header_time+set}" = set; then
25634 echo $ECHO_N "(cached) $ECHO_C" >&6
25636 cat >conftest.$ac_ext <<_ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h. */
25642 #include <sys/types.h>
25643 #include <sys/time.h>
25649 if ((struct tm *) 0)
25655 rm -f conftest.$ac_objext
25656 if { (ac_try="$ac_compile"
25657 case "(($ac_try" in
25658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25659 *) ac_try_echo
=$ac_try;;
25661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25662 (eval "$ac_compile") 2>conftest.er1
25664 grep -v '^ *+' conftest.er1
>conftest.err
25666 cat conftest.err
>&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); } && {
25669 test -z "$ac_c_werror_flag" ||
25670 test ! -s conftest.err
25671 } && test -s conftest.
$ac_objext; then
25672 ac_cv_header_time
=yes
25674 echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.
$ac_ext >&5
25677 ac_cv_header_time
=no
25680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25682 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25683 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25684 if test $ac_cv_header_time = yes; then
25686 cat >>confdefs.h
<<\_ACEOF
25687 #define TIME_WITH_SYS_TIME 1
25696 for ac_header
in sys
/types.h sys
/time.h
time.h
25698 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25699 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25702 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25703 echo $ECHO_N "(cached) $ECHO_C" >&6
25705 ac_res
=`eval echo '${'$as_ac_Header'}'`
25706 { echo "$as_me:$LINENO: result: $ac_res" >&5
25707 echo "${ECHO_T}$ac_res" >&6; }
25709 # Is the header compilable?
25710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25712 cat >conftest.
$ac_ext <<_ACEOF
25715 cat confdefs.h
>>conftest.
$ac_ext
25716 cat >>conftest.
$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 $ac_includes_default
25719 #include <$ac_header>
25721 rm -f conftest.
$ac_objext
25722 if { (ac_try
="$ac_compile"
25723 case "(($ac_try" in
25724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25725 *) ac_try_echo=$ac_try;;
25727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728 (eval "$ac_compile") 2>conftest.er1
25730 grep -v '^ *+' conftest.er1 >conftest.err
25732 cat conftest.err >&5
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); } && {
25735 test -z "$ac_c_werror_flag" ||
25736 test ! -s conftest.err
25737 } && test -s conftest.$ac_objext; then
25738 ac_header_compiler=yes
25740 echo "$as_me: failed program was:" >&5
25741 sed 's/^/| /' conftest.$ac_ext >&5
25743 ac_header_compiler=no
25746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25748 echo "${ECHO_T}$ac_header_compiler" >&6; }
25750 # Is the header present?
25751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25753 cat >conftest.$ac_ext <<_ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25759 #include <$ac_header>
25761 if { (ac_try="$ac_cpp conftest.$ac_ext"
25762 case "(($ac_try" in
25763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25764 *) ac_try_echo
=$ac_try;;
25766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25769 grep -v '^ *+' conftest.er1
>conftest.err
25771 cat conftest.err
>&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } >/dev
/null
&& {
25774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25777 ac_header_preproc
=yes
25779 echo "$as_me: failed program was:" >&5
25780 sed 's/^/| /' conftest.
$ac_ext >&5
25782 ac_header_preproc
=no
25785 rm -f conftest.err conftest.
$ac_ext
25786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25787 echo "${ECHO_T}$ac_header_preproc" >&6; }
25789 # So? What about this header?
25790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25796 ac_header_preproc
=yes
25799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25812 ## ------------------------------------------------------------------------ ##
25813 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
25814 ## ------------------------------------------------------------------------ ##
25816 ) |
sed "s/^/$as_me: WARNING: /" >&2
25819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25821 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25822 echo $ECHO_N "(cached) $ECHO_C" >&6
25824 eval "$as_ac_Header=\$ac_header_preproc"
25826 ac_res
=`eval echo '${'$as_ac_Header'}'`
25827 { echo "$as_me:$LINENO: result: $ac_res" >&5
25828 echo "${ECHO_T}$ac_res" >&6; }
25831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25832 cat >>confdefs.h
<<_ACEOF
25833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25840 { echo "$as_me:$LINENO: checking for monotonic clock_gettime" >&5
25841 echo $ECHO_N "checking for monotonic clock_gettime... $ECHO_C" >&6; }
25842 cat >conftest.
$ac_ext <<_ACEOF
25846 cat confdefs.h
>>conftest.
$ac_ext
25847 cat >>conftest.
$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25850 #ifdef HAVE_SYS_TYPES_H
25851 #include <sys/types.h>
25853 #ifdef HAVE_SYS_TIME_H
25854 #include <sys/time.h>
25855 #ifdef TIME_WITH_SYS_TIME
25868 struct timespec ts;
25869 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
25876 rm -f conftest.
$ac_objext
25877 if { (ac_try
="$ac_compile"
25878 case "(($ac_try" in
25879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25880 *) ac_try_echo=$ac_try;;
25882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25883 (eval "$ac_compile") 2>conftest.er1
25885 grep -v '^ *+' conftest.er1 >conftest.err
25887 cat conftest.err >&5
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); } && {
25890 test -z "$ac_c_werror_flag" ||
25891 test ! -s conftest.err
25892 } && test -s conftest.$ac_objext; then
25894 { echo "$as_me:$LINENO: result: yes" >&5
25895 echo "${ECHO_T}yes" >&6; }
25896 ac_cv_func_clock_gettime="yes"
25899 echo "$as_me: failed program was:" >&5
25900 sed 's/^/| /' conftest.$ac_ext >&5
25903 { echo "$as_me:$LINENO: result: no" >&5
25904 echo "${ECHO_T}no" >&6; }
25905 ac_cv_func_clock_gettime="no"
25909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25913 if test "$ac_cv_func_clock_gettime" = "yes"; then
25915 { echo "$as_me:$LINENO: checking for clock_gettime in libraries" >&5
25916 echo $ECHO_N "checking for clock_gettime in libraries... $ECHO_C" >&6; }
25918 curl_cv_save_LIBS="$LIBS"
25919 curl_cv_gclk_LIBS="unknown"
25921 for x_xlibs in '' '-lrt' '-lposix4' ; do
25922 if test "$curl_cv_gclk_LIBS" = "unknown"; then
25923 if test -z "$x_xlibs"; then
25924 LIBS="$curl_cv_save_LIBS"
25926 LIBS="$x_xlibs $curl_cv_save_LIBS"
25928 cat >conftest.$ac_ext <<_ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25936 #ifdef HAVE_SYS_TYPES_H
25937 #include <sys/types.h>
25939 #ifdef HAVE_SYS_TIME_H
25940 #include <sys/time.h>
25941 #ifdef TIME_WITH_SYS_TIME
25954 struct timespec ts;
25955 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
25962 rm -f conftest.$ac_objext conftest$ac_exeext
25963 if { (ac_try="$ac_link"
25964 case "(($ac_try" in
25965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25966 *) ac_try_echo
=$ac_try;;
25968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25969 (eval "$ac_link") 2>conftest.er1
25971 grep -v '^ *+' conftest.er1
>conftest.err
25973 cat conftest.err
>&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); } && {
25976 test -z "$ac_c_werror_flag" ||
25977 test ! -s conftest.err
25978 } && test -s conftest
$ac_exeext &&
25979 $as_test_x conftest
$ac_exeext; then
25981 curl_cv_gclk_LIBS
="$x_xlibs"
25984 echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.
$ac_ext >&5
25990 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25991 conftest
$ac_exeext conftest.
$ac_ext
25995 LIBS
="$curl_cv_save_LIBS"
25997 case X-
"$curl_cv_gclk_LIBS" in
25999 { echo "$as_me:$LINENO: result: cannot find clock_gettime" >&5
26000 echo "${ECHO_T}cannot find clock_gettime" >&6; }
26001 { echo "$as_me:$LINENO: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
26002 echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
26003 ac_cv_func_clock_gettime
="no"
26006 { echo "$as_me:$LINENO: result: no additional lib required" >&5
26007 echo "${ECHO_T}no additional lib required" >&6; }
26008 ac_cv_func_clock_gettime
="yes"
26011 if test -z "$curl_cv_save_LIBS"; then
26012 LIBS
="$curl_cv_gclk_LIBS"
26014 LIBS
="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
26016 { echo "$as_me:$LINENO: result: $curl_cv_gclk_LIBS" >&5
26017 echo "${ECHO_T}$curl_cv_gclk_LIBS" >&6; }
26018 ac_cv_func_clock_gettime
="yes"
26022 if test "x$cross_compiling" != "xyes" &&
26023 test "$ac_cv_func_clock_gettime" = "yes"; then
26024 { echo "$as_me:$LINENO: checking if monotonic clock_gettime works" >&5
26025 echo $ECHO_N "checking if monotonic clock_gettime works... $ECHO_C" >&6; }
26026 if test "$cross_compiling" = yes; then
26027 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26028 See \`config.log' for more details." >&5
26029 echo "$as_me: error: cannot run test program while cross compiling
26030 See \`config.log' for more details." >&2;}
26031 { (exit 1); exit 1; }; }
26033 cat >conftest.
$ac_ext <<_ACEOF
26037 cat confdefs.h
>>conftest.
$ac_ext
26038 cat >>conftest.
$ac_ext <<_ACEOF
26039 /* end confdefs.h. */
26041 #ifdef HAVE_SYS_TYPES_H
26042 #include <sys/types.h>
26044 #ifdef HAVE_SYS_TIME_H
26045 #include <sys/time.h>
26046 #ifdef TIME_WITH_SYS_TIME
26059 struct timespec ts;
26060 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
26070 rm -f conftest
$ac_exeext
26071 if { (ac_try
="$ac_link"
26072 case "(($ac_try" in
26073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26074 *) ac_try_echo=$ac_try;;
26076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26077 (eval "$ac_link") 2>&5
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26081 { (case "(($ac_try" in
26082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26083 *) ac_try_echo
=$ac_try;;
26085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26086 (eval "$ac_try") 2>&5
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); }; }; then
26091 { echo "$as_me:$LINENO: result: yes" >&5
26092 echo "${ECHO_T}yes" >&6; }
26095 echo "$as_me: program exited with status $ac_status" >&5
26096 echo "$as_me: failed program was:" >&5
26097 sed 's/^/| /' conftest.
$ac_ext >&5
26099 ( exit $ac_status )
26101 { echo "$as_me:$LINENO: result: no" >&5
26102 echo "${ECHO_T}no" >&6; }
26103 { echo "$as_me:$LINENO: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
26104 echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
26105 ac_cv_func_clock_gettime
="no"
26106 LIBS
="$curl_cv_save_LIBS"
26109 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26115 case "$ac_cv_func_clock_gettime" in
26118 cat >>confdefs.h
<<_ACEOF
26119 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
26129 TEST_SERVER_LIBS
=$LIBS
26131 { echo "$as_me:$LINENO: checking whether to use libgcc" >&5
26132 echo $ECHO_N "checking whether to use libgcc... $ECHO_C" >&6; }
26133 # Check whether --enable-libgcc was given.
26134 if test "${enable_libgcc+set}" = set; then
26135 enableval
=$enable_libgcc; case "$enableval" in
26137 ALL_LIBS
="$ALL_LIBS -lgcc"
26138 { echo "$as_me:$LINENO: result: yes" >&5
26139 echo "${ECHO_T}yes" >&6; }
26141 *) { echo "$as_me:$LINENO: result: no" >&5
26142 echo "${ECHO_T}no" >&6; }
26146 { echo "$as_me:$LINENO: result: no" >&5
26147 echo "${ECHO_T}no" >&6; }
26155 # Check whether --with-ldap-lib was given.
26156 if test "${with_ldap_lib+set}" = set; then
26157 withval
=$with_ldap_lib; LDAPLIBNAME
="$withval"
26163 # Check whether --with-lber-lib was given.
26164 if test "${with_lber_lib+set}" = set; then
26165 withval
=$with_lber_lib; LBERLIBNAME
="$withval"
26169 if test x
$CURL_DISABLE_LDAP != x1
; then
26172 { echo "$as_me:$LINENO: checking for lber.h" >&5
26173 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
26174 if test "${ac_cv_header_lber_h+set}" = set; then
26175 echo $ECHO_N "(cached) $ECHO_C" >&6
26178 cat >conftest.
$ac_ext <<_ACEOF
26182 cat confdefs.h
>>conftest.
$ac_ext
26183 cat >>conftest.
$ac_ext <<_ACEOF
26184 /* end confdefs.h. */
26187 #ifdef HAVE_WINDOWS_H
26188 #ifndef WIN32_LEAN_AND_MEAN
26189 #define WIN32_LEAN_AND_MEAN
26191 #include <windows.h>
26193 #ifdef HAVE_SYS_TYPES_H
26194 #include <sys/types.h>
26198 #define NULL (void *)0
26206 BerValue *bvp = NULL;
26207 BerElement *bep = ber_init(bvp);
26215 rm -f conftest.
$ac_objext
26216 if { (ac_try
="$ac_compile"
26217 case "(($ac_try" in
26218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26219 *) ac_try_echo=$ac_try;;
26221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26222 (eval "$ac_compile") 2>conftest.er1
26224 grep -v '^ *+' conftest.er1 >conftest.err
26226 cat conftest.err >&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); } && {
26229 test -z "$ac_c_werror_flag" ||
26230 test ! -s conftest.err
26231 } && test -s conftest.$ac_objext; then
26233 ac_cv_header_lber_h="yes"
26236 echo "$as_me: failed program was:" >&5
26237 sed 's/^/| /' conftest.$ac_ext >&5
26240 ac_cv_header_lber_h="no"
26244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26247 { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
26248 echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
26249 if test "$ac_cv_header_lber_h" = "yes"; then
26251 cat >>confdefs.h <<_ACEOF
26252 #define HAVE_LBER_H 1
26256 cat >conftest.$ac_ext <<_ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h. */
26265 #ifdef HAVE_WINDOWS_H
26266 #ifndef WIN32_LEAN_AND_MEAN
26267 #define WIN32_LEAN_AND_MEAN
26269 #include <windows.h>
26271 #ifdef HAVE_SYS_TYPES_H
26272 #include <sys/types.h>
26276 #define NULL (void *)0
26278 #ifndef LDAP_DEPRECATED
26279 #define LDAP_DEPRECATED 1
26287 BerValue *bvp = NULL;
26288 BerElement *bep = ber_init(bvp);
26296 rm -f conftest.$ac_objext
26297 if { (ac_try="$ac_compile"
26298 case "(($ac_try" in
26299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26300 *) ac_try_echo
=$ac_try;;
26302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26303 (eval "$ac_compile") 2>conftest.er1
26305 grep -v '^ *+' conftest.er1
>conftest.err
26307 cat conftest.err
>&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); } && {
26310 test -z "$ac_c_werror_flag" ||
26311 test ! -s conftest.err
26312 } && test -s conftest.
$ac_objext; then
26314 curl_cv_need_header_lber_h
="no"
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.
$ac_ext >&5
26321 curl_cv_need_header_lber_h
="yes"
26325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26327 case "$curl_cv_need_header_lber_h" in
26330 cat >>confdefs.h
<<_ACEOF
26331 #define NEED_LBER_H 1
26339 { echo "$as_me:$LINENO: checking for ldap.h" >&5
26340 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
26341 if test "${ac_cv_header_ldap_h+set}" = set; then
26342 echo $ECHO_N "(cached) $ECHO_C" >&6
26345 cat >conftest.
$ac_ext <<_ACEOF
26349 cat confdefs.h
>>conftest.
$ac_ext
26350 cat >>conftest.
$ac_ext <<_ACEOF
26351 /* end confdefs.h. */
26354 #ifdef HAVE_WINDOWS_H
26355 #ifndef WIN32_LEAN_AND_MEAN
26356 #define WIN32_LEAN_AND_MEAN
26358 #include <windows.h>
26360 #ifdef HAVE_SYS_TYPES_H
26361 #include <sys/types.h>
26364 #ifndef LDAP_DEPRECATED
26365 #define LDAP_DEPRECATED 1
26376 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
26377 int res = ldap_unbind(ldp);
26384 rm -f conftest.
$ac_objext
26385 if { (ac_try
="$ac_compile"
26386 case "(($ac_try" in
26387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26388 *) ac_try_echo=$ac_try;;
26390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26391 (eval "$ac_compile") 2>conftest.er1
26393 grep -v '^ *+' conftest.er1 >conftest.err
26395 cat conftest.err >&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } && {
26398 test -z "$ac_c_werror_flag" ||
26399 test ! -s conftest.err
26400 } && test -s conftest.$ac_objext; then
26402 ac_cv_header_ldap_h="yes"
26405 echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26409 ac_cv_header_ldap_h="no"
26413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26416 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
26417 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
26418 case "$ac_cv_header_ldap_h" in
26421 cat >>confdefs.h <<_ACEOF
26422 #define HAVE_LDAP_H 1
26429 { echo "$as_me:$LINENO: checking for ldapssl.h" >&5
26430 echo $ECHO_N "checking for ldapssl.h... $ECHO_C" >&6; }
26431 if test "${ac_cv_header_ldapssl_h+set}" = set; then
26432 echo $ECHO_N "(cached) $ECHO_C" >&6
26435 cat >conftest.$ac_ext <<_ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h. */
26444 #ifdef HAVE_WINDOWS_H
26445 #ifndef WIN32_LEAN_AND_MEAN
26446 #define WIN32_LEAN_AND_MEAN
26448 #include <windows.h>
26450 #ifdef HAVE_SYS_TYPES_H
26451 #include <sys/types.h>
26455 #define NULL (void *)0
26457 #ifndef LDAP_DEPRECATED
26458 #define LDAP_DEPRECATED 1
26466 #include <ldapssl.h>
26472 char *cert_label = NULL;
26473 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
26480 rm -f conftest.$ac_objext
26481 if { (ac_try="$ac_compile"
26482 case "(($ac_try" in
26483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26484 *) ac_try_echo
=$ac_try;;
26486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26487 (eval "$ac_compile") 2>conftest.er1
26489 grep -v '^ *+' conftest.er1
>conftest.err
26491 cat conftest.err
>&5
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); } && {
26494 test -z "$ac_c_werror_flag" ||
26495 test ! -s conftest.err
26496 } && test -s conftest.
$ac_objext; then
26498 ac_cv_header_ldapssl_h
="yes"
26501 echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.
$ac_ext >&5
26505 ac_cv_header_ldapssl_h
="no"
26509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26512 { echo "$as_me:$LINENO: result: $ac_cv_header_ldapssl_h" >&5
26513 echo "${ECHO_T}$ac_cv_header_ldapssl_h" >&6; }
26514 case "$ac_cv_header_ldapssl_h" in
26517 cat >>confdefs.h
<<_ACEOF
26518 #define HAVE_LDAPSSL_H 1
26525 { echo "$as_me:$LINENO: checking for ldap_ssl.h" >&5
26526 echo $ECHO_N "checking for ldap_ssl.h... $ECHO_C" >&6; }
26527 if test "${ac_cv_header_ldap_ssl_h+set}" = set; then
26528 echo $ECHO_N "(cached) $ECHO_C" >&6
26531 cat >conftest.
$ac_ext <<_ACEOF
26535 cat confdefs.h
>>conftest.
$ac_ext
26536 cat >>conftest.
$ac_ext <<_ACEOF
26537 /* end confdefs.h. */
26540 #ifdef HAVE_WINDOWS_H
26541 #ifndef WIN32_LEAN_AND_MEAN
26542 #define WIN32_LEAN_AND_MEAN
26544 #include <windows.h>
26546 #ifdef HAVE_SYS_TYPES_H
26547 #include <sys/types.h>
26550 #ifndef LDAP_DEPRECATED
26551 #define LDAP_DEPRECATED 1
26559 #include <ldap_ssl.h>
26565 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
26572 rm -f conftest.
$ac_objext
26573 if { (ac_try
="$ac_compile"
26574 case "(($ac_try" in
26575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579 (eval "$ac_compile") 2>conftest.er1
26581 grep -v '^ *+' conftest.er1 >conftest.err
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } && {
26586 test -z "$ac_c_werror_flag" ||
26587 test ! -s conftest.err
26588 } && test -s conftest.$ac_objext; then
26590 ac_cv_header_ldap_ssl_h="yes"
26593 echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26597 ac_cv_header_ldap_ssl_h="no"
26601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26604 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_ssl_h" >&5
26605 echo "${ECHO_T}$ac_cv_header_ldap_ssl_h" >&6; }
26606 case "$ac_cv_header_ldap_ssl_h" in
26609 cat >>confdefs.h <<_ACEOF
26610 #define HAVE_LDAP_SSL_H 1
26617 if test -z "$LDAPLIBNAME" ; then
26619 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
26620 LDAPLIBNAME="wldap32"
26626 if test "$LDAPLIBNAME" ; then
26628 as_ac_Lib=`echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" |
$as_tr_sh`
26629 { echo "$as_me:$LINENO: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
26630 echo $ECHO_N "checking for ldap_init in -l\"$LDAPLIBNAME\"... $ECHO_C" >&6; }
26631 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26634 ac_check_lib_save_LIBS=$LIBS
26635 LIBS="-l"$LDAPLIBNAME" $LIBS"
26636 cat >conftest.$ac_ext <<_ACEOF
26639 cat confdefs.h >>conftest.$ac_ext
26640 cat >>conftest.$ac_ext <<_ACEOF
26641 /* end confdefs.h. */
26643 /* Override any GCC internal prototype to avoid an error.
26644 Use char because int might match the return type of a GCC
26645 builtin and then its argument prototype would still apply. */
26653 return ldap_init ();
26658 rm -f conftest.$ac_objext conftest$ac_exeext
26659 if { (ac_try="$ac_link"
26660 case "(($ac_try" in
26661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26662 *) ac_try_echo
=$ac_try;;
26664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26665 (eval "$ac_link") 2>conftest.er1
26667 grep -v '^ *+' conftest.er1
>conftest.err
26669 cat conftest.err
>&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); } && {
26672 test -z "$ac_c_werror_flag" ||
26673 test ! -s conftest.err
26674 } && test -s conftest
$ac_exeext &&
26675 $as_test_x conftest
$ac_exeext; then
26676 eval "$as_ac_Lib=yes"
26678 echo "$as_me: failed program was:" >&5
26679 sed 's/^/| /' conftest.
$ac_ext >&5
26681 eval "$as_ac_Lib=no"
26684 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26685 conftest
$ac_exeext conftest.
$ac_ext
26686 LIBS
=$ac_check_lib_save_LIBS
26688 ac_res
=`eval echo '${'$as_ac_Lib'}'`
26689 { echo "$as_me:$LINENO: result: $ac_res" >&5
26690 echo "${ECHO_T}$ac_res" >&6; }
26691 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26692 cat >>confdefs.h
<<_ACEOF
26693 #define `echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
26696 LIBS
="-l"$LDAPLIBNAME" $LIBS"
26700 { echo "$as_me:$LINENO: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
26701 echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
26703 cat >>confdefs.h
<<\_ACEOF
26704 #define CURL_DISABLE_LDAP 1
26707 CURL_DISABLE_LDAP
=1
26712 cat >>confdefs.h
<<\_ACEOF
26713 #define CURL_DISABLE_LDAPS 1
26716 CURL_DISABLE_LDAPS
=1
26721 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
26722 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
26728 curl_cv_save_LIBS
="$LIBS"
26729 curl_cv_ldap_LIBS
="unknown"
26731 for x_nlibs
in '' "$u_libs" \
26735 '-lldapssl -lldapx -lldapsdk' \
26736 '-lldapsdk -lldapx -lldapssl' ; do
26737 if test "$curl_cv_ldap_LIBS" = "unknown"; then
26738 if test -z "$x_nlibs"; then
26739 LIBS
="$curl_cv_save_LIBS"
26741 LIBS
="$x_nlibs $curl_cv_save_LIBS"
26743 cat >conftest.
$ac_ext <<_ACEOF
26747 cat confdefs.h
>>conftest.
$ac_ext
26748 cat >>conftest.
$ac_ext <<_ACEOF
26749 /* end confdefs.h. */
26752 #ifdef HAVE_WINDOWS_H
26753 #ifndef WIN32_LEAN_AND_MEAN
26754 #define WIN32_LEAN_AND_MEAN
26756 #include <windows.h>
26758 #ifdef HAVE_SYS_TYPES_H
26759 #include <sys/types.h>
26763 #define NULL (void *)0
26765 #ifndef LDAP_DEPRECATED
26766 #define LDAP_DEPRECATED 1
26779 BerValue *bvp = NULL;
26780 BerElement *bep = ber_init(bvp);
26781 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
26782 int res = ldap_unbind(ldp);
26790 rm -f conftest.
$ac_objext conftest
$ac_exeext
26791 if { (ac_try
="$ac_link"
26792 case "(($ac_try" in
26793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26794 *) ac_try_echo=$ac_try;;
26796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26797 (eval "$ac_link") 2>conftest.er1
26799 grep -v '^ *+' conftest.er1 >conftest.err
26801 cat conftest.err >&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } && {
26804 test -z "$ac_c_werror_flag" ||
26805 test ! -s conftest.err
26806 } && test -s conftest$ac_exeext &&
26807 $as_test_x conftest$ac_exeext; then
26809 curl_cv_ldap_LIBS="$x_nlibs"
26812 echo "$as_me: failed program was:" >&5
26813 sed 's/^/| /' conftest.$ac_ext >&5
26818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26819 conftest$ac_exeext conftest.$ac_ext
26823 LIBS="$curl_cv_save_LIBS"
26825 case X-"$curl_cv_ldap_LIBS" in
26827 { echo "$as_me:$LINENO: result: cannot find LDAP libraries" >&5
26828 echo "${ECHO_T}cannot find LDAP libraries" >&6; }
26831 { echo "$as_me:$LINENO: result: no additional lib required" >&5
26832 echo "${ECHO_T}no additional lib required" >&6; }
26835 if test -z "$curl_cv_save_LIBS"; then
26836 LIBS="$curl_cv_ldap_LIBS"
26838 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
26840 { echo "$as_me:$LINENO: result: $curl_cv_ldap_LIBS" >&5
26841 echo "${ECHO_T}$curl_cv_ldap_LIBS" >&6; }
26846 case X-"$curl_cv_ldap_LIBS" in
26848 { echo "$as_me:$LINENO: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
26849 echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
26851 cat >>confdefs.h <<\_ACEOF
26852 #define CURL_DISABLE_LDAP 1
26855 CURL_DISABLE_LDAP=1
26858 cat >>confdefs.h <<\_ACEOF
26859 #define CURL_DISABLE_LDAPS 1
26862 CURL_DISABLE_LDAPS=1
26869 if test x$CURL_DISABLE_LDAP != x1 ; then
26871 if test "$LBERLIBNAME" ; then
26872 if test "$LBERLIBNAME" != "no" ; then
26874 as_ac_Lib=`echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" |
$as_tr_sh`
26875 { echo "$as_me:$LINENO: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
26876 echo $ECHO_N "checking for ber_free in -l\"$LBERLIBNAME\"... $ECHO_C" >&6; }
26877 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26880 ac_check_lib_save_LIBS=$LIBS
26881 LIBS="-l"$LBERLIBNAME" $LIBS"
26882 cat >conftest.$ac_ext <<_ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h. */
26889 /* Override any GCC internal prototype to avoid an error.
26890 Use char because int might match the return type of a GCC
26891 builtin and then its argument prototype would still apply. */
26899 return ber_free ();
26904 rm -f conftest.$ac_objext conftest$ac_exeext
26905 if { (ac_try="$ac_link"
26906 case "(($ac_try" in
26907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26908 *) ac_try_echo
=$ac_try;;
26910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26911 (eval "$ac_link") 2>conftest.er1
26913 grep -v '^ *+' conftest.er1
>conftest.err
26915 cat conftest.err
>&5
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); } && {
26918 test -z "$ac_c_werror_flag" ||
26919 test ! -s conftest.err
26920 } && test -s conftest
$ac_exeext &&
26921 $as_test_x conftest
$ac_exeext; then
26922 eval "$as_ac_Lib=yes"
26924 echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.
$ac_ext >&5
26927 eval "$as_ac_Lib=no"
26930 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26931 conftest
$ac_exeext conftest.
$ac_ext
26932 LIBS
=$ac_check_lib_save_LIBS
26934 ac_res
=`eval echo '${'$as_ac_Lib'}'`
26935 { echo "$as_me:$LINENO: result: $ac_res" >&5
26936 echo "${ECHO_T}$ac_res" >&6; }
26937 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26938 cat >>confdefs.h
<<_ACEOF
26939 #define `echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
26942 LIBS
="-l"$LBERLIBNAME" $LIBS"
26946 { echo "$as_me:$LINENO: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
26947 echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
26949 cat >>confdefs.h
<<\_ACEOF
26950 #define CURL_DISABLE_LDAP 1
26953 CURL_DISABLE_LDAP
=1
26958 cat >>confdefs.h
<<\_ACEOF
26959 #define CURL_DISABLE_LDAPS 1
26962 CURL_DISABLE_LDAPS
=1
26968 if test x
$CURL_DISABLE_LDAP != x1
; then
26970 for ac_func
in ldap_url_parse
26972 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26975 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26976 echo $ECHO_N "(cached) $ECHO_C" >&6
26978 cat >conftest.
$ac_ext <<_ACEOF
26981 cat confdefs.h
>>conftest.
$ac_ext
26982 cat >>conftest.
$ac_ext <<_ACEOF
26983 /* end confdefs.h. */
26984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26986 #define $ac_func innocuous_$ac_func
26988 /* System header to define __stub macros and hopefully few prototypes,
26989 which can conflict with char $ac_func (); below.
26990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26991 <limits.h> exists even on freestanding compilers. */
26994 # include <limits.h>
26996 # include <assert.h>
27001 /* Override any GCC internal prototype to avoid an error.
27002 Use char because int might match the return type of a GCC
27003 builtin and then its argument prototype would still apply. */
27008 /* The GNU C library defines this for functions which it implements
27009 to always fail with ENOSYS. Some functions are actually named
27010 something starting with __ and the normal name is an alias. */
27011 #if defined __stub_$ac_func || defined __stub___$ac_func
27018 return $ac_func ();
27023 rm -f conftest.
$ac_objext conftest
$ac_exeext
27024 if { (ac_try
="$ac_link"
27025 case "(($ac_try" in
27026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27027 *) ac_try_echo=$ac_try;;
27029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27030 (eval "$ac_link") 2>conftest.er1
27032 grep -v '^ *+' conftest.er1 >conftest.err
27034 cat conftest.err >&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); } && {
27037 test -z "$ac_c_werror_flag" ||
27038 test ! -s conftest.err
27039 } && test -s conftest$ac_exeext &&
27040 $as_test_x conftest$ac_exeext; then
27041 eval "$as_ac_var=yes"
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27046 eval "$as_ac_var=no"
27049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27050 conftest$ac_exeext conftest.$ac_ext
27052 ac_res=`eval echo '${'$as_ac_var'}'`
27053 { echo "$as_me:$LINENO: result: $ac_res" >&5
27054 echo "${ECHO_T}$ac_res" >&6; }
27055 if test `eval echo '${'$as_ac_var'}'` = yes; then
27056 cat >>confdefs.h <<_ACEOF
27057 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
27064 if test "$LDAPLIBNAME" = "wldap32"; then
27065 curl_ldap_msg="enabled (winldap)"
27067 cat >>confdefs.h <<\_ACEOF
27068 #define CURL_LDAP_WIN 1
27072 *-*-cygwin* | *-*-pw32*)
27074 cat >>confdefs.h <<\_ACEOF
27075 #define CURL_LDAP_HYBRID 1
27081 curl_ldap_msg="enabled (OpenLDAP)"
27086 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
27087 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
27088 # Check whether --enable-ipv6 was given.
27089 if test "${enable_ipv6+set}" = set; then
27090 enableval=$enable_ipv6; case "$enableval" in
27092 { echo "$as_me:$LINENO: result: no" >&5
27093 echo "${ECHO_T}no" >&6; }
27096 *) { echo "$as_me:$LINENO: result: yes" >&5
27097 echo "${ECHO_T}yes" >&6; }
27102 if test "$cross_compiling" = yes; then
27103 { echo "$as_me:$LINENO: result: no" >&5
27104 echo "${ECHO_T}no" >&6; }
27108 cat >conftest.$ac_ext <<_ACEOF
27111 cat confdefs.h >>conftest.$ac_ext
27112 cat >>conftest.$ac_ext <<_ACEOF
27113 /* end confdefs.h. */
27114 /* is AF_INET6 available? */
27115 #include <sys/types.h>
27116 #include <sys/socket.h>
27119 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
27126 rm -f conftest$ac_exeext
27127 if { (ac_try="$ac_link"
27128 case "(($ac_try" in
27129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27130 *) ac_try_echo
=$ac_try;;
27132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133 (eval "$ac_link") 2>&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27137 { (case "(($ac_try" in
27138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27139 *) ac_try_echo=$ac_try;;
27141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27142 (eval "$ac_try") 2>&5
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); }; }; then
27146 { echo "$as_me:$LINENO: result: yes" >&5
27147 echo "${ECHO_T}yes" >&6; }
27150 echo "$as_me: program exited with status $ac_status" >&5
27151 echo "$as_me: failed program was:" >&5
27152 sed 's/^/| /' conftest.$ac_ext >&5
27154 ( exit $ac_status )
27155 { echo "$as_me:$LINENO: result: no" >&5
27156 echo "${ECHO_T}no" >&6; }
27159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27166 if test "$ipv6" = "yes"; then
27167 curl_ipv6_msg="enabled"
27170 # Check whether --enable-nonblocking was given.
27171 if test "${enable_nonblocking+set}" = set; then
27172 enableval=$enable_nonblocking;
27173 if test "$enableval" = "no" ; then
27174 { echo "$as_me:$LINENO: WARNING: non-blocking sockets disabled" >&5
27175 echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
27177 cat >>confdefs.h <<\_ACEOF
27178 #define HAVE_DISABLED_NONBLOCKING 1
27183 { echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
27184 echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6; }
27187 cat >conftest.$ac_ext <<_ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h. */
27195 /* headers for O_NONBLOCK test */
27196 #include <sys/types.h>
27197 #include <unistd.h>
27200 #if defined(sun) || defined(__sun__) || \
27201 defined(__SUNPRO_C) || defined(__SUNPRO_CC)
27202 # if defined(__SVR4) || defined(__srv4__)
27203 # define PLATFORM_SOLARIS
27205 # define PLATFORM_SUNOS4
27208 #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
27209 # define PLATFORM_AIX_V3
27212 #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
27213 #error "O_NONBLOCK does not work on this platform"
27220 /* O_NONBLOCK source test */
27222 int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
27229 rm -f conftest.$ac_objext
27230 if { (ac_try="$ac_compile"
27231 case "(($ac_try" in
27232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27233 *) ac_try_echo
=$ac_try;;
27235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27236 (eval "$ac_compile") 2>conftest.er1
27238 grep -v '^ *+' conftest.er1
>conftest.err
27240 cat conftest.err
>&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); } && {
27243 test -z "$ac_c_werror_flag" ||
27244 test ! -s conftest.err
27245 } && test -s conftest.
$ac_objext; then
27247 nonblock
="O_NONBLOCK"
27249 cat >>confdefs.h
<<\_ACEOF
27250 #define HAVE_O_NONBLOCK 1
27255 echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.
$ac_ext >&5
27261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27263 if test "$nonblock" = "unknown"; then
27264 cat >conftest.
$ac_ext <<_ACEOF
27268 cat confdefs.h
>>conftest.
$ac_ext
27269 cat >>conftest.
$ac_ext <<_ACEOF
27270 /* end confdefs.h. */
27272 /* headers for FIONBIO test */
27273 #include <unistd.h>
27274 #include <stropts.h>
27280 /* FIONBIO source test (old-style unix) */
27282 int flags = ioctl(socket, FIONBIO, &flags);
27289 rm -f conftest.
$ac_objext
27290 if { (ac_try
="$ac_compile"
27291 case "(($ac_try" in
27292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27293 *) ac_try_echo=$ac_try;;
27295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27296 (eval "$ac_compile") 2>conftest.er1
27298 grep -v '^ *+' conftest.er1 >conftest.err
27300 cat conftest.err >&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } && {
27303 test -z "$ac_c_werror_flag" ||
27304 test ! -s conftest.err
27305 } && test -s conftest.$ac_objext; then
27309 cat >>confdefs.h <<\_ACEOF
27310 #define HAVE_FIONBIO 1
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27324 if test "$nonblock" = "unknown"; then
27325 cat >conftest.$ac_ext <<_ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h. */
27333 /* headers for ioctlsocket test (Windows) */
27335 #ifdef HAVE_WINDOWS_H
27336 #ifndef WIN32_LEAN_AND_MEAN
27337 #define WIN32_LEAN_AND_MEAN
27339 #include <windows.h>
27340 #ifdef HAVE_WINSOCK2_H
27341 #include <winsock2.h>
27343 #ifdef HAVE_WINSOCK_H
27344 #include <winsock.h>
27353 /* ioctlsocket source code (Windows) */
27355 unsigned long flags = 0;
27356 sd = socket(0, 0, 0);
27357 ioctlsocket(sd, FIONBIO, &flags);
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27368 *) ac_try_echo
=$ac_try;;
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_compile") 2>conftest.er1
27373 grep -v '^ *+' conftest.er1
>conftest.err
27375 cat conftest.err
>&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } && {
27378 test -z "$ac_c_werror_flag" ||
27379 test ! -s conftest.err
27380 } && test -s conftest.
$ac_objext; then
27382 nonblock
="ioctlsocket"
27384 cat >>confdefs.h
<<\_ACEOF
27385 #define HAVE_IOCTLSOCKET 1
27390 echo "$as_me: failed program was:" >&5
27391 sed 's/^/| /' conftest.
$ac_ext >&5
27396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27399 if test "$nonblock" = "unknown"; then
27400 cat >conftest.
$ac_ext <<_ACEOF
27404 cat confdefs.h
>>conftest.
$ac_ext
27405 cat >>conftest.
$ac_ext <<_ACEOF
27406 /* end confdefs.h. */
27408 /* headers for IoctlSocket test (Amiga?) */
27409 #include <sys/ioctl.h>
27415 /* IoctlSocket source code (Amiga?) */
27417 int flags = IoctlSocket(socket, FIONBIO, (long)1);
27424 rm -f conftest.
$ac_objext conftest
$ac_exeext
27425 if { (ac_try
="$ac_link"
27426 case "(($ac_try" in
27427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27428 *) ac_try_echo=$ac_try;;
27430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431 (eval "$ac_link") 2>conftest.er1
27433 grep -v '^ *+' conftest.er1 >conftest.err
27435 cat conftest.err >&5
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); } && {
27438 test -z "$ac_c_werror_flag" ||
27439 test ! -s conftest.err
27440 } && test -s conftest$ac_exeext &&
27441 $as_test_x conftest$ac_exeext; then
27443 nonblock="IoctlSocket"
27445 cat >>confdefs.h <<\_ACEOF
27446 #define HAVE_IOCTLSOCKET_CASE 1
27451 echo "$as_me: failed program was:" >&5
27452 sed 's/^/| /' conftest.$ac_ext >&5
27457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27458 conftest$ac_exeext conftest.$ac_ext
27461 if test "$nonblock" = "unknown"; then
27462 cat >conftest.$ac_ext <<_ACEOF
27466 cat confdefs.h >>conftest.$ac_ext
27467 cat >>conftest.$ac_ext <<_ACEOF
27468 /* end confdefs.h. */
27470 /* headers for SO_NONBLOCK test (BeOS) */
27471 #include <socket.h>
27477 /* SO_NONBLOCK source code (BeOS) */
27480 int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
27487 rm -f conftest.$ac_objext
27488 if { (ac_try="$ac_compile"
27489 case "(($ac_try" in
27490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27491 *) ac_try_echo
=$ac_try;;
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_compile") 2>conftest.er1
27496 grep -v '^ *+' conftest.er1
>conftest.err
27498 cat conftest.err
>&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } && {
27501 test -z "$ac_c_werror_flag" ||
27502 test ! -s conftest.err
27503 } && test -s conftest.
$ac_objext; then
27505 nonblock
="SO_NONBLOCK"
27507 cat >>confdefs.h
<<\_ACEOF
27508 #define HAVE_SO_NONBLOCK 1
27513 echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.
$ac_ext >&5
27519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27522 { echo "$as_me:$LINENO: result: $nonblock" >&5
27523 echo "${ECHO_T}$nonblock" >&6; }
27525 if test "$nonblock" = "unknown"; then
27527 cat >>confdefs.h
<<\_ACEOF
27528 #define HAVE_DISABLED_NONBLOCKING 1
27531 { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
27532 echo "$as_me: WARNING: non-block sockets disabled" >&2;}
27540 { echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
27541 echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6; }
27544 cat >conftest.
$ac_ext <<_ACEOF
27548 cat confdefs.h
>>conftest.
$ac_ext
27549 cat >>conftest.
$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27552 /* headers for O_NONBLOCK test */
27553 #include <sys/types.h>
27554 #include <unistd.h>
27557 #if defined(sun) || defined(__sun__) || \
27558 defined(__SUNPRO_C) || defined(__SUNPRO_CC)
27559 # if defined(__SVR4) || defined(__srv4__)
27560 # define PLATFORM_SOLARIS
27562 # define PLATFORM_SUNOS4
27565 #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
27566 # define PLATFORM_AIX_V3
27569 #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
27570 #error "O_NONBLOCK does not work on this platform"
27577 /* O_NONBLOCK source test */
27579 int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
27586 rm -f conftest.
$ac_objext
27587 if { (ac_try
="$ac_compile"
27588 case "(($ac_try" in
27589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27590 *) ac_try_echo=$ac_try;;
27592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593 (eval "$ac_compile") 2>conftest.er1
27595 grep -v '^ *+' conftest.er1 >conftest.err
27597 cat conftest.err >&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); } && {
27600 test -z "$ac_c_werror_flag" ||
27601 test ! -s conftest.err
27602 } && test -s conftest.$ac_objext; then
27604 nonblock="O_NONBLOCK"
27606 cat >>confdefs.h <<\_ACEOF
27607 #define HAVE_O_NONBLOCK 1
27612 echo "$as_me: failed program was:" >&5
27613 sed 's/^/| /' conftest.$ac_ext >&5
27618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27620 if test "$nonblock" = "unknown"; then
27621 cat >conftest.$ac_ext <<_ACEOF
27625 cat confdefs.h >>conftest.$ac_ext
27626 cat >>conftest.$ac_ext <<_ACEOF
27627 /* end confdefs.h. */
27629 /* headers for FIONBIO test */
27630 #include <unistd.h>
27631 #include <stropts.h>
27637 /* FIONBIO source test (old-style unix) */
27639 int flags = ioctl(socket, FIONBIO, &flags);
27646 rm -f conftest.$ac_objext
27647 if { (ac_try="$ac_compile"
27648 case "(($ac_try" in
27649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27650 *) ac_try_echo
=$ac_try;;
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_compile") 2>conftest.er1
27655 grep -v '^ *+' conftest.er1
>conftest.err
27657 cat conftest.err
>&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } && {
27660 test -z "$ac_c_werror_flag" ||
27661 test ! -s conftest.err
27662 } && test -s conftest.
$ac_objext; then
27666 cat >>confdefs.h
<<\_ACEOF
27667 #define HAVE_FIONBIO 1
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.
$ac_ext >&5
27678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27681 if test "$nonblock" = "unknown"; then
27682 cat >conftest.
$ac_ext <<_ACEOF
27686 cat confdefs.h
>>conftest.
$ac_ext
27687 cat >>conftest.
$ac_ext <<_ACEOF
27688 /* end confdefs.h. */
27690 /* headers for ioctlsocket test (Windows) */
27692 #ifdef HAVE_WINDOWS_H
27693 #ifndef WIN32_LEAN_AND_MEAN
27694 #define WIN32_LEAN_AND_MEAN
27696 #include <windows.h>
27697 #ifdef HAVE_WINSOCK2_H
27698 #include <winsock2.h>
27700 #ifdef HAVE_WINSOCK_H
27701 #include <winsock.h>
27710 /* ioctlsocket source code (Windows) */
27712 unsigned long flags = 0;
27713 sd = socket(0, 0, 0);
27714 ioctlsocket(sd, FIONBIO, &flags);
27721 rm -f conftest.
$ac_objext
27722 if { (ac_try
="$ac_compile"
27723 case "(($ac_try" in
27724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27725 *) ac_try_echo=$ac_try;;
27727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27728 (eval "$ac_compile") 2>conftest.er1
27730 grep -v '^ *+' conftest.er1 >conftest.err
27732 cat conftest.err >&5
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); } && {
27735 test -z "$ac_c_werror_flag" ||
27736 test ! -s conftest.err
27737 } && test -s conftest.$ac_objext; then
27739 nonblock="ioctlsocket"
27741 cat >>confdefs.h <<\_ACEOF
27742 #define HAVE_IOCTLSOCKET 1
27747 echo "$as_me: failed program was:" >&5
27748 sed 's/^/| /' conftest.$ac_ext >&5
27753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27756 if test "$nonblock" = "unknown"; then
27757 cat >conftest.$ac_ext <<_ACEOF
27761 cat confdefs.h >>conftest.$ac_ext
27762 cat >>conftest.$ac_ext <<_ACEOF
27763 /* end confdefs.h. */
27765 /* headers for IoctlSocket test (Amiga?) */
27766 #include <sys/ioctl.h>
27772 /* IoctlSocket source code (Amiga?) */
27774 int flags = IoctlSocket(socket, FIONBIO, (long)1);
27781 rm -f conftest.$ac_objext conftest$ac_exeext
27782 if { (ac_try="$ac_link"
27783 case "(($ac_try" in
27784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27785 *) ac_try_echo
=$ac_try;;
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_link") 2>conftest.er1
27790 grep -v '^ *+' conftest.er1
>conftest.err
27792 cat conftest.err
>&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); } && {
27795 test -z "$ac_c_werror_flag" ||
27796 test ! -s conftest.err
27797 } && test -s conftest
$ac_exeext &&
27798 $as_test_x conftest
$ac_exeext; then
27800 nonblock
="IoctlSocket"
27802 cat >>confdefs.h
<<\_ACEOF
27803 #define HAVE_IOCTLSOCKET_CASE 1
27808 echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.
$ac_ext >&5
27814 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27815 conftest
$ac_exeext conftest.
$ac_ext
27818 if test "$nonblock" = "unknown"; then
27819 cat >conftest.
$ac_ext <<_ACEOF
27823 cat confdefs.h
>>conftest.
$ac_ext
27824 cat >>conftest.
$ac_ext <<_ACEOF
27825 /* end confdefs.h. */
27827 /* headers for SO_NONBLOCK test (BeOS) */
27828 #include <socket.h>
27834 /* SO_NONBLOCK source code (BeOS) */
27837 int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
27844 rm -f conftest.
$ac_objext
27845 if { (ac_try
="$ac_compile"
27846 case "(($ac_try" in
27847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_compile") 2>conftest.er1
27853 grep -v '^ *+' conftest.er1 >conftest.err
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); } && {
27858 test -z "$ac_c_werror_flag" ||
27859 test ! -s conftest.err
27860 } && test -s conftest.$ac_objext; then
27862 nonblock="SO_NONBLOCK"
27864 cat >>confdefs.h <<\_ACEOF
27865 #define HAVE_SO_NONBLOCK 1
27870 echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27879 { echo "$as_me:$LINENO: result: $nonblock" >&5
27880 echo "${ECHO_T}$nonblock" >&6; }
27882 if test "$nonblock" = "unknown"; then
27884 cat >>confdefs.h <<\_ACEOF
27885 #define HAVE_DISABLED_NONBLOCKING 1
27888 { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
27889 echo "$as_me: WARNING: non-block sockets disabled" >&2;}
27897 { echo "$as_me:$LINENO: checking if argv can be written to" >&5
27898 echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6; }
27899 if test "${curl_cv_writable_argv+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27903 if test "$cross_compiling" = yes; then
27904 curl_cv_writable_argv=cross
27906 cat >conftest.$ac_ext <<_ACEOF
27908 int main(int argc, char ** argv) {
27910 return (argv[0][0] == ' ')?0:1;
27914 rm -f conftest$ac_exeext
27915 if { (ac_try="$ac_link"
27916 case "(($ac_try" in
27917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27918 *) ac_try_echo
=$ac_try;;
27920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27921 (eval "$ac_link") 2>&5
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27925 { (case "(($ac_try" in
27926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27927 *) ac_try_echo=$ac_try;;
27929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27930 (eval "$ac_try") 2>&5
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); }; }; then
27934 curl_cv_writable_argv=yes
27936 echo "$as_me: program exited with status $ac_status" >&5
27937 echo "$as_me: failed program was:" >&5
27938 sed 's/^/| /' conftest.$ac_ext >&5
27940 ( exit $ac_status )
27941 curl_cv_writable_argv=no
27943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27950 case $curl_cv_writable_argv in
27953 cat >>confdefs.h <<\_ACEOF
27954 #define HAVE_WRITABLE_ARGV 1
27957 { echo "$as_me:$LINENO: result: yes" >&5
27958 echo "${ECHO_T}yes" >&6; }
27961 { echo "$as_me:$LINENO: result: no" >&5
27962 echo "${ECHO_T}no" >&6; }
27965 { echo "$as_me:$LINENO: result: no" >&5
27966 echo "${ECHO_T}no" >&6; }
27967 { echo "$as_me:$LINENO: WARNING: the previous check could not be made default was used" >&5
27968 echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
27974 # Check whether --with-krb4-includes was given.
27975 if test "${with_krb4_includes+set}" = set; then
27976 withval=$with_krb4_includes;
27977 CPPFLAGS="$CPPFLAGS -I$withval"
27985 # Check whether --with-krb4-libs was given.
27986 if test "${with_krb4_libs+set}" = set; then
27987 withval=$with_krb4_libs;
27988 LDFLAGS="$LDFLAGS -L$withval"
27998 # Check whether --with-krb4 was given.
27999 if test "${with_krb4+set}" = set; then
28000 withval=$with_krb4;
28001 OPT_KRB4="$withval"
28002 if test X"$OPT_KRB4" != Xno; then
28004 if test X"$OPT_KRB4" != Xyes; then
28005 LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
28006 KRB4LIB="$OPT_KRB4/lib$libsuff"
28007 CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
28008 KRB4INC="$OPT_KRB4/include"
28015 { echo "$as_me:$LINENO: checking if Kerberos4 support is requested" >&5
28016 echo $ECHO_N "checking if Kerberos4 support is requested... $ECHO_C" >&6; }
28018 if test "$want_krb4" = yes
28020 if test "$ipv6" = "yes"; then
28021 echo krb4 is not compatible with IPv6
28024 { echo "$as_me:$LINENO: result: yes" >&5
28025 echo "${ECHO_T}yes" >&6; }
28028 { echo "$as_me:$LINENO: checking where to look for Kerberos4" >&5
28029 echo $ECHO_N "checking where to look for Kerberos4... $ECHO_C" >&6; }
28030 if test X"$OPT_KRB4" = Xyes
28032 { echo "$as_me:$LINENO: result: defaults" >&5
28033 echo "${ECHO_T}defaults" >&6; }
28035 { echo "$as_me:$LINENO: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
28036 echo "${ECHO_T}libs in $KRB4LIB, headers in $KRB4INC" >&6; }
28039 { echo "$as_me:$LINENO: checking for des_pcbc_encrypt in -ldes" >&5
28040 echo $ECHO_N "checking for des_pcbc_encrypt in -ldes... $ECHO_C" >&6; }
28041 if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then
28042 echo $ECHO_N "(cached) $ECHO_C" >&6
28044 ac_check_lib_save_LIBS=$LIBS
28046 cat >conftest.$ac_ext <<_ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h. */
28053 /* Override any GCC internal prototype to avoid an error.
28054 Use char because int might match the return type of a GCC
28055 builtin and then its argument prototype would still apply. */
28059 char des_pcbc_encrypt ();
28063 return des_pcbc_encrypt ();
28068 rm -f conftest.$ac_objext conftest$ac_exeext
28069 if { (ac_try="$ac_link"
28070 case "(($ac_try" in
28071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28072 *) ac_try_echo
=$ac_try;;
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_link") 2>conftest.er1
28077 grep -v '^ *+' conftest.er1
>conftest.err
28079 cat conftest.err
>&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); } && {
28082 test -z "$ac_c_werror_flag" ||
28083 test ! -s conftest.err
28084 } && test -s conftest
$ac_exeext &&
28085 $as_test_x conftest
$ac_exeext; then
28086 ac_cv_lib_des_des_pcbc_encrypt
=yes
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.
$ac_ext >&5
28091 ac_cv_lib_des_des_pcbc_encrypt
=no
28094 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28095 conftest
$ac_exeext conftest.
$ac_ext
28096 LIBS
=$ac_check_lib_save_LIBS
28098 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
28099 echo "${ECHO_T}$ac_cv_lib_des_des_pcbc_encrypt" >&6; }
28100 if test $ac_cv_lib_des_des_pcbc_encrypt = yes; then
28103 for ac_header
in des.h
28105 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28106 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28109 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28110 echo $ECHO_N "(cached) $ECHO_C" >&6
28112 ac_res
=`eval echo '${'$as_ac_Header'}'`
28113 { echo "$as_me:$LINENO: result: $ac_res" >&5
28114 echo "${ECHO_T}$ac_res" >&6; }
28116 # Is the header compilable?
28117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28119 cat >conftest.
$ac_ext <<_ACEOF
28122 cat confdefs.h
>>conftest.
$ac_ext
28123 cat >>conftest.
$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28125 $ac_includes_default
28126 #include <$ac_header>
28128 rm -f conftest.
$ac_objext
28129 if { (ac_try
="$ac_compile"
28130 case "(($ac_try" in
28131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28132 *) ac_try_echo=$ac_try;;
28134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28135 (eval "$ac_compile") 2>conftest.er1
28137 grep -v '^ *+' conftest.er1 >conftest.err
28139 cat conftest.err >&5
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); } && {
28142 test -z "$ac_c_werror_flag" ||
28143 test ! -s conftest.err
28144 } && test -s conftest.$ac_objext; then
28145 ac_header_compiler=yes
28147 echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28150 ac_header_compiler=no
28153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28155 echo "${ECHO_T}$ac_header_compiler" >&6; }
28157 # Is the header present?
28158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28160 cat >conftest.$ac_ext <<_ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h. */
28166 #include <$ac_header>
28168 if { (ac_try="$ac_cpp conftest.$ac_ext"
28169 case "(($ac_try" in
28170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28171 *) ac_try_echo
=$ac_try;;
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28176 grep -v '^ *+' conftest.er1
>conftest.err
28178 cat conftest.err
>&5
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); } >/dev
/null
&& {
28181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28182 test ! -s conftest.err
28184 ac_header_preproc
=yes
28186 echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.
$ac_ext >&5
28189 ac_header_preproc
=no
28192 rm -f conftest.err conftest.
$ac_ext
28193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28194 echo "${ECHO_T}$ac_header_preproc" >&6; }
28196 # So? What about this header?
28197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28203 ac_header_preproc
=yes
28206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28219 ## ------------------------------------------------------------------------ ##
28220 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
28221 ## ------------------------------------------------------------------------ ##
28223 ) |
sed "s/^/$as_me: WARNING: /" >&2
28226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28228 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28229 echo $ECHO_N "(cached) $ECHO_C" >&6
28231 eval "$as_ac_Header=\$ac_header_preproc"
28233 ac_res
=`eval echo '${'$as_ac_Header'}'`
28234 { echo "$as_me:$LINENO: result: $ac_res" >&5
28235 echo "${ECHO_T}$ac_res" >&6; }
28238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28239 cat >>confdefs.h
<<_ACEOF
28240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28248 { echo "$as_me:$LINENO: checking for res_search" >&5
28249 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
28250 if test "${ac_cv_func_res_search+set}" = set; then
28251 echo $ECHO_N "(cached) $ECHO_C" >&6
28253 cat >conftest.
$ac_ext <<_ACEOF
28256 cat confdefs.h
>>conftest.
$ac_ext
28257 cat >>conftest.
$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28259 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
28260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28261 #define res_search innocuous_res_search
28263 /* System header to define __stub macros and hopefully few prototypes,
28264 which can conflict with char res_search (); below.
28265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28266 <limits.h> exists even on freestanding compilers. */
28269 # include <limits.h>
28271 # include <assert.h>
28276 /* Override any GCC internal prototype to avoid an error.
28277 Use char because int might match the return type of a GCC
28278 builtin and then its argument prototype would still apply. */
28282 char res_search ();
28283 /* The GNU C library defines this for functions which it implements
28284 to always fail with ENOSYS. Some functions are actually named
28285 something starting with __ and the normal name is an alias. */
28286 #if defined __stub_res_search || defined __stub___res_search
28293 return res_search ();
28298 rm -f conftest.
$ac_objext conftest
$ac_exeext
28299 if { (ac_try
="$ac_link"
28300 case "(($ac_try" in
28301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28302 *) ac_try_echo=$ac_try;;
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305 (eval "$ac_link") 2>conftest.er1
28307 grep -v '^ *+' conftest.er1 >conftest.err
28309 cat conftest.err >&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } && {
28312 test -z "$ac_c_werror_flag" ||
28313 test ! -s conftest.err
28314 } && test -s conftest$ac_exeext &&
28315 $as_test_x conftest$ac_exeext; then
28316 ac_cv_func_res_search=yes
28318 echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28321 ac_cv_func_res_search=no
28324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28325 conftest$ac_exeext conftest.$ac_ext
28327 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
28328 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
28329 if test $ac_cv_func_res_search = yes; then
28333 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
28334 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
28335 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
28336 echo $ECHO_N "(cached) $ECHO_C" >&6
28338 ac_check_lib_save_LIBS=$LIBS
28339 LIBS="-lresolv $LIBS"
28340 cat >conftest.$ac_ext <<_ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28347 /* Override any GCC internal prototype to avoid an error.
28348 Use char because int might match the return type of a GCC
28349 builtin and then its argument prototype would still apply. */
28353 char res_search ();
28357 return res_search ();
28362 rm -f conftest.$ac_objext conftest$ac_exeext
28363 if { (ac_try="$ac_link"
28364 case "(($ac_try" in
28365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28366 *) ac_try_echo
=$ac_try;;
28368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369 (eval "$ac_link") 2>conftest.er1
28371 grep -v '^ *+' conftest.er1
>conftest.err
28373 cat conftest.err
>&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); } && {
28376 test -z "$ac_c_werror_flag" ||
28377 test ! -s conftest.err
28378 } && test -s conftest
$ac_exeext &&
28379 $as_test_x conftest
$ac_exeext; then
28380 ac_cv_lib_resolv_res_search
=yes
28382 echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.
$ac_ext >&5
28385 ac_cv_lib_resolv_res_search
=no
28388 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28389 conftest
$ac_exeext conftest.
$ac_ext
28390 LIBS
=$ac_check_lib_save_LIBS
28392 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
28393 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
28394 if test $ac_cv_lib_resolv_res_search = yes; then
28395 cat >>confdefs.h
<<_ACEOF
28396 #define HAVE_LIBRESOLV 1
28399 LIBS
="-lresolv $LIBS"
28406 { echo "$as_me:$LINENO: checking for krb_net_read in -lkrb" >&5
28407 echo $ECHO_N "checking for krb_net_read in -lkrb... $ECHO_C" >&6; }
28408 if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then
28409 echo $ECHO_N "(cached) $ECHO_C" >&6
28411 ac_check_lib_save_LIBS
=$LIBS
28413 cat >conftest.
$ac_ext <<_ACEOF
28416 cat confdefs.h
>>conftest.
$ac_ext
28417 cat >>conftest.
$ac_ext <<_ACEOF
28418 /* end confdefs.h. */
28420 /* Override any GCC internal prototype to avoid an error.
28421 Use char because int might match the return type of a GCC
28422 builtin and then its argument prototype would still apply. */
28426 char krb_net_read ();
28430 return krb_net_read ();
28435 rm -f conftest.
$ac_objext conftest
$ac_exeext
28436 if { (ac_try
="$ac_link"
28437 case "(($ac_try" in
28438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28439 *) ac_try_echo=$ac_try;;
28441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28442 (eval "$ac_link") 2>conftest.er1
28444 grep -v '^ *+' conftest.er1 >conftest.err
28446 cat conftest.err >&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } && {
28449 test -z "$ac_c_werror_flag" ||
28450 test ! -s conftest.err
28451 } && test -s conftest$ac_exeext &&
28452 $as_test_x conftest$ac_exeext; then
28453 ac_cv_lib_krb_krb_net_read=yes
28455 echo "$as_me: failed program was:" >&5
28456 sed 's/^/| /' conftest.$ac_ext >&5
28458 ac_cv_lib_krb_krb_net_read=no
28461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28462 conftest$ac_exeext conftest.$ac_ext
28463 LIBS=$ac_check_lib_save_LIBS
28465 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_net_read" >&5
28466 echo "${ECHO_T}$ac_cv_lib_krb_krb_net_read" >&6; }
28467 if test $ac_cv_lib_krb_krb_net_read = yes; then
28470 for ac_header in krb.h
28472 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
28473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28477 echo $ECHO_N "(cached) $ECHO_C" >&6
28479 ac_res=`eval echo '${'$as_ac_Header'}'`
28480 { echo "$as_me:$LINENO: result: $ac_res" >&5
28481 echo "${ECHO_T}$ac_res" >&6; }
28483 # Is the header compilable?
28484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28486 cat >conftest.$ac_ext <<_ACEOF
28489 cat confdefs.h >>conftest.$ac_ext
28490 cat >>conftest.$ac_ext <<_ACEOF
28491 /* end confdefs.h. */
28492 $ac_includes_default
28493 #include <$ac_header>
28495 rm -f conftest.$ac_objext
28496 if { (ac_try="$ac_compile"
28497 case "(($ac_try" in
28498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28499 *) ac_try_echo
=$ac_try;;
28501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502 (eval "$ac_compile") 2>conftest.er1
28504 grep -v '^ *+' conftest.er1
>conftest.err
28506 cat conftest.err
>&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); } && {
28509 test -z "$ac_c_werror_flag" ||
28510 test ! -s conftest.err
28511 } && test -s conftest.
$ac_objext; then
28512 ac_header_compiler
=yes
28514 echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.
$ac_ext >&5
28517 ac_header_compiler
=no
28520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28522 echo "${ECHO_T}$ac_header_compiler" >&6; }
28524 # Is the header present?
28525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28527 cat >conftest.
$ac_ext <<_ACEOF
28530 cat confdefs.h
>>conftest.
$ac_ext
28531 cat >>conftest.
$ac_ext <<_ACEOF
28532 /* end confdefs.h. */
28533 #include <$ac_header>
28535 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28536 case "(($ac_try" in
28537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28538 *) ac_try_echo=$ac_try;;
28540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28543 grep -v '^ *+' conftest.er1 >conftest.err
28545 cat conftest.err >&5
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } >/dev/null && {
28548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28549 test ! -s conftest.err
28551 ac_header_preproc=yes
28553 echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28556 ac_header_preproc=no
28559 rm -f conftest.err conftest.$ac_ext
28560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28561 echo "${ECHO_T}$ac_header_preproc" >&6; }
28563 # So? What about this header?
28564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28570 ac_header_preproc=yes
28573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28586 ## ------------------------------------------------------------------------ ##
28587 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
28588 ## ------------------------------------------------------------------------ ##
28590 ) | sed "s/^/$as_me: WARNING: /" >&2
28593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28596 echo $ECHO_N "(cached) $ECHO_C" >&6
28598 eval "$as_ac_Header=\$ac_header_preproc"
28600 ac_res=`eval echo '${'$as_ac_Header'}'`
28601 { echo "$as_me:$LINENO: result: $ac_res" >&5
28602 echo "${ECHO_T}$ac_res" >&6; }
28605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28606 cat >>confdefs.h <<_ACEOF
28607 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
28615 LIBS="-lkrb -lcom_err -ldes $LIBS"
28618 for ac_func in krb_get_our_ip_for_realm
28620 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
28621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28624 echo $ECHO_N "(cached) $ECHO_C" >&6
28626 cat >conftest.$ac_ext <<_ACEOF
28629 cat confdefs.h >>conftest.$ac_ext
28630 cat >>conftest.$ac_ext <<_ACEOF
28631 /* end confdefs.h. */
28632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28634 #define $ac_func innocuous_$ac_func
28636 /* System header to define __stub macros and hopefully few prototypes,
28637 which can conflict with char $ac_func (); below.
28638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28639 <limits.h> exists even on freestanding compilers. */
28642 # include <limits.h>
28644 # include <assert.h>
28649 /* Override any GCC internal prototype to avoid an error.
28650 Use char because int might match the return type of a GCC
28651 builtin and then its argument prototype would still apply. */
28656 /* The GNU C library defines this for functions which it implements
28657 to always fail with ENOSYS. Some functions are actually named
28658 something starting with __ and the normal name is an alias. */
28659 #if defined __stub_$ac_func || defined __stub___$ac_func
28666 return $ac_func ();
28671 rm -f conftest.$ac_objext conftest$ac_exeext
28672 if { (ac_try="$ac_link"
28673 case "(($ac_try" in
28674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28675 *) ac_try_echo
=$ac_try;;
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_link") 2>conftest.er1
28680 grep -v '^ *+' conftest.er1
>conftest.err
28682 cat conftest.err
>&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } && {
28685 test -z "$ac_c_werror_flag" ||
28686 test ! -s conftest.err
28687 } && test -s conftest
$ac_exeext &&
28688 $as_test_x conftest
$ac_exeext; then
28689 eval "$as_ac_var=yes"
28691 echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.
$ac_ext >&5
28694 eval "$as_ac_var=no"
28697 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28698 conftest
$ac_exeext conftest.
$ac_ext
28700 ac_res
=`eval echo '${'$as_ac_var'}'`
28701 { echo "$as_me:$LINENO: result: $ac_res" >&5
28702 echo "${ECHO_T}$ac_res" >&6; }
28703 if test `eval echo '${'$as_ac_var'}'` = yes; then
28704 cat >>confdefs.h
<<_ACEOF
28705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28713 cat >>confdefs.h
<<\_ACEOF
28714 #define HAVE_KRB4 1
28721 curl_krb4_msg
="enabled"
28724 for ac_func
in strlcpy
28726 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28729 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28730 echo $ECHO_N "(cached) $ECHO_C" >&6
28732 cat >conftest.
$ac_ext <<_ACEOF
28735 cat confdefs.h
>>conftest.
$ac_ext
28736 cat >>conftest.
$ac_ext <<_ACEOF
28737 /* end confdefs.h. */
28738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28740 #define $ac_func innocuous_$ac_func
28742 /* System header to define __stub macros and hopefully few prototypes,
28743 which can conflict with char $ac_func (); below.
28744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28745 <limits.h> exists even on freestanding compilers. */
28748 # include <limits.h>
28750 # include <assert.h>
28755 /* Override any GCC internal prototype to avoid an error.
28756 Use char because int might match the return type of a GCC
28757 builtin and then its argument prototype would still apply. */
28762 /* The GNU C library defines this for functions which it implements
28763 to always fail with ENOSYS. Some functions are actually named
28764 something starting with __ and the normal name is an alias. */
28765 #if defined __stub_$ac_func || defined __stub___$ac_func
28772 return $ac_func ();
28777 rm -f conftest.
$ac_objext conftest
$ac_exeext
28778 if { (ac_try
="$ac_link"
28779 case "(($ac_try" in
28780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_link") 2>conftest.er1
28786 grep -v '^ *+' conftest.er1 >conftest.err
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } && {
28791 test -z "$ac_c_werror_flag" ||
28792 test ! -s conftest.err
28793 } && test -s conftest$ac_exeext &&
28794 $as_test_x conftest$ac_exeext; then
28795 eval "$as_ac_var=yes"
28797 echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.$ac_ext >&5
28800 eval "$as_ac_var=no"
28803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28804 conftest$ac_exeext conftest.$ac_ext
28806 ac_res=`eval echo '${'$as_ac_var'}'`
28807 { echo "$as_me:$LINENO: result: $ac_res" >&5
28808 echo "${ECHO_T}$ac_res" >&6; }
28809 if test `eval echo '${'$as_ac_var'}'` = yes; then
28810 cat >>confdefs.h <<_ACEOF
28811 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
28825 { echo "$as_me:$LINENO: result: no" >&5
28826 echo "${ECHO_T}no" >&6; }
28831 # Check whether --with-spnego was given.
28832 if test "${with_spnego+set}" = set; then
28833 withval=$with_spnego;
28834 SPNEGO_ROOT="$withval"
28835 if test x"$SPNEGO_ROOT" != xno; then
28842 { echo "$as_me:$LINENO: checking if SPNEGO support is requested" >&5
28843 echo $ECHO_N "checking if SPNEGO support is requested... $ECHO_C" >&6; }
28844 if test x"$want_spnego" = xyes; then
28846 if test X"$SPNEGO_ROOT" = Xyes; then
28847 { { echo "$as_me:$LINENO: error: FBOpenSSL libs and/or directories were not found where specified!" >&5
28848 echo "$as_me: error: FBOpenSSL libs and/or directories were not found where specified!" >&2;}
28849 { (exit 1); exit 1; }; }
28850 { echo "$as_me:$LINENO: result: no" >&5
28851 echo "${ECHO_T}no" >&6; }
28853 if test -z "$SPNEGO_LIB_DIR"; then
28854 LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
28856 LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
28859 { echo "$as_me:$LINENO: result: yes" >&5
28860 echo "${ECHO_T}yes" >&6; }
28862 cat >>confdefs.h <<\_ACEOF
28863 #define HAVE_SPNEGO 1
28866 curl_spnego_msg="enabled"
28869 { echo "$as_me:$LINENO: result: no" >&5
28870 echo "${ECHO_T}no" >&6; }
28877 # Check whether --with-gssapi-includes was given.
28878 if test "${with_gssapi_includes+set}" = set; then
28879 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
28886 # Check whether --with-gssapi-libs was given.
28887 if test "${with_gssapi_libs+set}" = set; then
28888 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
28895 # Check whether --with-gssapi was given.
28896 if test "${with_gssapi+set}" = set; then
28897 withval=$with_gssapi;
28898 GSSAPI_ROOT="$withval"
28899 if test x"$GSSAPI_ROOT" != xno; then
28901 if test x"$GSSAPI_ROOT" = xyes; then
28909 save_CPPFLAGS="$CPPFLAGS"
28910 { echo "$as_me:$LINENO: checking if GSSAPI support is requested" >&5
28911 echo $ECHO_N "checking if GSSAPI support is requested... $ECHO_C" >&6; }
28912 if test x"$want_gss" = xyes; then
28913 { echo "$as_me:$LINENO: result: yes" >&5
28914 echo "${ECHO_T}yes" >&6; }
28916 if test -z "$GSSAPI_INCS"; then
28917 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
28918 GSSAPI_INCS=`$GSSAPI_ROOT/bin
/krb5-config
--cflags gssapi
`
28919 GSSAPI_LIBS=`$GSSAPI_ROOT/bin
/krb5-config
--libs gssapi
`
28920 elif test "$GSSAPI_ROOT" != "yes"; then
28921 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
28922 GSSAPI_LIBS="-lgssapi"
28926 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
28927 LIBS="$LIBS $GSSAPI_LIBS"
28929 if test "${ac_cv_header_gss_h+set}" = set; then
28930 { echo "$as_me:$LINENO: checking for gss.h" >&5
28931 echo $ECHO_N "checking for gss.h... $ECHO_C" >&6; }
28932 if test "${ac_cv_header_gss_h+set}" = set; then
28933 echo $ECHO_N "(cached) $ECHO_C" >&6
28935 { echo "$as_me:$LINENO: result: $ac_cv_header_gss_h" >&5
28936 echo "${ECHO_T}$ac_cv_header_gss_h" >&6; }
28938 # Is the header compilable?
28939 { echo "$as_me:$LINENO: checking gss.h usability" >&5
28940 echo $ECHO_N "checking gss.h usability... $ECHO_C" >&6; }
28941 cat >conftest.$ac_ext <<_ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h. */
28947 $ac_includes_default
28950 rm -f conftest.$ac_objext
28951 if { (ac_try="$ac_compile"
28952 case "(($ac_try" in
28953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28954 *) ac_try_echo
=$ac_try;;
28956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28957 (eval "$ac_compile") 2>conftest.er1
28959 grep -v '^ *+' conftest.er1
>conftest.err
28961 cat conftest.err
>&5
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); } && {
28964 test -z "$ac_c_werror_flag" ||
28965 test ! -s conftest.err
28966 } && test -s conftest.
$ac_objext; then
28967 ac_header_compiler
=yes
28969 echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.
$ac_ext >&5
28972 ac_header_compiler
=no
28975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28977 echo "${ECHO_T}$ac_header_compiler" >&6; }
28979 # Is the header present?
28980 { echo "$as_me:$LINENO: checking gss.h presence" >&5
28981 echo $ECHO_N "checking gss.h presence... $ECHO_C" >&6; }
28982 cat >conftest.
$ac_ext <<_ACEOF
28985 cat confdefs.h
>>conftest.
$ac_ext
28986 cat >>conftest.
$ac_ext <<_ACEOF
28987 /* end confdefs.h. */
28990 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28991 case "(($ac_try" in
28992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28998 grep -v '^ *+' conftest.er1 >conftest.err
29000 cat conftest.err >&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } >/dev/null && {
29003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29004 test ! -s conftest.err
29006 ac_header_preproc=yes
29008 echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29011 ac_header_preproc=no
29014 rm -f conftest.err conftest.$ac_ext
29015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29016 echo "${ECHO_T}$ac_header_preproc" >&6; }
29018 # So? What about this header?
29019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29021 { echo "$as_me:$LINENO: WARNING: gss.h: accepted by the compiler, rejected by the preprocessor!" >&5
29022 echo "$as_me: WARNING: gss.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29023 { echo "$as_me:$LINENO: WARNING: gss.h: proceeding with the compiler's result" >&5
29024 echo "$as_me: WARNING: gss.h: proceeding with the compiler's result" >&2;}
29025 ac_header_preproc=yes
29028 { echo "$as_me:$LINENO: WARNING: gss.h: present but cannot be compiled" >&5
29029 echo "$as_me: WARNING: gss.h: present but cannot be compiled" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: gss.h: check for missing prerequisite headers?" >&5
29031 echo "$as_me: WARNING: gss.h: check for missing prerequisite headers?" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: gss.h: see the Autoconf documentation" >&5
29033 echo "$as_me: WARNING: gss.h: see the Autoconf documentation" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: gss.h: section \"Present But Cannot Be Compiled\"" >&5
29035 echo "$as_me: WARNING: gss.h: section \"Present But Cannot Be Compiled\"" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: gss.h: proceeding with the preprocessor's result" >&5
29037 echo "$as_me: WARNING: gss.h: proceeding with the preprocessor's result" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: gss.h: in the future, the compiler will take precedence" >&5
29039 echo "$as_me: WARNING: gss.h: in the future, the compiler will take precedence" >&2;}
29041 ## ------------------------------------------------------------------------ ##
29042 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
29043 ## ------------------------------------------------------------------------ ##
29045 ) | sed "s/^/$as_me: WARNING: /" >&2
29048 { echo "$as_me:$LINENO: checking for gss.h" >&5
29049 echo $ECHO_N "checking for gss.h... $ECHO_C" >&6; }
29050 if test "${ac_cv_header_gss_h+set}" = set; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29053 ac_cv_header_gss_h=$ac_header_preproc
29055 { echo "$as_me:$LINENO: result: $ac_cv_header_gss_h" >&5
29056 echo "${ECHO_T}$ac_cv_header_gss_h" >&6; }
29059 if test $ac_cv_header_gss_h = yes; then
29062 cat >>confdefs.h <<\_ACEOF
29063 #define HAVE_GSSGNU 1
29073 for ac_header in gssapi/gssapi.h gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
29075 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
29076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29080 echo $ECHO_N "(cached) $ECHO_C" >&6
29082 ac_res=`eval echo '${'$as_ac_Header'}'`
29083 { echo "$as_me:$LINENO: result: $ac_res" >&5
29084 echo "${ECHO_T}$ac_res" >&6; }
29086 # Is the header compilable?
29087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29089 cat >conftest.$ac_ext <<_ACEOF
29092 cat confdefs.h >>conftest.$ac_ext
29093 cat >>conftest.$ac_ext <<_ACEOF
29094 /* end confdefs.h. */
29095 $ac_includes_default
29096 #include <$ac_header>
29098 rm -f conftest.$ac_objext
29099 if { (ac_try="$ac_compile"
29100 case "(($ac_try" in
29101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29102 *) ac_try_echo
=$ac_try;;
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_compile") 2>conftest.er1
29107 grep -v '^ *+' conftest.er1
>conftest.err
29109 cat conftest.err
>&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); } && {
29112 test -z "$ac_c_werror_flag" ||
29113 test ! -s conftest.err
29114 } && test -s conftest.
$ac_objext; then
29115 ac_header_compiler
=yes
29117 echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.
$ac_ext >&5
29120 ac_header_compiler
=no
29123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29125 echo "${ECHO_T}$ac_header_compiler" >&6; }
29127 # Is the header present?
29128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29130 cat >conftest.
$ac_ext <<_ACEOF
29133 cat confdefs.h
>>conftest.
$ac_ext
29134 cat >>conftest.
$ac_ext <<_ACEOF
29135 /* end confdefs.h. */
29136 #include <$ac_header>
29138 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29139 case "(($ac_try" in
29140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29141 *) ac_try_echo=$ac_try;;
29143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29146 grep -v '^ *+' conftest.er1 >conftest.err
29148 cat conftest.err >&5
29149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); } >/dev/null && {
29151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29152 test ! -s conftest.err
29154 ac_header_preproc=yes
29156 echo "$as_me: failed program was:" >&5
29157 sed 's/^/| /' conftest.$ac_ext >&5
29159 ac_header_preproc=no
29162 rm -f conftest.err conftest.$ac_ext
29163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29164 echo "${ECHO_T}$ac_header_preproc" >&6; }
29166 # So? What about this header?
29167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29173 ac_header_preproc=yes
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29189 ## ------------------------------------------------------------------------ ##
29190 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
29191 ## ------------------------------------------------------------------------ ##
29193 ) | sed "s/^/$as_me: WARNING: /" >&2
29196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29199 echo $ECHO_N "(cached) $ECHO_C" >&6
29201 eval "$as_ac_Header=\$ac_header_preproc"
29203 ac_res=`eval echo '${'$as_ac_Header'}'`
29204 { echo "$as_me:$LINENO: result: $ac_res" >&5
29205 echo "${ECHO_T}$ac_res" >&6; }
29208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29209 cat >>confdefs.h <<_ACEOF
29210 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
29219 if test "x$not_mit" = "x1"; then
29220 if test "${ac_cv_header_gssapi_h+set}" = set; then
29221 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
29222 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
29223 if test "${ac_cv_header_gssapi_h+set}" = set; then
29224 echo $ECHO_N "(cached) $ECHO_C" >&6
29226 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
29227 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
29229 # Is the header compilable?
29230 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
29231 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
29232 cat >conftest.$ac_ext <<_ACEOF
29235 cat confdefs.h >>conftest.$ac_ext
29236 cat >>conftest.$ac_ext <<_ACEOF
29237 /* end confdefs.h. */
29238 $ac_includes_default
29239 #include <gssapi.h>
29241 rm -f conftest.$ac_objext
29242 if { (ac_try="$ac_compile"
29243 case "(($ac_try" in
29244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29245 *) ac_try_echo
=$ac_try;;
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_compile") 2>conftest.er1
29250 grep -v '^ *+' conftest.er1
>conftest.err
29252 cat conftest.err
>&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } && {
29255 test -z "$ac_c_werror_flag" ||
29256 test ! -s conftest.err
29257 } && test -s conftest.
$ac_objext; then
29258 ac_header_compiler
=yes
29260 echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.
$ac_ext >&5
29263 ac_header_compiler
=no
29266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29268 echo "${ECHO_T}$ac_header_compiler" >&6; }
29270 # Is the header present?
29271 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
29272 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
29273 cat >conftest.
$ac_ext <<_ACEOF
29276 cat confdefs.h
>>conftest.
$ac_ext
29277 cat >>conftest.
$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29279 #include <gssapi.h>
29281 if { (ac_try
="$ac_cpp conftest.$ac_ext"
29282 case "(($ac_try" in
29283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29289 grep -v '^ *+' conftest.er1 >conftest.err
29291 cat conftest.err >&5
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); } >/dev/null && {
29294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29295 test ! -s conftest.err
29297 ac_header_preproc=yes
29299 echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29302 ac_header_preproc=no
29305 rm -f conftest.err conftest.$ac_ext
29306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29307 echo "${ECHO_T}$ac_header_preproc" >&6; }
29309 # So? What about this header?
29310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29312 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
29313 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29314 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
29315 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
29316 ac_header_preproc=yes
29319 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
29320 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
29321 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
29322 echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
29324 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
29325 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
29326 echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
29327 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
29328 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
29329 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
29330 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
29332 ## ------------------------------------------------------------------------ ##
29333 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
29334 ## ------------------------------------------------------------------------ ##
29336 ) | sed "s/^/$as_me: WARNING: /" >&2
29339 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
29340 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
29341 if test "${ac_cv_header_gssapi_h+set}" = set; then
29342 echo $ECHO_N "(cached) $ECHO_C" >&6
29344 ac_cv_header_gssapi_h=$ac_header_preproc
29346 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
29347 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
29350 if test $ac_cv_header_gssapi_h = yes; then
29353 cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_GSSHEIMDAL 1
29361 { echo "$as_me:$LINENO: WARNING: disabling GSSAPI since no header files was found" >&5
29362 echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
29370 cat >>confdefs.h <<\_ACEOF
29371 #define HAVE_GSSMIT 1
29374 { echo "$as_me:$LINENO: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
29375 echo $ECHO_N "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6; }
29376 cat >conftest.$ac_ext <<_ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29384 #include <gssapi/gssapi.h>
29385 #include <gssapi/gssapi_generic.h>
29386 #include <gssapi/gssapi_krb5.h>
29395 GSS_C_NT_HOSTBASED_SERVICE,
29403 rm -f conftest.$ac_objext
29404 if { (ac_try="$ac_compile"
29405 case "(($ac_try" in
29406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29407 *) ac_try_echo
=$ac_try;;
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410 (eval "$ac_compile") 2>conftest.er1
29412 grep -v '^ *+' conftest.er1
>conftest.err
29414 cat conftest.err
>&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); } && {
29417 test -z "$ac_c_werror_flag" ||
29418 test ! -s conftest.err
29419 } && test -s conftest.
$ac_objext; then
29421 { echo "$as_me:$LINENO: result: yes" >&5
29422 echo "${ECHO_T}yes" >&6; }
29425 echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.
$ac_ext >&5
29429 { echo "$as_me:$LINENO: result: no" >&5
29430 echo "${ECHO_T}no" >&6; }
29432 cat >>confdefs.h
<<\_ACEOF
29433 #define HAVE_OLD_GSSMIT 1
29439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29447 { echo "$as_me:$LINENO: result: no" >&5
29448 echo "${ECHO_T}no" >&6; }
29450 if test x
"$want_gss" = xyes
; then
29452 cat >>confdefs.h
<<\_ACEOF
29453 #define HAVE_GSSAPI 1
29457 curl_gss_msg
="enabled (MIT/Heimdal)"
29459 if test -n "$gnu_gss"; then
29460 curl_gss_msg
="enabled (GNU GSS)"
29461 LDFLAGS
="$LDFLAGS $GSSAPI_LIB_DIR"
29463 elif test -z "$GSSAPI_LIB_DIR"; then
29464 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
29465 gss_libs
=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
29466 LIBS
="$LIBS $gss_libs"
29467 elif test "$GSSAPI_ROOT" != "yes"; then
29468 LDFLAGS
="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
29469 LIBS
="$LIBS -lgssapi"
29471 LIBS
="$LIBS -lgssapi"
29474 LDFLAGS
="$LDFLAGS $GSSAPI_LIB_DIR"
29475 LIBS
="$LIBS -lgssapi"
29478 CPPFLAGS
="$save_CPPFLAGS"
29485 # Check whether --with-ssl was given.
29486 if test "${with_ssl+set}" = set; then
29487 withval
=$with_ssl; OPT_SSL
=$withval
29491 if test X
"$OPT_SSL" != Xno
; then
29492 CLEANLDFLAGS
="$LDFLAGS"
29493 CLEANCPPFLAGS
="$CPPFLAGS"
29498 if test x
$cross_compiling != xyes
; then
29501 PREFIX_OPENSSL
=/usr
/local
/ssl
29502 LIB_OPENSSL
="$PREFIX_OPENSSL/lib$libsuff"
29505 if test x
$cross_compiling != xyes
; then
29512 PREFIX_OPENSSL
=$OPT_SSL
29513 LIB_OPENSSL
="$PREFIX_OPENSSL/lib$libsuff"
29514 LDFLAGS
="$LDFLAGS -L$LIB_OPENSSL"
29515 CPPFLAGS
="$CPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
29519 if test "$PKGTEST" = "yes"; then
29522 # Extract the first word of "pkg-config", so it can be a program name with args.
29523 set dummy pkg-config
; ac_word
=$2
29524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29526 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
29527 echo $ECHO_N "(cached) $ECHO_C" >&6
29531 ac_cv_path_PKGCONFIG
="$PKGCONFIG" # Let the user override the test with a path.
29534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29535 as_dummy
="$PATH:/usr/bin:/usr/local/bin"
29536 for as_dir
in $as_dummy
29539 test -z "$as_dir" && as_dir
=.
29540 for ac_exec_ext
in '' $ac_executable_extensions; do
29541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29542 ac_cv_path_PKGCONFIG
="$as_dir/$ac_word$ac_exec_ext"
29543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29550 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG
="no"
29554 PKGCONFIG
=$ac_cv_path_PKGCONFIG
29555 if test -n "$PKGCONFIG"; then
29556 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29557 echo "${ECHO_T}$PKGCONFIG" >&6; }
29559 { echo "$as_me:$LINENO: result: no" >&5
29560 echo "${ECHO_T}no" >&6; }
29564 if test "$PKGCONFIG" != "no" ; then
29565 { echo "$as_me:$LINENO: checking OpenSSL options with pkg-config" >&5
29566 echo $ECHO_N "checking OpenSSL options with pkg-config... $ECHO_C" >&6; }
29568 $PKGCONFIG --exists openssl
29571 if test "$SSL_EXISTS" -eq "0"; then
29572 SSL_LIBS
=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
29573 SSL_LDFLAGS
=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
29574 SSL_CPPFLAGS
=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
29576 LIB_OPENSSL
=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
29578 LIBS
="$LIBS $SSL_LIBS"
29579 CPPFLAGS
="$CPPFLAGS $SSL_CPPFLAGS"
29580 LDFLAGS
="$LDFLAGS $SSL_LDFLAGS"
29581 { echo "$as_me:$LINENO: result: found" >&5
29582 echo "${ECHO_T}found" >&6; }
29584 { echo "$as_me:$LINENO: result: no" >&5
29585 echo "${ECHO_T}no" >&6; }
29590 { echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
29591 echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6; }
29592 if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
29593 echo $ECHO_N "(cached) $ECHO_C" >&6
29595 ac_check_lib_save_LIBS
=$LIBS
29596 LIBS
="-lcrypto $LIBS"
29597 cat >conftest.
$ac_ext <<_ACEOF
29600 cat confdefs.h
>>conftest.
$ac_ext
29601 cat >>conftest.
$ac_ext <<_ACEOF
29602 /* end confdefs.h. */
29604 /* Override any GCC internal prototype to avoid an error.
29605 Use char because int might match the return type of a GCC
29606 builtin and then its argument prototype would still apply. */
29610 char CRYPTO_lock ();
29614 return CRYPTO_lock ();
29619 rm -f conftest.
$ac_objext conftest
$ac_exeext
29620 if { (ac_try
="$ac_link"
29621 case "(($ac_try" in
29622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29623 *) ac_try_echo=$ac_try;;
29625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626 (eval "$ac_link") 2>conftest.er1
29628 grep -v '^ *+' conftest.er1 >conftest.err
29630 cat conftest.err >&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); } && {
29633 test -z "$ac_c_werror_flag" ||
29634 test ! -s conftest.err
29635 } && test -s conftest$ac_exeext &&
29636 $as_test_x conftest$ac_exeext; then
29637 ac_cv_lib_crypto_CRYPTO_lock=yes
29639 echo "$as_me: failed program was:" >&5
29640 sed 's/^/| /' conftest.$ac_ext >&5
29642 ac_cv_lib_crypto_CRYPTO_lock=no
29645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29646 conftest$ac_exeext conftest.$ac_ext
29647 LIBS=$ac_check_lib_save_LIBS
29649 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
29650 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
29651 if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
29654 LIBS="-lcrypto $LIBS"
29658 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
29659 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
29660 { echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
29661 echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6; }
29662 if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
29663 echo $ECHO_N "(cached) $ECHO_C" >&6
29665 ac_check_lib_save_LIBS=$LIBS
29666 LIBS="-lcrypto $LIBS"
29667 cat >conftest.$ac_ext <<_ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29674 /* Override any GCC internal prototype to avoid an error.
29675 Use char because int might match the return type of a GCC
29676 builtin and then its argument prototype would still apply. */
29680 char CRYPTO_add_lock ();
29684 return CRYPTO_add_lock ();
29689 rm -f conftest.$ac_objext conftest$ac_exeext
29690 if { (ac_try="$ac_link"
29691 case "(($ac_try" in
29692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29693 *) ac_try_echo
=$ac_try;;
29695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696 (eval "$ac_link") 2>conftest.er1
29698 grep -v '^ *+' conftest.er1
>conftest.err
29700 cat conftest.err
>&5
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); } && {
29703 test -z "$ac_c_werror_flag" ||
29704 test ! -s conftest.err
29705 } && test -s conftest
$ac_exeext &&
29706 $as_test_x conftest
$ac_exeext; then
29707 ac_cv_lib_crypto_CRYPTO_add_lock
=yes
29709 echo "$as_me: failed program was:" >&5
29710 sed 's/^/| /' conftest.
$ac_ext >&5
29712 ac_cv_lib_crypto_CRYPTO_add_lock
=no
29715 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29716 conftest
$ac_exeext conftest.
$ac_ext
29717 LIBS
=$ac_check_lib_save_LIBS
29719 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
29720 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
29721 if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
29724 LIBS
="-lcrypto $LIBS"
29727 LDFLAGS
="$CLEANLDFLAGS"
29728 CPPFLAGS
="$CLEANCPPFLAGS"
29738 if test X
"$HAVECRYPTO" = X
"yes"; then
29741 { echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
29742 echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6; }
29743 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
29744 echo $ECHO_N "(cached) $ECHO_C" >&6
29746 ac_check_lib_save_LIBS
=$LIBS
29748 cat >conftest.
$ac_ext <<_ACEOF
29751 cat confdefs.h
>>conftest.
$ac_ext
29752 cat >>conftest.
$ac_ext <<_ACEOF
29753 /* end confdefs.h. */
29755 /* Override any GCC internal prototype to avoid an error.
29756 Use char because int might match the return type of a GCC
29757 builtin and then its argument prototype would still apply. */
29761 char SSL_connect ();
29765 return SSL_connect ();
29770 rm -f conftest.
$ac_objext conftest
$ac_exeext
29771 if { (ac_try
="$ac_link"
29772 case "(($ac_try" in
29773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29774 *) ac_try_echo=$ac_try;;
29776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777 (eval "$ac_link") 2>conftest.er1
29779 grep -v '^ *+' conftest.er1 >conftest.err
29781 cat conftest.err >&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } && {
29784 test -z "$ac_c_werror_flag" ||
29785 test ! -s conftest.err
29786 } && test -s conftest$ac_exeext &&
29787 $as_test_x conftest$ac_exeext; then
29788 ac_cv_lib_ssl_SSL_connect=yes
29790 echo "$as_me: failed program was:" >&5
29791 sed 's/^/| /' conftest.$ac_ext >&5
29793 ac_cv_lib_ssl_SSL_connect=no
29796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29797 conftest$ac_exeext conftest.$ac_ext
29798 LIBS=$ac_check_lib_save_LIBS
29800 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
29801 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6; }
29802 if test $ac_cv_lib_ssl_SSL_connect = yes; then
29803 cat >>confdefs.h <<_ACEOF
29804 #define HAVE_LIBSSL 1
29812 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
29813 { echo "$as_me:$LINENO: checking for ssl with RSAglue/rsaref libs in use" >&5
29814 echo $ECHO_N "checking for ssl with RSAglue/rsaref libs in use... $ECHO_C" >&6; };
29816 LIBS="$LIBS -lRSAglue -lrsaref"
29818 { echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
29819 echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6; }
29820 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
29821 echo $ECHO_N "(cached) $ECHO_C" >&6
29823 ac_check_lib_save_LIBS=$LIBS
29825 cat >conftest.$ac_ext <<_ACEOF
29828 cat confdefs.h >>conftest.$ac_ext
29829 cat >>conftest.$ac_ext <<_ACEOF
29830 /* end confdefs.h. */
29832 /* Override any GCC internal prototype to avoid an error.
29833 Use char because int might match the return type of a GCC
29834 builtin and then its argument prototype would still apply. */
29838 char SSL_connect ();
29842 return SSL_connect ();
29847 rm -f conftest.$ac_objext conftest$ac_exeext
29848 if { (ac_try="$ac_link"
29849 case "(($ac_try" in
29850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29851 *) ac_try_echo
=$ac_try;;
29853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854 (eval "$ac_link") 2>conftest.er1
29856 grep -v '^ *+' conftest.er1
>conftest.err
29858 cat conftest.err
>&5
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); } && {
29861 test -z "$ac_c_werror_flag" ||
29862 test ! -s conftest.err
29863 } && test -s conftest
$ac_exeext &&
29864 $as_test_x conftest
$ac_exeext; then
29865 ac_cv_lib_ssl_SSL_connect
=yes
29867 echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.
$ac_ext >&5
29870 ac_cv_lib_ssl_SSL_connect
=no
29873 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29874 conftest
$ac_exeext conftest.
$ac_ext
29875 LIBS
=$ac_check_lib_save_LIBS
29877 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
29878 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6; }
29879 if test $ac_cv_lib_ssl_SSL_connect = yes; then
29880 cat >>confdefs.h
<<_ACEOF
29881 #define HAVE_LIBSSL 1
29888 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
29889 { echo "$as_me:$LINENO: result: no" >&5
29890 echo "${ECHO_T}no" >&6; }
29893 { echo "$as_me:$LINENO: result: yes" >&5
29894 echo "${ECHO_T}yes" >&6; }
29905 for ac_header
in openssl
/x509.h openssl
/rsa.h openssl
/crypto.h \
29906 openssl
/pem.h openssl
/ssl.h openssl
/err.h
29908 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29909 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29912 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29913 echo $ECHO_N "(cached) $ECHO_C" >&6
29915 ac_res
=`eval echo '${'$as_ac_Header'}'`
29916 { echo "$as_me:$LINENO: result: $ac_res" >&5
29917 echo "${ECHO_T}$ac_res" >&6; }
29919 # Is the header compilable?
29920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29922 cat >conftest.
$ac_ext <<_ACEOF
29925 cat confdefs.h
>>conftest.
$ac_ext
29926 cat >>conftest.
$ac_ext <<_ACEOF
29927 /* end confdefs.h. */
29928 $ac_includes_default
29929 #include <$ac_header>
29931 rm -f conftest.
$ac_objext
29932 if { (ac_try
="$ac_compile"
29933 case "(($ac_try" in
29934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29935 *) ac_try_echo=$ac_try;;
29937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29938 (eval "$ac_compile") 2>conftest.er1
29940 grep -v '^ *+' conftest.er1 >conftest.err
29942 cat conftest.err >&5
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); } && {
29945 test -z "$ac_c_werror_flag" ||
29946 test ! -s conftest.err
29947 } && test -s conftest.$ac_objext; then
29948 ac_header_compiler=yes
29950 echo "$as_me: failed program was:" >&5
29951 sed 's/^/| /' conftest.$ac_ext >&5
29953 ac_header_compiler=no
29956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29958 echo "${ECHO_T}$ac_header_compiler" >&6; }
29960 # Is the header present?
29961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29963 cat >conftest.$ac_ext <<_ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h. */
29969 #include <$ac_header>
29971 if { (ac_try="$ac_cpp conftest.$ac_ext"
29972 case "(($ac_try" in
29973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29974 *) ac_try_echo
=$ac_try;;
29976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29979 grep -v '^ *+' conftest.er1
>conftest.err
29981 cat conftest.err
>&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } >/dev
/null
&& {
29984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29985 test ! -s conftest.err
29987 ac_header_preproc
=yes
29989 echo "$as_me: failed program was:" >&5
29990 sed 's/^/| /' conftest.
$ac_ext >&5
29992 ac_header_preproc
=no
29995 rm -f conftest.err conftest.
$ac_ext
29996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29997 echo "${ECHO_T}$ac_header_preproc" >&6; }
29999 # So? What about this header?
30000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30006 ac_header_preproc
=yes
30009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30022 ## ------------------------------------------------------------------------ ##
30023 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
30024 ## ------------------------------------------------------------------------ ##
30026 ) |
sed "s/^/$as_me: WARNING: /" >&2
30029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30031 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30032 echo $ECHO_N "(cached) $ECHO_C" >&6
30034 eval "$as_ac_Header=\$ac_header_preproc"
30036 ac_res
=`eval echo '${'$as_ac_Header'}'`
30037 { echo "$as_me:$LINENO: result: $ac_res" >&5
30038 echo "${ECHO_T}$ac_res" >&6; }
30041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30042 cat >>confdefs.h
<<_ACEOF
30043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30045 curl_ssl_msg
="enabled (OpenSSL)"
30048 cat >>confdefs.h
<<\_ACEOF
30049 #define USE_OPENSSL 1
30057 if test $ac_cv_header_openssl_x509_h = no
; then
30064 for ac_header
in x509.h rsa.h crypto.h pem.h ssl.h err.h
30066 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30067 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30070 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30073 ac_res
=`eval echo '${'$as_ac_Header'}'`
30074 { echo "$as_me:$LINENO: result: $ac_res" >&5
30075 echo "${ECHO_T}$ac_res" >&6; }
30077 # Is the header compilable?
30078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30080 cat >conftest.
$ac_ext <<_ACEOF
30083 cat confdefs.h
>>conftest.
$ac_ext
30084 cat >>conftest.
$ac_ext <<_ACEOF
30085 /* end confdefs.h. */
30086 $ac_includes_default
30087 #include <$ac_header>
30089 rm -f conftest.
$ac_objext
30090 if { (ac_try
="$ac_compile"
30091 case "(($ac_try" in
30092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30093 *) ac_try_echo=$ac_try;;
30095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30096 (eval "$ac_compile") 2>conftest.er1
30098 grep -v '^ *+' conftest.er1 >conftest.err
30100 cat conftest.err >&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); } && {
30103 test -z "$ac_c_werror_flag" ||
30104 test ! -s conftest.err
30105 } && test -s conftest.$ac_objext; then
30106 ac_header_compiler=yes
30108 echo "$as_me: failed program was:" >&5
30109 sed 's/^/| /' conftest.$ac_ext >&5
30111 ac_header_compiler=no
30114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30116 echo "${ECHO_T}$ac_header_compiler" >&6; }
30118 # Is the header present?
30119 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30121 cat >conftest.$ac_ext <<_ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h. */
30127 #include <$ac_header>
30129 if { (ac_try="$ac_cpp conftest.$ac_ext"
30130 case "(($ac_try" in
30131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30132 *) ac_try_echo
=$ac_try;;
30134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30137 grep -v '^ *+' conftest.er1
>conftest.err
30139 cat conftest.err
>&5
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); } >/dev
/null
&& {
30142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30143 test ! -s conftest.err
30145 ac_header_preproc
=yes
30147 echo "$as_me: failed program was:" >&5
30148 sed 's/^/| /' conftest.
$ac_ext >&5
30150 ac_header_preproc
=no
30153 rm -f conftest.err conftest.
$ac_ext
30154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30155 echo "${ECHO_T}$ac_header_preproc" >&6; }
30157 # So? What about this header?
30158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30164 ac_header_preproc
=yes
30167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30174 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30180 ## ------------------------------------------------------------------------ ##
30181 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
30182 ## ------------------------------------------------------------------------ ##
30184 ) |
sed "s/^/$as_me: WARNING: /" >&2
30187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30189 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30192 eval "$as_ac_Header=\$ac_header_preproc"
30194 ac_res
=`eval echo '${'$as_ac_Header'}'`
30195 { echo "$as_me:$LINENO: result: $ac_res" >&5
30196 echo "${ECHO_T}$ac_res" >&6; }
30199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30200 cat >>confdefs.h
<<_ACEOF
30201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30209 if test $ac_cv_header_x509_h = yes &&
30210 test $ac_cv_header_crypto_h = yes &&
30211 test $ac_cv_header_ssl_h = yes; then
30212 curl_ssl_msg
="enabled (OpenSSL)"
30218 if test X
"$OPENSSL_ENABLED" = X
"1"; then
30220 cat >>confdefs.h
<<\_ACEOF
30221 #define USE_SSLEAY 1
30226 for ac_header
in openssl
/pkcs12.h
30228 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30229 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30232 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30235 ac_res
=`eval echo '${'$as_ac_Header'}'`
30236 { echo "$as_me:$LINENO: result: $ac_res" >&5
30237 echo "${ECHO_T}$ac_res" >&6; }
30239 # Is the header compilable?
30240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30242 cat >conftest.
$ac_ext <<_ACEOF
30245 cat confdefs.h
>>conftest.
$ac_ext
30246 cat >>conftest.
$ac_ext <<_ACEOF
30247 /* end confdefs.h. */
30248 $ac_includes_default
30249 #include <$ac_header>
30251 rm -f conftest.
$ac_objext
30252 if { (ac_try
="$ac_compile"
30253 case "(($ac_try" in
30254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30255 *) ac_try_echo=$ac_try;;
30257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30258 (eval "$ac_compile") 2>conftest.er1
30260 grep -v '^ *+' conftest.er1 >conftest.err
30262 cat conftest.err >&5
30263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264 (exit $ac_status); } && {
30265 test -z "$ac_c_werror_flag" ||
30266 test ! -s conftest.err
30267 } && test -s conftest.$ac_objext; then
30268 ac_header_compiler=yes
30270 echo "$as_me: failed program was:" >&5
30271 sed 's/^/| /' conftest.$ac_ext >&5
30273 ac_header_compiler=no
30276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30278 echo "${ECHO_T}$ac_header_compiler" >&6; }
30280 # Is the header present?
30281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30283 cat >conftest.$ac_ext <<_ACEOF
30286 cat confdefs.h >>conftest.$ac_ext
30287 cat >>conftest.$ac_ext <<_ACEOF
30288 /* end confdefs.h. */
30289 #include <$ac_header>
30291 if { (ac_try="$ac_cpp conftest.$ac_ext"
30292 case "(($ac_try" in
30293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30294 *) ac_try_echo
=$ac_try;;
30296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30299 grep -v '^ *+' conftest.er1
>conftest.err
30301 cat conftest.err
>&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } >/dev
/null
&& {
30304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30305 test ! -s conftest.err
30307 ac_header_preproc
=yes
30309 echo "$as_me: failed program was:" >&5
30310 sed 's/^/| /' conftest.
$ac_ext >&5
30312 ac_header_preproc
=no
30315 rm -f conftest.err conftest.
$ac_ext
30316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30317 echo "${ECHO_T}$ac_header_preproc" >&6; }
30319 # So? What about this header?
30320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30326 ac_header_preproc
=yes
30329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30342 ## ------------------------------------------------------------------------ ##
30343 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
30344 ## ------------------------------------------------------------------------ ##
30346 ) |
sed "s/^/$as_me: WARNING: /" >&2
30349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30351 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30352 echo $ECHO_N "(cached) $ECHO_C" >&6
30354 eval "$as_ac_Header=\$ac_header_preproc"
30356 ac_res
=`eval echo '${'$as_ac_Header'}'`
30357 { echo "$as_me:$LINENO: result: $ac_res" >&5
30358 echo "${ECHO_T}$ac_res" >&6; }
30361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30362 cat >>confdefs.h
<<_ACEOF
30363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30373 USE_SSLEAY
="$OPENSSL_ENABLED"
30376 if test X
"$OPT_SSL" != Xoff
&&
30377 test "$OPENSSL_ENABLED" != "1"; then
30378 { { echo "$as_me:$LINENO: error: OpenSSL libs and/or directories were not found where specified!" >&5
30379 echo "$as_me: error: OpenSSL libs and/or directories were not found where specified!" >&2;}
30380 { (exit 1); exit 1; }; }
30384 if test X
"$OPENSSL_ENABLED" = X
"1"; then
30385 { echo "$as_me:$LINENO: checking for ENGINE_init" >&5
30386 echo $ECHO_N "checking for ENGINE_init... $ECHO_C" >&6; }
30387 if test "${ac_cv_func_ENGINE_init+set}" = set; then
30388 echo $ECHO_N "(cached) $ECHO_C" >&6
30390 cat >conftest.
$ac_ext <<_ACEOF
30393 cat confdefs.h
>>conftest.
$ac_ext
30394 cat >>conftest.
$ac_ext <<_ACEOF
30395 /* end confdefs.h. */
30396 /* Define ENGINE_init to an innocuous variant, in case <limits.h> declares ENGINE_init.
30397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30398 #define ENGINE_init innocuous_ENGINE_init
30400 /* System header to define __stub macros and hopefully few prototypes,
30401 which can conflict with char ENGINE_init (); below.
30402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30403 <limits.h> exists even on freestanding compilers. */
30406 # include <limits.h>
30408 # include <assert.h>
30413 /* Override any GCC internal prototype to avoid an error.
30414 Use char because int might match the return type of a GCC
30415 builtin and then its argument prototype would still apply. */
30419 char ENGINE_init ();
30420 /* The GNU C library defines this for functions which it implements
30421 to always fail with ENOSYS. Some functions are actually named
30422 something starting with __ and the normal name is an alias. */
30423 #if defined __stub_ENGINE_init || defined __stub___ENGINE_init
30430 return ENGINE_init ();
30435 rm -f conftest.
$ac_objext conftest
$ac_exeext
30436 if { (ac_try
="$ac_link"
30437 case "(($ac_try" in
30438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30439 *) ac_try_echo=$ac_try;;
30441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30442 (eval "$ac_link") 2>conftest.er1
30444 grep -v '^ *+' conftest.er1 >conftest.err
30446 cat conftest.err >&5
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); } && {
30449 test -z "$ac_c_werror_flag" ||
30450 test ! -s conftest.err
30451 } && test -s conftest$ac_exeext &&
30452 $as_test_x conftest$ac_exeext; then
30453 ac_cv_func_ENGINE_init=yes
30455 echo "$as_me: failed program was:" >&5
30456 sed 's/^/| /' conftest.$ac_ext >&5
30458 ac_cv_func_ENGINE_init=no
30461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30462 conftest$ac_exeext conftest.$ac_ext
30464 { echo "$as_me:$LINENO: result: $ac_cv_func_ENGINE_init" >&5
30465 echo "${ECHO_T}$ac_cv_func_ENGINE_init" >&6; }
30466 if test $ac_cv_func_ENGINE_init = yes; then
30469 for ac_header in openssl/engine.h
30471 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
30472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30476 echo $ECHO_N "(cached) $ECHO_C" >&6
30478 ac_res=`eval echo '${'$as_ac_Header'}'`
30479 { echo "$as_me:$LINENO: result: $ac_res" >&5
30480 echo "${ECHO_T}$ac_res" >&6; }
30482 # Is the header compilable?
30483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30485 cat >conftest.$ac_ext <<_ACEOF
30488 cat confdefs.h >>conftest.$ac_ext
30489 cat >>conftest.$ac_ext <<_ACEOF
30490 /* end confdefs.h. */
30491 $ac_includes_default
30492 #include <$ac_header>
30494 rm -f conftest.$ac_objext
30495 if { (ac_try="$ac_compile"
30496 case "(($ac_try" in
30497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30498 *) ac_try_echo
=$ac_try;;
30500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501 (eval "$ac_compile") 2>conftest.er1
30503 grep -v '^ *+' conftest.er1
>conftest.err
30505 cat conftest.err
>&5
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); } && {
30508 test -z "$ac_c_werror_flag" ||
30509 test ! -s conftest.err
30510 } && test -s conftest.
$ac_objext; then
30511 ac_header_compiler
=yes
30513 echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.
$ac_ext >&5
30516 ac_header_compiler
=no
30519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30521 echo "${ECHO_T}$ac_header_compiler" >&6; }
30523 # Is the header present?
30524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30526 cat >conftest.
$ac_ext <<_ACEOF
30529 cat confdefs.h
>>conftest.
$ac_ext
30530 cat >>conftest.
$ac_ext <<_ACEOF
30531 /* end confdefs.h. */
30532 #include <$ac_header>
30534 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30535 case "(($ac_try" in
30536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30537 *) ac_try_echo=$ac_try;;
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30542 grep -v '^ *+' conftest.er1 >conftest.err
30544 cat conftest.err >&5
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); } >/dev/null && {
30547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30548 test ! -s conftest.err
30550 ac_header_preproc=yes
30552 echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30555 ac_header_preproc=no
30558 rm -f conftest.err conftest.$ac_ext
30559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30560 echo "${ECHO_T}$ac_header_preproc" >&6; }
30562 # So? What about this header?
30563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30569 ac_header_preproc=yes
30572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30585 ## ------------------------------------------------------------------------ ##
30586 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
30587 ## ------------------------------------------------------------------------ ##
30589 ) | sed "s/^/$as_me: WARNING: /" >&2
30592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30595 echo $ECHO_N "(cached) $ECHO_C" >&6
30597 eval "$as_ac_Header=\$ac_header_preproc"
30599 ac_res=`eval echo '${'$as_ac_Header'}'`
30600 { echo "$as_me:$LINENO: result: $ac_res" >&5
30601 echo "${ECHO_T}$ac_res" >&6; }
30604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30605 cat >>confdefs.h <<_ACEOF
30606 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
30614 for ac_func in ENGINE_load_builtin_engines
30616 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
30617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30620 echo $ECHO_N "(cached) $ECHO_C" >&6
30622 cat >conftest.$ac_ext <<_ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h. */
30628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30630 #define $ac_func innocuous_$ac_func
30632 /* System header to define __stub macros and hopefully few prototypes,
30633 which can conflict with char $ac_func (); below.
30634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30635 <limits.h> exists even on freestanding compilers. */
30638 # include <limits.h>
30640 # include <assert.h>
30645 /* Override any GCC internal prototype to avoid an error.
30646 Use char because int might match the return type of a GCC
30647 builtin and then its argument prototype would still apply. */
30652 /* The GNU C library defines this for functions which it implements
30653 to always fail with ENOSYS. Some functions are actually named
30654 something starting with __ and the normal name is an alias. */
30655 #if defined __stub_$ac_func || defined __stub___$ac_func
30662 return $ac_func ();
30667 rm -f conftest.$ac_objext conftest$ac_exeext
30668 if { (ac_try="$ac_link"
30669 case "(($ac_try" in
30670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30671 *) ac_try_echo
=$ac_try;;
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674 (eval "$ac_link") 2>conftest.er1
30676 grep -v '^ *+' conftest.er1
>conftest.err
30678 cat conftest.err
>&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } && {
30681 test -z "$ac_c_werror_flag" ||
30682 test ! -s conftest.err
30683 } && test -s conftest
$ac_exeext &&
30684 $as_test_x conftest
$ac_exeext; then
30685 eval "$as_ac_var=yes"
30687 echo "$as_me: failed program was:" >&5
30688 sed 's/^/| /' conftest.
$ac_ext >&5
30690 eval "$as_ac_var=no"
30693 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30694 conftest
$ac_exeext conftest.
$ac_ext
30696 ac_res
=`eval echo '${'$as_ac_var'}'`
30697 { echo "$as_me:$LINENO: result: $ac_res" >&5
30698 echo "${ECHO_T}$ac_res" >&6; }
30699 if test `eval echo '${'$as_ac_var'}'` = yes; then
30700 cat >>confdefs.h
<<_ACEOF
30701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30717 for ac_func
in RAND_status \
30720 CRYPTO_cleanup_all_ex_data \
30723 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30726 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30727 echo $ECHO_N "(cached) $ECHO_C" >&6
30729 cat >conftest.
$ac_ext <<_ACEOF
30732 cat confdefs.h
>>conftest.
$ac_ext
30733 cat >>conftest.
$ac_ext <<_ACEOF
30734 /* end confdefs.h. */
30735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30737 #define $ac_func innocuous_$ac_func
30739 /* System header to define __stub macros and hopefully few prototypes,
30740 which can conflict with char $ac_func (); below.
30741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30742 <limits.h> exists even on freestanding compilers. */
30745 # include <limits.h>
30747 # include <assert.h>
30752 /* Override any GCC internal prototype to avoid an error.
30753 Use char because int might match the return type of a GCC
30754 builtin and then its argument prototype would still apply. */
30759 /* The GNU C library defines this for functions which it implements
30760 to always fail with ENOSYS. Some functions are actually named
30761 something starting with __ and the normal name is an alias. */
30762 #if defined __stub_$ac_func || defined __stub___$ac_func
30769 return $ac_func ();
30774 rm -f conftest.
$ac_objext conftest
$ac_exeext
30775 if { (ac_try
="$ac_link"
30776 case "(($ac_try" in
30777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30778 *) ac_try_echo=$ac_try;;
30780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781 (eval "$ac_link") 2>conftest.er1
30783 grep -v '^ *+' conftest.er1 >conftest.err
30785 cat conftest.err >&5
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); } && {
30788 test -z "$ac_c_werror_flag" ||
30789 test ! -s conftest.err
30790 } && test -s conftest$ac_exeext &&
30791 $as_test_x conftest$ac_exeext; then
30792 eval "$as_ac_var=yes"
30794 echo "$as_me: failed program was:" >&5
30795 sed 's/^/| /' conftest.$ac_ext >&5
30797 eval "$as_ac_var=no"
30800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30801 conftest$ac_exeext conftest.$ac_ext
30803 ac_res=`eval echo '${'$as_ac_var'}'`
30804 { echo "$as_me:$LINENO: result: $ac_res" >&5
30805 echo "${ECHO_T}$ac_res" >&6; }
30806 if test `eval echo '${'$as_ac_var'}'` = yes; then
30807 cat >>confdefs.h <<_ACEOF
30808 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
30816 { echo "$as_me:$LINENO: checking for yaSSL using OpenSSL compatibility mode" >&5
30817 echo $ECHO_N "checking for yaSSL using OpenSSL compatibility mode... $ECHO_C" >&6; }
30818 cat >conftest.$ac_ext <<_ACEOF
30822 cat confdefs.h >>conftest.$ac_ext
30823 cat >>conftest.$ac_ext <<_ACEOF
30824 /* end confdefs.h. */
30826 #include <openssl/ssl.h>
30832 #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
30833 int dummy = SSL_ERROR_NONE;
30835 Not the yaSSL OpenSSL compatibility header.
30843 rm -f conftest.$ac_objext
30844 if { (ac_try="$ac_compile"
30845 case "(($ac_try" in
30846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30847 *) ac_try_echo
=$ac_try;;
30849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850 (eval "$ac_compile") 2>conftest.er1
30852 grep -v '^ *+' conftest.er1
>conftest.err
30854 cat conftest.err
>&5
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); } && {
30857 test -z "$ac_c_werror_flag" ||
30858 test ! -s conftest.err
30859 } && test -s conftest.
$ac_objext; then
30861 { echo "$as_me:$LINENO: result: yes" >&5
30862 echo "${ECHO_T}yes" >&6; }
30864 cat >>confdefs.h
<<_ACEOF
30865 #define USE_YASSLEMUL 1
30868 curl_ssl_msg
="enabled (OpenSSL emulation by yaSSL)"
30871 echo "$as_me: failed program was:" >&5
30872 sed 's/^/| /' conftest.
$ac_ext >&5
30875 { echo "$as_me:$LINENO: result: no" >&5
30876 echo "${ECHO_T}no" >&6; }
30880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30883 if test "$OPENSSL_ENABLED" = "1"; then
30884 if test -n "$LIB_OPENSSL"; then
30886 LD_LIBRARY_PATH
="$LD_LIBRARY_PATH:$LIB_OPENSSL"
30887 export LD_LIBRARY_PATH
30888 { echo "$as_me:$LINENO: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
30889 echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
30897 _cppflags
=$CPPFLAGS
30900 # Check whether --with-zlib was given.
30901 if test "${with_zlib+set}" = set; then
30902 withval
=$with_zlib; OPT_ZLIB
="$withval"
30906 if test "$OPT_ZLIB" = "no" ; then
30907 { echo "$as_me:$LINENO: WARNING: zlib disabled" >&5
30908 echo "$as_me: WARNING: zlib disabled" >&2;}
30910 if test "$OPT_ZLIB" = "yes" ; then
30914 if test -z "$OPT_ZLIB" ; then
30916 { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
30917 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
30918 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
30919 echo $ECHO_N "(cached) $ECHO_C" >&6
30921 ac_check_lib_save_LIBS
=$LIBS
30923 cat >conftest.
$ac_ext <<_ACEOF
30926 cat confdefs.h
>>conftest.
$ac_ext
30927 cat >>conftest.
$ac_ext <<_ACEOF
30928 /* end confdefs.h. */
30930 /* Override any GCC internal prototype to avoid an error.
30931 Use char because int might match the return type of a GCC
30932 builtin and then its argument prototype would still apply. */
30936 char inflateEnd ();
30940 return inflateEnd ();
30945 rm -f conftest.
$ac_objext conftest
$ac_exeext
30946 if { (ac_try
="$ac_link"
30947 case "(($ac_try" in
30948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_link") 2>conftest.er1
30954 grep -v '^ *+' conftest.er1 >conftest.err
30956 cat conftest.err >&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } && {
30959 test -z "$ac_c_werror_flag" ||
30960 test ! -s conftest.err
30961 } && test -s conftest$ac_exeext &&
30962 $as_test_x conftest$ac_exeext; then
30963 ac_cv_lib_z_inflateEnd=yes
30965 echo "$as_me: failed program was:" >&5
30966 sed 's/^/| /' conftest.$ac_ext >&5
30968 ac_cv_lib_z_inflateEnd=no
30971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30972 conftest$ac_exeext conftest.$ac_ext
30973 LIBS=$ac_check_lib_save_LIBS
30975 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
30976 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
30977 if test $ac_cv_lib_z_inflateEnd = yes; then
30980 OPT_ZLIB="/usr/local"
30986 if test -n "$OPT_ZLIB"; then
30987 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
30988 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
30991 if test "${ac_cv_header_zlib_h+set}" = set; then
30992 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30993 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30994 if test "${ac_cv_header_zlib_h+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30997 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30998 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
31000 # Is the header compilable?
31001 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
31002 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
31003 cat >conftest.$ac_ext <<_ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h. */
31009 $ac_includes_default
31012 rm -f conftest.$ac_objext
31013 if { (ac_try="$ac_compile"
31014 case "(($ac_try" in
31015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31016 *) ac_try_echo
=$ac_try;;
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_compile") 2>conftest.er1
31021 grep -v '^ *+' conftest.er1
>conftest.err
31023 cat conftest.err
>&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); } && {
31026 test -z "$ac_c_werror_flag" ||
31027 test ! -s conftest.err
31028 } && test -s conftest.
$ac_objext; then
31029 ac_header_compiler
=yes
31031 echo "$as_me: failed program was:" >&5
31032 sed 's/^/| /' conftest.
$ac_ext >&5
31034 ac_header_compiler
=no
31037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31039 echo "${ECHO_T}$ac_header_compiler" >&6; }
31041 # Is the header present?
31042 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
31043 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
31044 cat >conftest.
$ac_ext <<_ACEOF
31047 cat confdefs.h
>>conftest.
$ac_ext
31048 cat >>conftest.
$ac_ext <<_ACEOF
31049 /* end confdefs.h. */
31052 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31053 case "(($ac_try" in
31054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31055 *) ac_try_echo=$ac_try;;
31057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31060 grep -v '^ *+' conftest.er1 >conftest.err
31062 cat conftest.err >&5
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } >/dev/null && {
31065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31066 test ! -s conftest.err
31068 ac_header_preproc=yes
31070 echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31073 ac_header_preproc=no
31076 rm -f conftest.err conftest.$ac_ext
31077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31078 echo "${ECHO_T}$ac_header_preproc" >&6; }
31080 # So? What about this header?
31081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31083 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31084 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31085 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
31086 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
31087 ac_header_preproc=yes
31090 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
31091 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
31092 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
31093 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
31094 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
31095 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
31096 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
31097 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31098 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
31099 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
31100 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
31101 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
31103 ## ------------------------------------------------------------------------ ##
31104 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
31105 ## ------------------------------------------------------------------------ ##
31107 ) | sed "s/^/$as_me: WARNING: /" >&2
31110 { echo "$as_me:$LINENO: checking for zlib.h" >&5
31111 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
31112 if test "${ac_cv_header_zlib_h+set}" = set; then
31113 echo $ECHO_N "(cached) $ECHO_C" >&6
31115 ac_cv_header_zlib_h=$ac_header_preproc
31117 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31118 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
31121 if test $ac_cv_header_zlib_h = yes; then
31124 if test "$HAVE_LIBZ" != "1"; then
31125 { echo "$as_me:$LINENO: checking for gzread in -lz" >&5
31126 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6; }
31127 if test "${ac_cv_lib_z_gzread+set}" = set; then
31128 echo $ECHO_N "(cached) $ECHO_C" >&6
31130 ac_check_lib_save_LIBS=$LIBS
31132 cat >conftest.$ac_ext <<_ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h. */
31139 /* Override any GCC internal prototype to avoid an error.
31140 Use char because int might match the return type of a GCC
31141 builtin and then its argument prototype would still apply. */
31154 rm -f conftest.$ac_objext conftest$ac_exeext
31155 if { (ac_try="$ac_link"
31156 case "(($ac_try" in
31157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31158 *) ac_try_echo
=$ac_try;;
31160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161 (eval "$ac_link") 2>conftest.er1
31163 grep -v '^ *+' conftest.er1
>conftest.err
31165 cat conftest.err
>&5
31166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167 (exit $ac_status); } && {
31168 test -z "$ac_c_werror_flag" ||
31169 test ! -s conftest.err
31170 } && test -s conftest
$ac_exeext &&
31171 $as_test_x conftest
$ac_exeext; then
31172 ac_cv_lib_z_gzread
=yes
31174 echo "$as_me: failed program was:" >&5
31175 sed 's/^/| /' conftest.
$ac_ext >&5
31177 ac_cv_lib_z_gzread
=no
31180 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31181 conftest
$ac_exeext conftest.
$ac_ext
31182 LIBS
=$ac_check_lib_save_LIBS
31184 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
31185 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6; }
31186 if test $ac_cv_lib_z_gzread = yes; then
31191 CPPFLAGS
=$_cppflags
31199 CPPFLAGS
=$_cppflags
31206 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
31208 { echo "$as_me:$LINENO: WARNING: configure found only the libz lib, not the header file!" >&5
31209 echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
31211 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
31213 { echo "$as_me:$LINENO: WARNING: configure found only the libz header file, not the lib!" >&5
31214 echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
31215 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
31219 cat >>confdefs.h
<<\_ACEOF
31220 #define HAVE_ZLIB_H 1
31224 cat >>confdefs.h
<<\_ACEOF
31225 #define HAVE_LIBZ 1
31229 CURL_LIBS
="$CURL_LIBS -lz"
31233 { echo "$as_me:$LINENO: found both libz and libz.h header" >&5
31234 echo "$as_me: found both libz and libz.h header" >&6;}
31235 curl_zlib_msg
="enabled"
31241 if test x
"$AMFIXLIB" = x1
; then
31243 HAVE_LIBZ_FALSE
='#'
31253 # Check whether --with-libssh2 was given.
31254 if test "${with_libssh2+set}" = set; then
31255 withval
=$with_libssh2; OPT_LIBSSH2
=$withval
31259 if test X
"$OPT_LIBSSH2" != Xno
; then
31260 CLEANLDFLAGS
="$LDFLAGS"
31261 CLEANCPPFLAGS
="$CPPFLAGS"
31264 case "$OPT_LIBSSH2" in
31266 PREFIX_LIBSSH2
=/usr
/local
/lib
31267 LIB_LIBSSH2
="$PREFIX_LIBSSH2$libsuff"
31273 PREFIX_LIBSSH2
=$OPT_LIBSSH2
31274 LIB_LIBSSH2
="$PREFIX_LIBSSH2/lib$libsuff"
31275 LDFLAGS
="$LDFLAGS -L$LIB_LIBSSH2"
31276 CPPFLAGS
="$CPPFLAGS -I$PREFIX_LIBSSH2/include"
31281 { echo "$as_me:$LINENO: checking for libssh2_channel_open_ex in -lssh2" >&5
31282 echo $ECHO_N "checking for libssh2_channel_open_ex in -lssh2... $ECHO_C" >&6; }
31283 if test "${ac_cv_lib_ssh2_libssh2_channel_open_ex+set}" = set; then
31284 echo $ECHO_N "(cached) $ECHO_C" >&6
31286 ac_check_lib_save_LIBS
=$LIBS
31287 LIBS
="-lssh2 $LIBS"
31288 cat >conftest.
$ac_ext <<_ACEOF
31291 cat confdefs.h
>>conftest.
$ac_ext
31292 cat >>conftest.
$ac_ext <<_ACEOF
31293 /* end confdefs.h. */
31295 /* Override any GCC internal prototype to avoid an error.
31296 Use char because int might match the return type of a GCC
31297 builtin and then its argument prototype would still apply. */
31301 char libssh2_channel_open_ex ();
31305 return libssh2_channel_open_ex ();
31310 rm -f conftest.
$ac_objext conftest
$ac_exeext
31311 if { (ac_try
="$ac_link"
31312 case "(($ac_try" in
31313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_link") 2>conftest.er1
31319 grep -v '^ *+' conftest.er1 >conftest.err
31321 cat conftest.err >&5
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); } && {
31324 test -z "$ac_c_werror_flag" ||
31325 test ! -s conftest.err
31326 } && test -s conftest$ac_exeext &&
31327 $as_test_x conftest$ac_exeext; then
31328 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
31330 echo "$as_me: failed program was:" >&5
31331 sed 's/^/| /' conftest.$ac_ext >&5
31333 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
31336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31337 conftest$ac_exeext conftest.$ac_ext
31338 LIBS=$ac_check_lib_save_LIBS
31340 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
31341 echo "${ECHO_T}$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
31342 if test $ac_cv_lib_ssh2_libssh2_channel_open_ex = yes; then
31343 cat >>confdefs.h <<_ACEOF
31344 #define HAVE_LIBSSH2 1
31347 LIBS="-lssh2 $LIBS"
31353 for ac_header in libssh2.h
31355 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
31356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31360 echo $ECHO_N "(cached) $ECHO_C" >&6
31362 ac_res=`eval echo '${'$as_ac_Header'}'`
31363 { echo "$as_me:$LINENO: result: $ac_res" >&5
31364 echo "${ECHO_T}$ac_res" >&6; }
31366 # Is the header compilable?
31367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31369 cat >conftest.$ac_ext <<_ACEOF
31372 cat confdefs.h >>conftest.$ac_ext
31373 cat >>conftest.$ac_ext <<_ACEOF
31374 /* end confdefs.h. */
31375 $ac_includes_default
31376 #include <$ac_header>
31378 rm -f conftest.$ac_objext
31379 if { (ac_try="$ac_compile"
31380 case "(($ac_try" in
31381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31382 *) ac_try_echo
=$ac_try;;
31384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31385 (eval "$ac_compile") 2>conftest.er1
31387 grep -v '^ *+' conftest.er1
>conftest.err
31389 cat conftest.err
>&5
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); } && {
31392 test -z "$ac_c_werror_flag" ||
31393 test ! -s conftest.err
31394 } && test -s conftest.
$ac_objext; then
31395 ac_header_compiler
=yes
31397 echo "$as_me: failed program was:" >&5
31398 sed 's/^/| /' conftest.
$ac_ext >&5
31400 ac_header_compiler
=no
31403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31405 echo "${ECHO_T}$ac_header_compiler" >&6; }
31407 # Is the header present?
31408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31410 cat >conftest.
$ac_ext <<_ACEOF
31413 cat confdefs.h
>>conftest.
$ac_ext
31414 cat >>conftest.
$ac_ext <<_ACEOF
31415 /* end confdefs.h. */
31416 #include <$ac_header>
31418 if { (ac_try
="$ac_cpp conftest.$ac_ext"
31419 case "(($ac_try" in
31420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31421 *) ac_try_echo=$ac_try;;
31423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31426 grep -v '^ *+' conftest.er1 >conftest.err
31428 cat conftest.err >&5
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); } >/dev/null && {
31431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31432 test ! -s conftest.err
31434 ac_header_preproc=yes
31436 echo "$as_me: failed program was:" >&5
31437 sed 's/^/| /' conftest.$ac_ext >&5
31439 ac_header_preproc=no
31442 rm -f conftest.err conftest.$ac_ext
31443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31444 echo "${ECHO_T}$ac_header_preproc" >&6; }
31446 # So? What about this header?
31447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31453 ac_header_preproc=yes
31456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31469 ## ------------------------------------------------------------------------ ##
31470 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
31471 ## ------------------------------------------------------------------------ ##
31473 ) | sed "s/^/$as_me: WARNING: /" >&2
31476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31479 echo $ECHO_N "(cached) $ECHO_C" >&6
31481 eval "$as_ac_Header=\$ac_header_preproc"
31483 ac_res=`eval echo '${'$as_ac_Header'}'`
31484 { echo "$as_me:$LINENO: result: $ac_res" >&5
31485 echo "${ECHO_T}$ac_res" >&6; }
31488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31489 cat >>confdefs.h <<_ACEOF
31490 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
31492 curl_ssh_msg="enabled (libSSH2)"
31495 cat >>confdefs.h <<\_ACEOF
31496 #define USE_LIBSSH2 1
31507 if test X"$OPT_LIBSSH2" != Xoff &&
31508 test "$LIBSSH2_ENABLED" != "1"; then
31509 { { echo "$as_me:$LINENO: error: libSSH2 libs and/or directories were not found where specified!" >&5
31510 echo "$as_me: error: libSSH2 libs and/or directories were not found where specified!" >&2;}
31511 { (exit 1); exit 1; }; }
31514 if test "$LIBSSH2_ENABLED" = "1"; then
31515 if test -n "$LIB_LIBSSH2"; then
31517 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_LIBSSH2"
31518 export LD_LIBRARY_PATH
31519 { echo "$as_me:$LINENO: Added $LIB_LIBSSH2 to LD_LIBRARY_PATH" >&5
31520 echo "$as_me: Added $LIB_LIBSSH2 to LD_LIBRARY_PATH" >&6;}
31526 if test X"$OPENSSL_ENABLED" = X"1"; then
31528 # Check whether --with-egd-socket was given.
31529 if test "${with_egd_socket+set}" = set; then
31530 withval=$with_egd_socket; EGD_SOCKET="$withval"
31534 if test -n "$EGD_SOCKET" ; then
31536 cat >>confdefs.h <<_ACEOF
31537 #define EGD_SOCKET "$EGD_SOCKET"
31543 # Check whether --with-random was given.
31544 if test "${with_random+set}" = set; then
31545 withval=$with_random; RANDOM_FILE="$withval"
31548 { echo "$as_me:$LINENO: checking for \"/dev/urandom\"" >&5
31549 echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6; }
31550 if test "${ac_cv_file___dev_urandom_+set}" = set; then
31551 echo $ECHO_N "(cached) $ECHO_C" >&6
31553 test "$cross_compiling" = yes &&
31554 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
31555 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
31556 { (exit 1); exit 1; }; }
31557 if test -r ""/dev/urandom""; then
31558 ac_cv_file___dev_urandom_=yes
31560 ac_cv_file___dev_urandom_=no
31563 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_urandom_" >&5
31564 echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6; }
31565 if test $ac_cv_file___dev_urandom_ = yes; then
31566 RANDOM_FILE="/dev/urandom"
31573 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
31576 cat >>confdefs.h <<_ACEOF
31577 #define RANDOM_FILE "$RANDOM_FILE"
31587 # Check whether --with-gnutls was given.
31588 if test "${with_gnutls+set}" = set; then
31589 withval=$with_gnutls; OPT_GNUTLS=$withval
31593 if test "$OPENSSL_ENABLED" != "1"; then
31595 if test X"$OPT_GNUTLS" != Xno; then
31596 if test "x$OPT_GNUTLS" = "xyes"; then
31597 check=`libgnutls-config
--version 2>/dev
/null
`
31598 if test -n "$check"; then
31599 addlib=`libgnutls-config
--libs`
31600 addcflags=`libgnutls-config
--cflags`
31601 version=`libgnutls-config
--version`
31602 gtlsprefix=`libgnutls-config
--prefix`
31605 addlib=`$OPT_GNUTLS/bin
/libgnutls-config
--libs`
31606 addcflags=`$OPT_GNUTLS/bin
/libgnutls-config
--cflags`
31607 version=`$OPT_GNUTLS/bin
/libgnutls-config
--version 2>/dev
/null
`
31608 gtlsprefix=$OPT_GNUTLS
31609 if test -z "$version"; then
31613 if test -n "$addlib"; then
31616 CLEANCPPFLAGS="$CPPFLAGS"
31618 LIBS="$LIBS $addlib"
31619 if test "$addcflags" != "-I/usr/include"; then
31620 CPPFLAGS="$CPPFLAGS $addcflags"
31623 { echo "$as_me:$LINENO: checking for gnutls_check_version in -lgnutls" >&5
31624 echo $ECHO_N "checking for gnutls_check_version in -lgnutls... $ECHO_C" >&6; }
31625 if test "${ac_cv_lib_gnutls_gnutls_check_version+set}" = set; then
31626 echo $ECHO_N "(cached) $ECHO_C" >&6
31628 ac_check_lib_save_LIBS=$LIBS
31629 LIBS="-lgnutls $LIBS"
31630 cat >conftest.$ac_ext <<_ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h. */
31637 /* Override any GCC internal prototype to avoid an error.
31638 Use char because int might match the return type of a GCC
31639 builtin and then its argument prototype would still apply. */
31643 char gnutls_check_version ();
31647 return gnutls_check_version ();
31652 rm -f conftest.$ac_objext conftest$ac_exeext
31653 if { (ac_try="$ac_link"
31654 case "(($ac_try" in
31655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31656 *) ac_try_echo
=$ac_try;;
31658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31659 (eval "$ac_link") 2>conftest.er1
31661 grep -v '^ *+' conftest.er1
>conftest.err
31663 cat conftest.err
>&5
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } && {
31666 test -z "$ac_c_werror_flag" ||
31667 test ! -s conftest.err
31668 } && test -s conftest
$ac_exeext &&
31669 $as_test_x conftest
$ac_exeext; then
31670 ac_cv_lib_gnutls_gnutls_check_version
=yes
31672 echo "$as_me: failed program was:" >&5
31673 sed 's/^/| /' conftest.
$ac_ext >&5
31675 ac_cv_lib_gnutls_gnutls_check_version
=no
31678 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31679 conftest
$ac_exeext conftest.
$ac_ext
31680 LIBS
=$ac_check_lib_save_LIBS
31682 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
31683 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
31684 if test $ac_cv_lib_gnutls_gnutls_check_version = yes; then
31687 cat >>confdefs.h
<<\_ACEOF
31688 #define USE_GNUTLS 1
31695 curl_ssl_msg
="enabled (GnuTLS)"
31700 CPPFLAGS
="$CLEANCPPFLAGS"
31705 if test "x$USE_GNUTLS" = "xyes"; then
31706 { echo "$as_me:$LINENO: detected GnuTLS version $version" >&5
31707 echo "$as_me: detected GnuTLS version $version" >&6;}
31710 LD_LIBRARY_PATH
="$LD_LIBRARY_PATH:$gtlsprefix/lib$libsuff"
31711 export LD_LIBRARY_PATH
31712 { echo "$as_me:$LINENO: Added $gtlsprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
31713 echo "$as_me: Added $gtlsprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
31724 # Check whether --with-nss was given.
31725 if test "${with_nss+set}" = set; then
31726 withval
=$with_nss; OPT_NSS
=$withval
31730 if test "$OPENSSL_ENABLED" != "1" -a "$GNUTLS_ENABLED" != "1"; then
31732 if test X
"$OPT_NSS" != Xno
; then
31733 if test "x$OPT_NSS" = "xyes"; then
31734 check
=`pkg-config --version 2>/dev/null`
31735 if test -n "$check"; then
31736 addlib
=`pkg-config --libs nss`
31737 addcflags
=`pkg-config --cflags nss`
31738 version
=`pkg-config --modversion nss`
31739 nssprefix
=`pkg-config --variable=prefix nss`
31742 # Without pkg-config, we'll kludge in some defaults
31743 addlib
="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
31744 addcflags
="-I$OPT_NSS/include"
31746 gtlsprefix
=$OPT_GNUTLS
31749 { echo "$as_me:$LINENO: checking for PK11_CreateGenericObject in -lnss3" >&5
31750 echo $ECHO_N "checking for PK11_CreateGenericObject in -lnss3... $ECHO_C" >&6; }
31751 if test "${ac_cv_lib_nss3_PK11_CreateGenericObject+set}" = set; then
31752 echo $ECHO_N "(cached) $ECHO_C" >&6
31754 ac_check_lib_save_LIBS
=$LIBS
31755 LIBS
="-lnss3 $LIBS"
31756 cat >conftest.
$ac_ext <<_ACEOF
31759 cat confdefs.h
>>conftest.
$ac_ext
31760 cat >>conftest.
$ac_ext <<_ACEOF
31761 /* end confdefs.h. */
31763 /* Override any GCC internal prototype to avoid an error.
31764 Use char because int might match the return type of a GCC
31765 builtin and then its argument prototype would still apply. */
31769 char PK11_CreateGenericObject ();
31773 return PK11_CreateGenericObject ();
31778 rm -f conftest.
$ac_objext conftest
$ac_exeext
31779 if { (ac_try
="$ac_link"
31780 case "(($ac_try" in
31781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
31782 *) ac_try_echo=$ac_try;;
31784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785 (eval "$ac_link") 2>conftest.er1
31787 grep -v '^ *+' conftest.er1 >conftest.err
31789 cat conftest.err >&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); } && {
31792 test -z "$ac_c_werror_flag" ||
31793 test ! -s conftest.err
31794 } && test -s conftest$ac_exeext &&
31795 $as_test_x conftest$ac_exeext; then
31796 ac_cv_lib_nss3_PK11_CreateGenericObject=yes
31798 echo "$as_me: failed program was:" >&5
31799 sed 's/^/| /' conftest.$ac_ext >&5
31801 ac_cv_lib_nss3_PK11_CreateGenericObject=no
31804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31805 conftest$ac_exeext conftest.$ac_ext
31806 LIBS=$ac_check_lib_save_LIBS
31808 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_PK11_CreateGenericObject" >&5
31809 echo "${ECHO_T}$ac_cv_lib_nss3_PK11_CreateGenericObject" >&6; }
31810 if test $ac_cv_lib_nss3_PK11_CreateGenericObject = yes; then
31813 cat >>confdefs.h <<\_ACEOF
31814 #define HAVE_PK11_CREATEGENERICOBJECT 1
31817 HAVE_PK11_CREATEGENERICOBJECT=1
31822 if test -n "$addlib"; then
31825 CLEANCPPFLAGS="$CPPFLAGS"
31827 LIBS="$LIBS $addlib"
31828 if test "$addcflags" != "-I/usr/include"; then
31829 CPPFLAGS="$CPPFLAGS $addcflags"
31832 { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
31833 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
31834 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
31835 echo $ECHO_N "(cached) $ECHO_C" >&6
31837 ac_check_lib_save_LIBS=$LIBS
31838 LIBS="-lnss3 $LIBS"
31839 cat >conftest.$ac_ext <<_ACEOF
31842 cat confdefs.h >>conftest.$ac_ext
31843 cat >>conftest.$ac_ext <<_ACEOF
31844 /* end confdefs.h. */
31846 /* Override any GCC internal prototype to avoid an error.
31847 Use char because int might match the return type of a GCC
31848 builtin and then its argument prototype would still apply. */
31852 char NSS_Initialize ();
31856 return NSS_Initialize ();
31861 rm -f conftest.$ac_objext conftest$ac_exeext
31862 if { (ac_try="$ac_link"
31863 case "(($ac_try" in
31864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
31865 *) ac_try_echo
=$ac_try;;
31867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31868 (eval "$ac_link") 2>conftest.er1
31870 grep -v '^ *+' conftest.er1
>conftest.err
31872 cat conftest.err
>&5
31873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874 (exit $ac_status); } && {
31875 test -z "$ac_c_werror_flag" ||
31876 test ! -s conftest.err
31877 } && test -s conftest
$ac_exeext &&
31878 $as_test_x conftest
$ac_exeext; then
31879 ac_cv_lib_nss3_NSS_Initialize
=yes
31881 echo "$as_me: failed program was:" >&5
31882 sed 's/^/| /' conftest.
$ac_ext >&5
31884 ac_cv_lib_nss3_NSS_Initialize
=no
31887 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
31888 conftest
$ac_exeext conftest.
$ac_ext
31889 LIBS
=$ac_check_lib_save_LIBS
31891 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
31892 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
31893 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
31896 cat >>confdefs.h
<<\_ACEOF
31904 curl_ssl_msg
="enabled (NSS)"
31909 CPPFLAGS
="$CLEANCPPFLAGS"
31914 if test "x$USE_NSS" = "xyes"; then
31915 { echo "$as_me:$LINENO: detected NSS version $version" >&5
31916 echo "$as_me: detected NSS version $version" >&6;}
31919 LD_LIBRARY_PATH
="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
31920 export LD_LIBRARY_PATH
31921 { echo "$as_me:$LINENO: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
31922 echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
31929 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED" = "x"; then
31930 { echo "$as_me:$LINENO: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
31931 echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
31932 { echo "$as_me:$LINENO: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this." >&5
31933 echo "$as_me: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this." >&2;}
31935 # SSL is enabled, genericly
31943 { echo "$as_me:$LINENO: checking default CA cert bundle/path" >&5
31944 echo $ECHO_N "checking default CA cert bundle/path... $ECHO_C" >&6; }
31947 # Check whether --with-ca-bundle was given.
31948 if test "${with_ca_bundle+set}" = set; then
31949 withval
=$with_ca_bundle;
31951 if test "x$want_ca" = "xyes"; then
31952 { { echo "$as_me:$LINENO: error: --with-ca-bundle=FILE requires a path to the CA bundle" >&5
31953 echo "$as_me: error: --with-ca-bundle=FILE requires a path to the CA bundle" >&2;}
31954 { (exit 1); exit 1; }; }
31962 # Check whether --with-ca-path was given.
31963 if test "${with_ca_path+set}" = set; then
31964 withval
=$with_ca_path;
31965 want_capath
="$withval"
31966 if test "x$want_capath" = "xyes"; then
31967 { { echo "$as_me:$LINENO: error: --with-ca-path=DIRECTORY requires a path to the CA path directory" >&5
31968 echo "$as_me: error: --with-ca-path=DIRECTORY requires a path to the CA path directory" >&2;}
31969 { (exit 1); exit 1; }; }
31973 want_capath
="unset"
31977 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
31978 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
31979 { { echo "$as_me:$LINENO: error: Can't specify both --with-ca-bundle and --with-ca-path." >&5
31980 echo "$as_me: error: Can't specify both --with-ca-bundle and --with-ca-path." >&2;}
31981 { (exit 1); exit 1; }; }
31982 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
31985 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
31986 if test "x$OPENSSL_ENABLED" != "x1"; then
31987 { { echo "$as_me:$LINENO: error: --with-ca-path only works with openSSL" >&5
31988 echo "$as_me: error: --with-ca-path only works with openSSL" >&2;}
31989 { (exit 1); exit 1; }; }
31991 capath
="$want_capath"
31996 if test "x$want_ca" = "xunset"; then
31997 if test "x$prefix" != xNONE
; then
31998 cac
="${prefix}/share/curl/curl-ca-bundle.crt"
32000 cac
="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
32003 for a
in /etc
/ssl
/certs
/ca-certificates.crt \
32004 /etc
/pki
/tls
/certs
/ca-bundle.crt \
32005 /usr
/share
/ssl
/certs
/ca-bundle.crt \
32007 if test -f "$a"; then
32013 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
32014 "x$OPENSSL_ENABLED" = "x1"; then
32015 for a
in /etc
/ssl
/certs
/; do
32016 if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev
/null
2>/dev
/null
; then
32026 if test "x$ca" != "xno"; then
32027 CURL_CA_BUNDLE
='"'$ca'"'
32029 cat >>confdefs.h
<<_ACEOF
32030 #define CURL_CA_BUNDLE "$ca"
32034 { echo "$as_me:$LINENO: result: $ca" >&5
32035 echo "${ECHO_T}$ca" >&6; }
32036 elif test "x$capath" != "xno"; then
32037 CURL_CA_PATH
="\"$capath\""
32039 cat >>confdefs.h
<<_ACEOF
32040 #define CURL_CA_PATH "$capath"
32043 { echo "$as_me:$LINENO: result: $capath (capath)" >&5
32044 echo "${ECHO_T}$capath (capath)" >&6; }
32046 { echo "$as_me:$LINENO: result: no" >&5
32047 echo "${ECHO_T}no" >&6; }
32052 { echo "$as_me:$LINENO: checking whether to build with libidn" >&5
32053 echo $ECHO_N "checking whether to build with libidn... $ECHO_C" >&6; }
32055 # Check whether --with-libidn was given.
32056 if test "${with_libidn+set}" = set; then
32057 withval
=$with_libidn; LIBIDN
="$withval"
32063 { echo "$as_me:$LINENO: result: no" >&5
32064 echo "${ECHO_T}no" >&6; }
32066 *) { echo "$as_me:$LINENO: result: yes" >&5
32067 echo "${ECHO_T}yes" >&6; }
32070 if test -n "$LIBIDN"; then
32071 if test "x$LIBIDN" != "xyes"; then
32072 oldLDFLAGS
=$LDFLAGS
32073 oldCPPFLAGS
=$CPPFLAGS
32074 LDFLAGS
="$LDFLAGS -L$LIBIDN/lib"
32075 CPPFLAGS
="$CPPFLAGS -I$LIBIDN/include"
32078 { echo "$as_me:$LINENO: checking for idna_to_ascii_4i in -lidn" >&5
32079 echo $ECHO_N "checking for idna_to_ascii_4i in -lidn... $ECHO_C" >&6; }
32080 if test "${ac_cv_lib_idn_idna_to_ascii_4i+set}" = set; then
32081 echo $ECHO_N "(cached) $ECHO_C" >&6
32083 ac_check_lib_save_LIBS
=$LIBS
32085 cat >conftest.
$ac_ext <<_ACEOF
32088 cat confdefs.h
>>conftest.
$ac_ext
32089 cat >>conftest.
$ac_ext <<_ACEOF
32090 /* end confdefs.h. */
32092 /* Override any GCC internal prototype to avoid an error.
32093 Use char because int might match the return type of a GCC
32094 builtin and then its argument prototype would still apply. */
32098 char idna_to_ascii_4i ();
32102 return idna_to_ascii_4i ();
32107 rm -f conftest.
$ac_objext conftest
$ac_exeext
32108 if { (ac_try
="$ac_link"
32109 case "(($ac_try" in
32110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32111 *) ac_try_echo=$ac_try;;
32113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32114 (eval "$ac_link") 2>conftest.er1
32116 grep -v '^ *+' conftest.er1 >conftest.err
32118 cat conftest.err >&5
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); } && {
32121 test -z "$ac_c_werror_flag" ||
32122 test ! -s conftest.err
32123 } && test -s conftest$ac_exeext &&
32124 $as_test_x conftest$ac_exeext; then
32125 ac_cv_lib_idn_idna_to_ascii_4i=yes
32127 echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32130 ac_cv_lib_idn_idna_to_ascii_4i=no
32133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32134 conftest$ac_exeext conftest.$ac_ext
32135 LIBS=$ac_check_lib_save_LIBS
32137 { echo "$as_me:$LINENO: result: $ac_cv_lib_idn_idna_to_ascii_4i" >&5
32138 echo "${ECHO_T}$ac_cv_lib_idn_idna_to_ascii_4i" >&6; }
32139 if test $ac_cv_lib_idn_idna_to_ascii_4i = yes; then
32140 cat >>confdefs.h <<_ACEOF
32141 #define HAVE_LIBIDN 1
32148 LDFLAGS=$oldLDFLAGS
32149 CPPFLAGS=$oldCPPFLAGS
32155 if test "x$idn" != "xyes"; then
32158 { echo "$as_me:$LINENO: checking for idna_to_ascii_lz in -lidn" >&5
32159 echo $ECHO_N "checking for idna_to_ascii_lz in -lidn... $ECHO_C" >&6; }
32160 if test "${ac_cv_lib_idn_idna_to_ascii_lz+set}" = set; then
32161 echo $ECHO_N "(cached) $ECHO_C" >&6
32163 ac_check_lib_save_LIBS=$LIBS
32165 cat >conftest.$ac_ext <<_ACEOF
32168 cat confdefs.h >>conftest.$ac_ext
32169 cat >>conftest.$ac_ext <<_ACEOF
32170 /* end confdefs.h. */
32172 /* Override any GCC internal prototype to avoid an error.
32173 Use char because int might match the return type of a GCC
32174 builtin and then its argument prototype would still apply. */
32178 char idna_to_ascii_lz ();
32182 return idna_to_ascii_lz ();
32187 rm -f conftest.$ac_objext conftest$ac_exeext
32188 if { (ac_try="$ac_link"
32189 case "(($ac_try" in
32190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32191 *) ac_try_echo
=$ac_try;;
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194 (eval "$ac_link") 2>conftest.er1
32196 grep -v '^ *+' conftest.er1
>conftest.err
32198 cat conftest.err
>&5
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); } && {
32201 test -z "$ac_c_werror_flag" ||
32202 test ! -s conftest.err
32203 } && test -s conftest
$ac_exeext &&
32204 $as_test_x conftest
$ac_exeext; then
32205 ac_cv_lib_idn_idna_to_ascii_lz
=yes
32207 echo "$as_me: failed program was:" >&5
32208 sed 's/^/| /' conftest.
$ac_ext >&5
32210 ac_cv_lib_idn_idna_to_ascii_lz
=no
32213 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32214 conftest
$ac_exeext conftest.
$ac_ext
32215 LIBS
=$ac_check_lib_save_LIBS
32217 { echo "$as_me:$LINENO: result: $ac_cv_lib_idn_idna_to_ascii_lz" >&5
32218 echo "${ECHO_T}$ac_cv_lib_idn_idna_to_ascii_lz" >&6; }
32219 if test $ac_cv_lib_idn_idna_to_ascii_lz = yes; then
32220 cat >>confdefs.h
<<_ACEOF
32221 #define HAVE_LIBIDN 1
32232 if test "x$idn" = "xyes"; then
32233 curl_idn_msg
="enabled"
32239 for ac_func
in idn_free idna_strerror tld_strerror
32241 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32244 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32245 echo $ECHO_N "(cached) $ECHO_C" >&6
32247 cat >conftest.
$ac_ext <<_ACEOF
32250 cat confdefs.h
>>conftest.
$ac_ext
32251 cat >>conftest.
$ac_ext <<_ACEOF
32252 /* end confdefs.h. */
32253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32255 #define $ac_func innocuous_$ac_func
32257 /* System header to define __stub macros and hopefully few prototypes,
32258 which can conflict with char $ac_func (); below.
32259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32260 <limits.h> exists even on freestanding compilers. */
32263 # include <limits.h>
32265 # include <assert.h>
32270 /* Override any GCC internal prototype to avoid an error.
32271 Use char because int might match the return type of a GCC
32272 builtin and then its argument prototype would still apply. */
32277 /* The GNU C library defines this for functions which it implements
32278 to always fail with ENOSYS. Some functions are actually named
32279 something starting with __ and the normal name is an alias. */
32280 #if defined __stub_$ac_func || defined __stub___$ac_func
32287 return $ac_func ();
32292 rm -f conftest.
$ac_objext conftest
$ac_exeext
32293 if { (ac_try
="$ac_link"
32294 case "(($ac_try" in
32295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_link") 2>conftest.er1
32301 grep -v '^ *+' conftest.er1 >conftest.err
32303 cat conftest.err >&5
32304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305 (exit $ac_status); } && {
32306 test -z "$ac_c_werror_flag" ||
32307 test ! -s conftest.err
32308 } && test -s conftest$ac_exeext &&
32309 $as_test_x conftest$ac_exeext; then
32310 eval "$as_ac_var=yes"
32312 echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32315 eval "$as_ac_var=no"
32318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32319 conftest$ac_exeext conftest.$ac_ext
32321 ac_res=`eval echo '${'$as_ac_var'}'`
32322 { echo "$as_me:$LINENO: result: $ac_res" >&5
32323 echo "${ECHO_T}$ac_res" >&6; }
32324 if test `eval echo '${'$as_ac_var'}'` = yes; then
32325 cat >>confdefs.h <<_ACEOF
32326 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
32334 for ac_header in idn-free.h tld.h
32336 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
32337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32341 echo $ECHO_N "(cached) $ECHO_C" >&6
32343 ac_res=`eval echo '${'$as_ac_Header'}'`
32344 { echo "$as_me:$LINENO: result: $ac_res" >&5
32345 echo "${ECHO_T}$ac_res" >&6; }
32347 # Is the header compilable?
32348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32350 cat >conftest.$ac_ext <<_ACEOF
32353 cat confdefs.h >>conftest.$ac_ext
32354 cat >>conftest.$ac_ext <<_ACEOF
32355 /* end confdefs.h. */
32356 $ac_includes_default
32357 #include <$ac_header>
32359 rm -f conftest.$ac_objext
32360 if { (ac_try="$ac_compile"
32361 case "(($ac_try" in
32362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32363 *) ac_try_echo
=$ac_try;;
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_compile") 2>conftest.er1
32368 grep -v '^ *+' conftest.er1
>conftest.err
32370 cat conftest.err
>&5
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); } && {
32373 test -z "$ac_c_werror_flag" ||
32374 test ! -s conftest.err
32375 } && test -s conftest.
$ac_objext; then
32376 ac_header_compiler
=yes
32378 echo "$as_me: failed program was:" >&5
32379 sed 's/^/| /' conftest.
$ac_ext >&5
32381 ac_header_compiler
=no
32384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32386 echo "${ECHO_T}$ac_header_compiler" >&6; }
32388 # Is the header present?
32389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32391 cat >conftest.
$ac_ext <<_ACEOF
32394 cat confdefs.h
>>conftest.
$ac_ext
32395 cat >>conftest.
$ac_ext <<_ACEOF
32396 /* end confdefs.h. */
32397 #include <$ac_header>
32399 if { (ac_try
="$ac_cpp conftest.$ac_ext"
32400 case "(($ac_try" in
32401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32402 *) ac_try_echo=$ac_try;;
32404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32407 grep -v '^ *+' conftest.er1 >conftest.err
32409 cat conftest.err >&5
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); } >/dev/null && {
32412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32413 test ! -s conftest.err
32415 ac_header_preproc=yes
32417 echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32420 ac_header_preproc=no
32423 rm -f conftest.err conftest.$ac_ext
32424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32425 echo "${ECHO_T}$ac_header_preproc" >&6; }
32427 # So? What about this header?
32428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32434 ac_header_preproc=yes
32437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32450 ## ------------------------------------------------------------------------ ##
32451 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
32452 ## ------------------------------------------------------------------------ ##
32454 ) | sed "s/^/$as_me: WARNING: /" >&2
32457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32462 eval "$as_ac_Header=\$ac_header_preproc"
32464 ac_res=`eval echo '${'$as_ac_Header'}'`
32465 { echo "$as_me:$LINENO: result: $ac_res" >&5
32466 echo "${ECHO_T}$ac_res" >&6; }
32469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32470 cat >>confdefs.h <<_ACEOF
32471 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
32485 { echo "$as_me:$LINENO: checking AIX 4.3 or later" >&5
32486 echo $ECHO_N "checking AIX 4.3 or later... $ECHO_C" >&6; }
32487 cat >conftest.$ac_ext <<_ACEOF
32489 #if defined(_AIX) && defined(_AIX43)
32490 printf("just fine");
32492 #error "this is not AIX 4.3 or later"
32496 if { (ac_try="$ac_cpp conftest.$ac_ext"
32497 case "(($ac_try" in
32498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32499 *) ac_try_echo
=$ac_try;;
32501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32504 grep -v '^ *+' conftest.er1
>conftest.err
32506 cat conftest.err
>&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); } >/dev
/null
&& {
32509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32510 test ! -s conftest.err
32512 { echo "$as_me:$LINENO: result: yes" >&5
32513 echo "${ECHO_T}yes" >&6; }
32517 echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.
$ac_ext >&5
32520 { echo "$as_me:$LINENO: result: no" >&5
32521 echo "${ECHO_T}no" >&6; }
32525 rm -f conftest.err conftest.
$ac_ext
32527 # Check whether --enable-thread was given.
32528 if test "${enable_thread+set}" = set; then
32529 enableval
=$enable_thread; case "$enableval" in
32532 { echo "$as_me:$LINENO: WARNING: libcurl will not get built using thread-safe functions" >&5
32533 echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
32543 if test X
"$OPT_THREAD" = Xoff
32546 cat >>confdefs.h
<<\_ACEOF
32547 #define DISABLED_THREADSAFE 1
32551 if test "$ipv6" != "yes"; then
32554 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
32555 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
32556 cat >conftest.
$ac_ext <<_ACEOF
32560 cat confdefs.h
>>conftest.
$ac_ext
32561 cat >>conftest.
$ac_ext <<_ACEOF
32562 /* end confdefs.h. */
32563 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
32564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32565 #define gethostbyname_r innocuous_gethostbyname_r
32567 /* System header to define __stub macros and hopefully few prototypes,
32568 which can conflict with char gethostbyname_r (); below.
32569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32570 <limits.h> exists even on freestanding compilers. */
32573 # include <limits.h>
32575 # include <assert.h>
32578 #undef gethostbyname_r
32580 /* Override any GCC internal prototype to avoid an error.
32581 Use char because int might match the return type of a GCC
32582 builtin and then its argument prototype would still apply. */
32586 char gethostbyname_r ();
32587 /* The GNU C library defines this for functions which it implements
32588 to always fail with ENOSYS. Some functions are actually named
32589 something starting with __ and the normal name is an alias. */
32590 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32597 return gethostbyname_r ();
32603 rm -f conftest.
$ac_objext conftest
$ac_exeext
32604 if { (ac_try
="$ac_link"
32605 case "(($ac_try" in
32606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_link") 2>conftest.er1
32612 grep -v '^ *+' conftest.er1 >conftest.err
32614 cat conftest.err >&5
32615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616 (exit $ac_status); } && {
32617 test -z "$ac_c_werror_flag" ||
32618 test ! -s conftest.err
32619 } && test -s conftest$ac_exeext &&
32620 $as_test_x conftest$ac_exeext; then
32622 { echo "$as_me:$LINENO: result: yes" >&5
32623 echo "${ECHO_T}yes" >&6; }
32624 tmp_cv_gethostbyname_r="yes"
32627 echo "$as_me: failed program was:" >&5
32628 sed 's/^/| /' conftest.$ac_ext >&5
32631 { echo "$as_me:$LINENO: result: no" >&5
32632 echo "${ECHO_T}no" >&6; }
32633 tmp_cv_gethostbyname_r="no"
32637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32638 conftest$ac_exeext conftest.$ac_ext
32640 if test "$tmp_cv_gethostbyname_r" != "yes"; then
32641 { echo "$as_me:$LINENO: checking deeper for gethostbyname_r" >&5
32642 echo $ECHO_N "checking deeper for gethostbyname_r... $ECHO_C" >&6; }
32643 cat >conftest.$ac_ext <<_ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h. */
32663 rm -f conftest.$ac_objext conftest$ac_exeext
32664 if { (ac_try="$ac_link"
32665 case "(($ac_try" in
32666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32667 *) ac_try_echo
=$ac_try;;
32669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32670 (eval "$ac_link") 2>conftest.er1
32672 grep -v '^ *+' conftest.er1
>conftest.err
32674 cat conftest.err
>&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); } && {
32677 test -z "$ac_c_werror_flag" ||
32678 test ! -s conftest.err
32679 } && test -s conftest
$ac_exeext &&
32680 $as_test_x conftest
$ac_exeext; then
32682 { echo "$as_me:$LINENO: result: yes" >&5
32683 echo "${ECHO_T}yes" >&6; }
32684 tmp_cv_gethostbyname_r
="yes"
32687 echo "$as_me: failed program was:" >&5
32688 sed 's/^/| /' conftest.
$ac_ext >&5
32691 { echo "$as_me:$LINENO: result: but still no" >&5
32692 echo "${ECHO_T}but still no" >&6; }
32693 tmp_cv_gethostbyname_r
="no"
32697 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
32698 conftest
$ac_exeext conftest.
$ac_ext
32701 if test "$tmp_cv_gethostbyname_r" = "yes"; then
32703 ac_cv_gethostbyname_r_args
="unknown"
32705 { echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 arguments" >&5
32706 echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6; }
32707 cat >conftest.
$ac_ext <<_ACEOF
32711 cat confdefs.h
>>conftest.
$ac_ext
32712 cat >>conftest.
$ac_ext <<_ACEOF
32713 /* end confdefs.h. */
32716 #include <string.h>
32717 #include <sys/types.h>
32720 #define NULL (void *)0
32722 gethostbyname_r(const char *, struct hostent *,
32723 struct hostent_data *);
32729 struct hostent_data data;
32730 gethostbyname_r(NULL, NULL, NULL);
32737 rm -f conftest.
$ac_objext
32738 if { (ac_try
="$ac_compile"
32739 case "(($ac_try" in
32740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32741 *) ac_try_echo=$ac_try;;
32743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32744 (eval "$ac_compile") 2>conftest.er1
32746 grep -v '^ *+' conftest.er1 >conftest.err
32748 cat conftest.err >&5
32749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750 (exit $ac_status); } && {
32751 test -z "$ac_c_werror_flag" ||
32752 test ! -s conftest.err
32753 } && test -s conftest.$ac_objext; then
32755 { echo "$as_me:$LINENO: result: yes" >&5
32756 echo "${ECHO_T}yes" >&6; }
32758 cat >>confdefs.h <<\_ACEOF
32759 #define HAVE_GETHOSTBYNAME_R_3 1
32762 ac_cv_gethostbyname_r_args="3"
32765 echo "$as_me: failed program was:" >&5
32766 sed 's/^/| /' conftest.$ac_ext >&5
32769 { echo "$as_me:$LINENO: result: no" >&5
32770 echo "${ECHO_T}no" >&6; }
32774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32776 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
32777 { echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
32778 echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6; }
32779 cat >conftest.$ac_ext <<_ACEOF
32783 cat confdefs.h >>conftest.$ac_ext
32784 cat >>conftest.$ac_ext <<_ACEOF
32785 /* end confdefs.h. */
32789 #include <string.h>
32790 #include <sys/types.h>
32793 #define NULL (void *)0
32795 gethostbyname_r(const char *, struct hostent *,
32796 struct hostent_data *);
32802 struct hostent_data data;
32803 gethostbyname_r(NULL, NULL, NULL);
32810 rm -f conftest.$ac_objext
32811 if { (ac_try="$ac_compile"
32812 case "(($ac_try" in
32813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32814 *) ac_try_echo
=$ac_try;;
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_compile") 2>conftest.er1
32819 grep -v '^ *+' conftest.er1
>conftest.err
32821 cat conftest.err
>&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } && {
32824 test -z "$ac_c_werror_flag" ||
32825 test ! -s conftest.err
32826 } && test -s conftest.
$ac_objext; then
32828 { echo "$as_me:$LINENO: result: yes" >&5
32829 echo "${ECHO_T}yes" >&6; }
32831 cat >>confdefs.h
<<\_ACEOF
32832 #define HAVE_GETHOSTBYNAME_R_3 1
32835 ac_cv_gethostbyname_r_args
="3"
32838 echo "$as_me: failed program was:" >&5
32839 sed 's/^/| /' conftest.
$ac_ext >&5
32842 { echo "$as_me:$LINENO: result: no" >&5
32843 echo "${ECHO_T}no" >&6; }
32847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32850 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
32851 { echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 arguments" >&5
32852 echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6; }
32853 cat >conftest.
$ac_ext <<_ACEOF
32857 cat confdefs.h
>>conftest.
$ac_ext
32858 cat >>conftest.
$ac_ext <<_ACEOF
32859 /* end confdefs.h. */
32862 #include <sys/types.h>
32865 #define NULL (void *)0
32867 gethostbyname_r(const char *, struct hostent *,
32868 char *, int, int *);
32874 gethostbyname_r(NULL, NULL, NULL, 0, NULL);
32881 rm -f conftest.
$ac_objext
32882 if { (ac_try
="$ac_compile"
32883 case "(($ac_try" in
32884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_compile") 2>conftest.er1
32890 grep -v '^ *+' conftest.er1 >conftest.err
32892 cat conftest.err >&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); } && {
32895 test -z "$ac_c_werror_flag" ||
32896 test ! -s conftest.err
32897 } && test -s conftest.$ac_objext; then
32899 { echo "$as_me:$LINENO: result: yes" >&5
32900 echo "${ECHO_T}yes" >&6; }
32902 cat >>confdefs.h <<\_ACEOF
32903 #define HAVE_GETHOSTBYNAME_R_5 1
32906 ac_cv_gethostbyname_r_args="5"
32909 echo "$as_me: failed program was:" >&5
32910 sed 's/^/| /' conftest.$ac_ext >&5
32913 { echo "$as_me:$LINENO: result: no" >&5
32914 echo "${ECHO_T}no" >&6; }
32918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32921 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
32922 { echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 5 arguments" >&5
32923 echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 5 arguments... $ECHO_C" >&6; }
32924 cat >conftest.$ac_ext <<_ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h. */
32934 #include <sys/types.h>
32937 #define NULL (void *)0
32939 gethostbyname_r(const char *, struct hostent *,
32940 char *, int, int *);
32946 gethostbyname_r(NULL, NULL, NULL, 0, NULL);
32953 rm -f conftest.$ac_objext
32954 if { (ac_try="$ac_compile"
32955 case "(($ac_try" in
32956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
32957 *) ac_try_echo
=$ac_try;;
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960 (eval "$ac_compile") 2>conftest.er1
32962 grep -v '^ *+' conftest.er1
>conftest.err
32964 cat conftest.err
>&5
32965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); } && {
32967 test -z "$ac_c_werror_flag" ||
32968 test ! -s conftest.err
32969 } && test -s conftest.
$ac_objext; then
32971 { echo "$as_me:$LINENO: result: yes" >&5
32972 echo "${ECHO_T}yes" >&6; }
32974 cat >>confdefs.h
<<\_ACEOF
32975 #define HAVE_GETHOSTBYNAME_R_5 1
32978 ac_cv_gethostbyname_r_args
="5"
32981 echo "$as_me: failed program was:" >&5
32982 sed 's/^/| /' conftest.
$ac_ext >&5
32985 { echo "$as_me:$LINENO: result: no" >&5
32986 echo "${ECHO_T}no" >&6; }
32990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
32993 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
32994 { echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 arguments" >&5
32995 echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6; }
32996 cat >conftest.
$ac_ext <<_ACEOF
33000 cat confdefs.h
>>conftest.
$ac_ext
33001 cat >>conftest.
$ac_ext <<_ACEOF
33002 /* end confdefs.h. */
33005 #include <sys/types.h>
33008 #define NULL (void *)0
33010 gethostbyname_r(const char *, struct hostent *,
33011 char *, size_t, struct hostent **, int *);
33017 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
33024 rm -f conftest.
$ac_objext
33025 if { (ac_try
="$ac_compile"
33026 case "(($ac_try" in
33027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_compile") 2>conftest.er1
33033 grep -v '^ *+' conftest.er1 >conftest.err
33035 cat conftest.err >&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); } && {
33038 test -z "$ac_c_werror_flag" ||
33039 test ! -s conftest.err
33040 } && test -s conftest.$ac_objext; then
33042 { echo "$as_me:$LINENO: result: yes" >&5
33043 echo "${ECHO_T}yes" >&6; }
33045 cat >>confdefs.h <<\_ACEOF
33046 #define HAVE_GETHOSTBYNAME_R_6 1
33049 ac_cv_gethostbyname_r_args="6"
33052 echo "$as_me: failed program was:" >&5
33053 sed 's/^/| /' conftest.$ac_ext >&5
33056 { echo "$as_me:$LINENO: result: no" >&5
33057 echo "${ECHO_T}no" >&6; }
33061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33064 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
33065 { echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 6 arguments" >&5
33066 echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 6 arguments... $ECHO_C" >&6; }
33067 cat >conftest.$ac_ext <<_ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h. */
33077 #include <sys/types.h>
33080 #define NULL (void *)0
33082 gethostbyname_r(const char *, struct hostent *,
33083 char *, size_t, struct hostent **, int *);
33089 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
33096 rm -f conftest.$ac_objext
33097 if { (ac_try="$ac_compile"
33098 case "(($ac_try" in
33099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33100 *) ac_try_echo
=$ac_try;;
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_compile") 2>conftest.er1
33105 grep -v '^ *+' conftest.er1
>conftest.err
33107 cat conftest.err
>&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } && {
33110 test -z "$ac_c_werror_flag" ||
33111 test ! -s conftest.err
33112 } && test -s conftest.
$ac_objext; then
33114 { echo "$as_me:$LINENO: result: yes" >&5
33115 echo "${ECHO_T}yes" >&6; }
33117 cat >>confdefs.h
<<\_ACEOF
33118 #define HAVE_GETHOSTBYNAME_R_6 1
33121 ac_cv_gethostbyname_r_args
="6"
33124 echo "$as_me: failed program was:" >&5
33125 sed 's/^/| /' conftest.
$ac_ext >&5
33128 { echo "$as_me:$LINENO: result: no" >&5
33129 echo "${ECHO_T}no" >&6; }
33133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33136 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
33137 { echo "$as_me:$LINENO: WARNING: Cannot find out how to use gethostbyname_r" >&5
33138 echo "$as_me: WARNING: Cannot find out how to use gethostbyname_r" >&2;}
33139 { echo "$as_me:$LINENO: WARNING: HAVE_GETHOSTBYNAME_R will not be defined" >&5
33140 echo "$as_me: WARNING: HAVE_GETHOSTBYNAME_R will not be defined" >&2;}
33141 ac_cv_func_gethostbyname_r
="no"
33144 cat >>confdefs.h
<<_ACEOF
33145 #define HAVE_GETHOSTBYNAME_R 1
33148 ac_cv_func_gethostbyname_r
="yes"
33152 ac_cv_func_gethostbyname_r
="no"
33160 for ac_func
in inet_ntoa_r
33162 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33165 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33166 echo $ECHO_N "(cached) $ECHO_C" >&6
33168 cat >conftest.
$ac_ext <<_ACEOF
33171 cat confdefs.h
>>conftest.
$ac_ext
33172 cat >>conftest.
$ac_ext <<_ACEOF
33173 /* end confdefs.h. */
33174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33176 #define $ac_func innocuous_$ac_func
33178 /* System header to define __stub macros and hopefully few prototypes,
33179 which can conflict with char $ac_func (); below.
33180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33181 <limits.h> exists even on freestanding compilers. */
33184 # include <limits.h>
33186 # include <assert.h>
33191 /* Override any GCC internal prototype to avoid an error.
33192 Use char because int might match the return type of a GCC
33193 builtin and then its argument prototype would still apply. */
33198 /* The GNU C library defines this for functions which it implements
33199 to always fail with ENOSYS. Some functions are actually named
33200 something starting with __ and the normal name is an alias. */
33201 #if defined __stub_$ac_func || defined __stub___$ac_func
33208 return $ac_func ();
33213 rm -f conftest.
$ac_objext conftest
$ac_exeext
33214 if { (ac_try
="$ac_link"
33215 case "(($ac_try" in
33216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33217 *) ac_try_echo=$ac_try;;
33219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33220 (eval "$ac_link") 2>conftest.er1
33222 grep -v '^ *+' conftest.er1 >conftest.err
33224 cat conftest.err >&5
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); } && {
33227 test -z "$ac_c_werror_flag" ||
33228 test ! -s conftest.err
33229 } && test -s conftest$ac_exeext &&
33230 $as_test_x conftest$ac_exeext; then
33231 eval "$as_ac_var=yes"
33233 echo "$as_me: failed program was:" >&5
33234 sed 's/^/| /' conftest.$ac_ext >&5
33236 eval "$as_ac_var=no"
33239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33240 conftest$ac_exeext conftest.$ac_ext
33242 ac_res=`eval echo '${'$as_ac_var'}'`
33243 { echo "$as_me:$LINENO: result: $ac_res" >&5
33244 echo "${ECHO_T}$ac_res" >&6; }
33245 if test `eval echo '${'$as_ac_var'}'` = yes; then
33246 cat >>confdefs.h <<_ACEOF
33247 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
33250 { echo "$as_me:$LINENO: checking whether inet_ntoa_r is declared" >&5
33251 echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6; }
33252 cat >conftest.$ac_ext <<_ACEOF
33255 cat confdefs.h >>conftest.$ac_ext
33256 cat >>conftest.$ac_ext <<_ACEOF
33257 /* end confdefs.h. */
33260 #include <arpa/inet.h>
33262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33263 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
33266 cat >>confdefs.h <<\_ACEOF
33267 #define HAVE_INET_NTOA_R_DECL 1
33270 { echo "$as_me:$LINENO: result: yes" >&5
33271 echo "${ECHO_T}yes" >&6; }
33274 { echo "$as_me:$LINENO: result: no" >&5
33275 echo "${ECHO_T}no" >&6; }
33276 { echo "$as_me:$LINENO: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
33277 echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
33278 cat >conftest.$ac_ext <<_ACEOF
33281 cat confdefs.h >>conftest.$ac_ext
33282 cat >>conftest.$ac_ext <<_ACEOF
33283 /* end confdefs.h. */
33287 #include <arpa/inet.h>
33289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33290 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
33293 cat >>confdefs.h <<\_ACEOF
33294 #define HAVE_INET_NTOA_R_DECL 1
33297 { echo "$as_me:$LINENO: result: yes" >&5
33298 echo "${ECHO_T}yes" >&6; }
33300 { echo "$as_me:$LINENO: result: no" >&5
33301 echo "${ECHO_T}no" >&6; }
33315 for ac_func in localtime_r
33317 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
33318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33321 echo $ECHO_N "(cached) $ECHO_C" >&6
33323 cat >conftest.$ac_ext <<_ACEOF
33326 cat confdefs.h >>conftest.$ac_ext
33327 cat >>conftest.$ac_ext <<_ACEOF
33328 /* end confdefs.h. */
33329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33331 #define $ac_func innocuous_$ac_func
33333 /* System header to define __stub macros and hopefully few prototypes,
33334 which can conflict with char $ac_func (); below.
33335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33336 <limits.h> exists even on freestanding compilers. */
33339 # include <limits.h>
33341 # include <assert.h>
33346 /* Override any GCC internal prototype to avoid an error.
33347 Use char because int might match the return type of a GCC
33348 builtin and then its argument prototype would still apply. */
33353 /* The GNU C library defines this for functions which it implements
33354 to always fail with ENOSYS. Some functions are actually named
33355 something starting with __ and the normal name is an alias. */
33356 #if defined __stub_$ac_func || defined __stub___$ac_func
33363 return $ac_func ();
33368 rm -f conftest.$ac_objext conftest$ac_exeext
33369 if { (ac_try="$ac_link"
33370 case "(($ac_try" in
33371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33372 *) ac_try_echo
=$ac_try;;
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_link") 2>conftest.er1
33377 grep -v '^ *+' conftest.er1
>conftest.err
33379 cat conftest.err
>&5
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); } && {
33382 test -z "$ac_c_werror_flag" ||
33383 test ! -s conftest.err
33384 } && test -s conftest
$ac_exeext &&
33385 $as_test_x conftest
$ac_exeext; then
33386 eval "$as_ac_var=yes"
33388 echo "$as_me: failed program was:" >&5
33389 sed 's/^/| /' conftest.
$ac_ext >&5
33391 eval "$as_ac_var=no"
33394 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33395 conftest
$ac_exeext conftest.
$ac_ext
33397 ac_res
=`eval echo '${'$as_ac_var'}'`
33398 { echo "$as_me:$LINENO: result: $ac_res" >&5
33399 echo "${ECHO_T}$ac_res" >&6; }
33400 if test `eval echo '${'$as_ac_var'}'` = yes; then
33401 cat >>confdefs.h
<<_ACEOF
33402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33405 { echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
33406 echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6; }
33407 cat >conftest.
$ac_ext <<_ACEOF
33410 cat confdefs.h
>>conftest.
$ac_ext
33411 cat >>conftest.
$ac_ext <<_ACEOF
33412 /* end confdefs.h. */
33417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33418 $EGREP "localtime_r" >/dev
/null
2>&1; then
33420 { echo "$as_me:$LINENO: result: yes" >&5
33421 echo "${ECHO_T}yes" >&6; }
33424 { echo "$as_me:$LINENO: result: no" >&5
33425 echo "${ECHO_T}no" >&6; }
33426 { echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
33427 echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
33428 cat >conftest.
$ac_ext <<_ACEOF
33431 cat confdefs.h
>>conftest.
$ac_ext
33432 cat >>conftest.
$ac_ext <<_ACEOF
33433 /* end confdefs.h. */
33439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33440 $EGREP "localtime_r" >/dev
/null
2>&1; then
33442 { echo "$as_me:$LINENO: result: yes" >&5
33443 echo "${ECHO_T}yes" >&6; }
33445 { echo "$as_me:$LINENO: result: no" >&5
33446 echo "${ECHO_T}no" >&6; }
33460 for ac_func
in strerror_r
33462 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33465 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33466 echo $ECHO_N "(cached) $ECHO_C" >&6
33468 cat >conftest.
$ac_ext <<_ACEOF
33471 cat confdefs.h
>>conftest.
$ac_ext
33472 cat >>conftest.
$ac_ext <<_ACEOF
33473 /* end confdefs.h. */
33474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33476 #define $ac_func innocuous_$ac_func
33478 /* System header to define __stub macros and hopefully few prototypes,
33479 which can conflict with char $ac_func (); below.
33480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33481 <limits.h> exists even on freestanding compilers. */
33484 # include <limits.h>
33486 # include <assert.h>
33491 /* Override any GCC internal prototype to avoid an error.
33492 Use char because int might match the return type of a GCC
33493 builtin and then its argument prototype would still apply. */
33498 /* The GNU C library defines this for functions which it implements
33499 to always fail with ENOSYS. Some functions are actually named
33500 something starting with __ and the normal name is an alias. */
33501 #if defined __stub_$ac_func || defined __stub___$ac_func
33508 return $ac_func ();
33513 rm -f conftest.
$ac_objext conftest
$ac_exeext
33514 if { (ac_try
="$ac_link"
33515 case "(($ac_try" in
33516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33517 *) ac_try_echo=$ac_try;;
33519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33520 (eval "$ac_link") 2>conftest.er1
33522 grep -v '^ *+' conftest.er1 >conftest.err
33524 cat conftest.err >&5
33525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33526 (exit $ac_status); } && {
33527 test -z "$ac_c_werror_flag" ||
33528 test ! -s conftest.err
33529 } && test -s conftest$ac_exeext &&
33530 $as_test_x conftest$ac_exeext; then
33531 eval "$as_ac_var=yes"
33533 echo "$as_me: failed program was:" >&5
33534 sed 's/^/| /' conftest.$ac_ext >&5
33536 eval "$as_ac_var=no"
33539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33540 conftest$ac_exeext conftest.$ac_ext
33542 ac_res=`eval echo '${'$as_ac_var'}'`
33543 { echo "$as_me:$LINENO: result: $ac_res" >&5
33544 echo "${ECHO_T}$ac_res" >&6; }
33545 if test `eval echo '${'$as_ac_var'}'` = yes; then
33546 cat >>confdefs.h <<_ACEOF
33547 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
33554 if test "x$ac_cv_func_strerror_r" = "xyes"; then
33556 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
33557 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
33558 cat >conftest.$ac_ext <<_ACEOF
33561 cat confdefs.h >>conftest.$ac_ext
33562 cat >>conftest.$ac_ext <<_ACEOF
33563 /* end confdefs.h. */
33566 #include <string.h>
33568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33569 $EGREP "strerror_r" >/dev/null 2>&1; then
33571 { echo "$as_me:$LINENO: result: yes" >&5
33572 echo "${ECHO_T}yes" >&6; }
33575 { echo "$as_me:$LINENO: result: no" >&5
33576 echo "${ECHO_T}no" >&6; }
33577 { echo "$as_me:$LINENO: checking whether strerror_r with -D_REENTRANT is declared" >&5
33578 echo $ECHO_N "checking whether strerror_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
33579 cat >conftest.$ac_ext <<_ACEOF
33582 cat confdefs.h >>conftest.$ac_ext
33583 cat >>conftest.$ac_ext <<_ACEOF
33584 /* end confdefs.h. */
33588 #include <string.h>
33590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33591 $EGREP "strerror_r" >/dev/null 2>&1; then
33593 { echo "$as_me:$LINENO: result: yes" >&5
33594 echo "${ECHO_T}yes" >&6; }
33596 { echo "$as_me:$LINENO: result: no" >&5
33597 echo "${ECHO_T}no" >&6; }
33599 cat >>confdefs.h <<\_ACEOF
33600 #define HAVE_NO_STRERROR_R_DECL 1
33610 { echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
33611 echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6; }
33612 if test "$cross_compiling" = yes; then
33613 cat >conftest.$ac_ext <<_ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h. */
33620 #include <features.h>
33626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33627 $EGREP "yes" >/dev/null 2>&1; then
33628 GLIBC_STRERROR_R="1"
33630 cat >>confdefs.h <<\_ACEOF
33631 #define HAVE_GLIBC_STRERROR_R 1
33634 { echo "$as_me:$LINENO: result: yes" >&5
33635 echo "${ECHO_T}yes" >&6; }
33637 { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
33638 echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
33644 cat >conftest.$ac_ext <<_ACEOF
33647 cat confdefs.h >>conftest.$ac_ext
33648 cat >>conftest.$ac_ext <<_ACEOF
33649 /* end confdefs.h. */
33651 #include <string.h>
33655 char buffer[1024]; /* big enough to play with */
33657 strerror_r(EACCES, buffer, sizeof(buffer));
33658 /* this should've returned a string */
33659 if(!string || !string[0])
33665 rm -f conftest$ac_exeext
33666 if { (ac_try="$ac_link"
33667 case "(($ac_try" in
33668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33669 *) ac_try_echo
=$ac_try;;
33671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33672 (eval "$ac_link") 2>&5
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33676 { (case "(($ac_try" in
33677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33678 *) ac_try_echo=$ac_try;;
33680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33681 (eval "$ac_try") 2>&5
33683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684 (exit $ac_status); }; }; then
33685 GLIBC_STRERROR_R="1"
33687 cat >>confdefs.h <<\_ACEOF
33688 #define HAVE_GLIBC_STRERROR_R 1
33691 { echo "$as_me:$LINENO: result: yes" >&5
33692 echo "${ECHO_T}yes" >&6; }
33694 echo "$as_me: program exited with status $ac_status" >&5
33695 echo "$as_me: failed program was:" >&5
33696 sed 's/^/| /' conftest.$ac_ext >&5
33698 ( exit $ac_status )
33699 { echo "$as_me:$LINENO: result: no" >&5
33700 echo "${ECHO_T}no" >&6; }
33702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33707 if test -z "$GLIBC_STRERROR_R"; then
33709 { echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
33710 echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6; }
33711 if test "$cross_compiling" = yes; then
33712 { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
33713 echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
33716 cat >conftest.$ac_ext <<_ACEOF
33719 cat confdefs.h >>conftest.$ac_ext
33720 cat >>conftest.$ac_ext <<_ACEOF
33721 /* end confdefs.h. */
33723 #include <string.h>
33727 char buffer[1024]; /* big enough to play with */
33729 strerror_r(EACCES, buffer, sizeof(buffer));
33730 /* This should've returned zero, and written an error string in the
33732 if(!buffer[0] || error)
33738 rm -f conftest$ac_exeext
33739 if { (ac_try="$ac_link"
33740 case "(($ac_try" in
33741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33742 *) ac_try_echo
=$ac_try;;
33744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745 (eval "$ac_link") 2>&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
33749 { (case "(($ac_try" in
33750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
33751 *) ac_try_echo=$ac_try;;
33753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33754 (eval "$ac_try") 2>&5
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); }; }; then
33759 cat >>confdefs.h <<\_ACEOF
33760 #define HAVE_POSIX_STRERROR_R 1
33763 { echo "$as_me:$LINENO: result: yes" >&5
33764 echo "${ECHO_T}yes" >&6; }
33766 echo "$as_me: program exited with status $ac_status" >&5
33767 echo "$as_me: failed program was:" >&5
33768 sed 's/^/| /' conftest.$ac_ext >&5
33770 ( exit $ac_status )
33771 { echo "$as_me:$LINENO: result: no" >&5
33772 echo "${ECHO_T}no" >&6; }
33774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33783 checkfor_gmtime_r="yes"
33788 if test "x$RECENTAIX" = "xyes"; then
33791 cat >>confdefs.h <<\_ACEOF
33792 #define _THREAD_SAFE 1
33798 for ac_func in localtime_r
33800 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
33801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33804 echo $ECHO_N "(cached) $ECHO_C" >&6
33806 cat >conftest.$ac_ext <<_ACEOF
33809 cat confdefs.h >>conftest.$ac_ext
33810 cat >>conftest.$ac_ext <<_ACEOF
33811 /* end confdefs.h. */
33812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33814 #define $ac_func innocuous_$ac_func
33816 /* System header to define __stub macros and hopefully few prototypes,
33817 which can conflict with char $ac_func (); below.
33818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33819 <limits.h> exists even on freestanding compilers. */
33822 # include <limits.h>
33824 # include <assert.h>
33829 /* Override any GCC internal prototype to avoid an error.
33830 Use char because int might match the return type of a GCC
33831 builtin and then its argument prototype would still apply. */
33836 /* The GNU C library defines this for functions which it implements
33837 to always fail with ENOSYS. Some functions are actually named
33838 something starting with __ and the normal name is an alias. */
33839 #if defined __stub_$ac_func || defined __stub___$ac_func
33846 return $ac_func ();
33851 rm -f conftest.$ac_objext conftest$ac_exeext
33852 if { (ac_try="$ac_link"
33853 case "(($ac_try" in
33854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
33855 *) ac_try_echo
=$ac_try;;
33857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33858 (eval "$ac_link") 2>conftest.er1
33860 grep -v '^ *+' conftest.er1
>conftest.err
33862 cat conftest.err
>&5
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); } && {
33865 test -z "$ac_c_werror_flag" ||
33866 test ! -s conftest.err
33867 } && test -s conftest
$ac_exeext &&
33868 $as_test_x conftest
$ac_exeext; then
33869 eval "$as_ac_var=yes"
33871 echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.
$ac_ext >&5
33874 eval "$as_ac_var=no"
33877 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
33878 conftest
$ac_exeext conftest.
$ac_ext
33880 ac_res
=`eval echo '${'$as_ac_var'}'`
33881 { echo "$as_me:$LINENO: result: $ac_res" >&5
33882 echo "${ECHO_T}$ac_res" >&6; }
33883 if test `eval echo '${'$as_ac_var'}'` = yes; then
33884 cat >>confdefs.h
<<_ACEOF
33885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33888 { echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
33889 echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6; }
33890 cat >conftest.
$ac_ext <<_ACEOF
33893 cat confdefs.h
>>conftest.
$ac_ext
33894 cat >>conftest.
$ac_ext <<_ACEOF
33895 /* end confdefs.h. */
33900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33901 $EGREP "localtime_r" >/dev
/null
2>&1; then
33903 { echo "$as_me:$LINENO: result: yes" >&5
33904 echo "${ECHO_T}yes" >&6; }
33907 { echo "$as_me:$LINENO: result: no" >&5
33908 echo "${ECHO_T}no" >&6; }
33909 { echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
33910 echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
33911 cat >conftest.
$ac_ext <<_ACEOF
33914 cat confdefs.h
>>conftest.
$ac_ext
33915 cat >>conftest.
$ac_ext <<_ACEOF
33916 /* end confdefs.h. */
33922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33923 $EGREP "localtime_r" >/dev
/null
2>&1; then
33925 { echo "$as_me:$LINENO: result: yes" >&5
33926 echo "${ECHO_T}yes" >&6; }
33928 { echo "$as_me:$LINENO: result: no" >&5
33929 echo "${ECHO_T}no" >&6; }
33943 for ac_func
in strerror_r
33945 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33948 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33949 echo $ECHO_N "(cached) $ECHO_C" >&6
33951 cat >conftest.
$ac_ext <<_ACEOF
33954 cat confdefs.h
>>conftest.
$ac_ext
33955 cat >>conftest.
$ac_ext <<_ACEOF
33956 /* end confdefs.h. */
33957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33959 #define $ac_func innocuous_$ac_func
33961 /* System header to define __stub macros and hopefully few prototypes,
33962 which can conflict with char $ac_func (); below.
33963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33964 <limits.h> exists even on freestanding compilers. */
33967 # include <limits.h>
33969 # include <assert.h>
33974 /* Override any GCC internal prototype to avoid an error.
33975 Use char because int might match the return type of a GCC
33976 builtin and then its argument prototype would still apply. */
33981 /* The GNU C library defines this for functions which it implements
33982 to always fail with ENOSYS. Some functions are actually named
33983 something starting with __ and the normal name is an alias. */
33984 #if defined __stub_$ac_func || defined __stub___$ac_func
33991 return $ac_func ();
33996 rm -f conftest.
$ac_objext conftest
$ac_exeext
33997 if { (ac_try
="$ac_link"
33998 case "(($ac_try" in
33999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_link") 2>conftest.er1
34005 grep -v '^ *+' conftest.er1 >conftest.err
34007 cat conftest.err >&5
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); } && {
34010 test -z "$ac_c_werror_flag" ||
34011 test ! -s conftest.err
34012 } && test -s conftest$ac_exeext &&
34013 $as_test_x conftest$ac_exeext; then
34014 eval "$as_ac_var=yes"
34016 echo "$as_me: failed program was:" >&5
34017 sed 's/^/| /' conftest.$ac_ext >&5
34019 eval "$as_ac_var=no"
34022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34023 conftest$ac_exeext conftest.$ac_ext
34025 ac_res=`eval echo '${'$as_ac_var'}'`
34026 { echo "$as_me:$LINENO: result: $ac_res" >&5
34027 echo "${ECHO_T}$ac_res" >&6; }
34028 if test `eval echo '${'$as_ac_var'}'` = yes; then
34029 cat >>confdefs.h <<_ACEOF
34030 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
34037 if test "x$ac_cv_func_strerror_r" = "xyes"; then
34039 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
34040 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
34041 cat >conftest.$ac_ext <<_ACEOF
34044 cat confdefs.h >>conftest.$ac_ext
34045 cat >>conftest.$ac_ext <<_ACEOF
34046 /* end confdefs.h. */
34049 #include <string.h>
34051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34052 $EGREP "strerror_r" >/dev/null 2>&1; then
34054 { echo "$as_me:$LINENO: result: yes" >&5
34055 echo "${ECHO_T}yes" >&6; }
34058 { echo "$as_me:$LINENO: result: no" >&5
34059 echo "${ECHO_T}no" >&6; }
34060 { echo "$as_me:$LINENO: checking whether strerror_r with -D_REENTRANT is declared" >&5
34061 echo $ECHO_N "checking whether strerror_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
34062 cat >conftest.$ac_ext <<_ACEOF
34065 cat confdefs.h >>conftest.$ac_ext
34066 cat >>conftest.$ac_ext <<_ACEOF
34067 /* end confdefs.h. */
34071 #include <string.h>
34073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34074 $EGREP "strerror_r" >/dev/null 2>&1; then
34076 { echo "$as_me:$LINENO: result: yes" >&5
34077 echo "${ECHO_T}yes" >&6; }
34079 { echo "$as_me:$LINENO: result: no" >&5
34080 echo "${ECHO_T}no" >&6; }
34082 cat >>confdefs.h <<\_ACEOF
34083 #define HAVE_NO_STRERROR_R_DECL 1
34093 { echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
34094 echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6; }
34095 if test "$cross_compiling" = yes; then
34096 cat >conftest.$ac_ext <<_ACEOF
34099 cat confdefs.h >>conftest.$ac_ext
34100 cat >>conftest.$ac_ext <<_ACEOF
34101 /* end confdefs.h. */
34103 #include <features.h>
34109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34110 $EGREP "yes" >/dev/null 2>&1; then
34111 GLIBC_STRERROR_R="1"
34113 cat >>confdefs.h <<\_ACEOF
34114 #define HAVE_GLIBC_STRERROR_R 1
34117 { echo "$as_me:$LINENO: result: yes" >&5
34118 echo "${ECHO_T}yes" >&6; }
34120 { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
34121 echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
34127 cat >conftest.$ac_ext <<_ACEOF
34130 cat confdefs.h >>conftest.$ac_ext
34131 cat >>conftest.$ac_ext <<_ACEOF
34132 /* end confdefs.h. */
34134 #include <string.h>
34138 char buffer[1024]; /* big enough to play with */
34140 strerror_r(EACCES, buffer, sizeof(buffer));
34141 /* this should've returned a string */
34142 if(!string || !string[0])
34148 rm -f conftest$ac_exeext
34149 if { (ac_try="$ac_link"
34150 case "(($ac_try" in
34151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34152 *) ac_try_echo
=$ac_try;;
34154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34155 (eval "$ac_link") 2>&5
34157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34159 { (case "(($ac_try" in
34160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34161 *) ac_try_echo=$ac_try;;
34163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34164 (eval "$ac_try") 2>&5
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); }; }; then
34168 GLIBC_STRERROR_R="1"
34170 cat >>confdefs.h <<\_ACEOF
34171 #define HAVE_GLIBC_STRERROR_R 1
34174 { echo "$as_me:$LINENO: result: yes" >&5
34175 echo "${ECHO_T}yes" >&6; }
34177 echo "$as_me: program exited with status $ac_status" >&5
34178 echo "$as_me: failed program was:" >&5
34179 sed 's/^/| /' conftest.$ac_ext >&5
34181 ( exit $ac_status )
34182 { echo "$as_me:$LINENO: result: no" >&5
34183 echo "${ECHO_T}no" >&6; }
34185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34190 if test -z "$GLIBC_STRERROR_R"; then
34192 { echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
34193 echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6; }
34194 if test "$cross_compiling" = yes; then
34195 { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
34196 echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
34199 cat >conftest.$ac_ext <<_ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h. */
34206 #include <string.h>
34210 char buffer[1024]; /* big enough to play with */
34212 strerror_r(EACCES, buffer, sizeof(buffer));
34213 /* This should've returned zero, and written an error string in the
34215 if(!buffer[0] || error)
34221 rm -f conftest$ac_exeext
34222 if { (ac_try="$ac_link"
34223 case "(($ac_try" in
34224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34225 *) ac_try_echo
=$ac_try;;
34227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34228 (eval "$ac_link") 2>&5
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34232 { (case "(($ac_try" in
34233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34234 *) ac_try_echo=$ac_try;;
34236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34237 (eval "$ac_try") 2>&5
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); }; }; then
34242 cat >>confdefs.h <<\_ACEOF
34243 #define HAVE_POSIX_STRERROR_R 1
34246 { echo "$as_me:$LINENO: result: yes" >&5
34247 echo "${ECHO_T}yes" >&6; }
34249 echo "$as_me: program exited with status $ac_status" >&5
34250 echo "$as_me: failed program was:" >&5
34251 sed 's/^/| /' conftest.$ac_ext >&5
34253 ( exit $ac_status )
34254 { echo "$as_me:$LINENO: result: no" >&5
34255 echo "${ECHO_T}no" >&6; }
34257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34266 checkfor_gmtime_r="yes"
34269 if test x$cross_compiling != xyes; then
34271 if test x$checkfor_gmtime_r = xyes; then
34274 { echo "$as_me:$LINENO: checking if gmtime_r exists and works" >&5
34275 echo $ECHO_N "checking if gmtime_r exists and works... $ECHO_C" >&6; }
34276 if test "$cross_compiling" = yes; then
34280 cat >conftest.$ac_ext <<_ACEOF
34285 time_t local = 1170352587;
34288 putenv("TZ=CST6CDT");
34290 gmt = gmtime_r(&local, &keeper);
34294 return 1; /* failure */
34298 rm -f conftest$ac_exeext
34299 if { (ac_try="$ac_link"
34300 case "(($ac_try" in
34301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34302 *) ac_try_echo
=$ac_try;;
34304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34305 (eval "$ac_link") 2>&5
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34309 { (case "(($ac_try" in
34310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34311 *) ac_try_echo=$ac_try;;
34313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34314 (eval "$ac_try") 2>&5
34316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317 (exit $ac_status); }; }; then
34318 { echo "$as_me:$LINENO: result: yes" >&5
34319 echo "${ECHO_T}yes" >&6; }
34321 cat >>confdefs.h <<\_ACEOF
34322 #define HAVE_GMTIME_R 1
34327 echo "$as_me: program exited with status $ac_status" >&5
34328 echo "$as_me: failed program was:" >&5
34329 sed 's/^/| /' conftest.$ac_ext >&5
34331 ( exit $ac_status )
34332 { echo "$as_me:$LINENO: result: no" >&5
34333 echo "${ECHO_T}no" >&6; }
34336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34343 for ac_func in gmtime_r
34345 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
34346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34349 echo $ECHO_N "(cached) $ECHO_C" >&6
34351 cat >conftest.$ac_ext <<_ACEOF
34354 cat confdefs.h >>conftest.$ac_ext
34355 cat >>conftest.$ac_ext <<_ACEOF
34356 /* end confdefs.h. */
34357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34359 #define $ac_func innocuous_$ac_func
34361 /* System header to define __stub macros and hopefully few prototypes,
34362 which can conflict with char $ac_func (); below.
34363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34364 <limits.h> exists even on freestanding compilers. */
34367 # include <limits.h>
34369 # include <assert.h>
34374 /* Override any GCC internal prototype to avoid an error.
34375 Use char because int might match the return type of a GCC
34376 builtin and then its argument prototype would still apply. */
34381 /* The GNU C library defines this for functions which it implements
34382 to always fail with ENOSYS. Some functions are actually named
34383 something starting with __ and the normal name is an alias. */
34384 #if defined __stub_$ac_func || defined __stub___$ac_func
34391 return $ac_func ();
34396 rm -f conftest.$ac_objext conftest$ac_exeext
34397 if { (ac_try="$ac_link"
34398 case "(($ac_try" in
34399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34400 *) ac_try_echo
=$ac_try;;
34402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34403 (eval "$ac_link") 2>conftest.er1
34405 grep -v '^ *+' conftest.er1
>conftest.err
34407 cat conftest.err
>&5
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); } && {
34410 test -z "$ac_c_werror_flag" ||
34411 test ! -s conftest.err
34412 } && test -s conftest
$ac_exeext &&
34413 $as_test_x conftest
$ac_exeext; then
34414 eval "$as_ac_var=yes"
34416 echo "$as_me: failed program was:" >&5
34417 sed 's/^/| /' conftest.
$ac_ext >&5
34419 eval "$as_ac_var=no"
34422 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
34423 conftest
$ac_exeext conftest.
$ac_ext
34425 ac_res
=`eval echo '${'$as_ac_var'}'`
34426 { echo "$as_me:$LINENO: result: $ac_res" >&5
34427 echo "${ECHO_T}$ac_res" >&6; }
34428 if test `eval echo '${'$as_ac_var'}'` = yes; then
34429 cat >>confdefs.h
<<_ACEOF
34430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34440 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
34441 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
34442 if test "${ac_cv_header_stdc+set}" = set; then
34443 echo $ECHO_N "(cached) $ECHO_C" >&6
34445 cat >conftest.
$ac_ext <<_ACEOF
34448 cat confdefs.h
>>conftest.
$ac_ext
34449 cat >>conftest.
$ac_ext <<_ACEOF
34450 /* end confdefs.h. */
34451 #include <stdlib.h>
34452 #include <stdarg.h>
34453 #include <string.h>
34464 rm -f conftest.
$ac_objext
34465 if { (ac_try
="$ac_compile"
34466 case "(($ac_try" in
34467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34468 *) ac_try_echo=$ac_try;;
34470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34471 (eval "$ac_compile") 2>conftest.er1
34473 grep -v '^ *+' conftest.er1 >conftest.err
34475 cat conftest.err >&5
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); } && {
34478 test -z "$ac_c_werror_flag" ||
34479 test ! -s conftest.err
34480 } && test -s conftest.$ac_objext; then
34481 ac_cv_header_stdc=yes
34483 echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.$ac_ext >&5
34486 ac_cv_header_stdc=no
34489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34491 if test $ac_cv_header_stdc = yes; then
34492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
34493 cat >conftest.$ac_ext <<_ACEOF
34496 cat confdefs.h >>conftest.$ac_ext
34497 cat >>conftest.$ac_ext <<_ACEOF
34498 /* end confdefs.h. */
34499 #include <string.h>
34502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34503 $EGREP "memchr" >/dev/null 2>&1; then
34506 ac_cv_header_stdc=no
34512 if test $ac_cv_header_stdc = yes; then
34513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
34514 cat >conftest.$ac_ext <<_ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h. */
34520 #include <stdlib.h>
34523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34524 $EGREP "free" >/dev/null 2>&1; then
34527 ac_cv_header_stdc=no
34533 if test $ac_cv_header_stdc = yes; then
34534 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
34535 if test "$cross_compiling" = yes; then
34538 cat >conftest.$ac_ext <<_ACEOF
34541 cat confdefs.h >>conftest.$ac_ext
34542 cat >>conftest.$ac_ext <<_ACEOF
34543 /* end confdefs.h. */
34545 #include <stdlib.h>
34546 #if ((' ' & 0x0FF) == 0x020)
34547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
34548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
34550 # define ISLOWER(c) \
34551 (('a' <= (c) && (c) <= 'i') \
34552 || ('j' <= (c) && (c) <= 'r') \
34553 || ('s' <= (c) && (c) <= 'z'))
34554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
34557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
34562 for (i = 0; i < 256; i++)
34563 if (XOR (islower (i), ISLOWER (i))
34564 || toupper (i) != TOUPPER (i))
34569 rm -f conftest$ac_exeext
34570 if { (ac_try="$ac_link"
34571 case "(($ac_try" in
34572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34573 *) ac_try_echo
=$ac_try;;
34575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34576 (eval "$ac_link") 2>&5
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
34580 { (case "(($ac_try" in
34581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34582 *) ac_try_echo=$ac_try;;
34584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34585 (eval "$ac_try") 2>&5
34587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588 (exit $ac_status); }; }; then
34591 echo "$as_me: program exited with status $ac_status" >&5
34592 echo "$as_me: failed program was:" >&5
34593 sed 's/^/| /' conftest.$ac_ext >&5
34595 ( exit $ac_status )
34596 ac_cv_header_stdc=no
34598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34604 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
34605 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
34606 if test $ac_cv_header_stdc = yes; then
34608 cat >>confdefs.h <<\_ACEOF
34609 #define STDC_HEADERS 1
34616 { echo "$as_me:$LINENO: checking for malloc.h" >&5
34617 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
34618 if test "${ac_cv_header_malloc_h+set}" = set; then
34619 echo $ECHO_N "(cached) $ECHO_C" >&6
34622 cat >conftest.$ac_ext <<_ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h. */
34630 #include <malloc.h>
34636 void *p = malloc(10);
34637 void *q = calloc(10,10);
34646 rm -f conftest.$ac_objext
34647 if { (ac_try="$ac_compile"
34648 case "(($ac_try" in
34649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34650 *) ac_try_echo
=$ac_try;;
34652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34653 (eval "$ac_compile") 2>conftest.er1
34655 grep -v '^ *+' conftest.er1
>conftest.err
34657 cat conftest.err
>&5
34658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); } && {
34660 test -z "$ac_c_werror_flag" ||
34661 test ! -s conftest.err
34662 } && test -s conftest.
$ac_objext; then
34664 ac_cv_header_malloc_h
="yes"
34667 echo "$as_me: failed program was:" >&5
34668 sed 's/^/| /' conftest.
$ac_ext >&5
34671 ac_cv_header_malloc_h
="no"
34675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34678 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
34679 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
34680 if test "$ac_cv_header_malloc_h" = "yes"; then
34682 cat >>confdefs.h
<<_ACEOF
34683 #define HAVE_MALLOC_H 1
34687 cat >conftest.
$ac_ext <<_ACEOF
34691 cat confdefs.h
>>conftest.
$ac_ext
34692 cat >>conftest.
$ac_ext <<_ACEOF
34693 /* end confdefs.h. */
34695 #include <stdlib.h>
34701 void *p = malloc(10);
34702 void *q = calloc(10,10);
34711 rm -f conftest.
$ac_objext
34712 if { (ac_try
="$ac_compile"
34713 case "(($ac_try" in
34714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34715 *) ac_try_echo=$ac_try;;
34717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34718 (eval "$ac_compile") 2>conftest.er1
34720 grep -v '^ *+' conftest.er1 >conftest.err
34722 cat conftest.err >&5
34723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34724 (exit $ac_status); } && {
34725 test -z "$ac_c_werror_flag" ||
34726 test ! -s conftest.err
34727 } && test -s conftest.$ac_objext; then
34729 curl_cv_need_header_malloc_h="no"
34732 echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34736 curl_cv_need_header_malloc_h="yes"
34740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34742 case "$curl_cv_need_header_malloc_h" in
34745 cat >>confdefs.h <<_ACEOF
34746 #define NEED_MALLOC_H 1
34792 for ac_header in sys/types.h \
34831 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
34832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34835 echo $ECHO_N "(cached) $ECHO_C" >&6
34837 cat >conftest.$ac_ext <<_ACEOF
34840 cat confdefs.h >>conftest.$ac_ext
34841 cat >>conftest.$ac_ext <<_ACEOF
34842 /* end confdefs.h. */
34844 #ifdef HAVE_SYS_TYPES_H
34845 #include <sys/types.h>
34847 #ifdef HAVE_SYS_TIME_H
34848 #include <sys/time.h>
34850 #ifdef HAVE_SYS_SELECT_H
34851 #include <sys/select.h>
34853 #ifdef HAVE_SYS_SOCKET_H
34854 #include <sys/socket.h>
34856 #ifdef HAVE_NETINET_IN_H
34857 #include <netinet/in.h>
34859 #ifdef HAVE_SYS_UN_H
34860 #include <sys/un.h>
34865 #include <$ac_header>
34867 rm -f conftest.$ac_objext
34868 if { (ac_try="$ac_compile"
34869 case "(($ac_try" in
34870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
34871 *) ac_try_echo
=$ac_try;;
34873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34874 (eval "$ac_compile") 2>conftest.er1
34876 grep -v '^ *+' conftest.er1
>conftest.err
34878 cat conftest.err
>&5
34879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880 (exit $ac_status); } && {
34881 test -z "$ac_c_werror_flag" ||
34882 test ! -s conftest.err
34883 } && test -s conftest.
$ac_objext; then
34884 eval "$as_ac_Header=yes"
34886 echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.
$ac_ext >&5
34889 eval "$as_ac_Header=no"
34892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
34894 ac_res
=`eval echo '${'$as_ac_Header'}'`
34895 { echo "$as_me:$LINENO: result: $ac_res" >&5
34896 echo "${ECHO_T}$ac_res" >&6; }
34897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34898 cat >>confdefs.h
<<_ACEOF
34899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34907 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34908 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34909 if test "${ac_cv_c_const+set}" = set; then
34910 echo $ECHO_N "(cached) $ECHO_C" >&6
34912 cat >conftest.
$ac_ext <<_ACEOF
34915 cat confdefs.h
>>conftest.
$ac_ext
34916 cat >>conftest.
$ac_ext <<_ACEOF
34917 /* end confdefs.h. */
34922 /* FIXME: Include the comments suggested by Paul. */
34923 #ifndef __cplusplus
34924 /* Ultrix mips cc rejects this. */
34925 typedef int charset[2];
34927 /* SunOS 4.1.1 cc rejects this. */
34928 char const *const *pcpcc;
34930 /* NEC SVR4.0.2 mips cc rejects this. */
34931 struct point {int x, y;};
34932 static struct point const zero = {0,0};
34933 /* AIX XL C 1.02.0.0 rejects this.
34934 It does not let you subtract one const X* pointer from another in
34935 an arm of an if-expression whose if-part is not a constant
34937 const char *g = "string";
34938 pcpcc = &g + (g ? g-g : 0);
34939 /* HPUX 7.0 cc rejects these. */
34941 ppc = (char**) pcpcc;
34942 pcpcc = (char const *const *) ppc;
34943 { /* SCO 3.2v4 cc rejects this. */
34945 char const *s = 0 ? (char *) 0 : (char const *) 0;
34950 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34951 int x[] = {25, 17};
34952 const int *foo = &x[0];
34955 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34956 typedef const int *iptr;
34960 { /* AIX XL C 1.02.0.0 rejects this saying
34961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34962 struct s { int j; const int *ap[3]; };
34963 struct s *b; b->j = 5;
34965 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34966 const int foo = 10;
34967 if (!foo) return 0;
34969 return !cs[0] && !zero.x;
34976 rm -f conftest.
$ac_objext
34977 if { (ac_try
="$ac_compile"
34978 case "(($ac_try" in
34979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
34980 *) ac_try_echo=$ac_try;;
34982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34983 (eval "$ac_compile") 2>conftest.er1
34985 grep -v '^ *+' conftest.er1 >conftest.err
34987 cat conftest.err >&5
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); } && {
34990 test -z "$ac_c_werror_flag" ||
34991 test ! -s conftest.err
34992 } && test -s conftest.$ac_objext; then
34995 echo "$as_me: failed program was:" >&5
34996 sed 's/^/| /' conftest.$ac_ext >&5
35001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35003 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35004 echo "${ECHO_T}$ac_cv_c_const" >&6; }
35005 if test $ac_cv_c_const = no; then
35007 cat >>confdefs.h <<\_ACEOF
35014 { echo "$as_me:$LINENO: checking for compiler support of C99 variadic macro style" >&5
35015 echo $ECHO_N "checking for compiler support of C99 variadic macro style... $ECHO_C" >&6; }
35016 if test "${curl_cv_variadic_macros_c99+set}" = set; then
35017 echo $ECHO_N "(cached) $ECHO_C" >&6
35020 cat >conftest.$ac_ext <<_ACEOF
35024 cat confdefs.h >>conftest.$ac_ext
35025 cat >>conftest.$ac_ext <<_ACEOF
35026 /* end confdefs.h. */
35028 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
35029 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
35030 int fun3(int arg1, int arg2, int arg3);
35031 int fun2(int arg1, int arg2);
35032 int fun3(int arg1, int arg2, int arg3)
35033 { return arg1 + arg2 + arg3; }
35034 int fun2(int arg1, int arg2)
35035 { return arg1 + arg2; }
35041 int res3 = c99_vmacro3(1, 2, 3);
35042 int res2 = c99_vmacro2(1, 2);
35049 rm -f conftest.$ac_objext
35050 if { (ac_try="$ac_compile"
35051 case "(($ac_try" in
35052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35053 *) ac_try_echo
=$ac_try;;
35055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35056 (eval "$ac_compile") 2>conftest.er1
35058 grep -v '^ *+' conftest.er1
>conftest.err
35060 cat conftest.err
>&5
35061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062 (exit $ac_status); } && {
35063 test -z "$ac_c_werror_flag" ||
35064 test ! -s conftest.err
35065 } && test -s conftest.
$ac_objext; then
35067 curl_cv_variadic_macros_c99
="yes"
35070 echo "$as_me: failed program was:" >&5
35071 sed 's/^/| /' conftest.
$ac_ext >&5
35074 curl_cv_variadic_macros_c99
="no"
35078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35081 { echo "$as_me:$LINENO: result: $curl_cv_variadic_macros_c99" >&5
35082 echo "${ECHO_T}$curl_cv_variadic_macros_c99" >&6; }
35083 case "$curl_cv_variadic_macros_c99" in
35086 cat >>confdefs.h
<<_ACEOF
35087 #define HAVE_VARIADIC_MACROS_C99 1
35092 { echo "$as_me:$LINENO: checking for compiler support of old gcc variadic macro style" >&5
35093 echo $ECHO_N "checking for compiler support of old gcc variadic macro style... $ECHO_C" >&6; }
35094 if test "${curl_cv_variadic_macros_gcc+set}" = set; then
35095 echo $ECHO_N "(cached) $ECHO_C" >&6
35098 cat >conftest.
$ac_ext <<_ACEOF
35102 cat confdefs.h
>>conftest.
$ac_ext
35103 cat >>conftest.
$ac_ext <<_ACEOF
35104 /* end confdefs.h. */
35106 #define gcc_vmacro3(first, args...) fun3(first, args)
35107 #define gcc_vmacro2(first, args...) fun2(first, args)
35108 int fun3(int arg1, int arg2, int arg3);
35109 int fun2(int arg1, int arg2);
35110 int fun3(int arg1, int arg2, int arg3)
35111 { return arg1 + arg2 + arg3; }
35112 int fun2(int arg1, int arg2)
35113 { return arg1 + arg2; }
35119 int res3 = gcc_vmacro3(1, 2, 3);
35120 int res2 = gcc_vmacro2(1, 2);
35127 rm -f conftest.
$ac_objext
35128 if { (ac_try
="$ac_compile"
35129 case "(($ac_try" in
35130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35131 *) ac_try_echo=$ac_try;;
35133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35134 (eval "$ac_compile") 2>conftest.er1
35136 grep -v '^ *+' conftest.er1 >conftest.err
35138 cat conftest.err >&5
35139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35140 (exit $ac_status); } && {
35141 test -z "$ac_c_werror_flag" ||
35142 test ! -s conftest.err
35143 } && test -s conftest.$ac_objext; then
35145 curl_cv_variadic_macros_gcc="yes"
35148 echo "$as_me: failed program was:" >&5
35149 sed 's/^/| /' conftest.$ac_ext >&5
35152 curl_cv_variadic_macros_gcc="no"
35156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35159 { echo "$as_me:$LINENO: result: $curl_cv_variadic_macros_gcc" >&5
35160 echo "${ECHO_T}$curl_cv_variadic_macros_gcc" >&6; }
35161 case "$curl_cv_variadic_macros_gcc" in
35164 cat >>confdefs.h <<_ACEOF
35165 #define HAVE_VARIADIC_MACROS_GCC 1
35171 { echo "$as_me:$LINENO: checking for size_t" >&5
35172 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
35173 if test "${ac_cv_type_size_t+set}" = set; then
35174 echo $ECHO_N "(cached) $ECHO_C" >&6
35176 cat >conftest.$ac_ext <<_ACEOF
35179 cat confdefs.h >>conftest.$ac_ext
35180 cat >>conftest.$ac_ext <<_ACEOF
35181 /* end confdefs.h. */
35182 $ac_includes_default
35183 typedef size_t ac__type_new_;
35187 if ((ac__type_new_ *) 0)
35189 if (sizeof (ac__type_new_))
35195 rm -f conftest.$ac_objext
35196 if { (ac_try="$ac_compile"
35197 case "(($ac_try" in
35198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35199 *) ac_try_echo
=$ac_try;;
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202 (eval "$ac_compile") 2>conftest.er1
35204 grep -v '^ *+' conftest.er1
>conftest.err
35206 cat conftest.err
>&5
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); } && {
35209 test -z "$ac_c_werror_flag" ||
35210 test ! -s conftest.err
35211 } && test -s conftest.
$ac_objext; then
35212 ac_cv_type_size_t
=yes
35214 echo "$as_me: failed program was:" >&5
35215 sed 's/^/| /' conftest.
$ac_ext >&5
35217 ac_cv_type_size_t
=no
35220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35222 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35223 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35224 if test $ac_cv_type_size_t = yes; then
35228 cat >>confdefs.h
<<_ACEOF
35229 #define size_t unsigned int
35234 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
35235 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
35236 if test "${ac_cv_header_time+set}" = set; then
35237 echo $ECHO_N "(cached) $ECHO_C" >&6
35239 cat >conftest.
$ac_ext <<_ACEOF
35242 cat confdefs.h
>>conftest.
$ac_ext
35243 cat >>conftest.
$ac_ext <<_ACEOF
35244 /* end confdefs.h. */
35245 #include <sys/types.h>
35246 #include <sys/time.h>
35252 if ((struct tm *) 0)
35258 rm -f conftest.
$ac_objext
35259 if { (ac_try
="$ac_compile"
35260 case "(($ac_try" in
35261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35262 *) ac_try_echo=$ac_try;;
35264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35265 (eval "$ac_compile") 2>conftest.er1
35267 grep -v '^ *+' conftest.er1 >conftest.err
35269 cat conftest.err >&5
35270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271 (exit $ac_status); } && {
35272 test -z "$ac_c_werror_flag" ||
35273 test ! -s conftest.err
35274 } && test -s conftest.$ac_objext; then
35275 ac_cv_header_time=yes
35277 echo "$as_me: failed program was:" >&5
35278 sed 's/^/| /' conftest.$ac_ext >&5
35280 ac_cv_header_time=no
35283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35285 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
35286 echo "${ECHO_T}$ac_cv_header_time" >&6; }
35287 if test $ac_cv_header_time = yes; then
35289 cat >>confdefs.h <<\_ACEOF
35290 #define TIME_WITH_SYS_TIME 1
35299 for ac_header in sys/types.h sys/time.h time.h
35301 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
35302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35306 echo $ECHO_N "(cached) $ECHO_C" >&6
35308 ac_res=`eval echo '${'$as_ac_Header'}'`
35309 { echo "$as_me:$LINENO: result: $ac_res" >&5
35310 echo "${ECHO_T}$ac_res" >&6; }
35312 # Is the header compilable?
35313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35315 cat >conftest.$ac_ext <<_ACEOF
35318 cat confdefs.h >>conftest.$ac_ext
35319 cat >>conftest.$ac_ext <<_ACEOF
35320 /* end confdefs.h. */
35321 $ac_includes_default
35322 #include <$ac_header>
35324 rm -f conftest.$ac_objext
35325 if { (ac_try="$ac_compile"
35326 case "(($ac_try" in
35327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35328 *) ac_try_echo
=$ac_try;;
35330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35331 (eval "$ac_compile") 2>conftest.er1
35333 grep -v '^ *+' conftest.er1
>conftest.err
35335 cat conftest.err
>&5
35336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); } && {
35338 test -z "$ac_c_werror_flag" ||
35339 test ! -s conftest.err
35340 } && test -s conftest.
$ac_objext; then
35341 ac_header_compiler
=yes
35343 echo "$as_me: failed program was:" >&5
35344 sed 's/^/| /' conftest.
$ac_ext >&5
35346 ac_header_compiler
=no
35349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35351 echo "${ECHO_T}$ac_header_compiler" >&6; }
35353 # Is the header present?
35354 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35356 cat >conftest.
$ac_ext <<_ACEOF
35359 cat confdefs.h
>>conftest.
$ac_ext
35360 cat >>conftest.
$ac_ext <<_ACEOF
35361 /* end confdefs.h. */
35362 #include <$ac_header>
35364 if { (ac_try
="$ac_cpp conftest.$ac_ext"
35365 case "(($ac_try" in
35366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35367 *) ac_try_echo=$ac_try;;
35369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35372 grep -v '^ *+' conftest.er1 >conftest.err
35374 cat conftest.err >&5
35375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376 (exit $ac_status); } >/dev/null && {
35377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35378 test ! -s conftest.err
35380 ac_header_preproc=yes
35382 echo "$as_me: failed program was:" >&5
35383 sed 's/^/| /' conftest.$ac_ext >&5
35385 ac_header_preproc=no
35388 rm -f conftest.err conftest.$ac_ext
35389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35390 echo "${ECHO_T}$ac_header_preproc" >&6; }
35392 # So? What about this header?
35393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35399 ac_header_preproc=yes
35402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35415 ## ------------------------------------------------------------------------ ##
35416 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
35417 ## ------------------------------------------------------------------------ ##
35419 ) | sed "s/^/$as_me: WARNING: /" >&2
35422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35425 echo $ECHO_N "(cached) $ECHO_C" >&6
35427 eval "$as_ac_Header=\$ac_header_preproc"
35429 ac_res=`eval echo '${'$as_ac_Header'}'`
35430 { echo "$as_me:$LINENO: result: $ac_res" >&5
35431 echo "${ECHO_T}$ac_res" >&6; }
35434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35435 cat >>confdefs.h <<_ACEOF
35436 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
35443 { echo "$as_me:$LINENO: checking for struct timeval" >&5
35444 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
35445 if test "${ac_cv_struct_timeval+set}" = set; then
35446 echo $ECHO_N "(cached) $ECHO_C" >&6
35449 cat >conftest.$ac_ext <<_ACEOF
35453 cat confdefs.h >>conftest.$ac_ext
35454 cat >>conftest.$ac_ext <<_ACEOF
35455 /* end confdefs.h. */
35458 #ifdef HAVE_WINDOWS_H
35459 #ifndef WIN32_LEAN_AND_MEAN
35460 #define WIN32_LEAN_AND_MEAN
35462 #include <windows.h>
35463 #ifdef HAVE_WINSOCK2_H
35464 #include <winsock2.h>
35466 #ifdef HAVE_WINSOCK_H
35467 #include <winsock.h>
35471 #ifdef HAVE_SYS_TYPES_H
35472 #include <sys/types.h>
35474 #ifdef HAVE_SYS_TIME_H
35475 #include <sys/time.h>
35476 #ifdef TIME_WITH_SYS_TIME
35498 rm -f conftest.$ac_objext
35499 if { (ac_try="$ac_compile"
35500 case "(($ac_try" in
35501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35502 *) ac_try_echo
=$ac_try;;
35504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35505 (eval "$ac_compile") 2>conftest.er1
35507 grep -v '^ *+' conftest.er1
>conftest.err
35509 cat conftest.err
>&5
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); } && {
35512 test -z "$ac_c_werror_flag" ||
35513 test ! -s conftest.err
35514 } && test -s conftest.
$ac_objext; then
35516 ac_cv_struct_timeval
="yes"
35519 echo "$as_me: failed program was:" >&5
35520 sed 's/^/| /' conftest.
$ac_ext >&5
35523 ac_cv_struct_timeval
="no"
35527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35530 { echo "$as_me:$LINENO: result: $ac_cv_struct_timeval" >&5
35531 echo "${ECHO_T}$ac_cv_struct_timeval" >&6; }
35532 case "$ac_cv_struct_timeval" in
35535 cat >>confdefs.h
<<_ACEOF
35536 #define HAVE_STRUCT_TIMEVAL 1
35544 if test "x$cross_compiling" != xyes
; then
35546 { echo "$as_me:$LINENO: checking run-time libs availability" >&5
35547 echo $ECHO_N "checking run-time libs availability... $ECHO_C" >&6; }
35548 if test "$cross_compiling" = yes; then
35549 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35550 See \`config.log' for more details." >&5
35551 echo "$as_me: error: cannot run test program while cross compiling
35552 See \`config.log' for more details." >&2;}
35553 { (exit 1); exit 1; }; }
35555 cat >conftest.
$ac_ext <<_ACEOF
35558 cat confdefs.h
>>conftest.
$ac_ext
35559 cat >>conftest.
$ac_ext <<_ACEOF
35560 /* end confdefs.h. */
35568 rm -f conftest
$ac_exeext
35569 if { (ac_try
="$ac_link"
35570 case "(($ac_try" in
35571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35572 *) ac_try_echo=$ac_try;;
35574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35575 (eval "$ac_link") 2>&5
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35579 { (case "(($ac_try" in
35580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35581 *) ac_try_echo
=$ac_try;;
35583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35584 (eval "$ac_try") 2>&5
35586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); }; }; then
35588 { echo "$as_me:$LINENO: result: fine" >&5
35589 echo "${ECHO_T}fine" >&6; }
35591 echo "$as_me: program exited with status $ac_status" >&5
35592 echo "$as_me: failed program was:" >&5
35593 sed 's/^/| /' conftest.
$ac_ext >&5
35595 ( exit $ac_status )
35596 { echo "$as_me:$LINENO: result: failed" >&5
35597 echo "${ECHO_T}failed" >&6; }
35598 { { echo "$as_me:$LINENO: error: one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" >&5
35599 echo "$as_me: error: one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" >&2;}
35600 { (exit 1); exit 1; }; }
35603 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
35611 { echo "$as_me:$LINENO: checking for size_t" >&5
35612 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
35613 if test "${ac_cv_type_size_t+set}" = set; then
35614 echo $ECHO_N "(cached) $ECHO_C" >&6
35616 cat >conftest.
$ac_ext <<_ACEOF
35619 cat confdefs.h
>>conftest.
$ac_ext
35620 cat >>conftest.
$ac_ext <<_ACEOF
35621 /* end confdefs.h. */
35622 $ac_includes_default
35623 typedef size_t ac__type_new_;
35627 if ((ac__type_new_ *) 0)
35629 if (sizeof (ac__type_new_))
35635 rm -f conftest.
$ac_objext
35636 if { (ac_try
="$ac_compile"
35637 case "(($ac_try" in
35638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35639 *) ac_try_echo=$ac_try;;
35641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35642 (eval "$ac_compile") 2>conftest.er1
35644 grep -v '^ *+' conftest.er1 >conftest.err
35646 cat conftest.err >&5
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } && {
35649 test -z "$ac_c_werror_flag" ||
35650 test ! -s conftest.err
35651 } && test -s conftest.$ac_objext; then
35652 ac_cv_type_size_t=yes
35654 echo "$as_me: failed program was:" >&5
35655 sed 's/^/| /' conftest.$ac_ext >&5
35657 ac_cv_type_size_t=no
35660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35662 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35663 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35665 # The cast to long int works around a bug in the HP C Compiler
35666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35667 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
35668 # This bug is HP SR number 8606223364.
35669 { echo "$as_me:$LINENO: checking size of size_t" >&5
35670 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
35671 if test "${ac_cv_sizeof_size_t+set}" = set; then
35672 echo $ECHO_N "(cached) $ECHO_C" >&6
35674 if test "$cross_compiling" = yes; then
35675 # Depending upon the size, compute the lo and hi bounds.
35676 cat >conftest.$ac_ext <<_ACEOF
35679 cat confdefs.h >>conftest.$ac_ext
35680 cat >>conftest.$ac_ext <<_ACEOF
35681 /* end confdefs.h. */
35682 $ac_includes_default
35683 typedef size_t ac__type_sizeof_;
35687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35694 rm -f conftest.$ac_objext
35695 if { (ac_try="$ac_compile"
35696 case "(($ac_try" in
35697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35698 *) ac_try_echo=$ac_try;;
35700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35701 (eval "$ac_compile") 2>conftest.er1
35703 grep -v '^
*+' conftest.er1 >conftest.err
35705 cat conftest.err >&5
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); } && {
35708 test -z "$ac_c_werror_flag" ||
35709 test ! -s conftest.err
35710 } && test -s conftest.$ac_objext; then
35713 cat >conftest.$ac_ext <<_ACEOF
35716 cat confdefs.h >>conftest.$ac_ext
35717 cat >>conftest.$ac_ext <<_ACEOF
35718 /* end confdefs.h. */
35719 $ac_includes_default
35720 typedef size_t ac__type_sizeof_;
35724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35731 rm -f conftest.$ac_objext
35732 if { (ac_try="$ac_compile"
35733 case "(($ac_try" in
35734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35735 *) ac_try_echo=$ac_try;;
35737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35738 (eval "$ac_compile") 2>conftest.er1
35740 grep -v '^
*+' conftest.er1 >conftest.err
35742 cat conftest.err >&5
35743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744 (exit $ac_status); } && {
35745 test -z "$ac_c_werror_flag" ||
35746 test ! -s conftest.err
35747 } && test -s conftest.$ac_objext; then
35748 ac_hi=$ac_mid; break
35750 echo "$as_me: failed program was:" >&5
35751 sed 's
/^
/|
/' conftest.$ac_ext >&5
35753 ac_lo=`expr $ac_mid + 1`
35754 if test $ac_lo -le $ac_mid; then
35758 ac_mid=`expr 2 '*' $ac_mid + 1`
35761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35764 echo "$as_me: failed program was:" >&5
35765 sed 's
/^
/|
/' conftest.$ac_ext >&5
35767 cat >conftest.$ac_ext <<_ACEOF
35770 cat confdefs.h >>conftest.$ac_ext
35771 cat >>conftest.$ac_ext <<_ACEOF
35772 /* end confdefs.h. */
35773 $ac_includes_default
35774 typedef size_t ac__type_sizeof_;
35778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35785 rm -f conftest.$ac_objext
35786 if { (ac_try="$ac_compile"
35787 case "(($ac_try" in
35788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35789 *) ac_try_echo=$ac_try;;
35791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35792 (eval "$ac_compile") 2>conftest.er1
35794 grep -v '^
*+' conftest.er1 >conftest.err
35796 cat conftest.err >&5
35797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35798 (exit $ac_status); } && {
35799 test -z "$ac_c_werror_flag" ||
35800 test ! -s conftest.err
35801 } && test -s conftest.$ac_objext; then
35804 cat >conftest.$ac_ext <<_ACEOF
35807 cat confdefs.h >>conftest.$ac_ext
35808 cat >>conftest.$ac_ext <<_ACEOF
35809 /* end confdefs.h. */
35810 $ac_includes_default
35811 typedef size_t ac__type_sizeof_;
35815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35822 rm -f conftest.$ac_objext
35823 if { (ac_try="$ac_compile"
35824 case "(($ac_try" in
35825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35826 *) ac_try_echo=$ac_try;;
35828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35829 (eval "$ac_compile") 2>conftest.er1
35831 grep -v '^
*+' conftest.er1 >conftest.err
35833 cat conftest.err >&5
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); } && {
35836 test -z "$ac_c_werror_flag" ||
35837 test ! -s conftest.err
35838 } && test -s conftest.$ac_objext; then
35839 ac_lo=$ac_mid; break
35841 echo "$as_me: failed program was:" >&5
35842 sed 's
/^
/|
/' conftest.$ac_ext >&5
35844 ac_hi=`expr '(' $ac_mid ')' - 1`
35845 if test $ac_mid -le $ac_hi; then
35849 ac_mid=`expr 2 '*' $ac_mid`
35852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35855 echo "$as_me: failed program was:" >&5
35856 sed 's
/^
/|
/' conftest.$ac_ext >&5
35861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35865 # Binary search between lo and hi bounds.
35866 while test "x$ac_lo" != "x$ac_hi"; do
35867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35868 cat >conftest.$ac_ext <<_ACEOF
35871 cat confdefs.h >>conftest.$ac_ext
35872 cat >>conftest.$ac_ext <<_ACEOF
35873 /* end confdefs.h. */
35874 $ac_includes_default
35875 typedef size_t ac__type_sizeof_;
35879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35886 rm -f conftest.$ac_objext
35887 if { (ac_try="$ac_compile"
35888 case "(($ac_try" in
35889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35890 *) ac_try_echo=$ac_try;;
35892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35893 (eval "$ac_compile") 2>conftest.er1
35895 grep -v '^
*+' conftest.er1 >conftest.err
35897 cat conftest.err >&5
35898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899 (exit $ac_status); } && {
35900 test -z "$ac_c_werror_flag" ||
35901 test ! -s conftest.err
35902 } && test -s conftest.$ac_objext; then
35905 echo "$as_me: failed program was:" >&5
35906 sed 's
/^
/|
/' conftest.$ac_ext >&5
35908 ac_lo=`expr '(' $ac_mid ')' + 1`
35911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35914 ?*) ac_cv_sizeof_size_t=$ac_lo;;
35915 '') if test "$ac_cv_type_size_t" = yes; then
35916 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
35917 See \`config.log' for more details.
" >&5
35918 echo "$as_me: error
: cannot compute sizeof
(size_t
)
35919 See \
`config.log' for more details." >&2;}
35920 { (exit 77); exit 77; }; }
35922 ac_cv_sizeof_size_t=0
35926 cat >conftest.$ac_ext <<_ACEOF
35929 cat confdefs.h >>conftest.$ac_ext
35930 cat >>conftest.$ac_ext <<_ACEOF
35931 /* end confdefs.h. */
35932 $ac_includes_default
35933 typedef size_t ac__type_sizeof_;
35934 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35935 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35937 #include <stdlib.h>
35942 FILE *f = fopen ("conftest.val", "w");
35945 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35947 long int i = longval ();
35948 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35950 fprintf (f, "%ld\n", i);
35954 unsigned long int i = ulongval ();
35955 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35957 fprintf (f, "%lu\n", i);
35959 return ferror (f) || fclose (f) != 0;
35965 rm -f conftest$ac_exeext
35966 if { (ac_try="$ac_link"
35967 case "(($ac_try" in
35968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
35969 *) ac_try_echo
=$ac_try;;
35971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35972 (eval "$ac_link") 2>&5
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
35976 { (case "(($ac_try" in
35977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
35978 *) ac_try_echo=$ac_try;;
35980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35981 (eval "$ac_try") 2>&5
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); }; }; then
35985 ac_cv_sizeof_size_t=`cat conftest.val
`
35987 echo "$as_me: program exited with status $ac_status" >&5
35988 echo "$as_me: failed program was:" >&5
35989 sed 's/^/| /' conftest.$ac_ext >&5
35991 ( exit $ac_status )
35992 if test "$ac_cv_type_size_t" = yes; then
35993 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
35994 See \`config.log
' for more details." >&5
35995 echo "$as_me: error: cannot compute sizeof (size_t)
35996 See \`config.log' for more details.
" >&2;}
35997 { (exit 77); exit 77; }; }
35999 ac_cv_sizeof_size_t=0
36002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36006 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_size_t" >&5
36007 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
36011 cat >>confdefs.h <<_ACEOF
36012 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
36016 { echo "$as_me:$LINENO: checking
for int
" >&5
36017 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
36018 if test "${ac_cv_type_int+set}" = set; then
36019 echo $ECHO_N "(cached
) $ECHO_C" >&6
36021 cat >conftest.$ac_ext <<_ACEOF
36024 cat confdefs.h >>conftest.$ac_ext
36025 cat >>conftest.$ac_ext <<_ACEOF
36026 /* end confdefs.h. */
36027 $ac_includes_default
36028 typedef int ac__type_new_;
36032 if ((ac__type_new_ *) 0)
36034 if (sizeof (ac__type_new_))
36040 rm -f conftest.$ac_objext
36041 if { (ac_try="$ac_compile"
36042 case "(($ac_try" in
36043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36044 *) ac_try_echo=$ac_try;;
36046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36047 (eval "$ac_compile") 2>conftest.er1
36049 grep -v '^ *+' conftest.er1 >conftest.err
36051 cat conftest.err >&5
36052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36053 (exit $ac_status); } && {
36054 test -z "$ac_c_werror_flag" ||
36055 test ! -s conftest.err
36056 } && test -s conftest.$ac_objext; then
36059 echo "$as_me: failed program was
:" >&5
36060 sed 's/^/| /' conftest.$ac_ext >&5
36065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36067 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
36068 echo "${ECHO_T}$ac_cv_type_int" >&6; }
36070 # The cast to long int works around a bug in the HP C Compiler
36071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36073 # This bug is HP SR number 8606223364.
36074 { echo "$as_me:$LINENO: checking size of int
" >&5
36075 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
36076 if test "${ac_cv_sizeof_int+set}" = set; then
36077 echo $ECHO_N "(cached
) $ECHO_C" >&6
36079 if test "$cross_compiling" = yes; then
36080 # Depending upon the size, compute the lo and hi bounds.
36081 cat >conftest.$ac_ext <<_ACEOF
36084 cat confdefs.h >>conftest.$ac_ext
36085 cat >>conftest.$ac_ext <<_ACEOF
36086 /* end confdefs.h. */
36087 $ac_includes_default
36088 typedef int ac__type_sizeof_;
36092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36099 rm -f conftest.$ac_objext
36100 if { (ac_try="$ac_compile"
36101 case "(($ac_try" in
36102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36103 *) ac_try_echo=$ac_try;;
36105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36106 (eval "$ac_compile") 2>conftest.er1
36108 grep -v '^ *+' conftest.er1 >conftest.err
36110 cat conftest.err >&5
36111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36112 (exit $ac_status); } && {
36113 test -z "$ac_c_werror_flag" ||
36114 test ! -s conftest.err
36115 } && test -s conftest.$ac_objext; then
36118 cat >conftest.$ac_ext <<_ACEOF
36121 cat confdefs.h >>conftest.$ac_ext
36122 cat >>conftest.$ac_ext <<_ACEOF
36123 /* end confdefs.h. */
36124 $ac_includes_default
36125 typedef int ac__type_sizeof_;
36129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36136 rm -f conftest.$ac_objext
36137 if { (ac_try="$ac_compile"
36138 case "(($ac_try" in
36139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36140 *) ac_try_echo=$ac_try;;
36142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36143 (eval "$ac_compile") 2>conftest.er1
36145 grep -v '^ *+' conftest.er1 >conftest.err
36147 cat conftest.err >&5
36148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36149 (exit $ac_status); } && {
36150 test -z "$ac_c_werror_flag" ||
36151 test ! -s conftest.err
36152 } && test -s conftest.$ac_objext; then
36153 ac_hi=$ac_mid; break
36155 echo "$as_me: failed program was
:" >&5
36156 sed 's/^/| /' conftest.$ac_ext >&5
36158 ac_lo=`expr $ac_mid + 1`
36159 if test $ac_lo -le $ac_mid; then
36163 ac_mid=`expr 2 '*' $ac_mid + 1`
36166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36169 echo "$as_me: failed program was
:" >&5
36170 sed 's/^/| /' conftest.$ac_ext >&5
36172 cat >conftest.$ac_ext <<_ACEOF
36175 cat confdefs.h >>conftest.$ac_ext
36176 cat >>conftest.$ac_ext <<_ACEOF
36177 /* end confdefs.h. */
36178 $ac_includes_default
36179 typedef int ac__type_sizeof_;
36183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36190 rm -f conftest.$ac_objext
36191 if { (ac_try="$ac_compile"
36192 case "(($ac_try" in
36193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36194 *) ac_try_echo=$ac_try;;
36196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36197 (eval "$ac_compile") 2>conftest.er1
36199 grep -v '^ *+' conftest.er1 >conftest.err
36201 cat conftest.err >&5
36202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36203 (exit $ac_status); } && {
36204 test -z "$ac_c_werror_flag" ||
36205 test ! -s conftest.err
36206 } && test -s conftest.$ac_objext; then
36209 cat >conftest.$ac_ext <<_ACEOF
36212 cat confdefs.h >>conftest.$ac_ext
36213 cat >>conftest.$ac_ext <<_ACEOF
36214 /* end confdefs.h. */
36215 $ac_includes_default
36216 typedef int ac__type_sizeof_;
36220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36227 rm -f conftest.$ac_objext
36228 if { (ac_try="$ac_compile"
36229 case "(($ac_try" in
36230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36231 *) ac_try_echo=$ac_try;;
36233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36234 (eval "$ac_compile") 2>conftest.er1
36236 grep -v '^ *+' conftest.er1 >conftest.err
36238 cat conftest.err >&5
36239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36240 (exit $ac_status); } && {
36241 test -z "$ac_c_werror_flag" ||
36242 test ! -s conftest.err
36243 } && test -s conftest.$ac_objext; then
36244 ac_lo=$ac_mid; break
36246 echo "$as_me: failed program was
:" >&5
36247 sed 's/^/| /' conftest.$ac_ext >&5
36249 ac_hi=`expr '(' $ac_mid ')' - 1`
36250 if test $ac_mid -le $ac_hi; then
36254 ac_mid=`expr 2 '*' $ac_mid`
36257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36260 echo "$as_me: failed program was
:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36270 # Binary search between lo and hi bounds.
36271 while test "x
$ac_lo" != "x
$ac_hi"; do
36272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36273 cat >conftest.$ac_ext <<_ACEOF
36276 cat confdefs.h >>conftest.$ac_ext
36277 cat >>conftest.$ac_ext <<_ACEOF
36278 /* end confdefs.h. */
36279 $ac_includes_default
36280 typedef int ac__type_sizeof_;
36284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36291 rm -f conftest.$ac_objext
36292 if { (ac_try="$ac_compile"
36293 case "(($ac_try" in
36294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36295 *) ac_try_echo=$ac_try;;
36297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36298 (eval "$ac_compile") 2>conftest.er1
36300 grep -v '^ *+' conftest.er1 >conftest.err
36302 cat conftest.err >&5
36303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36304 (exit $ac_status); } && {
36305 test -z "$ac_c_werror_flag" ||
36306 test ! -s conftest.err
36307 } && test -s conftest.$ac_objext; then
36310 echo "$as_me: failed program was
:" >&5
36311 sed 's/^/| /' conftest.$ac_ext >&5
36313 ac_lo=`expr '(' $ac_mid ')' + 1`
36316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36319 ?*) ac_cv_sizeof_int=$ac_lo;;
36320 '') if test "$ac_cv_type_int" = yes; then
36321 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
36322 See \
`config.log' for more details." >&5
36323 echo "$as_me: error: cannot compute sizeof (int)
36324 See \`config.log
' for more details." >&2;}
36325 { (exit 77); exit 77; }; }
36331 cat >conftest.$ac_ext <<_ACEOF
36334 cat confdefs.h >>conftest.$ac_ext
36335 cat >>conftest.$ac_ext <<_ACEOF
36336 /* end confdefs.h. */
36337 $ac_includes_default
36338 typedef int ac__type_sizeof_;
36339 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36340 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36342 #include <stdlib.h>
36347 FILE *f = fopen ("conftest.val", "w");
36350 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36352 long int i = longval ();
36353 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36355 fprintf (f, "%ld\n", i);
36359 unsigned long int i = ulongval ();
36360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36362 fprintf (f, "%lu\n", i);
36364 return ferror (f) || fclose (f) != 0;
36370 rm -f conftest$ac_exeext
36371 if { (ac_try="$ac_link"
36372 case "(($ac_try" in
36373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36374 *) ac_try_echo=$ac_try;;
36376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36377 (eval "$ac_link") 2>&5
36379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
36381 { (case "(($ac_try" in
36382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36383 *) ac_try_echo=$ac_try;;
36385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36386 (eval "$ac_try") 2>&5
36388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389 (exit $ac_status); }; }; then
36390 ac_cv_sizeof_int=`cat conftest.val`
36392 echo "$as_me: program exited with status $ac_status" >&5
36393 echo "$as_me: failed program was:" >&5
36394 sed 's
/^
/|
/' conftest.$ac_ext >&5
36396 ( exit $ac_status )
36397 if test "$ac_cv_type_int" = yes; then
36398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36399 See \`config.log' for more details.
" >&5
36400 echo "$as_me: error
: cannot compute sizeof
(int
)
36401 See \
`config.log' for more details." >&2;}
36402 { (exit 77); exit 77; }; }
36407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36411 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36412 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36416 cat >>confdefs.h <<_ACEOF
36417 #define SIZEOF_INT $ac_cv_sizeof_int
36421 { echo "$as_me:$LINENO: checking for long" >&5
36422 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
36423 if test "${ac_cv_type_long+set}" = set; then
36424 echo $ECHO_N "(cached) $ECHO_C" >&6
36426 cat >conftest.$ac_ext <<_ACEOF
36429 cat confdefs.h >>conftest.$ac_ext
36430 cat >>conftest.$ac_ext <<_ACEOF
36431 /* end confdefs.h. */
36432 $ac_includes_default
36433 typedef long ac__type_new_;
36437 if ((ac__type_new_ *) 0)
36439 if (sizeof (ac__type_new_))
36445 rm -f conftest.$ac_objext
36446 if { (ac_try="$ac_compile"
36447 case "(($ac_try" in
36448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36449 *) ac_try_echo
=$ac_try;;
36451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36452 (eval "$ac_compile") 2>conftest.er1
36454 grep -v '^ *+' conftest.er1
>conftest.err
36456 cat conftest.err
>&5
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); } && {
36459 test -z "$ac_c_werror_flag" ||
36460 test ! -s conftest.err
36461 } && test -s conftest.
$ac_objext; then
36462 ac_cv_type_long
=yes
36464 echo "$as_me: failed program was:" >&5
36465 sed 's/^/| /' conftest.
$ac_ext >&5
36470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36472 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36473 echo "${ECHO_T}$ac_cv_type_long" >&6; }
36475 # The cast to long int works around a bug in the HP C Compiler
36476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36478 # This bug is HP SR number 8606223364.
36479 { echo "$as_me:$LINENO: checking size of long" >&5
36480 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
36481 if test "${ac_cv_sizeof_long+set}" = set; then
36482 echo $ECHO_N "(cached) $ECHO_C" >&6
36484 if test "$cross_compiling" = yes; then
36485 # Depending upon the size, compute the lo and hi bounds.
36486 cat >conftest.
$ac_ext <<_ACEOF
36489 cat confdefs.h
>>conftest.
$ac_ext
36490 cat >>conftest.
$ac_ext <<_ACEOF
36491 /* end confdefs.h. */
36492 $ac_includes_default
36493 typedef long ac__type_sizeof_;
36497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36504 rm -f conftest.
$ac_objext
36505 if { (ac_try
="$ac_compile"
36506 case "(($ac_try" in
36507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36508 *) ac_try_echo=$ac_try;;
36510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36511 (eval "$ac_compile") 2>conftest.er1
36513 grep -v '^ *+' conftest.er1 >conftest.err
36515 cat conftest.err >&5
36516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517 (exit $ac_status); } && {
36518 test -z "$ac_c_werror_flag" ||
36519 test ! -s conftest.err
36520 } && test -s conftest.$ac_objext; then
36523 cat >conftest.$ac_ext <<_ACEOF
36526 cat confdefs.h >>conftest.$ac_ext
36527 cat >>conftest.$ac_ext <<_ACEOF
36528 /* end confdefs.h. */
36529 $ac_includes_default
36530 typedef long ac__type_sizeof_;
36534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36541 rm -f conftest.$ac_objext
36542 if { (ac_try="$ac_compile"
36543 case "(($ac_try" in
36544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36545 *) ac_try_echo
=$ac_try;;
36547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36548 (eval "$ac_compile") 2>conftest.er1
36550 grep -v '^ *+' conftest.er1
>conftest.err
36552 cat conftest.err
>&5
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); } && {
36555 test -z "$ac_c_werror_flag" ||
36556 test ! -s conftest.err
36557 } && test -s conftest.
$ac_objext; then
36558 ac_hi
=$ac_mid; break
36560 echo "$as_me: failed program was:" >&5
36561 sed 's/^/| /' conftest.
$ac_ext >&5
36563 ac_lo
=`expr $ac_mid + 1`
36564 if test $ac_lo -le $ac_mid; then
36568 ac_mid
=`expr 2 '*' $ac_mid + 1`
36571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36574 echo "$as_me: failed program was:" >&5
36575 sed 's/^/| /' conftest.
$ac_ext >&5
36577 cat >conftest.
$ac_ext <<_ACEOF
36580 cat confdefs.h
>>conftest.
$ac_ext
36581 cat >>conftest.
$ac_ext <<_ACEOF
36582 /* end confdefs.h. */
36583 $ac_includes_default
36584 typedef long ac__type_sizeof_;
36588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36595 rm -f conftest.
$ac_objext
36596 if { (ac_try
="$ac_compile"
36597 case "(($ac_try" in
36598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36599 *) ac_try_echo=$ac_try;;
36601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36602 (eval "$ac_compile") 2>conftest.er1
36604 grep -v '^ *+' conftest.er1 >conftest.err
36606 cat conftest.err >&5
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); } && {
36609 test -z "$ac_c_werror_flag" ||
36610 test ! -s conftest.err
36611 } && test -s conftest.$ac_objext; then
36614 cat >conftest.$ac_ext <<_ACEOF
36617 cat confdefs.h >>conftest.$ac_ext
36618 cat >>conftest.$ac_ext <<_ACEOF
36619 /* end confdefs.h. */
36620 $ac_includes_default
36621 typedef long ac__type_sizeof_;
36625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36632 rm -f conftest.$ac_objext
36633 if { (ac_try="$ac_compile"
36634 case "(($ac_try" in
36635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36636 *) ac_try_echo
=$ac_try;;
36638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36639 (eval "$ac_compile") 2>conftest.er1
36641 grep -v '^ *+' conftest.er1
>conftest.err
36643 cat conftest.err
>&5
36644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645 (exit $ac_status); } && {
36646 test -z "$ac_c_werror_flag" ||
36647 test ! -s conftest.err
36648 } && test -s conftest.
$ac_objext; then
36649 ac_lo
=$ac_mid; break
36651 echo "$as_me: failed program was:" >&5
36652 sed 's/^/| /' conftest.
$ac_ext >&5
36654 ac_hi
=`expr '(' $ac_mid ')' - 1`
36655 if test $ac_mid -le $ac_hi; then
36659 ac_mid
=`expr 2 '*' $ac_mid`
36662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36665 echo "$as_me: failed program was:" >&5
36666 sed 's/^/| /' conftest.
$ac_ext >&5
36671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36675 # Binary search between lo and hi bounds.
36676 while test "x$ac_lo" != "x$ac_hi"; do
36677 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36678 cat >conftest.
$ac_ext <<_ACEOF
36681 cat confdefs.h
>>conftest.
$ac_ext
36682 cat >>conftest.
$ac_ext <<_ACEOF
36683 /* end confdefs.h. */
36684 $ac_includes_default
36685 typedef long ac__type_sizeof_;
36689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36696 rm -f conftest.
$ac_objext
36697 if { (ac_try
="$ac_compile"
36698 case "(($ac_try" in
36699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36700 *) ac_try_echo=$ac_try;;
36702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36703 (eval "$ac_compile") 2>conftest.er1
36705 grep -v '^ *+' conftest.er1 >conftest.err
36707 cat conftest.err >&5
36708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709 (exit $ac_status); } && {
36710 test -z "$ac_c_werror_flag" ||
36711 test ! -s conftest.err
36712 } && test -s conftest.$ac_objext; then
36715 echo "$as_me: failed program was:" >&5
36716 sed 's/^/| /' conftest.$ac_ext >&5
36718 ac_lo=`expr '(' $ac_mid ')' + 1`
36721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36724 ?*) ac_cv_sizeof_long=$ac_lo;;
36725 '') if test "$ac_cv_type_long" = yes; then
36726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
36727 See \`config.log
' for more details." >&5
36728 echo "$as_me: error: cannot compute sizeof (long)
36729 See \`config.log' for more details.
" >&2;}
36730 { (exit 77); exit 77; }; }
36732 ac_cv_sizeof_long=0
36736 cat >conftest.$ac_ext <<_ACEOF
36739 cat confdefs.h >>conftest.$ac_ext
36740 cat >>conftest.$ac_ext <<_ACEOF
36741 /* end confdefs.h. */
36742 $ac_includes_default
36743 typedef long ac__type_sizeof_;
36744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36747 #include <stdlib.h>
36752 FILE *f = fopen ("conftest.val
", "w
");
36755 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36757 long int i = longval ();
36758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36760 fprintf (f, "%ld
\n", i);
36764 unsigned long int i = ulongval ();
36765 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36767 fprintf (f, "%lu
\n", i);
36769 return ferror (f) || fclose (f) != 0;
36775 rm -f conftest$ac_exeext
36776 if { (ac_try="$ac_link"
36777 case "(($ac_try" in
36778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36779 *) ac_try_echo=$ac_try;;
36781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36782 (eval "$ac_link") 2>&5
36784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36786 { (case "(($ac_try" in
36787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36788 *) ac_try_echo=$ac_try;;
36790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
36791 (eval "$ac_try") 2>&5
36793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
36794 (exit $ac_status); }; }; then
36795 ac_cv_sizeof_long=`cat conftest.val`
36797 echo "$as_me: program exited with status
$ac_status" >&5
36798 echo "$as_me: failed program was
:" >&5
36799 sed 's/^/| /' conftest.$ac_ext >&5
36801 ( exit $ac_status )
36802 if test "$ac_cv_type_long" = yes; then
36803 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
36804 See \
`config.log' for more details." >&5
36805 echo "$as_me: error: cannot compute sizeof (long)
36806 See \`config.log
' for more details." >&2;}
36807 { (exit 77); exit 77; }; }
36809 ac_cv_sizeof_long=0
36812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36816 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36817 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
36821 cat >>confdefs.h <<_ACEOF
36822 #define SIZEOF_LONG $ac_cv_sizeof_long
36827 if test -z "$ac_cv_sizeof_long" ||
36828 test "$ac_cv_sizeof_long" -eq "0"; then
36829 { { echo "$as_me:$LINENO: error: cannot find out size of long." >&5
36830 echo "$as_me: error: cannot find out size of long." >&2;}
36831 { (exit 1); exit 1; }; }
36834 cat >>confdefs.h <<_EOF
36835 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
36839 { echo "$as_me:$LINENO: checking for time_t" >&5
36840 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
36841 if test "${ac_cv_type_time_t+set}" = set; then
36842 echo $ECHO_N "(cached) $ECHO_C" >&6
36844 cat >conftest.$ac_ext <<_ACEOF
36847 cat confdefs.h >>conftest.$ac_ext
36848 cat >>conftest.$ac_ext <<_ACEOF
36849 /* end confdefs.h. */
36850 $ac_includes_default
36851 typedef time_t ac__type_new_;
36855 if ((ac__type_new_ *) 0)
36857 if (sizeof (ac__type_new_))
36863 rm -f conftest.$ac_objext
36864 if { (ac_try="$ac_compile"
36865 case "(($ac_try" in
36866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36867 *) ac_try_echo=$ac_try;;
36869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36870 (eval "$ac_compile") 2>conftest.er1
36872 grep -v '^
*+' conftest.er1 >conftest.err
36874 cat conftest.err >&5
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); } && {
36877 test -z "$ac_c_werror_flag" ||
36878 test ! -s conftest.err
36879 } && test -s conftest.$ac_objext; then
36880 ac_cv_type_time_t=yes
36882 echo "$as_me: failed program was:" >&5
36883 sed 's
/^
/|
/' conftest.$ac_ext >&5
36885 ac_cv_type_time_t=no
36888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36890 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
36891 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
36893 # The cast to long int works around a bug in the HP C Compiler
36894 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36895 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36896 # This bug is HP SR number 8606223364.
36897 { echo "$as_me:$LINENO: checking size of time_t" >&5
36898 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
36899 if test "${ac_cv_sizeof_time_t+set}" = set; then
36900 echo $ECHO_N "(cached) $ECHO_C" >&6
36902 if test "$cross_compiling" = yes; then
36903 # Depending upon the size, compute the lo and hi bounds.
36904 cat >conftest.
$ac_ext <<_ACEOF
36907 cat confdefs.h
>>conftest.
$ac_ext
36908 cat >>conftest.
$ac_ext <<_ACEOF
36909 /* end confdefs.h. */
36910 $ac_includes_default
36911 typedef time_t ac__type_sizeof_;
36915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36922 rm -f conftest.
$ac_objext
36923 if { (ac_try
="$ac_compile"
36924 case "(($ac_try" in
36925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
36926 *) ac_try_echo=$ac_try;;
36928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36929 (eval "$ac_compile") 2>conftest.er1
36931 grep -v '^ *+' conftest.er1 >conftest.err
36933 cat conftest.err >&5
36934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36935 (exit $ac_status); } && {
36936 test -z "$ac_c_werror_flag" ||
36937 test ! -s conftest.err
36938 } && test -s conftest.$ac_objext; then
36941 cat >conftest.$ac_ext <<_ACEOF
36944 cat confdefs.h >>conftest.$ac_ext
36945 cat >>conftest.$ac_ext <<_ACEOF
36946 /* end confdefs.h. */
36947 $ac_includes_default
36948 typedef time_t ac__type_sizeof_;
36952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36959 rm -f conftest.$ac_objext
36960 if { (ac_try="$ac_compile"
36961 case "(($ac_try" in
36962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
36963 *) ac_try_echo
=$ac_try;;
36965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36966 (eval "$ac_compile") 2>conftest.er1
36968 grep -v '^ *+' conftest.er1
>conftest.err
36970 cat conftest.err
>&5
36971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972 (exit $ac_status); } && {
36973 test -z "$ac_c_werror_flag" ||
36974 test ! -s conftest.err
36975 } && test -s conftest.
$ac_objext; then
36976 ac_hi
=$ac_mid; break
36978 echo "$as_me: failed program was:" >&5
36979 sed 's/^/| /' conftest.
$ac_ext >&5
36981 ac_lo
=`expr $ac_mid + 1`
36982 if test $ac_lo -le $ac_mid; then
36986 ac_mid
=`expr 2 '*' $ac_mid + 1`
36989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
36992 echo "$as_me: failed program was:" >&5
36993 sed 's/^/| /' conftest.
$ac_ext >&5
36995 cat >conftest.
$ac_ext <<_ACEOF
36998 cat confdefs.h
>>conftest.
$ac_ext
36999 cat >>conftest.
$ac_ext <<_ACEOF
37000 /* end confdefs.h. */
37001 $ac_includes_default
37002 typedef time_t ac__type_sizeof_;
37006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37013 rm -f conftest.
$ac_objext
37014 if { (ac_try
="$ac_compile"
37015 case "(($ac_try" in
37016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37017 *) ac_try_echo=$ac_try;;
37019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37020 (eval "$ac_compile") 2>conftest.er1
37022 grep -v '^ *+' conftest.er1 >conftest.err
37024 cat conftest.err >&5
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); } && {
37027 test -z "$ac_c_werror_flag" ||
37028 test ! -s conftest.err
37029 } && test -s conftest.$ac_objext; then
37032 cat >conftest.$ac_ext <<_ACEOF
37035 cat confdefs.h >>conftest.$ac_ext
37036 cat >>conftest.$ac_ext <<_ACEOF
37037 /* end confdefs.h. */
37038 $ac_includes_default
37039 typedef time_t ac__type_sizeof_;
37043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37050 rm -f conftest.$ac_objext
37051 if { (ac_try="$ac_compile"
37052 case "(($ac_try" in
37053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37054 *) ac_try_echo
=$ac_try;;
37056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37057 (eval "$ac_compile") 2>conftest.er1
37059 grep -v '^ *+' conftest.er1
>conftest.err
37061 cat conftest.err
>&5
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); } && {
37064 test -z "$ac_c_werror_flag" ||
37065 test ! -s conftest.err
37066 } && test -s conftest.
$ac_objext; then
37067 ac_lo
=$ac_mid; break
37069 echo "$as_me: failed program was:" >&5
37070 sed 's/^/| /' conftest.
$ac_ext >&5
37072 ac_hi
=`expr '(' $ac_mid ')' - 1`
37073 if test $ac_mid -le $ac_hi; then
37077 ac_mid
=`expr 2 '*' $ac_mid`
37080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37083 echo "$as_me: failed program was:" >&5
37084 sed 's/^/| /' conftest.
$ac_ext >&5
37089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37093 # Binary search between lo and hi bounds.
37094 while test "x$ac_lo" != "x$ac_hi"; do
37095 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37096 cat >conftest.
$ac_ext <<_ACEOF
37099 cat confdefs.h
>>conftest.
$ac_ext
37100 cat >>conftest.
$ac_ext <<_ACEOF
37101 /* end confdefs.h. */
37102 $ac_includes_default
37103 typedef time_t ac__type_sizeof_;
37107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37114 rm -f conftest.
$ac_objext
37115 if { (ac_try
="$ac_compile"
37116 case "(($ac_try" in
37117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37118 *) ac_try_echo=$ac_try;;
37120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37121 (eval "$ac_compile") 2>conftest.er1
37123 grep -v '^ *+' conftest.er1 >conftest.err
37125 cat conftest.err >&5
37126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127 (exit $ac_status); } && {
37128 test -z "$ac_c_werror_flag" ||
37129 test ! -s conftest.err
37130 } && test -s conftest.$ac_objext; then
37133 echo "$as_me: failed program was:" >&5
37134 sed 's/^/| /' conftest.$ac_ext >&5
37136 ac_lo=`expr '(' $ac_mid ')' + 1`
37139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37142 ?*) ac_cv_sizeof_time_t=$ac_lo;;
37143 '') if test "$ac_cv_type_time_t" = yes; then
37144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
37145 See \`config.log
' for more details." >&5
37146 echo "$as_me: error: cannot compute sizeof (time_t)
37147 See \`config.log' for more details.
" >&2;}
37148 { (exit 77); exit 77; }; }
37150 ac_cv_sizeof_time_t=0
37154 cat >conftest.$ac_ext <<_ACEOF
37157 cat confdefs.h >>conftest.$ac_ext
37158 cat >>conftest.$ac_ext <<_ACEOF
37159 /* end confdefs.h. */
37160 $ac_includes_default
37161 typedef time_t ac__type_sizeof_;
37162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37165 #include <stdlib.h>
37170 FILE *f = fopen ("conftest.val
", "w
");
37173 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37175 long int i = longval ();
37176 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37178 fprintf (f, "%ld
\n", i);
37182 unsigned long int i = ulongval ();
37183 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37185 fprintf (f, "%lu
\n", i);
37187 return ferror (f) || fclose (f) != 0;
37193 rm -f conftest$ac_exeext
37194 if { (ac_try="$ac_link"
37195 case "(($ac_try" in
37196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37197 *) ac_try_echo=$ac_try;;
37199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
37200 (eval "$ac_link") 2>&5
37202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37204 { (case "(($ac_try" in
37205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37206 *) ac_try_echo=$ac_try;;
37208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
37209 (eval "$ac_try") 2>&5
37211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37212 (exit $ac_status); }; }; then
37213 ac_cv_sizeof_time_t=`cat conftest.val`
37215 echo "$as_me: program exited with status
$ac_status" >&5
37216 echo "$as_me: failed program was
:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37219 ( exit $ac_status )
37220 if test "$ac_cv_type_time_t" = yes; then
37221 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(time_t
)
37222 See \
`config.log' for more details." >&5
37223 echo "$as_me: error: cannot compute sizeof (time_t)
37224 See \`config.log
' for more details." >&2;}
37225 { (exit 77); exit 77; }; }
37227 ac_cv_sizeof_time_t=0
37230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37234 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
37235 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
37239 cat >>confdefs.h <<_ACEOF
37240 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
37244 { echo "$as_me:$LINENO: checking for off_t" >&5
37245 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
37246 if test "${ac_cv_type_off_t+set}" = set; then
37247 echo $ECHO_N "(cached) $ECHO_C" >&6
37249 cat >conftest.$ac_ext <<_ACEOF
37252 cat confdefs.h >>conftest.$ac_ext
37253 cat >>conftest.$ac_ext <<_ACEOF
37254 /* end confdefs.h. */
37255 $ac_includes_default
37256 typedef off_t ac__type_new_;
37260 if ((ac__type_new_ *) 0)
37262 if (sizeof (ac__type_new_))
37268 rm -f conftest.$ac_objext
37269 if { (ac_try="$ac_compile"
37270 case "(($ac_try" in
37271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37272 *) ac_try_echo=$ac_try;;
37274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37275 (eval "$ac_compile") 2>conftest.er1
37277 grep -v '^
*+' conftest.er1 >conftest.err
37279 cat conftest.err >&5
37280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281 (exit $ac_status); } && {
37282 test -z "$ac_c_werror_flag" ||
37283 test ! -s conftest.err
37284 } && test -s conftest.$ac_objext; then
37285 ac_cv_type_off_t=yes
37287 echo "$as_me: failed program was:" >&5
37288 sed 's
/^
/|
/' conftest.$ac_ext >&5
37290 ac_cv_type_off_t=no
37293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37295 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37296 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
37298 # The cast to long int works around a bug in the HP C Compiler
37299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37301 # This bug is HP SR number 8606223364.
37302 { echo "$as_me:$LINENO: checking size of off_t" >&5
37303 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
37304 if test "${ac_cv_sizeof_off_t+set}" = set; then
37305 echo $ECHO_N "(cached) $ECHO_C" >&6
37307 if test "$cross_compiling" = yes; then
37308 # Depending upon the size, compute the lo and hi bounds.
37309 cat >conftest.
$ac_ext <<_ACEOF
37312 cat confdefs.h
>>conftest.
$ac_ext
37313 cat >>conftest.
$ac_ext <<_ACEOF
37314 /* end confdefs.h. */
37315 $ac_includes_default
37316 typedef off_t ac__type_sizeof_;
37320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37327 rm -f conftest.
$ac_objext
37328 if { (ac_try
="$ac_compile"
37329 case "(($ac_try" in
37330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37331 *) ac_try_echo=$ac_try;;
37333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37334 (eval "$ac_compile") 2>conftest.er1
37336 grep -v '^ *+' conftest.er1 >conftest.err
37338 cat conftest.err >&5
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); } && {
37341 test -z "$ac_c_werror_flag" ||
37342 test ! -s conftest.err
37343 } && test -s conftest.$ac_objext; then
37346 cat >conftest.$ac_ext <<_ACEOF
37349 cat confdefs.h >>conftest.$ac_ext
37350 cat >>conftest.$ac_ext <<_ACEOF
37351 /* end confdefs.h. */
37352 $ac_includes_default
37353 typedef off_t ac__type_sizeof_;
37357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37364 rm -f conftest.$ac_objext
37365 if { (ac_try="$ac_compile"
37366 case "(($ac_try" in
37367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37368 *) ac_try_echo
=$ac_try;;
37370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37371 (eval "$ac_compile") 2>conftest.er1
37373 grep -v '^ *+' conftest.er1
>conftest.err
37375 cat conftest.err
>&5
37376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377 (exit $ac_status); } && {
37378 test -z "$ac_c_werror_flag" ||
37379 test ! -s conftest.err
37380 } && test -s conftest.
$ac_objext; then
37381 ac_hi
=$ac_mid; break
37383 echo "$as_me: failed program was:" >&5
37384 sed 's/^/| /' conftest.
$ac_ext >&5
37386 ac_lo
=`expr $ac_mid + 1`
37387 if test $ac_lo -le $ac_mid; then
37391 ac_mid
=`expr 2 '*' $ac_mid + 1`
37394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37397 echo "$as_me: failed program was:" >&5
37398 sed 's/^/| /' conftest.
$ac_ext >&5
37400 cat >conftest.
$ac_ext <<_ACEOF
37403 cat confdefs.h
>>conftest.
$ac_ext
37404 cat >>conftest.
$ac_ext <<_ACEOF
37405 /* end confdefs.h. */
37406 $ac_includes_default
37407 typedef off_t ac__type_sizeof_;
37411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37418 rm -f conftest.
$ac_objext
37419 if { (ac_try
="$ac_compile"
37420 case "(($ac_try" in
37421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37422 *) ac_try_echo=$ac_try;;
37424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37425 (eval "$ac_compile") 2>conftest.er1
37427 grep -v '^ *+' conftest.er1 >conftest.err
37429 cat conftest.err >&5
37430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431 (exit $ac_status); } && {
37432 test -z "$ac_c_werror_flag" ||
37433 test ! -s conftest.err
37434 } && test -s conftest.$ac_objext; then
37437 cat >conftest.$ac_ext <<_ACEOF
37440 cat confdefs.h >>conftest.$ac_ext
37441 cat >>conftest.$ac_ext <<_ACEOF
37442 /* end confdefs.h. */
37443 $ac_includes_default
37444 typedef off_t ac__type_sizeof_;
37448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37455 rm -f conftest.$ac_objext
37456 if { (ac_try="$ac_compile"
37457 case "(($ac_try" in
37458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
37459 *) ac_try_echo
=$ac_try;;
37461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37462 (eval "$ac_compile") 2>conftest.er1
37464 grep -v '^ *+' conftest.er1
>conftest.err
37466 cat conftest.err
>&5
37467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468 (exit $ac_status); } && {
37469 test -z "$ac_c_werror_flag" ||
37470 test ! -s conftest.err
37471 } && test -s conftest.
$ac_objext; then
37472 ac_lo
=$ac_mid; break
37474 echo "$as_me: failed program was:" >&5
37475 sed 's/^/| /' conftest.
$ac_ext >&5
37477 ac_hi
=`expr '(' $ac_mid ')' - 1`
37478 if test $ac_mid -le $ac_hi; then
37482 ac_mid
=`expr 2 '*' $ac_mid`
37485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37488 echo "$as_me: failed program was:" >&5
37489 sed 's/^/| /' conftest.
$ac_ext >&5
37494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
37498 # Binary search between lo and hi bounds.
37499 while test "x$ac_lo" != "x$ac_hi"; do
37500 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37501 cat >conftest.
$ac_ext <<_ACEOF
37504 cat confdefs.h
>>conftest.
$ac_ext
37505 cat >>conftest.
$ac_ext <<_ACEOF
37506 /* end confdefs.h. */
37507 $ac_includes_default
37508 typedef off_t ac__type_sizeof_;
37512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37519 rm -f conftest.
$ac_objext
37520 if { (ac_try
="$ac_compile"
37521 case "(($ac_try" in
37522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
37523 *) ac_try_echo=$ac_try;;
37525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37526 (eval "$ac_compile") 2>conftest.er1
37528 grep -v '^ *+' conftest.er1 >conftest.err
37530 cat conftest.err >&5
37531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37532 (exit $ac_status); } && {
37533 test -z "$ac_c_werror_flag" ||
37534 test ! -s conftest.err
37535 } && test -s conftest.$ac_objext; then
37538 echo "$as_me: failed program was:" >&5
37539 sed 's/^/| /' conftest.$ac_ext >&5
37541 ac_lo=`expr '(' $ac_mid ')' + 1`
37544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37547 ?*) ac_cv_sizeof_off_t=$ac_lo;;
37548 '') if test "$ac_cv_type_off_t" = yes; then
37549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
37550 See \`config.log
' for more details." >&5
37551 echo "$as_me: error: cannot compute sizeof (off_t)
37552 See \`config.log' for more details.
" >&2;}
37553 { (exit 77); exit 77; }; }
37555 ac_cv_sizeof_off_t=0
37559 cat >conftest.$ac_ext <<_ACEOF
37562 cat confdefs.h >>conftest.$ac_ext
37563 cat >>conftest.$ac_ext <<_ACEOF
37564 /* end confdefs.h. */
37565 $ac_includes_default
37566 typedef off_t ac__type_sizeof_;
37567 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37568 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37570 #include <stdlib.h>
37575 FILE *f = fopen ("conftest.val
", "w
");
37578 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37580 long int i = longval ();
37581 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37583 fprintf (f, "%ld
\n", i);
37587 unsigned long int i = ulongval ();
37588 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37590 fprintf (f, "%lu
\n", i);
37592 return ferror (f) || fclose (f) != 0;
37598 rm -f conftest$ac_exeext
37599 if { (ac_try="$ac_link"
37600 case "(($ac_try" in
37601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37602 *) ac_try_echo=$ac_try;;
37604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
37605 (eval "$ac_link") 2>&5
37607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37609 { (case "(($ac_try" in
37610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37611 *) ac_try_echo=$ac_try;;
37613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
37614 (eval "$ac_try") 2>&5
37616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
37617 (exit $ac_status); }; }; then
37618 ac_cv_sizeof_off_t=`cat conftest.val`
37620 echo "$as_me: program exited with status
$ac_status" >&5
37621 echo "$as_me: failed program was
:" >&5
37622 sed 's/^/| /' conftest.$ac_ext >&5
37624 ( exit $ac_status )
37625 if test "$ac_cv_type_off_t" = yes; then
37626 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
37627 See \
`config.log' for more details." >&5
37628 echo "$as_me: error: cannot compute sizeof (off_t)
37629 See \`config.log
' for more details." >&2;}
37630 { (exit 77); exit 77; }; }
37632 ac_cv_sizeof_off_t=0
37635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37639 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
37640 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
37644 cat >>confdefs.h <<_ACEOF
37645 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
37651 if test x"$ac_cv_native_windows" != "xyes" &&
37652 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
37653 { echo "$as_me:$LINENO: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
37654 echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
37655 { echo "$as_me:$LINENO: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
37656 echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
37661 { echo "$as_me:$LINENO: checking for long long" >&5
37662 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
37663 if test "${ac_cv_type_long_long+set}" = set; then
37664 echo $ECHO_N "(cached) $ECHO_C" >&6
37666 cat >conftest.$ac_ext <<_ACEOF
37669 cat confdefs.h >>conftest.$ac_ext
37670 cat >>conftest.$ac_ext <<_ACEOF
37671 /* end confdefs.h. */
37672 $ac_includes_default
37673 typedef long long ac__type_new_;
37677 if ((ac__type_new_ *) 0)
37679 if (sizeof (ac__type_new_))
37685 rm -f conftest.$ac_objext
37686 if { (ac_try="$ac_compile"
37687 case "(($ac_try" in
37688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37689 *) ac_try_echo=$ac_try;;
37691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37692 (eval "$ac_compile") 2>conftest.er1
37694 grep -v '^
*+' conftest.er1 >conftest.err
37696 cat conftest.err >&5
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); } && {
37699 test -z "$ac_c_werror_flag" ||
37700 test ! -s conftest.err
37701 } && test -s conftest.$ac_objext; then
37702 ac_cv_type_long_long=yes
37704 echo "$as_me: failed program was:" >&5
37705 sed 's
/^
/|
/' conftest.$ac_ext >&5
37707 ac_cv_type_long_long=no
37710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37712 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37713 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
37714 if test $ac_cv_type_long_long = yes; then
37716 cat >>confdefs.h <<\_ACEOF
37717 #define HAVE_LONGLONG 1
37725 if test "xyes" = "x$longlong"; then
37726 { echo "$as_me:$LINENO: checking if numberLL works" >&5
37727 echo $ECHO_N "checking if numberLL works... $ECHO_C" >&6; }
37728 cat >conftest.$ac_ext <<_ACEOF
37729 long long val = 1000LL;
37731 rm -f conftest.$ac_objext
37732 if { (ac_try="$ac_compile"
37733 case "(($ac_try" in
37734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37735 *) ac_try_echo=$ac_try;;
37737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37738 (eval "$ac_compile") 2>conftest.er1
37740 grep -v '^
*+' conftest.er1 >conftest.err
37742 cat conftest.err >&5
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); } && {
37745 test -z "$ac_c_werror_flag" ||
37746 test ! -s conftest.err
37747 } && test -s conftest.$ac_objext; then
37749 cat >>confdefs.h <<\_ACEOF
37753 { echo "$as_me:$LINENO: result: yes" >&5
37754 echo "${ECHO_T}yes" >&6; }
37756 echo "$as_me: failed program was:" >&5
37757 sed 's
/^
/|
/' conftest.$ac_ext >&5
37759 { echo "$as_me:$LINENO: result: no" >&5
37760 echo "${ECHO_T}no" >&6; }
37764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37768 # check for ssize_t
37769 { echo "$as_me:$LINENO: checking for ssize_t" >&5
37770 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
37771 if test "${ac_cv_type_ssize_t+set}" = set; then
37772 echo $ECHO_N "(cached) $ECHO_C" >&6
37774 cat >conftest.$ac_ext <<_ACEOF
37777 cat confdefs.h >>conftest.$ac_ext
37778 cat >>conftest.$ac_ext <<_ACEOF
37779 /* end confdefs.h. */
37780 $ac_includes_default
37781 typedef ssize_t ac__type_new_;
37785 if ((ac__type_new_ *) 0)
37787 if (sizeof (ac__type_new_))
37793 rm -f conftest.$ac_objext
37794 if { (ac_try="$ac_compile"
37795 case "(($ac_try" in
37796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37797 *) ac_try_echo=$ac_try;;
37799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37800 (eval "$ac_compile") 2>conftest.er1
37802 grep -v '^
*+' conftest.er1 >conftest.err
37804 cat conftest.err >&5
37805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806 (exit $ac_status); } && {
37807 test -z "$ac_c_werror_flag" ||
37808 test ! -s conftest.err
37809 } && test -s conftest.$ac_objext; then
37810 ac_cv_type_ssize_t=yes
37812 echo "$as_me: failed program was:" >&5
37813 sed 's
/^
/|
/' conftest.$ac_ext >&5
37815 ac_cv_type_ssize_t=no
37818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37820 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37821 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
37822 if test $ac_cv_type_ssize_t = yes; then
37826 cat >>confdefs.h <<\_ACEOF
37827 #define ssize_t int
37833 # check for bool type
37834 { echo "$as_me:$LINENO: checking for bool" >&5
37835 echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
37836 if test "${ac_cv_type_bool+set}" = set; then
37837 echo $ECHO_N "(cached) $ECHO_C" >&6
37839 cat >conftest.$ac_ext <<_ACEOF
37842 cat confdefs.h >>conftest.$ac_ext
37843 cat >>conftest.$ac_ext <<_ACEOF
37844 /* end confdefs.h. */
37846 #ifdef HAVE_SYS_TYPES_H
37847 #include <sys/types.h>
37849 #ifdef HAVE_STDBOOL_H
37850 #include <stdbool.h>
37854 typedef bool ac__type_new_;
37858 if ((ac__type_new_ *) 0)
37860 if (sizeof (ac__type_new_))
37866 rm -f conftest.$ac_objext
37867 if { (ac_try="$ac_compile"
37868 case "(($ac_try" in
37869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37870 *) ac_try_echo=$ac_try;;
37872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37873 (eval "$ac_compile") 2>conftest.er1
37875 grep -v '^
*+' conftest.er1 >conftest.err
37877 cat conftest.err >&5
37878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37879 (exit $ac_status); } && {
37880 test -z "$ac_c_werror_flag" ||
37881 test ! -s conftest.err
37882 } && test -s conftest.$ac_objext; then
37883 ac_cv_type_bool=yes
37885 echo "$as_me: failed program was:" >&5
37886 sed 's
/^
/|
/' conftest.$ac_ext >&5
37891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37893 { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
37894 echo "${ECHO_T}$ac_cv_type_bool" >&6; }
37895 if test $ac_cv_type_bool = yes; then
37898 cat >>confdefs.h <<\_ACEOF
37899 #define HAVE_BOOL_T 1
37906 # Check for socklen_t or equivalent
37908 { echo "$as_me:$LINENO: checking for socklen_t" >&5
37909 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
37910 if test "${ac_cv_type_socklen_t+set}" = set; then
37911 echo $ECHO_N "(cached) $ECHO_C" >&6
37913 cat >conftest.$ac_ext <<_ACEOF
37916 cat confdefs.h >>conftest.$ac_ext
37917 cat >>conftest.$ac_ext <<_ACEOF
37918 /* end confdefs.h. */
37921 #ifdef HAVE_WINDOWS_H
37922 #ifndef WIN32_LEAN_AND_MEAN
37923 #define WIN32_LEAN_AND_MEAN
37925 #include <windows.h>
37926 #ifdef HAVE_WINSOCK2_H
37927 #include <winsock2.h>
37928 #ifdef HAVE_WS2TCPIP_H
37929 #include <ws2tcpip.h>
37933 #ifdef HAVE_SYS_TYPES_H
37934 #include <sys/types.h>
37936 #ifdef HAVE_SYS_SOCKET_H
37937 #include <sys/socket.h>
37942 typedef socklen_t ac__type_new_;
37946 if ((ac__type_new_ *) 0)
37948 if (sizeof (ac__type_new_))
37954 rm -f conftest.$ac_objext
37955 if { (ac_try="$ac_compile"
37956 case "(($ac_try" in
37957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37958 *) ac_try_echo=$ac_try;;
37960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37961 (eval "$ac_compile") 2>conftest.er1
37963 grep -v '^
*+' conftest.er1 >conftest.err
37965 cat conftest.err >&5
37966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); } && {
37968 test -z "$ac_c_werror_flag" ||
37969 test ! -s conftest.err
37970 } && test -s conftest.$ac_objext; then
37971 ac_cv_type_socklen_t=yes
37973 echo "$as_me: failed program was:" >&5
37974 sed 's
/^
/|
/' conftest.$ac_ext >&5
37976 ac_cv_type_socklen_t=no
37979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37981 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37982 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
37983 if test $ac_cv_type_socklen_t = yes; then
37987 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
37988 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
37989 if test "${curl_cv_socklen_t_equiv+set}" = set; then
37990 echo $ECHO_N "(cached) $ECHO_C" >&6
37993 curl_cv_socklen_t_equiv="unknown"
37994 for arg1 in 'int
' 'SOCKET
'; do
37995 for arg2 in "struct sockaddr" void; do
37996 for t in int size_t unsigned long "unsigned long"; do
37997 if test "$curl_cv_socklen_t_equiv" = "unknown"; then
37998 cat >conftest.$ac_ext <<_ACEOF
38002 cat confdefs.h >>conftest.$ac_ext
38003 cat >>conftest.$ac_ext <<_ACEOF
38004 /* end confdefs.h. */
38007 #ifdef HAVE_WINDOWS_H
38008 #ifndef WIN32_LEAN_AND_MEAN
38009 #define WIN32_LEAN_AND_MEAN
38011 #include <windows.h>
38012 #ifdef HAVE_WINSOCK2_H
38013 #include <winsock2.h>
38015 #ifdef HAVE_WINSOCK_H
38016 #include <winsock.h>
38019 #define GETPEERNCALLCONV PASCAL
38021 #ifdef HAVE_SYS_TYPES_H
38022 #include <sys/types.h>
38024 #ifdef HAVE_SYS_SOCKET_H
38025 #include <sys/socket.h>
38027 #define GETPEERNCALLCONV
38029 extern int GETPEERNCALLCONV getpeername($arg1, $arg2 *, $t *);
38036 getpeername(0,0,&len);
38043 rm -f conftest.$ac_objext
38044 if { (ac_try="$ac_compile"
38045 case "(($ac_try" in
38046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38047 *) ac_try_echo=$ac_try;;
38049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38050 (eval "$ac_compile") 2>conftest.er1
38052 grep -v '^
*+' conftest.er1 >conftest.err
38054 cat conftest.err >&5
38055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056 (exit $ac_status); } && {
38057 test -z "$ac_c_werror_flag" ||
38058 test ! -s conftest.err
38059 } && test -s conftest.$ac_objext; then
38061 curl_cv_socklen_t_equiv="$t"
38064 echo "$as_me: failed program was:" >&5
38065 sed 's
/^
/|
/' conftest.$ac_ext >&5
38070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38077 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
38078 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
38079 case "$curl_cv_socklen_t_equiv" in
38081 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
38082 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
38083 { (exit 1); exit 1; }; }
38087 cat >>confdefs.h <<_ACEOF
38088 #define socklen_t $curl_cv_socklen_t_equiv
38099 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
38100 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
38101 if test "${ac_cv_type_in_addr_t+set}" = set; then
38102 echo $ECHO_N "(cached) $ECHO_C" >&6
38104 cat >conftest.$ac_ext <<_ACEOF
38107 cat confdefs.h >>conftest.$ac_ext
38108 cat >>conftest.$ac_ext <<_ACEOF
38109 /* end confdefs.h. */
38112 #ifdef HAVE_WINDOWS_H
38113 #ifndef WIN32_LEAN_AND_MEAN
38114 #define WIN32_LEAN_AND_MEAN
38116 #include <windows.h>
38117 #ifdef HAVE_WINSOCK2_H
38118 #include <winsock2.h>
38120 #ifdef HAVE_WINSOCK_H
38121 #include <winsock.h>
38125 #ifdef HAVE_SYS_TYPES_H
38126 #include <sys/types.h>
38128 #ifdef HAVE_SYS_SOCKET_H
38129 #include <sys/socket.h>
38131 #ifdef HAVE_NETINET_IN_H
38132 #include <netinet/in.h>
38134 #ifdef HAVE_ARPA_INET_H
38135 #include <arpa/inet.h>
38140 typedef in_addr_t ac__type_new_;
38144 if ((ac__type_new_ *) 0)
38146 if (sizeof (ac__type_new_))
38152 rm -f conftest.$ac_objext
38153 if { (ac_try="$ac_compile"
38154 case "(($ac_try" in
38155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38156 *) ac_try_echo=$ac_try;;
38158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38159 (eval "$ac_compile") 2>conftest.er1
38161 grep -v '^
*+' conftest.er1 >conftest.err
38163 cat conftest.err >&5
38164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38165 (exit $ac_status); } && {
38166 test -z "$ac_c_werror_flag" ||
38167 test ! -s conftest.err
38168 } && test -s conftest.$ac_objext; then
38169 ac_cv_type_in_addr_t=yes
38171 echo "$as_me: failed program was:" >&5
38172 sed 's
/^
/|
/' conftest.$ac_ext >&5
38174 ac_cv_type_in_addr_t=no
38177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38179 { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
38180 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
38181 if test $ac_cv_type_in_addr_t = yes; then
38185 { echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
38186 echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6; }
38187 if test "${curl_cv_in_addr_t_equiv+set}" = set; then
38188 echo $ECHO_N "(cached) $ECHO_C" >&6
38191 curl_cv_in_addr_t_equiv="unknown"
38192 for t in "unsigned long" int size_t unsigned long; do
38193 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
38194 cat >conftest.$ac_ext <<_ACEOF
38198 cat confdefs.h >>conftest.$ac_ext
38199 cat >>conftest.$ac_ext <<_ACEOF
38200 /* end confdefs.h. */
38203 #ifdef HAVE_WINDOWS_H
38204 #ifndef WIN32_LEAN_AND_MEAN
38205 #define WIN32_LEAN_AND_MEAN
38207 #include <windows.h>
38208 #ifdef HAVE_WINSOCK2_H
38209 #include <winsock2.h>
38211 #ifdef HAVE_WINSOCK_H
38212 #include <winsock.h>
38216 #ifdef HAVE_SYS_TYPES_H
38217 #include <sys/types.h>
38219 #ifdef HAVE_SYS_SOCKET_H
38220 #include <sys/socket.h>
38222 #ifdef HAVE_NETINET_IN_H
38223 #include <netinet/in.h>
38225 #ifdef HAVE_ARPA_INET_H
38226 #include <arpa/inet.h>
38234 $t data = inet_addr ("1.2.3.4");
38241 rm -f conftest.$ac_objext conftest$ac_exeext
38242 if { (ac_try="$ac_link"
38243 case "(($ac_try" in
38244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38245 *) ac_try_echo=$ac_try;;
38247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38248 (eval "$ac_link") 2>conftest.er1
38250 grep -v '^
*+' conftest.er1 >conftest.err
38252 cat conftest.err >&5
38253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254 (exit $ac_status); } && {
38255 test -z "$ac_c_werror_flag" ||
38256 test ! -s conftest.err
38257 } && test -s conftest$ac_exeext &&
38258 $as_test_x conftest$ac_exeext; then
38260 curl_cv_in_addr_t_equiv="$t"
38263 echo "$as_me: failed program was:" >&5
38264 sed 's
/^
/|
/' conftest.$ac_ext >&5
38269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38270 conftest$ac_exeext conftest.$ac_ext
38275 { echo "$as_me:$LINENO: result: $curl_cv_in_addr_t_equiv" >&5
38276 echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6; }
38277 case "$curl_cv_in_addr_t_equiv" in
38279 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
38280 echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
38281 { (exit 1); exit 1; }; }
38285 cat >>confdefs.h <<_ACEOF
38286 #define in_addr_t $curl_cv_in_addr_t_equiv
38297 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
38298 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
38299 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
38300 echo $ECHO_N "(cached) $ECHO_C" >&6
38302 cat >conftest.$ac_ext <<_ACEOF
38305 cat confdefs.h >>conftest.$ac_ext
38306 cat >>conftest.$ac_ext <<_ACEOF
38307 /* end confdefs.h. */
38310 #ifdef HAVE_WINDOWS_H
38311 #ifndef WIN32_LEAN_AND_MEAN
38312 #define WIN32_LEAN_AND_MEAN
38314 #include <windows.h>
38315 #ifdef HAVE_WINSOCK2_H
38316 #include <winsock2.h>
38319 #ifdef HAVE_SYS_TYPES_H
38320 #include <sys/types.h>
38322 #ifdef HAVE_SYS_SOCKET_H
38323 #include <sys/socket.h>
38325 #ifdef HAVE_NETINET_IN_H
38326 #include <netinet/in.h>
38328 #ifdef HAVE_ARPA_INET_H
38329 #include <arpa/inet.h>
38334 typedef struct sockaddr_storage ac__type_new_;
38338 if ((ac__type_new_ *) 0)
38340 if (sizeof (ac__type_new_))
38346 rm -f conftest.$ac_objext
38347 if { (ac_try="$ac_compile"
38348 case "(($ac_try" in
38349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38350 *) ac_try_echo=$ac_try;;
38352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38353 (eval "$ac_compile") 2>conftest.er1
38355 grep -v '^
*+' conftest.er1 >conftest.err
38357 cat conftest.err >&5
38358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359 (exit $ac_status); } && {
38360 test -z "$ac_c_werror_flag" ||
38361 test ! -s conftest.err
38362 } && test -s conftest.$ac_objext; then
38363 ac_cv_type_struct_sockaddr_storage=yes
38365 echo "$as_me: failed program was:" >&5
38366 sed 's
/^
/|
/' conftest.$ac_ext >&5
38368 ac_cv_type_struct_sockaddr_storage=no
38371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38373 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
38374 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
38375 if test $ac_cv_type_struct_sockaddr_storage = yes; then
38377 cat >>confdefs.h <<\_ACEOF
38378 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
38387 for ac_header in signal.h
38389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38394 echo $ECHO_N "(cached) $ECHO_C" >&6
38396 ac_res=`eval echo '${'$as_ac_Header'}'`
38397 { echo "$as_me:$LINENO: result: $ac_res" >&5
38398 echo "${ECHO_T}$ac_res" >&6; }
38400 # Is the header compilable?
38401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38403 cat >conftest.$ac_ext <<_ACEOF
38406 cat confdefs.h >>conftest.$ac_ext
38407 cat >>conftest.$ac_ext <<_ACEOF
38408 /* end confdefs.h. */
38409 $ac_includes_default
38410 #include <$ac_header>
38412 rm -f conftest.$ac_objext
38413 if { (ac_try="$ac_compile"
38414 case "(($ac_try" in
38415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38416 *) ac_try_echo=$ac_try;;
38418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38419 (eval "$ac_compile") 2>conftest.er1
38421 grep -v '^
*+' conftest.er1 >conftest.err
38423 cat conftest.err >&5
38424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38425 (exit $ac_status); } && {
38426 test -z "$ac_c_werror_flag" ||
38427 test ! -s conftest.err
38428 } && test -s conftest.$ac_objext; then
38429 ac_header_compiler=yes
38431 echo "$as_me: failed program was:" >&5
38432 sed 's
/^
/|
/' conftest.$ac_ext >&5
38434 ac_header_compiler=no
38437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38439 echo "${ECHO_T}$ac_header_compiler" >&6; }
38441 # Is the header present?
38442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38444 cat >conftest.$ac_ext <<_ACEOF
38447 cat confdefs.h >>conftest.$ac_ext
38448 cat >>conftest.$ac_ext <<_ACEOF
38449 /* end confdefs.h. */
38450 #include <$ac_header>
38452 if { (ac_try="$ac_cpp conftest.$ac_ext"
38453 case "(($ac_try" in
38454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38455 *) ac_try_echo=$ac_try;;
38457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38460 grep -v '^
*+' conftest.er1 >conftest.err
38462 cat conftest.err >&5
38463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464 (exit $ac_status); } >/dev/null && {
38465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38466 test ! -s conftest.err
38468 ac_header_preproc=yes
38470 echo "$as_me: failed program was:" >&5
38471 sed 's
/^
/|
/' conftest.$ac_ext >&5
38473 ac_header_preproc=no
38476 rm -f conftest.err conftest.$ac_ext
38477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38478 echo "${ECHO_T}$ac_header_preproc" >&6; }
38480 # So? What about this header?
38481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
38486 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
38487 ac_header_preproc=yes
38490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
38499 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
38500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38503 ## ------------------------------------------------------------------------ ##
38504 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
38505 ## ------------------------------------------------------------------------ ##
38507 ) | sed "s/^/$as_me: WARNING: /" >&2
38510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38513 echo $ECHO_N "(cached) $ECHO_C" >&6
38515 eval "$as_ac_Header=\$ac_header_preproc"
38517 ac_res=`eval echo '${'$as_ac_Header'}'`
38518 { echo "$as_me:$LINENO: result: $ac_res" >&5
38519 echo "${ECHO_T}$ac_res" >&6; }
38522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38523 cat >>confdefs.h <<_ACEOF
38524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38531 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
38532 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
38533 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
38534 echo $ECHO_N "(cached) $ECHO_C" >&6
38536 cat >conftest.$ac_ext <<_ACEOF
38539 cat confdefs.h >>conftest.$ac_ext
38540 cat >>conftest.$ac_ext <<_ACEOF
38541 /* end confdefs.h. */
38543 #ifdef HAVE_SIGNAL_H
38544 #include <signal.h>
38548 typedef sig_atomic_t ac__type_new_;
38552 if ((ac__type_new_ *) 0)
38554 if (sizeof (ac__type_new_))
38560 rm -f conftest.$ac_objext
38561 if { (ac_try="$ac_compile"
38562 case "(($ac_try" in
38563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38564 *) ac_try_echo=$ac_try;;
38566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38567 (eval "$ac_compile") 2>conftest.er1
38569 grep -v '^
*+' conftest.er1 >conftest.err
38571 cat conftest.err >&5
38572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38573 (exit $ac_status); } && {
38574 test -z "$ac_c_werror_flag" ||
38575 test ! -s conftest.err
38576 } && test -s conftest.$ac_objext; then
38577 ac_cv_type_sig_atomic_t=yes
38579 echo "$as_me: failed program was:" >&5
38580 sed 's
/^
/|
/' conftest.$ac_ext >&5
38582 ac_cv_type_sig_atomic_t=no
38585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38587 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
38588 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
38589 if test $ac_cv_type_sig_atomic_t = yes; then
38592 cat >>confdefs.h <<\_ACEOF
38593 #define HAVE_SIG_ATOMIC_T 1
38599 case "$ac_cv_type_sig_atomic_t" in
38602 { echo "$as_me:$LINENO: checking if sig_atomic_t is already defined as volatile" >&5
38603 echo $ECHO_N "checking if sig_atomic_t is already defined as volatile... $ECHO_C" >&6; }
38604 cat >conftest.$ac_ext <<_ACEOF
38608 cat confdefs.h >>conftest.$ac_ext
38609 cat >>conftest.$ac_ext <<_ACEOF
38610 /* end confdefs.h. */
38612 #ifdef HAVE_SIGNAL_H
38613 #include <signal.h>
38620 static volatile sig_atomic_t dummy = 0;
38627 rm -f conftest.$ac_objext conftest$ac_exeext
38628 if { (ac_try="$ac_link"
38629 case "(($ac_try" in
38630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38631 *) ac_try_echo=$ac_try;;
38633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38634 (eval "$ac_link") 2>conftest.er1
38636 grep -v '^
*+' conftest.er1 >conftest.err
38638 cat conftest.err >&5
38639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38640 (exit $ac_status); } && {
38641 test -z "$ac_c_werror_flag" ||
38642 test ! -s conftest.err
38643 } && test -s conftest$ac_exeext &&
38644 $as_test_x conftest$ac_exeext; then
38646 { echo "$as_me:$LINENO: result: no" >&5
38647 echo "${ECHO_T}no" >&6; }
38648 ac_cv_sig_atomic_t_volatile="no"
38651 echo "$as_me: failed program was:" >&5
38652 sed 's
/^
/|
/' conftest.$ac_ext >&5
38655 { echo "$as_me:$LINENO: result: yes" >&5
38656 echo "${ECHO_T}yes" >&6; }
38657 ac_cv_sig_atomic_t_volatile="yes"
38661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38662 conftest$ac_exeext conftest.$ac_ext
38664 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
38666 cat >>confdefs.h <<\_ACEOF
38667 #define HAVE_SIG_ATOMIC_T_VOLATILE 1
38675 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
38676 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
38677 if test "${ac_cv_type_signal+set}" = set; then
38678 echo $ECHO_N "(cached) $ECHO_C" >&6
38680 cat >conftest.$ac_ext <<_ACEOF
38683 cat confdefs.h >>conftest.$ac_ext
38684 cat >>conftest.$ac_ext <<_ACEOF
38685 /* end confdefs.h. */
38686 #include <sys/types.h>
38687 #include <signal.h>
38692 return *(signal (0, 0)) (0) == 1;
38697 rm -f conftest.$ac_objext
38698 if { (ac_try="$ac_compile"
38699 case "(($ac_try" in
38700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38701 *) ac_try_echo=$ac_try;;
38703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38704 (eval "$ac_compile") 2>conftest.er1
38706 grep -v '^
*+' conftest.er1 >conftest.err
38708 cat conftest.err >&5
38709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38710 (exit $ac_status); } && {
38711 test -z "$ac_c_werror_flag" ||
38712 test ! -s conftest.err
38713 } && test -s conftest.$ac_objext; then
38714 ac_cv_type_signal=int
38716 echo "$as_me: failed program was:" >&5
38717 sed 's
/^
/|
/' conftest.$ac_ext >&5
38719 ac_cv_type_signal=void
38722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38724 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
38725 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
38727 cat >>confdefs.h <<_ACEOF
38728 #define RETSIGTYPE $ac_cv_type_signal
38736 for ac_header in sys/select.h sys/socket.h
38738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38743 echo $ECHO_N "(cached) $ECHO_C" >&6
38745 ac_res=`eval echo '${'$as_ac_Header'}'`
38746 { echo "$as_me:$LINENO: result: $ac_res" >&5
38747 echo "${ECHO_T}$ac_res" >&6; }
38749 # Is the header compilable?
38750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38752 cat >conftest.$ac_ext <<_ACEOF
38755 cat confdefs.h >>conftest.$ac_ext
38756 cat >>conftest.$ac_ext <<_ACEOF
38757 /* end confdefs.h. */
38758 $ac_includes_default
38759 #include <$ac_header>
38761 rm -f conftest.$ac_objext
38762 if { (ac_try="$ac_compile"
38763 case "(($ac_try" in
38764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38765 *) ac_try_echo=$ac_try;;
38767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38768 (eval "$ac_compile") 2>conftest.er1
38770 grep -v '^
*+' conftest.er1 >conftest.err
38772 cat conftest.err >&5
38773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38774 (exit $ac_status); } && {
38775 test -z "$ac_c_werror_flag" ||
38776 test ! -s conftest.err
38777 } && test -s conftest.$ac_objext; then
38778 ac_header_compiler=yes
38780 echo "$as_me: failed program was:" >&5
38781 sed 's
/^
/|
/' conftest.$ac_ext >&5
38783 ac_header_compiler=no
38786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38788 echo "${ECHO_T}$ac_header_compiler" >&6; }
38790 # Is the header present?
38791 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38793 cat >conftest.$ac_ext <<_ACEOF
38796 cat confdefs.h >>conftest.$ac_ext
38797 cat >>conftest.$ac_ext <<_ACEOF
38798 /* end confdefs.h. */
38799 #include <$ac_header>
38801 if { (ac_try="$ac_cpp conftest.$ac_ext"
38802 case "(($ac_try" in
38803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38804 *) ac_try_echo=$ac_try;;
38806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38809 grep -v '^
*+' conftest.er1 >conftest.err
38811 cat conftest.err >&5
38812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813 (exit $ac_status); } >/dev/null && {
38814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38815 test ! -s conftest.err
38817 ac_header_preproc=yes
38819 echo "$as_me: failed program was:" >&5
38820 sed 's
/^
/|
/' conftest.$ac_ext >&5
38822 ac_header_preproc=no
38825 rm -f conftest.err conftest.$ac_ext
38826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38827 echo "${ECHO_T}$ac_header_preproc" >&6; }
38829 # So? What about this header?
38830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
38835 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
38836 ac_header_preproc=yes
38839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
38848 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
38849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38852 ## ------------------------------------------------------------------------ ##
38853 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
38854 ## ------------------------------------------------------------------------ ##
38856 ) | sed "s/^/$as_me: WARNING: /" >&2
38859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38862 echo $ECHO_N "(cached) $ECHO_C" >&6
38864 eval "$as_ac_Header=\$ac_header_preproc"
38866 ac_res=`eval echo '${'$as_ac_Header'}'`
38867 { echo "$as_me:$LINENO: result: $ac_res" >&5
38868 echo "${ECHO_T}$ac_res" >&6; }
38871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38872 cat >>confdefs.h <<_ACEOF
38873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38881 { echo "$as_me:$LINENO: checking for select" >&5
38882 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
38883 cat >conftest.$ac_ext <<_ACEOF
38887 cat confdefs.h >>conftest.$ac_ext
38888 cat >>conftest.$ac_ext <<_ACEOF
38889 /* end confdefs.h. */
38892 #ifdef HAVE_WINDOWS_H
38893 #ifndef WIN32_LEAN_AND_MEAN
38894 #define WIN32_LEAN_AND_MEAN
38896 #include <windows.h>
38897 #ifdef HAVE_WINSOCK2_H
38898 #include <winsock2.h>
38900 #ifdef HAVE_WINSOCK_H
38901 #include <winsock.h>
38905 #ifdef HAVE_SYS_TYPES_H
38906 #include <sys/types.h>
38908 #ifdef HAVE_SYS_TIME_H
38909 #include <sys/time.h>
38910 #ifdef TIME_WITH_SYS_TIME
38918 #ifndef HAVE_WINDOWS_H
38919 #ifdef HAVE_SYS_SELECT_H
38920 #include <sys/select.h>
38922 #ifdef HAVE_SYS_SOCKET_H
38923 #include <sys/socket.h>
38931 select(0, 0, 0, 0, 0);
38938 rm -f conftest.$ac_objext conftest$ac_exeext
38939 if { (ac_try="$ac_link"
38940 case "(($ac_try" in
38941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38942 *) ac_try_echo=$ac_try;;
38944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38945 (eval "$ac_link") 2>conftest.er1
38947 grep -v '^
*+' conftest.er1 >conftest.err
38949 cat conftest.err >&5
38950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); } && {
38952 test -z "$ac_c_werror_flag" ||
38953 test ! -s conftest.err
38954 } && test -s conftest$ac_exeext &&
38955 $as_test_x conftest$ac_exeext; then
38957 { echo "$as_me:$LINENO: result: yes" >&5
38958 echo "${ECHO_T}yes" >&6; }
38959 curl_cv_select="yes"
38962 echo "$as_me: failed program was:" >&5
38963 sed 's
/^
/|
/' conftest.$ac_ext >&5
38966 { echo "$as_me:$LINENO: result: no" >&5
38967 echo "${ECHO_T}no" >&6; }
38968 curl_cv_select="no"
38972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38973 conftest$ac_exeext conftest.$ac_ext
38975 if test "$curl_cv_select" = "yes"; then
38976 { echo "$as_me:$LINENO: checking types of args and return type for select" >&5
38977 echo $ECHO_N "checking types of args and return type for select... $ECHO_C" >&6; }
38978 if test "${curl_cv_func_select_args+set}" = set; then
38979 echo $ECHO_N "(cached) $ECHO_C" >&6
38982 curl_cv_func_select_args="unknown"
38983 for sel_retv in 'int
' 'ssize_t
'; do
38984 for sel_arg1 in 'int
' 'ssize_t
' 'size_t
' 'unsigned long int
' 'unsigned int
'; do
38985 for sel_arg234 in 'fd_set
*' 'int
*' 'void
*'; do
38986 for sel_arg5 in 'struct timeval
*' 'const struct timeval
*'; do
38987 if test "$curl_cv_func_select_args" = "unknown"; then
38988 cat >conftest.$ac_ext <<_ACEOF
38992 cat confdefs.h >>conftest.$ac_ext
38993 cat >>conftest.$ac_ext <<_ACEOF
38994 /* end confdefs.h. */
38997 #ifdef HAVE_WINDOWS_H
38998 #ifndef WIN32_LEAN_AND_MEAN
38999 #define WIN32_LEAN_AND_MEAN
39001 #include <windows.h>
39002 #ifdef HAVE_WINSOCK2_H
39003 #include <winsock2.h>
39005 #ifdef HAVE_WINSOCK_H
39006 #include <winsock.h>
39009 #define SELECTCALLCONV PASCAL
39011 #ifdef HAVE_SYS_TYPES_H
39012 #include <sys/types.h>
39014 #ifdef HAVE_SYS_TIME_H
39015 #include <sys/time.h>
39016 #ifdef TIME_WITH_SYS_TIME
39024 #ifndef HAVE_WINDOWS_H
39025 #ifdef HAVE_SYS_SELECT_H
39026 #include <sys/select.h>
39028 #ifdef HAVE_SYS_SOCKET_H
39029 #include <sys/socket.h>
39031 #define SELECTCALLCONV
39033 #ifndef HAVE_STRUCT_TIMEVAL
39039 extern $sel_retv SELECTCALLCONV select($sel_arg1,
39050 $sel_arg234 rfds=0;
39051 $sel_arg234 wfds=0;
39052 $sel_arg234 efds=0;
39053 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
39060 rm -f conftest.$ac_objext
39061 if { (ac_try="$ac_compile"
39062 case "(($ac_try" in
39063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39064 *) ac_try_echo=$ac_try;;
39066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39067 (eval "$ac_compile") 2>conftest.er1
39069 grep -v '^
*+' conftest.er1 >conftest.err
39071 cat conftest.err >&5
39072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073 (exit $ac_status); } && {
39074 test -z "$ac_c_werror_flag" ||
39075 test ! -s conftest.err
39076 } && test -s conftest.$ac_objext; then
39078 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
39081 echo "$as_me: failed program was:" >&5
39082 sed 's
/^
/|
/' conftest.$ac_ext >&5
39087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39095 { echo "$as_me:$LINENO: result: $curl_cv_func_select_args" >&5
39096 echo "${ECHO_T}$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
39097 if test "$curl_cv_func_select_args" = "unknown"; then
39098 { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for select args" >&5
39099 echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
39100 { echo "$as_me:$LINENO: WARNING: HAVE_SELECT will not be defined" >&5
39101 echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
39103 select_prev_IFS=$IFS; IFS=','
39104 set dummy `echo "$curl_cv_func_select_args" | sed 's
/\
*/\
*/g
'`
39105 IFS=$select_prev_IFS
39108 sel_qual_type_arg5=$3
39111 cat >>confdefs.h <<_ACEOF
39112 #define SELECT_TYPE_ARG1 $1
39116 cat >>confdefs.h <<_ACEOF
39117 #define SELECT_TYPE_ARG234 $2
39121 cat >>confdefs.h <<_ACEOF
39122 #define SELECT_TYPE_RETV $4
39128 case $prev_sh_opts in
39136 case "$sel_qual_type_arg5" in
39138 sel_qual_arg5=const
39139 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's
/^const
//'`
39143 sel_type_arg5=$sel_qual_type_arg5
39148 cat >>confdefs.h <<_ACEOF
39149 #define SELECT_QUAL_ARG5 $sel_qual_arg5
39153 cat >>confdefs.h <<_ACEOF
39154 #define SELECT_TYPE_ARG5 $sel_type_arg5
39158 case $prev_sh_opts in
39167 cat >>confdefs.h <<_ACEOF
39168 #define HAVE_SELECT 1
39171 ac_cv_func_select="yes"
39179 for ac_header in sys/types.h sys/socket.h
39181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39186 echo $ECHO_N "(cached) $ECHO_C" >&6
39188 ac_res=`eval echo '${'$as_ac_Header'}'`
39189 { echo "$as_me:$LINENO: result: $ac_res" >&5
39190 echo "${ECHO_T}$ac_res" >&6; }
39192 # Is the header compilable?
39193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39195 cat >conftest.$ac_ext <<_ACEOF
39198 cat confdefs.h >>conftest.$ac_ext
39199 cat >>conftest.$ac_ext <<_ACEOF
39200 /* end confdefs.h. */
39201 $ac_includes_default
39202 #include <$ac_header>
39204 rm -f conftest.$ac_objext
39205 if { (ac_try="$ac_compile"
39206 case "(($ac_try" in
39207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39208 *) ac_try_echo=$ac_try;;
39210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39211 (eval "$ac_compile") 2>conftest.er1
39213 grep -v '^
*+' conftest.er1 >conftest.err
39215 cat conftest.err >&5
39216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217 (exit $ac_status); } && {
39218 test -z "$ac_c_werror_flag" ||
39219 test ! -s conftest.err
39220 } && test -s conftest.$ac_objext; then
39221 ac_header_compiler=yes
39223 echo "$as_me: failed program was:" >&5
39224 sed 's
/^
/|
/' conftest.$ac_ext >&5
39226 ac_header_compiler=no
39229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39231 echo "${ECHO_T}$ac_header_compiler" >&6; }
39233 # Is the header present?
39234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
39235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
39236 cat >conftest.$ac_ext <<_ACEOF
39239 cat confdefs.h >>conftest.$ac_ext
39240 cat >>conftest.$ac_ext <<_ACEOF
39241 /* end confdefs.h. */
39242 #include <$ac_header>
39244 if { (ac_try="$ac_cpp conftest.$ac_ext"
39245 case "(($ac_try" in
39246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39247 *) ac_try_echo=$ac_try;;
39249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39252 grep -v '^
*+' conftest.er1 >conftest.err
39254 cat conftest.err >&5
39255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256 (exit $ac_status); } >/dev/null && {
39257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39258 test ! -s conftest.err
39260 ac_header_preproc=yes
39262 echo "$as_me: failed program was:" >&5
39263 sed 's
/^
/|
/' conftest.$ac_ext >&5
39265 ac_header_preproc=no
39268 rm -f conftest.err conftest.$ac_ext
39269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39270 echo "${ECHO_T}$ac_header_preproc" >&6; }
39272 # So? What about this header?
39273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
39278 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
39279 ac_header_preproc=yes
39282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
39291 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
39292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39295 ## ------------------------------------------------------------------------ ##
39296 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
39297 ## ------------------------------------------------------------------------ ##
39299 ) | sed "s/^/$as_me: WARNING: /" >&2
39302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39305 echo $ECHO_N "(cached) $ECHO_C" >&6
39307 eval "$as_ac_Header=\$ac_header_preproc"
39309 ac_res=`eval echo '${'$as_ac_Header'}'`
39310 { echo "$as_me:$LINENO: result: $ac_res" >&5
39311 echo "${ECHO_T}$ac_res" >&6; }
39314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39315 cat >>confdefs.h <<_ACEOF
39316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39324 { echo "$as_me:$LINENO: checking for recv" >&5
39325 echo $ECHO_N "checking for recv... $ECHO_C" >&6; }
39326 cat >conftest.$ac_ext <<_ACEOF
39330 cat confdefs.h >>conftest.$ac_ext
39331 cat >>conftest.$ac_ext <<_ACEOF
39332 /* end confdefs.h. */
39335 #ifdef HAVE_WINDOWS_H
39336 #ifndef WIN32_LEAN_AND_MEAN
39337 #define WIN32_LEAN_AND_MEAN
39339 #include <windows.h>
39340 #ifdef HAVE_WINSOCK2_H
39341 #include <winsock2.h>
39343 #ifdef HAVE_WINSOCK_H
39344 #include <winsock.h>
39348 #ifdef HAVE_SYS_TYPES_H
39349 #include <sys/types.h>
39351 #ifdef HAVE_SYS_SOCKET_H
39352 #include <sys/socket.h>
39367 rm -f conftest.$ac_objext conftest$ac_exeext
39368 if { (ac_try="$ac_link"
39369 case "(($ac_try" in
39370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39371 *) ac_try_echo=$ac_try;;
39373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39374 (eval "$ac_link") 2>conftest.er1
39376 grep -v '^
*+' conftest.er1 >conftest.err
39378 cat conftest.err >&5
39379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380 (exit $ac_status); } && {
39381 test -z "$ac_c_werror_flag" ||
39382 test ! -s conftest.err
39383 } && test -s conftest$ac_exeext &&
39384 $as_test_x conftest$ac_exeext; then
39386 { echo "$as_me:$LINENO: result: yes" >&5
39387 echo "${ECHO_T}yes" >&6; }
39391 echo "$as_me: failed program was:" >&5
39392 sed 's
/^
/|
/' conftest.$ac_ext >&5
39395 { echo "$as_me:$LINENO: result: no" >&5
39396 echo "${ECHO_T}no" >&6; }
39401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39402 conftest$ac_exeext conftest.$ac_ext
39404 if test "$curl_cv_recv" = "yes"; then
39405 { echo "$as_me:$LINENO: checking types of args and return type for recv" >&5
39406 echo $ECHO_N "checking types of args and return type for recv... $ECHO_C" >&6; }
39407 if test "${curl_cv_func_recv_args+set}" = set; then
39408 echo $ECHO_N "(cached) $ECHO_C" >&6
39411 curl_cv_func_recv_args="unknown"
39412 for recv_retv in 'int
' 'ssize_t
'; do
39413 for recv_arg1 in 'int
' 'ssize_t
' 'SOCKET
'; do
39414 for recv_arg2 in 'char
*' 'void
*'; do
39415 for recv_arg3 in 'size_t
' 'int
' 'socklen_t
' 'unsigned int
'; do
39416 for recv_arg4 in 'int
' 'unsigned int
'; do
39417 if test "$curl_cv_func_recv_args" = "unknown"; then
39418 cat >conftest.$ac_ext <<_ACEOF
39422 cat confdefs.h >>conftest.$ac_ext
39423 cat >>conftest.$ac_ext <<_ACEOF
39424 /* end confdefs.h. */
39427 #ifdef HAVE_WINDOWS_H
39428 #ifndef WIN32_LEAN_AND_MEAN
39429 #define WIN32_LEAN_AND_MEAN
39431 #include <windows.h>
39432 #ifdef HAVE_WINSOCK2_H
39433 #include <winsock2.h>
39435 #ifdef HAVE_WINSOCK_H
39436 #include <winsock.h>
39439 #define RECVCALLCONV PASCAL
39441 #ifdef HAVE_SYS_TYPES_H
39442 #include <sys/types.h>
39444 #ifdef HAVE_SYS_SOCKET_H
39445 #include <sys/socket.h>
39447 #define RECVCALLCONV
39449 extern $recv_retv RECVCALLCONV
39450 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
39459 $recv_arg4 flags=0;
39460 $recv_retv res = recv(s, buf, len, flags);
39467 rm -f conftest.$ac_objext
39468 if { (ac_try="$ac_compile"
39469 case "(($ac_try" in
39470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39471 *) ac_try_echo=$ac_try;;
39473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39474 (eval "$ac_compile") 2>conftest.er1
39476 grep -v '^
*+' conftest.er1 >conftest.err
39478 cat conftest.err >&5
39479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39480 (exit $ac_status); } && {
39481 test -z "$ac_c_werror_flag" ||
39482 test ! -s conftest.err
39483 } && test -s conftest.$ac_objext; then
39485 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
39488 echo "$as_me: failed program was:" >&5
39489 sed 's
/^
/|
/' conftest.$ac_ext >&5
39494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39503 { echo "$as_me:$LINENO: result: $curl_cv_func_recv_args" >&5
39504 echo "${ECHO_T}$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
39505 if test "$curl_cv_func_recv_args" = "unknown"; then
39506 { { echo "$as_me:$LINENO: error: Cannot find proper types to use for recv args" >&5
39507 echo "$as_me: error: Cannot find proper types to use for recv args" >&2;}
39508 { (exit 1); exit 1; }; }
39510 recv_prev_IFS=$IFS; IFS=','
39511 set dummy `echo "$curl_cv_func_recv_args" | sed 's
/\
*/\
*/g
'`
39516 cat >>confdefs.h <<_ACEOF
39517 #define RECV_TYPE_ARG1 $1
39521 cat >>confdefs.h <<_ACEOF
39522 #define RECV_TYPE_ARG2 $2
39526 cat >>confdefs.h <<_ACEOF
39527 #define RECV_TYPE_ARG3 $3
39531 cat >>confdefs.h <<_ACEOF
39532 #define RECV_TYPE_ARG4 $4
39536 cat >>confdefs.h <<_ACEOF
39537 #define RECV_TYPE_RETV $5
39542 cat >>confdefs.h <<_ACEOF
39543 #define HAVE_RECV 1
39546 ac_cv_func_recv="yes"
39549 { { echo "$as_me:$LINENO: error: Unable to link function recv" >&5
39550 echo "$as_me: error: Unable to link function recv" >&2;}
39551 { (exit 1); exit 1; }; }
39557 for ac_header in sys/types.h sys/socket.h
39559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39564 echo $ECHO_N "(cached) $ECHO_C" >&6
39566 ac_res=`eval echo '${'$as_ac_Header'}'`
39567 { echo "$as_me:$LINENO: result: $ac_res" >&5
39568 echo "${ECHO_T}$ac_res" >&6; }
39570 # Is the header compilable?
39571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39573 cat >conftest.$ac_ext <<_ACEOF
39576 cat confdefs.h >>conftest.$ac_ext
39577 cat >>conftest.$ac_ext <<_ACEOF
39578 /* end confdefs.h. */
39579 $ac_includes_default
39580 #include <$ac_header>
39582 rm -f conftest.$ac_objext
39583 if { (ac_try="$ac_compile"
39584 case "(($ac_try" in
39585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39586 *) ac_try_echo=$ac_try;;
39588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39589 (eval "$ac_compile") 2>conftest.er1
39591 grep -v '^
*+' conftest.er1 >conftest.err
39593 cat conftest.err >&5
39594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595 (exit $ac_status); } && {
39596 test -z "$ac_c_werror_flag" ||
39597 test ! -s conftest.err
39598 } && test -s conftest.$ac_objext; then
39599 ac_header_compiler=yes
39601 echo "$as_me: failed program was:" >&5
39602 sed 's
/^
/|
/' conftest.$ac_ext >&5
39604 ac_header_compiler=no
39607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39609 echo "${ECHO_T}$ac_header_compiler" >&6; }
39611 # Is the header present?
39612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
39613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
39614 cat >conftest.$ac_ext <<_ACEOF
39617 cat confdefs.h >>conftest.$ac_ext
39618 cat >>conftest.$ac_ext <<_ACEOF
39619 /* end confdefs.h. */
39620 #include <$ac_header>
39622 if { (ac_try="$ac_cpp conftest.$ac_ext"
39623 case "(($ac_try" in
39624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39625 *) ac_try_echo=$ac_try;;
39627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39630 grep -v '^
*+' conftest.er1 >conftest.err
39632 cat conftest.err >&5
39633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634 (exit $ac_status); } >/dev/null && {
39635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39636 test ! -s conftest.err
39638 ac_header_preproc=yes
39640 echo "$as_me: failed program was:" >&5
39641 sed 's
/^
/|
/' conftest.$ac_ext >&5
39643 ac_header_preproc=no
39646 rm -f conftest.err conftest.$ac_ext
39647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39648 echo "${ECHO_T}$ac_header_preproc" >&6; }
39650 # So? What about this header?
39651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
39656 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
39657 ac_header_preproc=yes
39660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
39669 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
39670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39673 ## ------------------------------------------------------------------------ ##
39674 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
39675 ## ------------------------------------------------------------------------ ##
39677 ) | sed "s/^/$as_me: WARNING: /" >&2
39680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39683 echo $ECHO_N "(cached) $ECHO_C" >&6
39685 eval "$as_ac_Header=\$ac_header_preproc"
39687 ac_res=`eval echo '${'$as_ac_Header'}'`
39688 { echo "$as_me:$LINENO: result: $ac_res" >&5
39689 echo "${ECHO_T}$ac_res" >&6; }
39692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39693 cat >>confdefs.h <<_ACEOF
39694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39702 { echo "$as_me:$LINENO: checking for recvfrom" >&5
39703 echo $ECHO_N "checking for recvfrom... $ECHO_C" >&6; }
39704 cat >conftest.$ac_ext <<_ACEOF
39708 cat confdefs.h >>conftest.$ac_ext
39709 cat >>conftest.$ac_ext <<_ACEOF
39710 /* end confdefs.h. */
39713 #ifdef HAVE_WINDOWS_H
39714 #ifndef WIN32_LEAN_AND_MEAN
39715 #define WIN32_LEAN_AND_MEAN
39717 #include <windows.h>
39718 #ifdef HAVE_WINSOCK2_H
39719 #include <winsock2.h>
39721 #ifdef HAVE_WINSOCK_H
39722 #include <winsock.h>
39726 #ifdef HAVE_SYS_TYPES_H
39727 #include <sys/types.h>
39729 #ifdef HAVE_SYS_SOCKET_H
39730 #include <sys/socket.h>
39738 recvfrom(0, 0, 0, 0, 0, 0);
39745 rm -f conftest.$ac_objext conftest$ac_exeext
39746 if { (ac_try="$ac_link"
39747 case "(($ac_try" in
39748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39749 *) ac_try_echo=$ac_try;;
39751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39752 (eval "$ac_link") 2>conftest.er1
39754 grep -v '^
*+' conftest.er1 >conftest.err
39756 cat conftest.err >&5
39757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758 (exit $ac_status); } && {
39759 test -z "$ac_c_werror_flag" ||
39760 test ! -s conftest.err
39761 } && test -s conftest$ac_exeext &&
39762 $as_test_x conftest$ac_exeext; then
39764 { echo "$as_me:$LINENO: result: yes" >&5
39765 echo "${ECHO_T}yes" >&6; }
39766 curl_cv_recvfrom="yes"
39769 echo "$as_me: failed program was:" >&5
39770 sed 's
/^
/|
/' conftest.$ac_ext >&5
39773 { echo "$as_me:$LINENO: result: no" >&5
39774 echo "${ECHO_T}no" >&6; }
39775 curl_cv_recvfrom="no"
39779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39780 conftest$ac_exeext conftest.$ac_ext
39782 if test "$curl_cv_recvfrom" = "yes"; then
39783 { echo "$as_me:$LINENO: checking types of args and return type for recvfrom" >&5
39784 echo $ECHO_N "checking types of args and return type for recvfrom... $ECHO_C" >&6; }
39785 if test "${curl_cv_func_recvfrom_args+set}" = set; then
39786 echo $ECHO_N "(cached) $ECHO_C" >&6
39789 curl_cv_func_recvfrom_args="unknown"
39790 for recvfrom_retv in 'int
' 'ssize_t
'; do
39791 for recvfrom_arg1 in 'int
' 'ssize_t
' 'SOCKET
'; do
39792 for recvfrom_arg2 in 'char
*' 'void
*'; do
39793 for recvfrom_arg3 in 'size_t
' 'int
' 'socklen_t
' 'unsigned int
'; do
39794 for recvfrom_arg4 in 'int
' 'unsigned int
'; do
39795 for recvfrom_arg5 in 'struct sockaddr
*' 'void
*'; do
39796 for recvfrom_arg6 in 'socklen_t
*' 'int
*' 'unsigned int
*' 'size_t
*' 'void
*'; do
39797 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
39798 cat >conftest.$ac_ext <<_ACEOF
39802 cat confdefs.h >>conftest.$ac_ext
39803 cat >>conftest.$ac_ext <<_ACEOF
39804 /* end confdefs.h. */
39807 #ifdef HAVE_WINDOWS_H
39808 #ifndef WIN32_LEAN_AND_MEAN
39809 #define WIN32_LEAN_AND_MEAN
39811 #include <windows.h>
39812 #ifdef HAVE_WINSOCK2_H
39813 #include <winsock2.h>
39815 #ifdef HAVE_WINSOCK_H
39816 #include <winsock.h>
39819 #define RECVFROMCALLCONV PASCAL
39821 #ifdef HAVE_SYS_TYPES_H
39822 #include <sys/types.h>
39824 #ifdef HAVE_SYS_SOCKET_H
39825 #include <sys/socket.h>
39827 #define RECVFROMCALLCONV
39829 extern $recvfrom_retv RECVFROMCALLCONV
39830 recvfrom($recvfrom_arg1, $recvfrom_arg2,
39831 $recvfrom_arg3, $recvfrom_arg4,
39832 $recvfrom_arg5, $recvfrom_arg6);
39838 $recvfrom_arg1 s=0;
39839 $recvfrom_arg2 buf=0;
39840 $recvfrom_arg3 len=0;
39841 $recvfrom_arg4 flags=0;
39842 $recvfrom_arg5 addr=0;
39843 $recvfrom_arg6 addrlen=0;
39844 $recvfrom_retv res=0;
39845 res = recvfrom(s, buf, len, flags, addr, addrlen);
39852 rm -f conftest.$ac_objext
39853 if { (ac_try="$ac_compile"
39854 case "(($ac_try" in
39855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39856 *) ac_try_echo=$ac_try;;
39858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39859 (eval "$ac_compile") 2>conftest.er1
39861 grep -v '^
*+' conftest.er1 >conftest.err
39863 cat conftest.err >&5
39864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39865 (exit $ac_status); } && {
39866 test -z "$ac_c_werror_flag" ||
39867 test ! -s conftest.err
39868 } && test -s conftest.$ac_objext; then
39870 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
39873 echo "$as_me: failed program was:" >&5
39874 sed 's
/^
/|
/' conftest.$ac_ext >&5
39879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39890 { echo "$as_me:$LINENO: result: $curl_cv_func_recvfrom_args" >&5
39891 echo "${ECHO_T}$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
39892 # Nearly last minute change for this release starts here
39894 cat >>confdefs.h <<_ACEOF
39895 #define HAVE_RECVFROM 1
39898 ac_cv_func_recvfrom="yes"
39899 # Nearly last minute change for this release ends here
39900 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
39901 { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for recvfrom args" >&5
39902 echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
39904 recvfrom_prev_IFS=$IFS; IFS=','
39905 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's
/\
*/\
*/g
'`
39906 IFS=$recvfrom_prev_IFS
39909 recvfrom_ptrt_arg2=$2
39910 recvfrom_ptrt_arg5=$5
39911 recvfrom_ptrt_arg6=$6
39914 cat >>confdefs.h <<_ACEOF
39915 #define RECVFROM_TYPE_ARG1 $1
39919 cat >>confdefs.h <<_ACEOF
39920 #define RECVFROM_TYPE_ARG3 $3
39924 cat >>confdefs.h <<_ACEOF
39925 #define RECVFROM_TYPE_ARG4 $4
39929 cat >>confdefs.h <<_ACEOF
39930 #define RECVFROM_TYPE_RETV $7
39936 case $prev_sh_opts in
39944 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's
/ \
*//'`
39945 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's
/ \
*//'`
39946 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's
/ \
*//'`
39949 cat >>confdefs.h <<_ACEOF
39950 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
39954 cat >>confdefs.h <<_ACEOF
39955 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
39959 cat >>confdefs.h <<_ACEOF
39960 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
39964 if test "$recvfrom_type_arg2" = "void"; then
39966 cat >>confdefs.h <<_ACEOF
39967 #define RECVFROM_TYPE_ARG2_IS_VOID 1
39971 if test "$recvfrom_type_arg5" = "void"; then
39973 cat >>confdefs.h <<_ACEOF
39974 #define RECVFROM_TYPE_ARG5_IS_VOID 1
39978 if test "$recvfrom_type_arg6" = "void"; then
39980 cat >>confdefs.h <<_ACEOF
39981 #define RECVFROM_TYPE_ARG6_IS_VOID 1
39986 case $prev_sh_opts in
39995 cat >>confdefs.h <<_ACEOF
39996 #define HAVE_RECVFROM 1
39999 ac_cv_func_recvfrom="yes"
40002 { echo "$as_me:$LINENO: WARNING: Unable to link function recvfrom" >&5
40003 echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
40009 for ac_header in sys/types.h sys/socket.h
40011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40016 echo $ECHO_N "(cached) $ECHO_C" >&6
40018 ac_res=`eval echo '${'$as_ac_Header'}'`
40019 { echo "$as_me:$LINENO: result: $ac_res" >&5
40020 echo "${ECHO_T}$ac_res" >&6; }
40022 # Is the header compilable?
40023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40025 cat >conftest.$ac_ext <<_ACEOF
40028 cat confdefs.h >>conftest.$ac_ext
40029 cat >>conftest.$ac_ext <<_ACEOF
40030 /* end confdefs.h. */
40031 $ac_includes_default
40032 #include <$ac_header>
40034 rm -f conftest.$ac_objext
40035 if { (ac_try="$ac_compile"
40036 case "(($ac_try" in
40037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40038 *) ac_try_echo=$ac_try;;
40040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40041 (eval "$ac_compile") 2>conftest.er1
40043 grep -v '^
*+' conftest.er1 >conftest.err
40045 cat conftest.err >&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); } && {
40048 test -z "$ac_c_werror_flag" ||
40049 test ! -s conftest.err
40050 } && test -s conftest.$ac_objext; then
40051 ac_header_compiler=yes
40053 echo "$as_me: failed program was:" >&5
40054 sed 's
/^
/|
/' conftest.$ac_ext >&5
40056 ac_header_compiler=no
40059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40061 echo "${ECHO_T}$ac_header_compiler" >&6; }
40063 # Is the header present?
40064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40066 cat >conftest.$ac_ext <<_ACEOF
40069 cat confdefs.h >>conftest.$ac_ext
40070 cat >>conftest.$ac_ext <<_ACEOF
40071 /* end confdefs.h. */
40072 #include <$ac_header>
40074 if { (ac_try="$ac_cpp conftest.$ac_ext"
40075 case "(($ac_try" in
40076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40077 *) ac_try_echo=$ac_try;;
40079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40082 grep -v '^
*+' conftest.er1 >conftest.err
40084 cat conftest.err >&5
40085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086 (exit $ac_status); } >/dev/null && {
40087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40088 test ! -s conftest.err
40090 ac_header_preproc=yes
40092 echo "$as_me: failed program was:" >&5
40093 sed 's
/^
/|
/' conftest.$ac_ext >&5
40095 ac_header_preproc=no
40098 rm -f conftest.err conftest.$ac_ext
40099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40100 echo "${ECHO_T}$ac_header_preproc" >&6; }
40102 # So? What about this header?
40103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
40108 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
40109 ac_header_preproc=yes
40112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
40121 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
40122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40125 ## ------------------------------------------------------------------------ ##
40126 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
40127 ## ------------------------------------------------------------------------ ##
40129 ) | sed "s/^/$as_me: WARNING: /" >&2
40132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40135 echo $ECHO_N "(cached) $ECHO_C" >&6
40137 eval "$as_ac_Header=\$ac_header_preproc"
40139 ac_res=`eval echo '${'$as_ac_Header'}'`
40140 { echo "$as_me:$LINENO: result: $ac_res" >&5
40141 echo "${ECHO_T}$ac_res" >&6; }
40144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40145 cat >>confdefs.h <<_ACEOF
40146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40154 { echo "$as_me:$LINENO: checking for send" >&5
40155 echo $ECHO_N "checking for send... $ECHO_C" >&6; }
40156 cat >conftest.$ac_ext <<_ACEOF
40160 cat confdefs.h >>conftest.$ac_ext
40161 cat >>conftest.$ac_ext <<_ACEOF
40162 /* end confdefs.h. */
40165 #ifdef HAVE_WINDOWS_H
40166 #ifndef WIN32_LEAN_AND_MEAN
40167 #define WIN32_LEAN_AND_MEAN
40169 #include <windows.h>
40170 #ifdef HAVE_WINSOCK2_H
40171 #include <winsock2.h>
40173 #ifdef HAVE_WINSOCK_H
40174 #include <winsock.h>
40178 #ifdef HAVE_SYS_TYPES_H
40179 #include <sys/types.h>
40181 #ifdef HAVE_SYS_SOCKET_H
40182 #include <sys/socket.h>
40197 rm -f conftest.$ac_objext conftest$ac_exeext
40198 if { (ac_try="$ac_link"
40199 case "(($ac_try" in
40200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40201 *) ac_try_echo=$ac_try;;
40203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40204 (eval "$ac_link") 2>conftest.er1
40206 grep -v '^
*+' conftest.er1 >conftest.err
40208 cat conftest.err >&5
40209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40210 (exit $ac_status); } && {
40211 test -z "$ac_c_werror_flag" ||
40212 test ! -s conftest.err
40213 } && test -s conftest$ac_exeext &&
40214 $as_test_x conftest$ac_exeext; then
40216 { echo "$as_me:$LINENO: result: yes" >&5
40217 echo "${ECHO_T}yes" >&6; }
40221 echo "$as_me: failed program was:" >&5
40222 sed 's
/^
/|
/' conftest.$ac_ext >&5
40225 { echo "$as_me:$LINENO: result: no" >&5
40226 echo "${ECHO_T}no" >&6; }
40231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40232 conftest$ac_exeext conftest.$ac_ext
40234 if test "$curl_cv_send" = "yes"; then
40235 { echo "$as_me:$LINENO: checking types of args and return type for send" >&5
40236 echo $ECHO_N "checking types of args and return type for send... $ECHO_C" >&6; }
40237 if test "${curl_cv_func_send_args+set}" = set; then
40238 echo $ECHO_N "(cached) $ECHO_C" >&6
40241 curl_cv_func_send_args="unknown"
40242 for send_retv in 'int
' 'ssize_t
'; do
40243 for send_arg1 in 'int
' 'ssize_t
' 'SOCKET
'; do
40244 for send_arg2 in 'char
*' 'void
*' 'const char
*' 'const void
*'; do
40245 for send_arg3 in 'size_t
' 'int
' 'socklen_t
' 'unsigned int
'; do
40246 for send_arg4 in 'int
' 'unsigned int
'; do
40247 if test "$curl_cv_func_send_args" = "unknown"; then
40248 cat >conftest.$ac_ext <<_ACEOF
40252 cat confdefs.h >>conftest.$ac_ext
40253 cat >>conftest.$ac_ext <<_ACEOF
40254 /* end confdefs.h. */
40257 #ifdef HAVE_WINDOWS_H
40258 #ifndef WIN32_LEAN_AND_MEAN
40259 #define WIN32_LEAN_AND_MEAN
40261 #include <windows.h>
40262 #ifdef HAVE_WINSOCK2_H
40263 #include <winsock2.h>
40265 #ifdef HAVE_WINSOCK_H
40266 #include <winsock.h>
40269 #define SENDCALLCONV PASCAL
40271 #ifdef HAVE_SYS_TYPES_H
40272 #include <sys/types.h>
40274 #ifdef HAVE_SYS_SOCKET_H
40275 #include <sys/socket.h>
40277 #define SENDCALLCONV
40279 extern $send_retv SENDCALLCONV
40280 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
40288 $send_arg4 flags=0;
40289 $send_retv res = send(s, 0, len, flags);
40296 rm -f conftest.$ac_objext
40297 if { (ac_try="$ac_compile"
40298 case "(($ac_try" in
40299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40300 *) ac_try_echo=$ac_try;;
40302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40303 (eval "$ac_compile") 2>conftest.er1
40305 grep -v '^
*+' conftest.er1 >conftest.err
40307 cat conftest.err >&5
40308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309 (exit $ac_status); } && {
40310 test -z "$ac_c_werror_flag" ||
40311 test ! -s conftest.err
40312 } && test -s conftest.$ac_objext; then
40314 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
40317 echo "$as_me: failed program was:" >&5
40318 sed 's
/^
/|
/' conftest.$ac_ext >&5
40323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40332 { echo "$as_me:$LINENO: result: $curl_cv_func_send_args" >&5
40333 echo "${ECHO_T}$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
40334 if test "$curl_cv_func_send_args" = "unknown"; then
40335 { { echo "$as_me:$LINENO: error: Cannot find proper types to use for send args" >&5
40336 echo "$as_me: error: Cannot find proper types to use for send args" >&2;}
40337 { (exit 1); exit 1; }; }
40339 send_prev_IFS=$IFS; IFS=','
40340 set dummy `echo "$curl_cv_func_send_args" | sed 's
/\
*/\
*/g
'`
40344 send_qual_type_arg2=$2
40347 cat >>confdefs.h <<_ACEOF
40348 #define SEND_TYPE_ARG1 $1
40352 cat >>confdefs.h <<_ACEOF
40353 #define SEND_TYPE_ARG3 $3
40357 cat >>confdefs.h <<_ACEOF
40358 #define SEND_TYPE_ARG4 $4
40362 cat >>confdefs.h <<_ACEOF
40363 #define SEND_TYPE_RETV $5
40369 case $prev_sh_opts in
40377 case "$send_qual_type_arg2" in
40379 send_qual_arg2=const
40380 send_type_arg2=`echo $send_qual_type_arg2 | sed 's
/^const
//'`
40384 send_type_arg2=$send_qual_type_arg2
40389 cat >>confdefs.h <<_ACEOF
40390 #define SEND_QUAL_ARG2 $send_qual_arg2
40394 cat >>confdefs.h <<_ACEOF
40395 #define SEND_TYPE_ARG2 $send_type_arg2
40399 case $prev_sh_opts in
40408 cat >>confdefs.h <<_ACEOF
40409 #define HAVE_SEND 1
40412 ac_cv_func_send="yes"
40415 { { echo "$as_me:$LINENO: error: Unable to link function send" >&5
40416 echo "$as_me: error: Unable to link function send" >&2;}
40417 { (exit 1); exit 1; }; }
40423 for ac_header in sys/types.h sys/socket.h
40425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40430 echo $ECHO_N "(cached) $ECHO_C" >&6
40432 ac_res=`eval echo '${'$as_ac_Header'}'`
40433 { echo "$as_me:$LINENO: result: $ac_res" >&5
40434 echo "${ECHO_T}$ac_res" >&6; }
40436 # Is the header compilable?
40437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40439 cat >conftest.$ac_ext <<_ACEOF
40442 cat confdefs.h >>conftest.$ac_ext
40443 cat >>conftest.$ac_ext <<_ACEOF
40444 /* end confdefs.h. */
40445 $ac_includes_default
40446 #include <$ac_header>
40448 rm -f conftest.$ac_objext
40449 if { (ac_try="$ac_compile"
40450 case "(($ac_try" in
40451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40452 *) ac_try_echo=$ac_try;;
40454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40455 (eval "$ac_compile") 2>conftest.er1
40457 grep -v '^
*+' conftest.er1 >conftest.err
40459 cat conftest.err >&5
40460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40461 (exit $ac_status); } && {
40462 test -z "$ac_c_werror_flag" ||
40463 test ! -s conftest.err
40464 } && test -s conftest.$ac_objext; then
40465 ac_header_compiler=yes
40467 echo "$as_me: failed program was:" >&5
40468 sed 's
/^
/|
/' conftest.$ac_ext >&5
40470 ac_header_compiler=no
40473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40474 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40475 echo "${ECHO_T}$ac_header_compiler" >&6; }
40477 # Is the header present?
40478 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40480 cat >conftest.$ac_ext <<_ACEOF
40483 cat confdefs.h >>conftest.$ac_ext
40484 cat >>conftest.$ac_ext <<_ACEOF
40485 /* end confdefs.h. */
40486 #include <$ac_header>
40488 if { (ac_try="$ac_cpp conftest.$ac_ext"
40489 case "(($ac_try" in
40490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40491 *) ac_try_echo=$ac_try;;
40493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40496 grep -v '^
*+' conftest.er1 >conftest.err
40498 cat conftest.err >&5
40499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40500 (exit $ac_status); } >/dev/null && {
40501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40502 test ! -s conftest.err
40504 ac_header_preproc=yes
40506 echo "$as_me: failed program was:" >&5
40507 sed 's
/^
/|
/' conftest.$ac_ext >&5
40509 ac_header_preproc=no
40512 rm -f conftest.err conftest.$ac_ext
40513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40514 echo "${ECHO_T}$ac_header_preproc" >&6; }
40516 # So? What about this header?
40517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
40522 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
40523 ac_header_preproc=yes
40526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
40535 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
40536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40539 ## ------------------------------------------------------------------------ ##
40540 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
40541 ## ------------------------------------------------------------------------ ##
40543 ) | sed "s/^/$as_me: WARNING: /" >&2
40546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40549 echo $ECHO_N "(cached) $ECHO_C" >&6
40551 eval "$as_ac_Header=\$ac_header_preproc"
40553 ac_res=`eval echo '${'$as_ac_Header'}'`
40554 { echo "$as_me:$LINENO: result: $ac_res" >&5
40555 echo "${ECHO_T}$ac_res" >&6; }
40558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40559 cat >>confdefs.h <<_ACEOF
40560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40567 { echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
40568 echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6; }
40569 if test "${ac_cv_msg_nosignal+set}" = set; then
40570 echo $ECHO_N "(cached) $ECHO_C" >&6
40573 cat >conftest.$ac_ext <<_ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h. */
40582 #ifdef HAVE_WINDOWS_H
40583 #ifndef WIN32_LEAN_AND_MEAN
40584 #define WIN32_LEAN_AND_MEAN
40586 #include <windows.h>
40587 #ifdef HAVE_WINSOCK2_H
40588 #include <winsock2.h>
40590 #ifdef HAVE_WINSOCK_H
40591 #include <winsock.h>
40595 #ifdef HAVE_SYS_TYPES_H
40596 #include <sys/types.h>
40598 #ifdef HAVE_SYS_SOCKET_H
40599 #include <sys/socket.h>
40607 int flag=MSG_NOSIGNAL;
40614 rm -f conftest.$ac_objext
40615 if { (ac_try="$ac_compile"
40616 case "(($ac_try" in
40617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40618 *) ac_try_echo=$ac_try;;
40620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40621 (eval "$ac_compile") 2>conftest.er1
40623 grep -v '^
*+' conftest.er1 >conftest.err
40625 cat conftest.err >&5
40626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40627 (exit $ac_status); } && {
40628 test -z "$ac_c_werror_flag" ||
40629 test ! -s conftest.err
40630 } && test -s conftest.$ac_objext; then
40632 ac_cv_msg_nosignal="yes"
40635 echo "$as_me: failed program was:" >&5
40636 sed 's
/^
/|
/' conftest.$ac_ext >&5
40639 ac_cv_msg_nosignal="no"
40643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40646 { echo "$as_me:$LINENO: result: $ac_cv_msg_nosignal" >&5
40647 echo "${ECHO_T}$ac_cv_msg_nosignal" >&6; }
40648 case "$ac_cv_msg_nosignal" in
40651 cat >>confdefs.h <<_ACEOF
40652 #define HAVE_MSG_NOSIGNAL 1
40664 { echo "$as_me:$LINENO: skip check for pipe on msdosdjgpp" >&5
40665 echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40706 for ac_func in basename \
40745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40749 echo $ECHO_N "(cached) $ECHO_C" >&6
40751 cat >conftest.$ac_ext <<_ACEOF
40754 cat confdefs.h >>conftest.$ac_ext
40755 cat >>conftest.$ac_ext <<_ACEOF
40756 /* end confdefs.h. */
40757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40759 #define $ac_func innocuous_$ac_func
40761 /* System header to define __stub macros and hopefully few prototypes,
40762 which can conflict with char $ac_func (); below.
40763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40764 <limits.h> exists even on freestanding compilers. */
40767 # include <limits.h>
40769 # include <assert.h>
40774 /* Override any GCC internal prototype to avoid an error.
40775 Use char because int might match the return type of a GCC
40776 builtin and then its argument prototype would still apply. */
40781 /* The GNU C library defines this for functions which it implements
40782 to always fail with ENOSYS. Some functions are actually named
40783 something starting with __ and the normal name is an alias. */
40784 #if defined __stub_$ac_func || defined __stub___$ac_func
40791 return $ac_func ();
40796 rm -f conftest.$ac_objext conftest$ac_exeext
40797 if { (ac_try="$ac_link"
40798 case "(($ac_try" in
40799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40800 *) ac_try_echo=$ac_try;;
40802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40803 (eval "$ac_link") 2>conftest.er1
40805 grep -v '^
*+' conftest.er1 >conftest.err
40807 cat conftest.err >&5
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); } && {
40810 test -z "$ac_c_werror_flag" ||
40811 test ! -s conftest.err
40812 } && test -s conftest$ac_exeext &&
40813 $as_test_x conftest$ac_exeext; then
40814 eval "$as_ac_var=yes"
40816 echo "$as_me: failed program was:" >&5
40817 sed 's
/^
/|
/' conftest.$ac_ext >&5
40819 eval "$as_ac_var=no"
40822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40823 conftest$ac_exeext conftest.$ac_ext
40825 ac_res=`eval echo '${'$as_ac_var'}'`
40826 { echo "$as_me:$LINENO: result: $ac_res" >&5
40827 echo "${ECHO_T}$ac_res" >&6; }
40828 if test `eval echo '${'$as_ac_var'}'` = yes; then
40829 cat >>confdefs.h <<_ACEOF
40830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40837 eval skipcheck=\$skipcheck_$func
40838 if test "x$skipcheck" != "xyes"; then
40839 { echo "$as_me:$LINENO: checking deeper for $func" >&5
40840 echo $ECHO_N "checking deeper for $func... $ECHO_C" >&6; }
40841 cat >conftest.$ac_ext <<_ACEOF
40845 cat confdefs.h >>conftest.$ac_ext
40846 cat >>conftest.$ac_ext <<_ACEOF
40847 /* end confdefs.h. */
40861 rm -f conftest.$ac_objext conftest$ac_exeext
40862 if { (ac_try="$ac_link"
40863 case "(($ac_try" in
40864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40865 *) ac_try_echo=$ac_try;;
40867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40868 (eval "$ac_link") 2>conftest.er1
40870 grep -v '^
*+' conftest.er1 >conftest.err
40872 cat conftest.err >&5
40873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874 (exit $ac_status); } && {
40875 test -z "$ac_c_werror_flag" ||
40876 test ! -s conftest.err
40877 } && test -s conftest$ac_exeext &&
40878 $as_test_x conftest$ac_exeext; then
40880 { echo "$as_me:$LINENO: result: yes" >&5
40881 echo "${ECHO_T}yes" >&6; }
40882 eval "ac_cv_func_$func=yes"
40884 cat >>confdefs.h <<_ACEOF
40885 #define `echo "HAVE_$func" | $as_tr_cpp` 1
40890 echo "$as_me: failed program was:" >&5
40891 sed 's
/^
/|
/' conftest.$ac_ext >&5
40894 { echo "$as_me:$LINENO: result: but still no" >&5
40895 echo "${ECHO_T}but still no" >&6; }
40899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40900 conftest$ac_exeext conftest.$ac_ext
40908 if test "$ac_cv_func_sigsetjmp" != "yes"; then
40909 { echo "$as_me:$LINENO: checking for sigsetjmp defined as macro" >&5
40910 echo $ECHO_N "checking for sigsetjmp defined as macro... $ECHO_C" >&6; }
40911 cat >conftest.$ac_ext <<_ACEOF
40915 cat confdefs.h >>conftest.$ac_ext
40916 cat >>conftest.$ac_ext <<_ACEOF
40917 /* end confdefs.h. */
40919 #include <setjmp.h>
40926 sigsetjmp(jmpenv, 1);
40933 rm -f conftest.$ac_objext conftest$ac_exeext
40934 if { (ac_try="$ac_link"
40935 case "(($ac_try" in
40936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40937 *) ac_try_echo=$ac_try;;
40939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40940 (eval "$ac_link") 2>conftest.er1
40942 grep -v '^
*+' conftest.er1 >conftest.err
40944 cat conftest.err >&5
40945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40946 (exit $ac_status); } && {
40947 test -z "$ac_c_werror_flag" ||
40948 test ! -s conftest.err
40949 } && test -s conftest$ac_exeext &&
40950 $as_test_x conftest$ac_exeext; then
40952 { echo "$as_me:$LINENO: result: yes" >&5
40953 echo "${ECHO_T}yes" >&6; }
40955 cat >>confdefs.h <<\_ACEOF
40956 #define HAVE_SIGSETJMP 1
40961 echo "$as_me: failed program was:" >&5
40962 sed 's
/^
/|
/' conftest.$ac_ext >&5
40965 { echo "$as_me:$LINENO: result: no" >&5
40966 echo "${ECHO_T}no" >&6; }
40970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40971 conftest$ac_exeext conftest.$ac_ext
40974 { echo "$as_me:$LINENO: checking whether basename is declared" >&5
40975 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6; }
40976 if test "${ac_cv_have_decl_basename+set}" = set; then
40977 echo $ECHO_N "(cached) $ECHO_C" >&6
40979 cat >conftest.$ac_ext <<_ACEOF
40982 cat confdefs.h >>conftest.$ac_ext
40983 cat >>conftest.$ac_ext <<_ACEOF
40984 /* end confdefs.h. */
40985 #ifdef HAVE_STRING_H
40986 #include <string.h>
40988 #ifdef HAVE_LIBGEN_H
40989 #include <libgen.h>
40991 #ifdef HAVE_UNISTD_H
40992 #include <unistd.h>
41007 rm -f conftest.$ac_objext
41008 if { (ac_try="$ac_compile"
41009 case "(($ac_try" in
41010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41011 *) ac_try_echo=$ac_try;;
41013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41014 (eval "$ac_compile") 2>conftest.er1
41016 grep -v '^
*+' conftest.er1 >conftest.err
41018 cat conftest.err >&5
41019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41020 (exit $ac_status); } && {
41021 test -z "$ac_c_werror_flag" ||
41022 test ! -s conftest.err
41023 } && test -s conftest.$ac_objext; then
41024 ac_cv_have_decl_basename=yes
41026 echo "$as_me: failed program was:" >&5
41027 sed 's
/^
/|
/' conftest.$ac_ext >&5
41029 ac_cv_have_decl_basename=no
41032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41034 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
41035 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6; }
41036 if test $ac_cv_have_decl_basename = yes; then
41040 cat >>confdefs.h <<\_ACEOF
41041 #define NEED_BASENAME_PROTO 1
41047 { echo "$as_me:$LINENO: checking whether inet_pton is declared" >&5
41048 echo $ECHO_N "checking whether inet_pton is declared... $ECHO_C" >&6; }
41049 if test "${ac_cv_have_decl_inet_pton+set}" = set; then
41050 echo $ECHO_N "(cached) $ECHO_C" >&6
41052 cat >conftest.$ac_ext <<_ACEOF
41055 cat confdefs.h >>conftest.$ac_ext
41056 cat >>conftest.$ac_ext <<_ACEOF
41057 /* end confdefs.h. */
41059 #ifdef HAVE_ARPA_INET_H
41060 #include <arpa/inet.h>
41076 rm -f conftest.$ac_objext
41077 if { (ac_try="$ac_compile"
41078 case "(($ac_try" in
41079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41080 *) ac_try_echo=$ac_try;;
41082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41083 (eval "$ac_compile") 2>conftest.er1
41085 grep -v '^
*+' conftest.er1 >conftest.err
41087 cat conftest.err >&5
41088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41089 (exit $ac_status); } && {
41090 test -z "$ac_c_werror_flag" ||
41091 test ! -s conftest.err
41092 } && test -s conftest.$ac_objext; then
41093 ac_cv_have_decl_inet_pton=yes
41095 echo "$as_me: failed program was:" >&5
41096 sed 's
/^
/|
/' conftest.$ac_ext >&5
41098 ac_cv_have_decl_inet_pton=no
41101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41103 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_pton" >&5
41104 echo "${ECHO_T}$ac_cv_have_decl_inet_pton" >&6; }
41105 if test $ac_cv_have_decl_inet_pton = yes; then
41109 cat >>confdefs.h <<\_ACEOF
41110 #define HAVE_NO_INET_PTON_PROTO 1
41120 for ac_header in sys/types.h sys/socket.h netdb.h
41122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41127 echo $ECHO_N "(cached) $ECHO_C" >&6
41129 ac_res=`eval echo '${'$as_ac_Header'}'`
41130 { echo "$as_me:$LINENO: result: $ac_res" >&5
41131 echo "${ECHO_T}$ac_res" >&6; }
41133 # Is the header compilable?
41134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41136 cat >conftest.$ac_ext <<_ACEOF
41139 cat confdefs.h >>conftest.$ac_ext
41140 cat >>conftest.$ac_ext <<_ACEOF
41141 /* end confdefs.h. */
41142 $ac_includes_default
41143 #include <$ac_header>
41145 rm -f conftest.$ac_objext
41146 if { (ac_try="$ac_compile"
41147 case "(($ac_try" in
41148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41149 *) ac_try_echo=$ac_try;;
41151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41152 (eval "$ac_compile") 2>conftest.er1
41154 grep -v '^
*+' conftest.er1 >conftest.err
41156 cat conftest.err >&5
41157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158 (exit $ac_status); } && {
41159 test -z "$ac_c_werror_flag" ||
41160 test ! -s conftest.err
41161 } && test -s conftest.$ac_objext; then
41162 ac_header_compiler=yes
41164 echo "$as_me: failed program was:" >&5
41165 sed 's
/^
/|
/' conftest.$ac_ext >&5
41167 ac_header_compiler=no
41170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41172 echo "${ECHO_T}$ac_header_compiler" >&6; }
41174 # Is the header present?
41175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41177 cat >conftest.$ac_ext <<_ACEOF
41180 cat confdefs.h >>conftest.$ac_ext
41181 cat >>conftest.$ac_ext <<_ACEOF
41182 /* end confdefs.h. */
41183 #include <$ac_header>
41185 if { (ac_try="$ac_cpp conftest.$ac_ext"
41186 case "(($ac_try" in
41187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41188 *) ac_try_echo=$ac_try;;
41190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41193 grep -v '^
*+' conftest.er1 >conftest.err
41195 cat conftest.err >&5
41196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41197 (exit $ac_status); } >/dev/null && {
41198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41199 test ! -s conftest.err
41201 ac_header_preproc=yes
41203 echo "$as_me: failed program was:" >&5
41204 sed 's
/^
/|
/' conftest.$ac_ext >&5
41206 ac_header_preproc=no
41209 rm -f conftest.err conftest.$ac_ext
41210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41211 echo "${ECHO_T}$ac_header_preproc" >&6; }
41213 # So? What about this header?
41214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
41219 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
41220 ac_header_preproc=yes
41223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
41232 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
41233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41236 ## ------------------------------------------------------------------------ ##
41237 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
41238 ## ------------------------------------------------------------------------ ##
41240 ) | sed "s/^/$as_me: WARNING: /" >&2
41243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41246 echo $ECHO_N "(cached) $ECHO_C" >&6
41248 eval "$as_ac_Header=\$ac_header_preproc"
41250 ac_res=`eval echo '${'$as_ac_Header'}'`
41251 { echo "$as_me:$LINENO: result: $ac_res" >&5
41252 echo "${ECHO_T}$ac_res" >&6; }
41255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41256 cat >>confdefs.h <<_ACEOF
41257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41265 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
41266 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
41267 cat >conftest.$ac_ext <<_ACEOF
41271 cat confdefs.h >>conftest.$ac_ext
41272 cat >>conftest.$ac_ext <<_ACEOF
41273 /* end confdefs.h. */
41274 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
41275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41276 #define getnameinfo innocuous_getnameinfo
41278 /* System header to define __stub macros and hopefully few prototypes,
41279 which can conflict with char getnameinfo (); below.
41280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41281 <limits.h> exists even on freestanding compilers. */
41284 # include <limits.h>
41286 # include <assert.h>
41291 /* Override any GCC internal prototype to avoid an error.
41292 Use char because int might match the return type of a GCC
41293 builtin and then its argument prototype would still apply. */
41297 char getnameinfo ();
41298 /* The GNU C library defines this for functions which it implements
41299 to always fail with ENOSYS. Some functions are actually named
41300 something starting with __ and the normal name is an alias. */
41301 #if defined __stub_getnameinfo || defined __stub___getnameinfo
41308 return getnameinfo ();
41314 rm -f conftest.$ac_objext conftest$ac_exeext
41315 if { (ac_try="$ac_link"
41316 case "(($ac_try" in
41317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41318 *) ac_try_echo=$ac_try;;
41320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41321 (eval "$ac_link") 2>conftest.er1
41323 grep -v '^
*+' conftest.er1 >conftest.err
41325 cat conftest.err >&5
41326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41327 (exit $ac_status); } && {
41328 test -z "$ac_c_werror_flag" ||
41329 test ! -s conftest.err
41330 } && test -s conftest$ac_exeext &&
41331 $as_test_x conftest$ac_exeext; then
41333 { echo "$as_me:$LINENO: result: yes" >&5
41334 echo "${ECHO_T}yes" >&6; }
41335 curl_cv_getnameinfo="yes"
41338 echo "$as_me: failed program was:" >&5
41339 sed 's
/^
/|
/' conftest.$ac_ext >&5
41342 { echo "$as_me:$LINENO: result: no" >&5
41343 echo "${ECHO_T}no" >&6; }
41344 curl_cv_getnameinfo="no"
41348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41349 conftest$ac_exeext conftest.$ac_ext
41351 if test "$curl_cv_getnameinfo" != "yes"; then
41352 { echo "$as_me:$LINENO: checking deeper for getnameinfo" >&5
41353 echo $ECHO_N "checking deeper for getnameinfo... $ECHO_C" >&6; }
41354 cat >conftest.$ac_ext <<_ACEOF
41358 cat confdefs.h >>conftest.$ac_ext
41359 cat >>conftest.$ac_ext <<_ACEOF
41360 /* end confdefs.h. */
41374 rm -f conftest.$ac_objext conftest$ac_exeext
41375 if { (ac_try="$ac_link"
41376 case "(($ac_try" in
41377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41378 *) ac_try_echo=$ac_try;;
41380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41381 (eval "$ac_link") 2>conftest.er1
41383 grep -v '^
*+' conftest.er1 >conftest.err
41385 cat conftest.err >&5
41386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41387 (exit $ac_status); } && {
41388 test -z "$ac_c_werror_flag" ||
41389 test ! -s conftest.err
41390 } && test -s conftest$ac_exeext &&
41391 $as_test_x conftest$ac_exeext; then
41393 { echo "$as_me:$LINENO: result: yes" >&5
41394 echo "${ECHO_T}yes" >&6; }
41395 curl_cv_getnameinfo="yes"
41398 echo "$as_me: failed program was:" >&5
41399 sed 's
/^
/|
/' conftest.$ac_ext >&5
41402 { echo "$as_me:$LINENO: result: but still no" >&5
41403 echo "${ECHO_T}but still no" >&6; }
41404 curl_cv_getnameinfo="no"
41408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41409 conftest$ac_exeext conftest.$ac_ext
41412 if test "$curl_cv_getnameinfo" != "yes"; then
41413 { echo "$as_me:$LINENO: checking deeper and deeper for getnameinfo" >&5
41414 echo $ECHO_N "checking deeper and deeper for getnameinfo... $ECHO_C" >&6; }
41415 cat >conftest.$ac_ext <<_ACEOF
41419 cat confdefs.h >>conftest.$ac_ext
41420 cat >>conftest.$ac_ext <<_ACEOF
41421 /* end confdefs.h. */
41424 #ifdef HAVE_WINDOWS_H
41425 #ifndef WIN32_LEAN_AND_MEAN
41426 #define WIN32_LEAN_AND_MEAN
41428 #include <windows.h>
41429 #ifdef HAVE_WINSOCK2_H
41430 #include <winsock2.h>
41431 #ifdef HAVE_WS2TCPIP_H
41432 #include <ws2tcpip.h>
41436 #ifdef HAVE_SYS_TYPES_H
41437 #include <sys/types.h>
41439 #ifdef HAVE_SYS_SOCKET_H
41440 #include <sys/socket.h>
41442 #ifdef HAVE_NETDB_H
41451 getnameinfo(0, 0, 0, 0, 0, 0, 0);
41458 rm -f conftest.$ac_objext conftest$ac_exeext
41459 if { (ac_try="$ac_link"
41460 case "(($ac_try" in
41461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41462 *) ac_try_echo=$ac_try;;
41464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41465 (eval "$ac_link") 2>conftest.er1
41467 grep -v '^
*+' conftest.er1 >conftest.err
41469 cat conftest.err >&5
41470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471 (exit $ac_status); } && {
41472 test -z "$ac_c_werror_flag" ||
41473 test ! -s conftest.err
41474 } && test -s conftest$ac_exeext &&
41475 $as_test_x conftest$ac_exeext; then
41477 { echo "$as_me:$LINENO: result: yes" >&5
41478 echo "${ECHO_T}yes" >&6; }
41479 curl_cv_getnameinfo="yes"
41482 echo "$as_me: failed program was:" >&5
41483 sed 's
/^
/|
/' conftest.$ac_ext >&5
41486 { echo "$as_me:$LINENO: result: but still no" >&5
41487 echo "${ECHO_T}but still no" >&6; }
41488 curl_cv_getnameinfo="no"
41492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41493 conftest$ac_exeext conftest.$ac_ext
41496 if test "$curl_cv_getnameinfo" = "yes"; then
41497 { echo "$as_me:$LINENO: checking types of arguments for getnameinfo" >&5
41498 echo $ECHO_N "checking types of arguments for getnameinfo... $ECHO_C" >&6; }
41499 if test "${curl_cv_func_getnameinfo_args+set}" = set; then
41500 echo $ECHO_N "(cached) $ECHO_C" >&6
41503 curl_cv_func_getnameinfo_args="unknown"
41504 for gni_arg1 in 'struct sockaddr
*' 'const struct sockaddr
*' 'void
*'; do
41505 for gni_arg2 in 'socklen_t
' 'size_t
' 'int
'; do
41506 for gni_arg46 in 'size_t
' 'int
' 'socklen_t
' 'unsigned int
' 'DWORD
'; do
41507 for gni_arg7 in 'int
' 'unsigned int
'; do
41508 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
41509 cat >conftest.$ac_ext <<_ACEOF
41513 cat confdefs.h >>conftest.$ac_ext
41514 cat >>conftest.$ac_ext <<_ACEOF
41515 /* end confdefs.h. */
41518 #ifdef HAVE_WINDOWS_H
41519 #ifndef WIN32_LEAN_AND_MEAN
41520 #define WIN32_LEAN_AND_MEAN
41522 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
41523 #undef _WIN32_WINNT
41524 #define _WIN32_WINNT 0x0501
41526 #include <windows.h>
41527 #ifdef HAVE_WINSOCK2_H
41528 #include <winsock2.h>
41529 #ifdef HAVE_WS2TCPIP_H
41530 #include <ws2tcpip.h>
41533 #define GNICALLCONV WSAAPI
41535 #ifdef HAVE_SYS_TYPES_H
41536 #include <sys/types.h>
41538 #ifdef HAVE_SYS_SOCKET_H
41539 #include <sys/socket.h>
41541 #ifdef HAVE_NETDB_H
41544 #define GNICALLCONV
41546 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
41547 char *, $gni_arg46,
41548 char *, $gni_arg46,
41556 $gni_arg46 hostlen=0;
41557 $gni_arg46 servlen=0;
41559 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
41566 rm -f conftest.$ac_objext
41567 if { (ac_try="$ac_compile"
41568 case "(($ac_try" in
41569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41570 *) ac_try_echo=$ac_try;;
41572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41573 (eval "$ac_compile") 2>conftest.er1
41575 grep -v '^
*+' conftest.er1 >conftest.err
41577 cat conftest.err >&5
41578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579 (exit $ac_status); } && {
41580 test -z "$ac_c_werror_flag" ||
41581 test ! -s conftest.err
41582 } && test -s conftest.$ac_objext; then
41584 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
41587 echo "$as_me: failed program was:" >&5
41588 sed 's
/^
/|
/' conftest.$ac_ext >&5
41593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41601 { echo "$as_me:$LINENO: result: $curl_cv_func_getnameinfo_args" >&5
41602 echo "${ECHO_T}$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
41603 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
41604 { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for getnameinfo args" >&5
41605 echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
41606 { echo "$as_me:$LINENO: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
41607 echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
41609 gni_prev_IFS=$IFS; IFS=','
41610 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's
/\
*/\
*/g
'`
41614 gni_qual_type_arg1=$1
41617 cat >>confdefs.h <<_ACEOF
41618 #define GETNAMEINFO_TYPE_ARG2 $2
41622 cat >>confdefs.h <<_ACEOF
41623 #define GETNAMEINFO_TYPE_ARG46 $3
41627 cat >>confdefs.h <<_ACEOF
41628 #define GETNAMEINFO_TYPE_ARG7 $4
41634 case $prev_sh_opts in
41642 case "$gni_qual_type_arg1" in
41644 gni_qual_arg1=const
41645 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's
/^const
//'`
41649 gni_type_arg1=$gni_qual_type_arg1
41654 cat >>confdefs.h <<_ACEOF
41655 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
41659 cat >>confdefs.h <<_ACEOF
41660 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
41664 case $prev_sh_opts in
41673 cat >>confdefs.h <<_ACEOF
41674 #define HAVE_GETNAMEINFO 1
41677 ac_cv_func_getnameinfo="yes"
41682 if test "$ipv6" = "yes"; then
41684 { echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
41685 echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6; }
41686 if test "${ac_cv_working_getaddrinfo+set}" = set; then
41687 echo $ECHO_N "(cached) $ECHO_C" >&6
41690 if test "$cross_compiling" = yes; then
41692 ac_cv_working_getaddrinfo="yes"
41695 cat >conftest.$ac_ext <<_ACEOF
41698 cat confdefs.h >>conftest.$ac_ext
41699 cat >>conftest.$ac_ext <<_ACEOF
41700 /* end confdefs.h. */
41703 #include <sys/types.h>
41704 #include <sys/socket.h>
41708 struct addrinfo hints, *ai;
41711 memset(&hints, 0, sizeof(hints));
41712 hints.ai_flags = AI_NUMERICHOST;
41713 hints.ai_family = AF_UNSPEC;
41714 hints.ai_socktype = SOCK_STREAM;
41715 error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
41723 rm -f conftest$ac_exeext
41724 if { (ac_try="$ac_link"
41725 case "(($ac_try" in
41726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41727 *) ac_try_echo=$ac_try;;
41729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41730 (eval "$ac_link") 2>&5
41732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41733 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
41734 { (case "(($ac_try" in
41735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41736 *) ac_try_echo=$ac_try;;
41738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41739 (eval "$ac_try") 2>&5
41741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742 (exit $ac_status); }; }; then
41744 ac_cv_working_getaddrinfo="yes"
41747 echo "$as_me: program exited with status $ac_status" >&5
41748 echo "$as_me: failed program was:" >&5
41749 sed 's
/^
/|
/' conftest.$ac_ext >&5
41751 ( exit $ac_status )
41753 ac_cv_working_getaddrinfo="no"
41756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41761 { echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
41762 echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6; }
41763 if test "$ac_cv_working_getaddrinfo" = "yes"; then
41765 cat >>confdefs.h <<\_ACEOF
41766 #define HAVE_GETADDRINFO 1
41770 cat >>confdefs.h <<\_ACEOF
41771 #define ENABLE_IPV6 1
41786 for ac_header in stdio.h sys/types.h sys/socket.h \
41787 netdb.h netinet/in.h arpa/inet.h
41789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41794 echo $ECHO_N "(cached) $ECHO_C" >&6
41796 ac_res=`eval echo '${'$as_ac_Header'}'`
41797 { echo "$as_me:$LINENO: result: $ac_res" >&5
41798 echo "${ECHO_T}$ac_res" >&6; }
41800 # Is the header compilable?
41801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41803 cat >conftest.$ac_ext <<_ACEOF
41806 cat confdefs.h >>conftest.$ac_ext
41807 cat >>conftest.$ac_ext <<_ACEOF
41808 /* end confdefs.h. */
41809 $ac_includes_default
41810 #include <$ac_header>
41812 rm -f conftest.$ac_objext
41813 if { (ac_try="$ac_compile"
41814 case "(($ac_try" in
41815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41816 *) ac_try_echo=$ac_try;;
41818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41819 (eval "$ac_compile") 2>conftest.er1
41821 grep -v '^
*+' conftest.er1 >conftest.err
41823 cat conftest.err >&5
41824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41825 (exit $ac_status); } && {
41826 test -z "$ac_c_werror_flag" ||
41827 test ! -s conftest.err
41828 } && test -s conftest.$ac_objext; then
41829 ac_header_compiler=yes
41831 echo "$as_me: failed program was:" >&5
41832 sed 's
/^
/|
/' conftest.$ac_ext >&5
41834 ac_header_compiler=no
41837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41839 echo "${ECHO_T}$ac_header_compiler" >&6; }
41841 # Is the header present?
41842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41844 cat >conftest.$ac_ext <<_ACEOF
41847 cat confdefs.h >>conftest.$ac_ext
41848 cat >>conftest.$ac_ext <<_ACEOF
41849 /* end confdefs.h. */
41850 #include <$ac_header>
41852 if { (ac_try="$ac_cpp conftest.$ac_ext"
41853 case "(($ac_try" in
41854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41855 *) ac_try_echo=$ac_try;;
41857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41860 grep -v '^
*+' conftest.er1 >conftest.err
41862 cat conftest.err >&5
41863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864 (exit $ac_status); } >/dev/null && {
41865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41866 test ! -s conftest.err
41868 ac_header_preproc=yes
41870 echo "$as_me: failed program was:" >&5
41871 sed 's
/^
/|
/' conftest.$ac_ext >&5
41873 ac_header_preproc=no
41876 rm -f conftest.err conftest.$ac_ext
41877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41878 echo "${ECHO_T}$ac_header_preproc" >&6; }
41880 # So? What about this header?
41881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
41886 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
41887 ac_header_preproc=yes
41890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
41899 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
41900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41903 ## ------------------------------------------------------------------------ ##
41904 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
41905 ## ------------------------------------------------------------------------ ##
41907 ) | sed "s/^/$as_me: WARNING: /" >&2
41910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41913 echo $ECHO_N "(cached) $ECHO_C" >&6
41915 eval "$as_ac_Header=\$ac_header_preproc"
41917 ac_res=`eval echo '${'$as_ac_Header'}'`
41918 { echo "$as_me:$LINENO: result: $ac_res" >&5
41919 echo "${ECHO_T}$ac_res" >&6; }
41922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41923 cat >>confdefs.h <<_ACEOF
41924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41932 { echo "$as_me:$LINENO: checking for working NI_WITHSCOPEID" >&5
41933 echo $ECHO_N "checking for working NI_WITHSCOPEID... $ECHO_C" >&6; }
41934 if test "${ac_cv_working_ni_withscopeid+set}" = set; then
41935 echo $ECHO_N "(cached) $ECHO_C" >&6
41938 if test "$cross_compiling" = yes; then
41940 # Program is not run when cross-compiling. So we assume
41941 # NI_WITHSCOPEID will work if we are able to compile it.
41942 cat >conftest.$ac_ext <<_ACEOF
41946 cat confdefs.h >>conftest.$ac_ext
41947 cat >>conftest.$ac_ext <<_ACEOF
41948 /* end confdefs.h. */
41950 #include <sys/types.h>
41951 #include <sys/socket.h>
41958 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
41965 rm -f conftest.$ac_objext
41966 if { (ac_try="$ac_compile"
41967 case "(($ac_try" in
41968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41969 *) ac_try_echo=$ac_try;;
41971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41972 (eval "$ac_compile") 2>conftest.er1
41974 grep -v '^
*+' conftest.er1 >conftest.err
41976 cat conftest.err >&5
41977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41978 (exit $ac_status); } && {
41979 test -z "$ac_c_werror_flag" ||
41980 test ! -s conftest.err
41981 } && test -s conftest.$ac_objext; then
41983 ac_cv_working_ni_withscopeid="yes"
41986 echo "$as_me: failed program was:" >&5
41987 sed 's
/^
/|
/' conftest.$ac_ext >&5
41990 ac_cv_working_ni_withscopeid="no"
41994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
41997 cat >conftest.$ac_ext <<_ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h. */
42005 #ifdef HAVE_STDIO_H
42008 #ifdef HAVE_SYS_TYPES_H
42009 #include <sys/types.h>
42011 #ifdef HAVE_SYS_SOCKET_H
42012 #include <sys/socket.h>
42014 #ifdef HAVE_NETDB_H
42017 #ifdef HAVE_NETINET_IN_H
42018 #include <netinet/in.h>
42020 #ifdef HAVE_ARPA_INET_H
42021 #include <arpa/inet.h>
42028 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
42029 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
42030 struct sockaddr_storage sa;
42032 unsigned char sa[256];
42034 char hostbuf[NI_MAXHOST];
42036 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
42037 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
42038 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
42039 int fd = socket(AF_INET6, SOCK_STREAM, 0);
42041 perror("socket()");
42042 return 1; /* Error creating socket */
42044 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
42046 perror("getsockname()");
42047 return 2; /* Error retrieving socket name */
42049 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
42051 printf("rc = %s\n", gai_strerror(rc));
42052 return 3; /* Error translating socket address */
42054 return 0; /* Ok, NI_WITHSCOPEID works */
42056 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
42061 } # AC-LANG-PROGRAM
42064 rm -f conftest$ac_exeext
42065 if { (ac_try="$ac_link"
42066 case "(($ac_try" in
42067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42068 *) ac_try_echo=$ac_try;;
42070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42071 (eval "$ac_link") 2>&5
42073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42074 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
42075 { (case "(($ac_try" in
42076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42077 *) ac_try_echo=$ac_try;;
42079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42080 (eval "$ac_try") 2>&5
42082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42083 (exit $ac_status); }; }; then
42085 # Exit code == 0. Program worked.
42086 ac_cv_working_ni_withscopeid="yes"
42089 echo "$as_me: program exited with status $ac_status" >&5
42090 echo "$as_me: failed program was:" >&5
42091 sed 's
/^
/|
/' conftest.$ac_ext >&5
42093 ( exit $ac_status )
42095 # Exit code != 0. Program failed.
42096 ac_cv_working_ni_withscopeid="no"
42099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42105 { echo "$as_me:$LINENO: result: $ac_cv_working_ni_withscopeid" >&5
42106 echo "${ECHO_T}$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
42107 case "$ac_cv_working_ni_withscopeid" in
42110 cat >>confdefs.h <<\_ACEOF
42111 #define HAVE_NI_WITHSCOPEID 1
42119 { echo "$as_me:$LINENO: checking if we are Mac OS X (to disable poll)" >&5
42120 echo $ECHO_N "checking if we are Mac OS X (to disable poll)... $ECHO_C" >&6; }
42124 disable_poll="yes";
42129 { echo "$as_me:$LINENO: result: $disable_poll" >&5
42130 echo "${ECHO_T}$disable_poll" >&6; }
42132 if test "$disable_poll" = "no"; then
42134 if test "$ac_cv_func_poll" = "yes"; then
42135 { echo "$as_me:$LINENO: checking if poll works with NULL inputs" >&5
42136 echo $ECHO_N "checking if poll works with NULL inputs... $ECHO_C" >&6; }
42137 if test "$cross_compiling" = yes; then
42138 { echo "$as_me:$LINENO: result: cross-compiling assumes yes" >&5
42139 echo "${ECHO_T}cross-compiling assumes yes" >&6; }
42141 cat >>confdefs.h <<\_ACEOF
42142 #define HAVE_POLL_FINE 1
42147 cat >conftest.$ac_ext <<_ACEOF
42149 #ifdef HAVE_SYS_POLL_H
42150 #include <sys/poll.h>
42151 #elif defined(HAVE_POLL_H)
42157 /* make this return 0 == timeout since there's nothing to
read from
*/
42158 return poll
((void
*)0, 0, 10 /*ms
*/);
42162 rm -f conftest
$ac_exeext
42163 if { (ac_try
="$ac_link"
42164 case "(($ac_try" in
42165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
42166 *) ac_try_echo=$ac_try;;
42168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42169 (eval "$ac_link") 2>&5
42171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42173 { (case "(($ac_try" in
42174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
42175 *) ac_try_echo
=$ac_try;;
42177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42178 (eval "$ac_try") 2>&5
42180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42181 (exit $ac_status); }; }; then
42182 { echo "$as_me:$LINENO: result: yes" >&5
42183 echo "${ECHO_T}yes" >&6; }
42185 cat >>confdefs.h
<<\_ACEOF
42186 #define HAVE_POLL_FINE 1
42190 echo "$as_me: program exited with status $ac_status" >&5
42191 echo "$as_me: failed program was:" >&5
42192 sed 's/^/| /' conftest.
$ac_ext >&5
42194 ( exit $ac_status )
42195 { echo "$as_me:$LINENO: result: no" >&5
42196 echo "${ECHO_T}no" >&6; }
42198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
42203 # Extract the first word of "perl", so it can be a program name with args.
42204 set dummy perl
; ac_word
=$2
42205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42207 if test "${ac_cv_path_PERL+set}" = set; then
42208 echo $ECHO_N "(cached) $ECHO_C" >&6
42212 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
42215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
42216 as_dummy
="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
42217 for as_dir
in $as_dummy
42220 test -z "$as_dir" && as_dir
=.
42221 for ac_exec_ext
in '' $ac_executable_extensions; do
42222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42223 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
42224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42234 PERL
=$ac_cv_path_PERL
42235 if test -n "$PERL"; then
42236 { echo "$as_me:$LINENO: result: $PERL" >&5
42237 echo "${ECHO_T}$PERL" >&6; }
42239 { echo "$as_me:$LINENO: result: no" >&5
42240 echo "${ECHO_T}no" >&6; }
42246 for ac_prog
in gnroff nroff
42248 # Extract the first word of "$ac_prog", so it can be a program name with args.
42249 set dummy
$ac_prog; ac_word
=$2
42250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42252 if test "${ac_cv_path_NROFF+set}" = set; then
42253 echo $ECHO_N "(cached) $ECHO_C" >&6
42257 ac_cv_path_NROFF
="$NROFF" # Let the user override the test with a path.
42260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
42261 as_dummy
="$PATH:/usr/bin/:/usr/local/bin "
42262 for as_dir
in $as_dummy
42265 test -z "$as_dir" && as_dir
=.
42266 for ac_exec_ext
in '' $ac_executable_extensions; do
42267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42268 ac_cv_path_NROFF
="$as_dir/$ac_word$ac_exec_ext"
42269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42279 NROFF
=$ac_cv_path_NROFF
42280 if test -n "$NROFF"; then
42281 { echo "$as_me:$LINENO: result: $NROFF" >&5
42282 echo "${ECHO_T}$NROFF" >&6; }
42284 { echo "$as_me:$LINENO: result: no" >&5
42285 echo "${ECHO_T}no" >&6; }
42289 test -n "$NROFF" && break
42294 if test -n "$NROFF"; then
42296 { echo "$as_me:$LINENO: checking how to use *nroff to get plain text from man pages" >&5
42297 echo $ECHO_N "checking how to use *nroff to get plain text from man pages... $ECHO_C" >&6; }
42299 mancheck
=`echo foo | $NROFF $MANOPT 2>/dev/null`
42300 if test -z "$mancheck"; then
42302 mancheck
=`echo foo | $NROFF $MANOPT 2>/dev/null`
42303 if test -z "$mancheck"; then
42305 { echo "$as_me:$LINENO: result: failed" >&5
42306 echo "${ECHO_T}failed" >&6; }
42307 { echo "$as_me:$LINENO: WARNING: found no *nroff option to get plaintext from man pages" >&5
42308 echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
42310 { echo "$as_me:$LINENO: result: $MANOPT" >&5
42311 echo "${ECHO_T}$MANOPT" >&6; }
42314 { echo "$as_me:$LINENO: result: $MANOPT" >&5
42315 echo "${ECHO_T}$MANOPT" >&6; }
42320 if test -z "$MANOPT"
42322 { echo "$as_me:$LINENO: WARNING: disabling built-in manual" >&5
42323 echo "$as_me: WARNING: disabling built-in manual" >&2;}
42328 if test "$USE_MANUAL" = "1"; then
42330 cat >>confdefs.h
<<\_ACEOF
42331 #define USE_MANUAL 1
42334 curl_manual_msg
="enabled"
42339 if test x
"$USE_MANUAL" = x1
; then
42341 USE_MANUAL_FALSE
='#'
42343 USE_MANUAL_TRUE
='#'
42348 { echo "$as_me:$LINENO: checking whether to enable c-ares" >&5
42349 echo $ECHO_N "checking whether to enable c-ares... $ECHO_C" >&6; }
42350 # Check whether --enable-ares was given.
42351 if test "${enable_ares+set}" = set; then
42352 enableval
=$enable_ares; case "$enableval" in
42354 { echo "$as_me:$LINENO: result: no" >&5
42355 echo "${ECHO_T}no" >&6; }
42357 *) { echo "$as_me:$LINENO: result: yes" >&5
42358 echo "${ECHO_T}yes" >&6; }
42360 if test "x$IPV6_ENABLED" = "x1"; then
42361 { echo "$as_me:$LINENO: c-ares may not work properly with ipv6" >&5
42362 echo "$as_me: c-ares may not work properly with ipv6" >&6;}
42366 cat >>confdefs.h
<<\_ACEOF
42372 curl_ares_msg
="enabled"
42374 LIBS
="-lcares $LIBS"
42376 if test "x$enableval" = "xyes" ; then
42377 if test -d "$srcdir/ares"; then
42379 subdirs
="$subdirs ares"
42381 aresinc
=`cd $srcdir/ares && pwd`
42382 CPPFLAGS
="$CPPFLAGS -I$aresinc"
42385 LDFLAGS
="$LDFLAGS -L$pwd/ares"
42388 CPPFLAGS
="$CPPFLAGS -I$enableval/include"
42389 LDFLAGS
="$LDFLAGS -L$enableval/lib"
42392 if test -z "$aresembedded"; then
42393 { echo "$as_me:$LINENO: checking that c-ares is good and recent enough" >&5
42394 echo $ECHO_N "checking that c-ares is good and recent enough... $ECHO_C" >&6; }
42395 cat >conftest.
$ac_ext <<_ACEOF
42399 cat confdefs.h
>>conftest.
$ac_ext
42400 cat >>conftest.
$ac_ext <<_ACEOF
42401 /* end confdefs.h. */
42404 /* set of dummy functions in case c-ares was built with debug */
42405 void curl_dofree() { }
42406 void curl_sclose() { }
42407 void curl_domalloc() { }
42408 void curl_docalloc() { }
42409 void curl_socket() { }
42415 ares_channel channel;
42416 ares_cancel(channel); /* added in 1.2.0 */
42417 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
42424 rm -f conftest.
$ac_objext conftest
$ac_exeext
42425 if { (ac_try
="$ac_link"
42426 case "(($ac_try" in
42427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
42428 *) ac_try_echo=$ac_try;;
42430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42431 (eval "$ac_link") 2>conftest.er1
42433 grep -v '^ *+' conftest.er1 >conftest.err
42435 cat conftest.err >&5
42436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42437 (exit $ac_status); } && {
42438 test -z "$ac_c_werror_flag" ||
42439 test ! -s conftest.err
42440 } && test -s conftest$ac_exeext &&
42441 $as_test_x conftest$ac_exeext; then
42443 { echo "$as_me:$LINENO: result: yes" >&5
42444 echo "${ECHO_T}yes" >&6; }
42447 echo "$as_me: failed program was:" >&5
42448 sed 's/^/| /' conftest.$ac_ext >&5
42451 { echo "$as_me:$LINENO: result: no" >&5
42452 echo "${ECHO_T}no" >&6; }
42453 { { echo "$as_me:$LINENO: error: c-ares library defective or too old" >&5
42454 echo "$as_me: error: c-ares library defective or too old" >&2;}
42455 { (exit 1); exit 1; }; }
42459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42460 conftest$ac_exeext conftest.$ac_ext
42465 { echo "$as_me:$LINENO: result: no" >&5
42466 echo "${ECHO_T}no" >&6; }
42471 { echo "$as_me:$LINENO: checking whether to enable verbose strings" >&5
42472 echo $ECHO_N "checking whether to enable verbose strings... $ECHO_C" >&6; }
42473 # Check whether --enable-verbose was given.
42474 if test "${enable_verbose+set}" = set; then
42475 enableval=$enable_verbose; case "$enableval" in
42477 { echo "$as_me:$LINENO: result: no" >&5
42478 echo "${ECHO_T}no" >&6; }
42480 cat >>confdefs.h <<\_ACEOF
42481 #define CURL_DISABLE_VERBOSE_STRINGS 1
42484 curl_verbose_msg="no"
42486 *) { echo "$as_me:$LINENO: result: yes" >&5
42487 echo "${ECHO_T}yes" >&6; }
42491 { echo "$as_me:$LINENO: result: yes" >&5
42492 echo "${ECHO_T}yes" >&6; }
42497 { echo "$as_me:$LINENO: checking whether to enable SSPI support (Windows native builds only)" >&5
42498 echo $ECHO_N "checking whether to enable SSPI support (Windows native builds only)... $ECHO_C" >&6; }
42499 # Check whether --enable-sspi was given.
42500 if test "${enable_sspi+set}" = set; then
42501 enableval=$enable_sspi; case "$enableval" in
42503 if test "$ac_cv_native_windows" = "yes"; then
42504 { echo "$as_me:$LINENO: result: yes" >&5
42505 echo "${ECHO_T}yes" >&6; }
42507 cat >>confdefs.h <<\_ACEOF
42508 #define USE_WINDOWS_SSPI 1
42513 curl_sspi_msg="yes"
42515 { echo "$as_me:$LINENO: result: no" >&5
42516 echo "${ECHO_T}no" >&6; }
42517 { echo "$as_me:$LINENO: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
42518 echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
42522 { echo "$as_me:$LINENO: result: no" >&5
42523 echo "${ECHO_T}no" >&6; }
42527 { echo "$as_me:$LINENO: result: no" >&5
42528 echo "${ECHO_T}no" >&6; }
42533 { echo "$as_me:$LINENO: checking whether to enable debug options" >&5
42534 echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6; }
42535 # Check whether --enable-debug was given.
42536 if test "${enable_debug+set}" = set; then
42537 enableval=$enable_debug; case "$enableval" in
42539 { echo "$as_me:$LINENO: result: no" >&5
42540 echo "${ECHO_T}no" >&6; }
42542 *) { echo "$as_me:$LINENO: result: yes" >&5
42543 echo "${ECHO_T}yes" >&6; }
42545 CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
42546 CFLAGS="$CFLAGS -g"
42549 if test "z$ICC" = "z"; then
42552 { echo "$as_me:$LINENO: checking for icc in use" >&5
42553 echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
42554 if test "$GCC" = "yes"; then
42555 cat >conftest.$ac_ext <<_ACEOF
42558 cat confdefs.h >>conftest.$ac_ext
42559 cat >>conftest.$ac_ext <<_ACEOF
42560 /* end confdefs.h. */
42563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42564 $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
42568 { echo "$as_me:$LINENO: result: yes" >&5
42569 echo "${ECHO_T}yes" >&6; }
42576 if test "$ICC" = "no"; then
42578 { echo "$as_me:$LINENO: result: no" >&5
42579 echo "${ECHO_T}no" >&6; }
42584 if test "$GCC" = "yes"; then
42586 { echo "$as_me:$LINENO: checking gcc version" >&5
42587 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
42588 gccver=`$CC -dumpversion`
42589 num1=`echo $gccver | cut
-d .
-f1`
42590 num2=`echo $gccver | cut
-d .
-f2`
42591 gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev
/null
`
42592 { echo "$as_me:$LINENO: result: $gccver" >&5
42593 echo "${ECHO_T}$gccver" >&6; }
42595 if test "$ICC" = "yes"; then
42598 WARN="-wd279,269,981,1418,1419"
42600 if test "$gccnum" -gt "600"; then
42603 else WARN="-W -Wall -Wwrite-strings -pedantic -Wpointer-arith -Wnested-externs -Winline -Wmissing-prototypes"
42606 if test "$gccnum" -ge "207"; then
42607 WARN="$WARN -Wmissing-declarations"
42610 if test "$gccnum" -gt "295"; then
42611 WARN="$WARN -Wundef -Wno-long-long -Wsign-compare -Wshadow -Wno-multichar"
42614 if test "$gccnum" -ge "296"; then
42615 WARN="$WARN -Wfloat-equal"
42618 if test "$gccnum" -gt "296"; then
42619 WARN="$WARN -Wno-format-nonliteral"
42623 if test "$gccnum" -ge "303"; then
42624 WARN="$WARN -Wendif-labels -Wstrict-prototypes"
42627 if test "$gccnum" -ge "304"; then
42628 # try these on gcc 3.4
42629 WARN="$WARN -Wdeclaration-after-statement"
42632 for flag in $CPPFLAGS; do
42635 add=`echo $flag |
sed 's/^-I/-isystem /g'`
42642 CFLAGS="$CFLAGS $WARN"
42644 { echo "$as_me:$LINENO: Added this set of compiler options: $WARN" >&5
42645 echo "$as_me: Added this set of compiler options: $WARN" >&6;}
42648 { echo "$as_me:$LINENO: Added no extra compiler options" >&5
42649 echo "$as_me: Added no extra compiler options" >&6;}
42653 for flag in $CFLAGS; do
42658 NEWFLAGS="$NEWFLAGS $flag"
42669 { echo "$as_me:$LINENO: result: no" >&5
42670 echo "${ECHO_T}no" >&6; }
42675 { echo "$as_me:$LINENO: checking whether to enable cryptographic authentication methods" >&5
42676 echo $ECHO_N "checking whether to enable cryptographic authentication methods... $ECHO_C" >&6; }
42677 # Check whether --enable-crypto-auth was given.
42678 if test "${enable_crypto_auth+set}" = set; then
42679 enableval=$enable_crypto_auth; case "$enableval" in
42681 { echo "$as_me:$LINENO: result: no" >&5
42682 echo "${ECHO_T}no" >&6; }
42684 cat >>confdefs.h <<\_ACEOF
42685 #define CURL_DISABLE_CRYPTO_AUTH 1
42689 *) { echo "$as_me:$LINENO: result: yes" >&5
42690 echo "${ECHO_T}yes" >&6; }
42694 { echo "$as_me:$LINENO: result: yes" >&5
42695 echo "${ECHO_T}yes" >&6; }
42700 { echo "$as_me:$LINENO: checking whether to enable support for cookies" >&5
42701 echo $ECHO_N "checking whether to enable support for cookies... $ECHO_C" >&6; }
42702 # Check whether --enable-cookies was given.
42703 if test "${enable_cookies+set}" = set; then
42704 enableval=$enable_cookies; case "$enableval" in
42706 { echo "$as_me:$LINENO: result: no" >&5
42707 echo "${ECHO_T}no" >&6; }
42709 cat >>confdefs.h <<\_ACEOF
42710 #define CURL_DISABLE_COOKIES 1
42714 *) { echo "$as_me:$LINENO: result: yes" >&5
42715 echo "${ECHO_T}yes" >&6; }
42719 { echo "$as_me:$LINENO: result: yes" >&5
42720 echo "${ECHO_T}yes" >&6; }
42725 { echo "$as_me:$LINENO: checking whether to enable hidden symbols in the library" >&5
42726 echo $ECHO_N "checking whether to enable hidden symbols in the library... $ECHO_C" >&6; }
42727 # Check whether --enable-hidden-symbols was given.
42728 if test "${enable_hidden_symbols+set}" = set; then
42729 enableval=$enable_hidden_symbols; case "$enableval" in
42731 { echo "$as_me:$LINENO: result: no" >&5
42732 echo "${ECHO_T}no" >&6; }
42735 { echo "$as_me:$LINENO: checking whether $CC supports it" >&5
42736 echo $ECHO_N "checking whether $CC supports it... $ECHO_C" >&6; }
42737 if test "$GCC" = yes ; then
42738 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
42739 { echo "$as_me:$LINENO: result: yes" >&5
42740 echo "${ECHO_T}yes" >&6; }
42742 cat >>confdefs.h <<\_ACEOF
42743 #define CURL_HIDDEN_SYMBOLS 1
42747 cat >>confdefs.h <<\_ACEOF
42748 #define CURL_EXTERN_SYMBOL __attribute__ ((visibility ("default")))
42751 CFLAGS="$CFLAGS -fvisibility=hidden"
42753 { echo "$as_me:$LINENO: result: no" >&5
42754 echo "${ECHO_T}no" >&6; }
42758 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
42759 { echo "$as_me:$LINENO: result: yes" >&5
42760 echo "${ECHO_T}yes" >&6; }
42762 cat >>confdefs.h <<\_ACEOF
42763 #define CURL_HIDDEN_SYMBOLS 1
42767 cat >>confdefs.h <<\_ACEOF
42768 #define CURL_EXTERN_SYMBOL __global
42771 CFLAGS="$CFLAGS -xldscope=hidden"
42773 { echo "$as_me:$LINENO: result: no" >&5
42774 echo "${ECHO_T}no" >&6; }
42780 { echo "$as_me:$LINENO: result: no" >&5
42781 echo "${ECHO_T}no" >&6; }
42787 { echo "$as_me:$LINENO: checking whether to enforce SONAME bump" >&5
42788 echo $ECHO_N "checking whether to enforce SONAME bump... $ECHO_C" >&6; }
42789 # Check whether --enable-soname-bump was given.
42790 if test "${enable_soname_bump+set}" = set; then
42791 enableval=$enable_soname_bump; case "$enableval" in
42792 yes) { echo "$as_me:$LINENO: result: yes" >&5
42793 echo "${ECHO_T}yes" >&6; }
42797 { echo "$as_me:$LINENO: result: no" >&5
42798 echo "${ECHO_T}no" >&6; }
42802 { echo "$as_me:$LINENO: result: $soname_bump" >&5
42803 echo "${ECHO_T}$soname_bump" >&6; }
42809 if test x$soname_bump = xyes; then
42811 SONAME_BUMP_FALSE='#'
42813 SONAME_BUMP_TRUE='#'
42819 if test ! -z "$winsock_LIB"; then
42822 LIBS="$LIBS $winsock_LIB"
42823 TEST_SERVER_LIBS="$TEST_SERVER_LIBS $winsock_LIB"
42835 if test x$cross_compiling = xyes; then
42836 CROSSCOMPILING_TRUE=
42837 CROSSCOMPILING_FALSE='#'
42839 CROSSCOMPILING_TRUE='#'
42840 CROSSCOMPILING_FALSE=
42844 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/DOS/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
42846 cat >confcache <<\_ACEOF
42847 # This file is a shell script that caches the results of configure
42848 # tests run on this system so they can be shared between configure
42849 # scripts and configure runs, see configure's option --config-cache.
42850 # It is not useful on other systems. If it contains results you don't
42851 # want to keep, you may remove or edit it.
42853 # config.status only pays attention to the cache file if you give it
42854 # the --recheck option to rerun configure.
42856 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
42857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42858 # following values.
42862 # The following way of writing the cache mishandles newlines in values,
42863 # but we know of no workaround that is simple, portable, and efficient.
42864 # So, we kill variables containing newlines.
42865 # Ultrix sh set writes to stderr and can't be redirected directly,
42866 # and sets the high bit in the cache file unless we assign to the vars.
42868 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42869 eval ac_val
=\$
$ac_var
42873 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42874 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42877 _ | IFS | as_nl
) ;; #(
42878 *) $as_unset $ac_var ;;
42884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42885 *${as_nl}ac_space
=\
*)
42886 # `set' does not quote correctly, so add quotes (double-quote
42887 # substitution turns \\\\ into \\, and sed turns \\ into \).
42890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42893 # `set' quotes correctly as required by POSIX, so do not add quotes.
42894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42907 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
42908 if test -w "$cache_file"; then
42909 test "x$cache_file" != "x/dev/null" &&
42910 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42911 echo "$as_me: updating cache $cache_file" >&6;}
42912 cat confcache
>$cache_file
42914 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42915 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42920 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
42921 # Let make expand exec_prefix.
42922 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
42924 DEFS
=-DHAVE_CONFIG_H
42928 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
42929 # 1. Remove the extension, and $U if already installed.
42930 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
42931 ac_i
=`echo "$ac_i" | sed "$ac_script"`
42932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
42933 # will be set to the directory where LIBOBJS objects are built.
42934 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42935 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42937 LIBOBJS
=$ac_libobjs
42939 LTLIBOBJS
=$ac_ltlibobjs
42942 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
42943 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
42944 Usually this means the macro was only invoked conditionally." >&5
42945 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
42946 Usually this means the macro was only invoked conditionally." >&2;}
42947 { (exit 1); exit 1; }; }
42949 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42950 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42951 Usually this means the macro was only invoked conditionally." >&5
42952 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42953 Usually this means the macro was only invoked conditionally." >&2;}
42954 { (exit 1); exit 1; }; }
42956 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42957 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42958 Usually this means the macro was only invoked conditionally." >&5
42959 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42960 Usually this means the macro was only invoked conditionally." >&2;}
42961 { (exit 1); exit 1; }; }
42963 if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
42964 { { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
42965 Usually this means the macro was only invoked conditionally." >&5
42966 echo "$as_me: error: conditional \"NO_UNDEFINED\" was never defined.
42967 Usually this means the macro was only invoked conditionally." >&2;}
42968 { (exit 1); exit 1; }; }
42970 if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
42971 { { echo "$as_me:$LINENO: error: conditional \"MIMPURE\" was never defined.
42972 Usually this means the macro was only invoked conditionally." >&5
42973 echo "$as_me: error: conditional \"MIMPURE\" was never defined.
42974 Usually this means the macro was only invoked conditionally." >&2;}
42975 { (exit 1); exit 1; }; }
42977 if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
42978 { { echo "$as_me:$LINENO: error: conditional \"STATICLIB\" was never defined.
42979 Usually this means the macro was only invoked conditionally." >&5
42980 echo "$as_me: error: conditional \"STATICLIB\" was never defined.
42981 Usually this means the macro was only invoked conditionally." >&2;}
42982 { (exit 1); exit 1; }; }
42984 if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
42985 { { echo "$as_me:$LINENO: error: conditional \"STATICLIB\" was never defined.
42986 Usually this means the macro was only invoked conditionally." >&5
42987 echo "$as_me: error: conditional \"STATICLIB\" was never defined.
42988 Usually this means the macro was only invoked conditionally." >&2;}
42989 { (exit 1); exit 1; }; }
42991 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
42992 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
42993 Usually this means the macro was only invoked conditionally." >&5
42994 echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
42995 Usually this means the macro was only invoked conditionally." >&2;}
42996 { (exit 1); exit 1; }; }
42998 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
42999 { { echo "$as_me:$LINENO: error: conditional \"USE_MANUAL\" was never defined.
43000 Usually this means the macro was only invoked conditionally." >&5
43001 echo "$as_me: error: conditional \"USE_MANUAL\" was never defined.
43002 Usually this means the macro was only invoked conditionally." >&2;}
43003 { (exit 1); exit 1; }; }
43005 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
43006 { { echo "$as_me:$LINENO: error: conditional \"SONAME_BUMP\" was never defined.
43007 Usually this means the macro was only invoked conditionally." >&5
43008 echo "$as_me: error: conditional \"SONAME_BUMP\" was never defined.
43009 Usually this means the macro was only invoked conditionally." >&2;}
43010 { (exit 1); exit 1; }; }
43012 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
43013 { { echo "$as_me:$LINENO: error: conditional \"CROSSCOMPILING\" was never defined.
43014 Usually this means the macro was only invoked conditionally." >&5
43015 echo "$as_me: error: conditional \"CROSSCOMPILING\" was never defined.
43016 Usually this means the macro was only invoked conditionally." >&2;}
43017 { (exit 1); exit 1; }; }
43020 : ${CONFIG_STATUS=./config.status}
43021 ac_clean_files_save
=$ac_clean_files
43022 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
43023 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43024 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43025 cat >$CONFIG_STATUS <<_ACEOF
43027 # Generated by $as_me.
43028 # Run this file to recreate the current configuration.
43029 # Compiler output produced by configure, useful for debugging
43030 # configure, is in config.log if it exists.
43033 ac_cs_recheck=false
43035 SHELL=\${CONFIG_SHELL-$SHELL}
43038 cat >>$CONFIG_STATUS <<\_ACEOF
43039 ## --------------------- ##
43040 ## M4sh Initialization. ##
43041 ## --------------------- ##
43043 # Be more Bourne compatible
43044 DUALCASE
=1; export DUALCASE
# for MKS sh
43045 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
43048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43049 # is contrary to our usage. Disable this feature.
43050 alias -g '${1+"$@"}'='"$@"'
43051 setopt NO_GLOB_SUBST
43053 case `(set -o) 2>/dev/null` in
43054 *posix
*) set -o posix
;;
43063 # Avoid depending upon Character Ranges.
43064 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
43065 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43066 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
43067 as_cr_digits
='0123456789'
43068 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43070 # The user is always right.
43071 if test "${PATH_SEPARATOR+set}" != set; then
43072 echo "#! /bin/sh" >conf$$.sh
43073 echo "exit 0" >>conf$$.sh
43075 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
43083 # Support unset when possible.
43084 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
43092 # We need space, tab and new line, in precisely that order. Quoting is
43093 # there to prevent editors from complaining about space-tab.
43094 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43095 # splitting by setting IFS to empty value.)
43100 # Find who we are. Look in the path if we contain no directory separator.
43102 *[\\/]* ) as_myself
=$0 ;;
43103 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
43104 for as_dir
in $PATH
43107 test -z "$as_dir" && as_dir
=.
43108 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
43114 # We did not find ourselves, most probably we were run as `sh COMMAND'
43115 # in which case we are not to be found in the path.
43116 if test "x$as_myself" = x
; then
43119 if test ! -f "$as_myself"; then
43120 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43121 { (exit 1); exit 1; }
43124 # Work around bugs in pre-3.0 UWIN ksh.
43125 for as_var
in ENV MAIL MAILPATH
43126 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
43134 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43135 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43136 LC_TELEPHONE LC_TIME
43138 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43139 eval $as_var=C
; export $as_var
43141 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
43145 # Required to use basename.
43146 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
43147 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
43153 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43154 as_basename
=basename
43160 # Name of the executable.
43161 as_me
=`$as_basename -- "$0" ||
43162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43163 X"$0" : 'X\(//\)$' \| \
43164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43166 sed '/^.*\/\([^/][^/]*\)\/*$/{
43185 as_lineno_1
=$LINENO
43186 as_lineno_2
=$LINENO
43187 test "x$as_lineno_1" != "x$as_lineno_2" &&
43188 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
43190 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43191 # uniformly replaced by the line number. The first 'sed' inserts a
43192 # line-number line after each line using $LINENO; the second 'sed'
43193 # does the real work. The second script uses 'N' to pair each
43194 # line-number line with the line containing $LINENO, and appends
43195 # trailing '-' during substitution so that $LINENO is not a special
43196 # case at line end.
43197 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43198 # scripts with optimization help from Paolo Bonzini. Blame Lee
43199 # E. McMahon (1931-1989) for sed's syntax. :-)
43211 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43214 ' >$as_me.lineno
&&
43215 chmod +x
"$as_me.lineno" ||
43216 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43217 { (exit 1); exit 1; }; }
43219 # Don't try to exec as it changes $[0], causing all sort of problems
43220 # (the dirname of $[0] is not the place where we might find the
43221 # original and so on. Autoconf is especially sensitive to this).
43222 .
"./$as_me.lineno"
43223 # Exit status is that of the last command.
43228 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
43234 ECHO_C
= ECHO_N
= ECHO_T
=
43235 case `echo -n x` in
43237 case `echo 'x\c'` in
43238 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
43245 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
43246 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
43252 rm -f conf$$ conf$$.exe conf$$.
file
43253 if test -d conf$$.dir
; then
43254 rm -f conf$$.dir
/conf$$.
file
43260 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
43262 # ... but there are two gotchas:
43263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43265 # In both cases, we have to default to `cp -p'.
43266 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
43268 elif ln conf$$.
file conf$$
2>/dev
/null
; then
43273 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
43274 rmdir conf$$.dir
2>/dev
/null
43276 if mkdir
-p .
2>/dev
/null
; then
43279 test -d .
/-p && rmdir .
/-p
43283 if test -x / >/dev
/null
2>&1; then
43284 as_test_x
='test -x'
43286 if ls -dL / >/dev
/null
2>&1; then
43293 if test -d "$1"; then
43299 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43300 ???[sx]*):;;*)false;;esac;fi
43304 as_executable_p
=$as_test_x
43306 # Sed expression to map a string onto a valid CPP name.
43307 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43309 # Sed expression to map a string onto a valid variable name.
43310 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43315 # Save the log message, to keep $[0] and so on meaningful, and to
43316 # report actual input values of CONFIG_FILES etc. instead of their
43317 # values after options handling.
43319 This file was extended by curl $as_me -, which was
43320 generated by GNU Autoconf 2.61. Invocation command line was
43322 CONFIG_FILES = $CONFIG_FILES
43323 CONFIG_HEADERS = $CONFIG_HEADERS
43324 CONFIG_LINKS = $CONFIG_LINKS
43325 CONFIG_COMMANDS = $CONFIG_COMMANDS
43328 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43333 cat >>$CONFIG_STATUS <<_ACEOF
43334 # Files that config.status was made for.
43335 config_files="$ac_config_files"
43336 config_headers="$ac_config_headers"
43337 config_commands="$ac_config_commands"
43341 cat >>$CONFIG_STATUS <<\_ACEOF
43343 \`$as_me' instantiates files from templates according to the
43344 current configuration.
43346 Usage: $0 [OPTIONS] [FILE]...
43348 -h, --help print this help, then exit
43349 -V, --version print version number and configuration settings, then exit
43350 -q, --quiet do not print progress messages
43351 -d, --debug don't remove temporary files
43352 --recheck update $as_me by reconfiguring in the same conditions
43353 --file=FILE[:TEMPLATE]
43354 instantiate the configuration file FILE
43355 --header=FILE[:TEMPLATE]
43356 instantiate the configuration header FILE
43358 Configuration files:
43361 Configuration headers:
43364 Configuration commands:
43367 Report bugs to <bug-autoconf@gnu.org>."
43370 cat >>$CONFIG_STATUS <<_ACEOF
43372 curl config.status -
43373 configured by $0, generated by GNU Autoconf 2.61,
43374 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43376 Copyright (C) 2006 Free Software Foundation, Inc.
43377 This config.status script is free software; the Free Software Foundation
43378 gives unlimited permission to copy, distribute and modify it."
43385 cat >>$CONFIG_STATUS <<\_ACEOF
43386 # If no file are specified by the user, then we need to provide default
43387 # value. By we need to know if files were specified by the user.
43393 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
43394 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
43405 # Handling of the options.
43406 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
43408 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
43409 echo "$ac_cs_version"; exit ;;
43410 --debug |
--debu |
--deb |
--de |
--d |
-d )
43412 --file |
--fil |
--fi |
--f )
43414 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
43415 ac_need_defaults
=false
;;
43416 --header |
--heade |
--head |
--hea )
43418 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
43419 ac_need_defaults
=false
;;
43421 # Conflict between --help and --header
43422 { echo "$as_me: error: ambiguous option: $1
43423 Try \`$0 --help' for more information." >&2
43424 { (exit 1); exit 1; }; };;
43425 --help |
--hel |
-h )
43426 echo "$ac_cs_usage"; exit ;;
43427 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
43428 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
43431 # This is an error.
43432 -*) { echo "$as_me: error: unrecognized option: $1
43433 Try \`$0 --help' for more information." >&2
43434 { (exit 1); exit 1; }; } ;;
43436 *) ac_config_targets
="$ac_config_targets $1"
43437 ac_need_defaults
=false
;;
43443 ac_configure_extra_args
=
43445 if $ac_cs_silent; then
43447 ac_configure_extra_args
="$ac_configure_extra_args --silent"
43451 cat >>$CONFIG_STATUS <<_ACEOF
43452 if \$ac_cs_recheck; then
43453 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43454 CONFIG_SHELL=$SHELL
43455 export CONFIG_SHELL
43456 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43460 cat >>$CONFIG_STATUS <<\_ACEOF
43464 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43465 ## Running $as_me. ##
43471 cat >>$CONFIG_STATUS <<_ACEOF
43475 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43479 cat >>$CONFIG_STATUS <<\_ACEOF
43481 # Handling of arguments.
43482 for ac_config_target
in $ac_config_targets
43484 case $ac_config_target in
43485 "lib/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/config.h" ;;
43486 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h" ;;
43487 "include/curl/curlbuild.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
43488 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
43489 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
43490 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
43491 "docs/examples/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/examples/Makefile" ;;
43492 "docs/libcurl/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/libcurl/Makefile" ;;
43493 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
43494 "include/curl/Makefile") CONFIG_FILES
="$CONFIG_FILES include/curl/Makefile" ;;
43495 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
43496 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
43497 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
43498 "tests/data/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/data/Makefile" ;;
43499 "tests/server/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/server/Makefile" ;;
43500 "tests/libtest/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/libtest/Makefile" ;;
43501 "packages/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/Makefile" ;;
43502 "packages/Win32/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/Win32/Makefile" ;;
43503 "packages/Win32/cygwin/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
43504 "packages/Linux/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/Linux/Makefile" ;;
43505 "packages/Linux/RPM/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
43506 "packages/Linux/RPM/curl.spec") CONFIG_FILES
="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
43507 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES
="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
43508 "packages/Solaris/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/Solaris/Makefile" ;;
43509 "packages/DOS/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/DOS/Makefile" ;;
43510 "packages/EPM/curl.list") CONFIG_FILES
="$CONFIG_FILES packages/EPM/curl.list" ;;
43511 "packages/EPM/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/EPM/Makefile" ;;
43512 "packages/vms/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/vms/Makefile" ;;
43513 "packages/AIX/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/AIX/Makefile" ;;
43514 "packages/AIX/RPM/Makefile") CONFIG_FILES
="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
43515 "packages/AIX/RPM/curl.spec") CONFIG_FILES
="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
43516 "curl-config") CONFIG_FILES
="$CONFIG_FILES curl-config" ;;
43517 "libcurl.pc") CONFIG_FILES
="$CONFIG_FILES libcurl.pc" ;;
43519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43520 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43521 { (exit 1); exit 1; }; };;
43526 # If the user did not use the arguments to specify the items to instantiate,
43527 # then the envvar interface is used. Set only those that are not.
43528 # We use the long form for the default assignment because of an extremely
43529 # bizarre bug on SunOS 4.1.3.
43530 if $ac_need_defaults; then
43531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
43532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
43533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
43536 # Have a temporary directory for convenience. Make it in the build tree
43537 # simply because there is no reason against having it here, and in addition,
43538 # creating and moving files from /tmp can sometimes cause problems.
43539 # Hook for its removal unless debugging.
43540 # Note that there is a small window in which the directory will not be cleaned:
43541 # after its creation but before its name has been assigned to `$tmp'.
43545 trap 'exit_status=$?
43546 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43548 trap '{ (exit 1); exit 1; }' 1 2 13 15
43550 # Create a (secure) tmp directory for tmp files.
43553 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43554 test -n "$tmp" && test -d "$tmp"
43557 tmp
=.
/conf$$
-$RANDOM
43558 (umask 077 && mkdir
"$tmp")
43561 echo "$me: cannot create a temporary directory in ." >&2
43562 { (exit 1); exit 1; }
43566 # Set up the sed scripts for CONFIG_FILES section.
43569 # No need to generate the scripts if there are no CONFIG_FILES.
43570 # This happens for instance when ./config.status config.h
43571 if test -n "$CONFIG_FILES"; then
43578 for ac_last_try
in false false false false false
:; do
43579 cat >conf$
$subs.
sed <<_ACEOF
43580 SHELL!$SHELL$ac_delim
43581 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43582 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43583 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43584 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43585 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43586 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43587 exec_prefix!$exec_prefix$ac_delim
43588 prefix!$prefix$ac_delim
43589 program_transform_name!$program_transform_name$ac_delim
43590 bindir!$bindir$ac_delim
43591 sbindir!$sbindir$ac_delim
43592 libexecdir!$libexecdir$ac_delim
43593 datarootdir!$datarootdir$ac_delim
43594 datadir!$datadir$ac_delim
43595 sysconfdir!$sysconfdir$ac_delim
43596 sharedstatedir!$sharedstatedir$ac_delim
43597 localstatedir!$localstatedir$ac_delim
43598 includedir!$includedir$ac_delim
43599 oldincludedir!$oldincludedir$ac_delim
43600 docdir!$docdir$ac_delim
43601 infodir!$infodir$ac_delim
43602 htmldir!$htmldir$ac_delim
43603 dvidir!$dvidir$ac_delim
43604 pdfdir!$pdfdir$ac_delim
43605 psdir!$psdir$ac_delim
43606 libdir!$libdir$ac_delim
43607 localedir!$localedir$ac_delim
43608 mandir!$mandir$ac_delim
43609 DEFS!$DEFS$ac_delim
43610 ECHO_C!$ECHO_C$ac_delim
43611 ECHO_N!$ECHO_N$ac_delim
43612 ECHO_T!$ECHO_T$ac_delim
43613 LIBS!$LIBS$ac_delim
43614 build_alias!$build_alias$ac_delim
43615 host_alias!$host_alias$ac_delim
43616 target_alias!$target_alias$ac_delim
43617 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
43618 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
43619 MAINT!$MAINT$ac_delim
43621 GREP!$GREP$ac_delim
43622 EGREP!$EGREP$ac_delim
43624 libext!$libext$ac_delim
43625 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43626 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43627 INSTALL_DATA!$INSTALL_DATA$ac_delim
43628 CYGPATH_W!$CYGPATH_W$ac_delim
43629 PACKAGE!$PACKAGE$ac_delim
43630 VERSION!$VERSION$ac_delim
43631 ACLOCAL!$ACLOCAL$ac_delim
43632 AUTOCONF!$AUTOCONF$ac_delim
43633 AUTOMAKE!$AUTOMAKE$ac_delim
43634 AUTOHEADER!$AUTOHEADER$ac_delim
43635 MAKEINFO!$MAKEINFO$ac_delim
43636 install_sh!$install_sh$ac_delim
43637 STRIP!$STRIP$ac_delim
43638 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
43639 mkdir_p!$mkdir_p$ac_delim
43641 SET_MAKE!$SET_MAKE$ac_delim
43642 am__leading_dot!$am__leading_dot$ac_delim
43643 AMTAR!$AMTAR$ac_delim
43644 am__tar!$am__tar$ac_delim
43645 am__untar!$am__untar$ac_delim
43646 VERSIONNUM!$VERSIONNUM$ac_delim
43647 PKGADD_PKG!$PKGADD_PKG$ac_delim
43648 PKGADD_NAME!$PKGADD_NAME$ac_delim
43649 PKGADD_VENDOR!$PKGADD_VENDOR$ac_delim
43650 build!$build$ac_delim
43651 build_cpu!$build_cpu$ac_delim
43652 build_vendor!$build_vendor$ac_delim
43653 build_os!$build_os$ac_delim
43654 host!$host$ac_delim
43655 host_cpu!$host_cpu$ac_delim
43656 host_vendor!$host_vendor$ac_delim
43657 host_os!$host_os$ac_delim
43659 CFLAGS!$CFLAGS$ac_delim
43660 LDFLAGS!$LDFLAGS$ac_delim
43661 CPPFLAGS!$CPPFLAGS$ac_delim
43662 ac_ct_CC!$ac_ct_CC$ac_delim
43663 EXEEXT!$EXEEXT$ac_delim
43664 OBJEXT!$OBJEXT$ac_delim
43665 DEPDIR!$DEPDIR$ac_delim
43666 am__include!$am__include$ac_delim
43667 am__quote!$am__quote$ac_delim
43668 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
43669 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
43670 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
43671 CCDEPMODE!$CCDEPMODE$ac_delim
43672 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
43673 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
43675 LN_S!$LN_S$ac_delim
43676 ECHO!$ECHO$ac_delim
43679 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43681 elif $ac_last_try; then
43682 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43683 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43684 { (exit 1); exit 1; }; }
43686 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
43690 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43691 if test -n "$ac_eof"; then
43692 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
43693 ac_eof
=`expr $ac_eof + 1`
43696 cat >>$CONFIG_STATUS <<_ACEOF
43697 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43701 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43702 s/^/s,@/; s/!/@,|#_!!_#|/
43705 s/'"$ac_delim"'$/,g/; t
43707 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43708 ' >>$CONFIG_STATUS <conf$
$subs.
sed
43709 rm -f conf$
$subs.
sed
43710 cat >>$CONFIG_STATUS <<_ACEOF
43716 for ac_last_try
in false false false false false
:; do
43717 cat >conf$
$subs.
sed <<_ACEOF
43718 RANLIB!$RANLIB$ac_delim
43719 DSYMUTIL!$DSYMUTIL$ac_delim
43720 NMEDIT!$NMEDIT$ac_delim
43721 DLLTOOL!$DLLTOOL$ac_delim
43723 OBJDUMP!$OBJDUMP$ac_delim
43724 LIBTOOL!$LIBTOOL$ac_delim
43725 NO_UNDEFINED_TRUE!$NO_UNDEFINED_TRUE$ac_delim
43726 NO_UNDEFINED_FALSE!$NO_UNDEFINED_FALSE$ac_delim
43727 MIMPURE_TRUE!$MIMPURE_TRUE$ac_delim
43728 MIMPURE_FALSE!$MIMPURE_FALSE$ac_delim
43729 STATICLIB_TRUE!$STATICLIB_TRUE$ac_delim
43730 STATICLIB_FALSE!$STATICLIB_FALSE$ac_delim
43731 REQUIRE_LIB_DEPS!$REQUIRE_LIB_DEPS$ac_delim
43732 CURL_DISABLE_HTTP!$CURL_DISABLE_HTTP$ac_delim
43733 CURL_DISABLE_FTP!$CURL_DISABLE_FTP$ac_delim
43734 CURL_DISABLE_FILE!$CURL_DISABLE_FILE$ac_delim
43735 CURL_DISABLE_LDAP!$CURL_DISABLE_LDAP$ac_delim
43736 CURL_DISABLE_LDAPS!$CURL_DISABLE_LDAPS$ac_delim
43737 CURL_DISABLE_DICT!$CURL_DISABLE_DICT$ac_delim
43738 CURL_DISABLE_TELNET!$CURL_DISABLE_TELNET$ac_delim
43739 CURL_DISABLE_TFTP!$CURL_DISABLE_TFTP$ac_delim
43740 KRB4_ENABLED!$KRB4_ENABLED$ac_delim
43741 PKGCONFIG!$PKGCONFIG$ac_delim
43742 USE_SSLEAY!$USE_SSLEAY$ac_delim
43743 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
43744 HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
43745 HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
43746 USE_LIBSSH2!$USE_LIBSSH2$ac_delim
43747 RANDOM_FILE!$RANDOM_FILE$ac_delim
43748 USE_GNUTLS!$USE_GNUTLS$ac_delim
43749 HAVE_PK11_CREATEGENERICOBJECT!$HAVE_PK11_CREATEGENERICOBJECT$ac_delim
43750 USE_NSS!$USE_NSS$ac_delim
43751 SSL_ENABLED!$SSL_ENABLED$ac_delim
43752 CURL_CA_BUNDLE!$CURL_CA_BUNDLE$ac_delim
43753 IDN_ENABLED!$IDN_ENABLED$ac_delim
43754 IPV6_ENABLED!$IPV6_ENABLED$ac_delim
43755 PERL!$PERL$ac_delim
43756 NROFF!$NROFF$ac_delim
43757 MANOPT!$MANOPT$ac_delim
43758 USE_MANUAL_TRUE!$USE_MANUAL_TRUE$ac_delim
43759 USE_MANUAL_FALSE!$USE_MANUAL_FALSE$ac_delim
43760 HAVE_ARES!$HAVE_ARES$ac_delim
43761 subdirs!$subdirs$ac_delim
43762 USE_WINDOWS_SSPI!$USE_WINDOWS_SSPI$ac_delim
43763 SONAME_BUMP_TRUE!$SONAME_BUMP_TRUE$ac_delim
43764 SONAME_BUMP_FALSE!$SONAME_BUMP_FALSE$ac_delim
43765 LIBCURL_LIBS!$LIBCURL_LIBS$ac_delim
43766 CURL_LIBS!$CURL_LIBS$ac_delim
43767 TEST_SERVER_LIBS!$TEST_SERVER_LIBS$ac_delim
43768 CROSSCOMPILING_TRUE!$CROSSCOMPILING_TRUE$ac_delim
43769 CROSSCOMPILING_FALSE!$CROSSCOMPILING_FALSE$ac_delim
43770 LIBOBJS!$LIBOBJS$ac_delim
43771 LTLIBOBJS!$LTLIBOBJS$ac_delim
43774 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
43776 elif $ac_last_try; then
43777 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43778 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43779 { (exit 1); exit 1; }; }
43781 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
43785 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43786 if test -n "$ac_eof"; then
43787 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
43788 ac_eof
=`expr $ac_eof + 1`
43791 cat >>$CONFIG_STATUS <<_ACEOF
43792 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43796 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43797 s/^/s,@/; s/!/@,|#_!!_#|/
43800 s/'"$ac_delim"'$/,g/; t
43802 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43803 ' >>$CONFIG_STATUS <conf$
$subs.
sed
43804 rm -f conf$
$subs.
sed
43805 cat >>$CONFIG_STATUS <<_ACEOF
43812 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43813 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43814 # trailing colons and then remove the whole line if VPATH becomes empty
43815 # (actually we leave an empty line to preserve line numbers).
43816 if test "x$srcdir" = x.
; then
43817 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
43818 s/:*\$(srcdir):*/:/
43819 s/:*\${srcdir}:*/:/
43821 s/^\([^=]*=[ ]*\):*/\1/
43827 cat >>$CONFIG_STATUS <<\_ACEOF
43828 fi # test -n "$CONFIG_FILES"
43831 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
43834 :[FHLC
]) ac_mode
=$ac_tag; continue;;
43836 case $ac_mode$ac_tag in
43838 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43839 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43840 { (exit 1); exit 1; }; };;
43841 :[FH
]-) ac_tag
=-:-;;
43842 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
43859 -) ac_f
="$tmp/stdin";;
43860 *) # Look for the file first in the build tree, then in the source tree
43861 # (if the path is not absolute). The absolute path cannot be DOS-style,
43862 # because $ac_f cannot contain `:'.
43866 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
43868 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43869 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43870 { (exit 1); exit 1; }; };;
43872 ac_file_inputs
="$ac_file_inputs $ac_f"
43875 # Let's still pretend it is `configure' which instantiates (i.e., don't
43876 # use $as_me), people would be surprised to read:
43877 # /* config.h. Generated by config.status. */
43878 configure_input
="Generated from "`IFS=:
43879 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43880 if test x
"$ac_file" != x-
; then
43881 configure_input
="$ac_file. $configure_input"
43882 { echo "$as_me:$LINENO: creating $ac_file" >&5
43883 echo "$as_me: creating $ac_file" >&6;}
43887 *:-:* |
*:-) cat >"$tmp/stdin";;
43892 ac_dir
=`$as_dirname -- "$ac_file" ||
43893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43894 X"$ac_file" : 'X\(//\)[^/]' \| \
43895 X"$ac_file" : 'X\(//\)$' \| \
43896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43902 /^X\(\/\/\)[^/].*/{
43917 -*) as_dir
=.
/$as_dir;;
43919 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
43923 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43924 *) as_qdir
=$as_dir;;
43926 as_dirs
="'$as_qdir' $as_dirs"
43927 as_dir
=`$as_dirname -- "$as_dir" ||
43928 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43929 X"$as_dir" : 'X\(//\)[^/]' \| \
43930 X"$as_dir" : 'X\(//\)$' \| \
43931 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43937 /^X\(\/\/\)[^/].*/{
43950 test -d "$as_dir" && break
43952 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
43953 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43954 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43955 { (exit 1); exit 1; }; }; }
43959 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
43961 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43962 # A ".." for each directory in $ac_dir_suffix.
43963 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43964 case $ac_top_builddir_sub in
43965 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
43966 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
43969 ac_abs_top_builddir
=$ac_pwd
43970 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
43971 # for backward compatibility:
43972 ac_top_builddir
=$ac_top_build_prefix
43975 .
) # We are building in place.
43977 ac_top_srcdir
=$ac_top_builddir_sub
43978 ac_abs_top_srcdir
=$ac_pwd ;;
43979 [\\/]* | ?
:[\\/]* ) # Absolute name.
43980 ac_srcdir
=$srcdir$ac_dir_suffix;
43981 ac_top_srcdir
=$srcdir
43982 ac_abs_top_srcdir
=$srcdir ;;
43983 *) # Relative name.
43984 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
43985 ac_top_srcdir
=$ac_top_build_prefix$srcdir
43986 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
43988 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
43998 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
43999 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
44003 cat >>$CONFIG_STATUS <<\_ACEOF
44004 # If the template does not know about datarootdir, expand it.
44005 # FIXME: This hack should be removed a few years after 2.60.
44006 ac_datarootdir_hack
=; ac_datarootdir_seen
=
44008 case `sed -n '/datarootdir/ {
44017 ' $ac_file_inputs` in
44018 *datarootdir
*) ac_datarootdir_seen
=yes;;
44019 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
44020 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44021 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44023 cat >>$CONFIG_STATUS <<_ACEOF
44024 ac_datarootdir_hack='
44025 s&@datadir@&$datadir&g
44026 s&@docdir@&$docdir&g
44027 s&@infodir@&$infodir&g
44028 s&@localedir@&$localedir&g
44029 s&@mandir@&$mandir&g
44030 s&\\\${datarootdir}&$datarootdir&g' ;;
44034 # Neutralize VPATH when `$srcdir' = `.'.
44035 # Shell code in configure.ac might set extrasub.
44036 # FIXME: do we really want to maintain this feature?
44037 cat >>$CONFIG_STATUS <<_ACEOF
44041 cat >>$CONFIG_STATUS <<\_ACEOF
44043 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
44044 s
&@configure_input@
&$configure_input&;t t
44045 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
44046 s
&@srcdir@
&$ac_srcdir&;t t
44047 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
44048 s
&@top_srcdir@
&$ac_top_srcdir&;t t
44049 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
44050 s
&@builddir@
&$ac_builddir&;t t
44051 s
&@abs_builddir@
&$ac_abs_builddir&;t t
44052 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
44053 s
&@INSTALL@
&$ac_INSTALL&;t t
44054 $ac_datarootdir_hack
44055 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
44057 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44058 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
44059 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
44060 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
44061 which seems to be undefined. Please make sure it is defined." >&5
44062 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
44063 which seems to be undefined. Please make sure it is defined." >&2;}
44067 -) cat "$tmp/out"; rm -f "$tmp/out";;
44068 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44077 # Transform confdefs.h into a sed script `conftest.defines', that
44078 # substitutes the proper values into config.h.in to produce config.h.
44079 rm -f conftest.defines conftest.
tail
44080 # First, append a space to every undef/define line, to ease matching.
44081 echo 's/$/ /' >conftest.defines
44082 # Then, protect against being on the right side of a sed subst, or in
44083 # an unquoted here document, in config.status. If some macros were
44084 # called several times there might be several #defines for the same
44085 # symbol, which is useless. But do not sort them, since the last
44086 # AC_DEFINE must be honored.
44087 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
44088 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44089 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44090 # PARAMS is the parameter list in the macro definition--in most cases, it's
44091 # just an empty string.
44092 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44093 ac_dB
='\\)[ (].*,\\1define\\2'
44101 s/^[ ]*#[ ]*define[ ][ ]*//
44106 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44107 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44108 ' >>conftest.defines
44110 # Remove the space that was appended to ease matching.
44111 # Then replace #undef with comments. This is necessary, for
44112 # example, in the case of _POSIX_SOURCE, which is predefined and required
44113 # on some systems where configure will not decide to define it.
44114 # (The regexp can be short, since the line contains either #define or #undef.)
44116 s,^[ #]*u.*,/* & */,' >>conftest.defines
44118 # Break up conftest.defines:
44119 ac_max_sed_lines
=50
44121 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44122 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44123 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44125 ac_in
='$ac_file_inputs'
44126 ac_out
='"$tmp/out1"'
44127 ac_nxt
='"$tmp/out2"'
44131 # Write a here document:
44132 cat >>$CONFIG_STATUS <<_ACEOF
44133 # First, check the format of the line:
44134 cat >"\$tmp/defines.sed" <<\\CEOF
44135 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44136 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44140 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
44142 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44143 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
44144 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
44145 grep . conftest.
tail >/dev
/null ||
break
44146 rm -f conftest.defines
44147 mv conftest.
tail conftest.defines
44149 rm -f conftest.defines conftest.
tail
44151 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44152 cat >>$CONFIG_STATUS <<\_ACEOF
44153 if test x
"$ac_file" != x-
; then
44154 echo "/* $configure_input */" >"$tmp/config.h"
44155 cat "$ac_result" >>"$tmp/config.h"
44156 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
44157 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44158 echo "$as_me: $ac_file is unchanged" >&6;}
44161 mv "$tmp/config.h" $ac_file
44164 echo "/* $configure_input */"
44168 # Compute $ac_file's index in $config_headers.
44170 for _am_header
in $config_headers :; do
44171 case $_am_header in
44172 $ac_file |
$ac_file:* )
44175 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
44178 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
44179 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44180 X$ac_file : 'X\(//\)[^/]' \| \
44181 X$ac_file : 'X\(//\)$' \| \
44182 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
44184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44188 /^X\(\/\/\)[^/].*/{
44200 s/.*/./; q'`/stamp-h
$_am_stamp_count
44203 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44204 echo "$as_me: executing $ac_file commands" >&6;}
44209 case $ac_file$ac_mode in
44210 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
44211 # Strip MF so we end up with the name of the file.
44212 mf
=`echo "$mf" | sed -e 's/:.*$//'`
44213 # Check whether this is an Automake generated Makefile or not.
44214 # We used to match only the files named `Makefile.in', but
44215 # some people rename them; so instead we look at the file content.
44216 # Grep'ing the first line is not enough: some people post-process
44217 # each Makefile.in and add a new line on top of each file to say so.
44218 # So let's grep whole file.
44219 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
44220 dirpart
=`$as_dirname -- "$mf" ||
44221 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44222 X"$mf" : 'X\(//\)[^/]' \| \
44223 X"$mf" : 'X\(//\)$' \| \
44224 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
44226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44230 /^X\(\/\/\)[^/].*/{
44246 # Extract the definition of DEPDIR, am__include, and am__quote
44247 # from the Makefile without running `make'.
44248 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
44249 test -z "$DEPDIR" && continue
44250 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
44251 test -z "am__include" && continue
44252 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
44253 # When using ansi2knr, U may be empty or an underscore; expand it
44254 U
=`sed -n 's/^U = //p' < "$mf"`
44255 # Find all dependency output files, they are included files with
44256 # $(DEPDIR) in their names. We invoke sed twice because it is the
44257 # simplest approach to changing $(DEPDIR) to its actual value in the
44259 for file in `sed -n "
44260 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44261 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44262 # Make sure the directory exists.
44263 test -f "$dirpart/$file" && continue
44264 fdir
=`$as_dirname -- "$file" ||
44265 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44266 X"$file" : 'X\(//\)[^/]' \| \
44267 X"$file" : 'X\(//\)$' \| \
44268 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
44270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44274 /^X\(\/\/\)[^/].*/{
44287 { as_dir
=$dirpart/$fdir
44289 -*) as_dir
=.
/$as_dir;;
44291 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
44295 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44296 *) as_qdir
=$as_dir;;
44298 as_dirs
="'$as_qdir' $as_dirs"
44299 as_dir
=`$as_dirname -- "$as_dir" ||
44300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44301 X"$as_dir" : 'X\(//\)[^/]' \| \
44302 X"$as_dir" : 'X\(//\)$' \| \
44303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44309 /^X\(\/\/\)[^/].*/{
44322 test -d "$as_dir" && break
44324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
44325 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44326 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44327 { (exit 1); exit 1; }; }; }
44328 # echo "creating $dirpart/$file"
44329 echo '# dummy' > "$dirpart/$file"
44338 { (exit 0); exit 0; }
44340 chmod +x
$CONFIG_STATUS
44341 ac_clean_files
=$ac_clean_files_save
44344 # configure is writing to config.log, and then calls config.status.
44345 # config.status does its own redirection, appending to config.log.
44346 # Unfortunately, on DOS this fails, as config.log is still kept open
44347 # by configure, so config.status won't be able to write to it; its
44348 # output is simply discarded. So we exec the FD to /dev/null,
44349 # effectively closing config.log, so it can be properly (re)opened and
44350 # appended to by config.status. When coming back to configure, we
44351 # need to make the FD available again.
44352 if test "$no_create" != yes; then
44354 ac_config_status_args
=
44355 test "$silent" = yes &&
44356 ac_config_status_args
="$ac_config_status_args --quiet"
44358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
44360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44361 # would make configure fail if this is the last instruction.
44362 $ac_cs_success ||
{ (exit 1); exit 1; }
44366 # CONFIG_SUBDIRS section.
44368 if test "$no_recursion" != yes; then
44370 # Remove --cache-file and --srcdir arguments so they do not pile up.
44371 ac_sub_configure_args
=
44373 eval "set x $ac_configure_args"
44377 if test -n "$ac_prev"; then
44382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
44383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
44384 ac_prev
=cache_file
;;
44385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
44386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
44389 --config-cache |
-C)
44391 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
44393 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
44395 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
44397 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
44401 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44403 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
44407 # Always prepend --prefix to ensure using the same prefix
44408 # in subdir configurations.
44409 ac_arg
="--prefix=$prefix"
44411 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44413 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
44416 if test "$silent" = yes; then
44417 ac_sub_configure_args
="--silent $ac_sub_configure_args"
44421 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
44423 # Do not complain, so a configure script can configure whichever
44424 # parts of a large source tree are present.
44425 test -d "$srcdir/$ac_dir" ||
continue
44427 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44428 echo "$as_me:$LINENO: $ac_msg" >&5
44432 -*) as_dir
=.
/$as_dir;;
44434 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
44438 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44439 *) as_qdir
=$as_dir;;
44441 as_dirs
="'$as_qdir' $as_dirs"
44442 as_dir
=`$as_dirname -- "$as_dir" ||
44443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44444 X"$as_dir" : 'X\(//\)[^/]' \| \
44445 X"$as_dir" : 'X\(//\)$' \| \
44446 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44452 /^X\(\/\/\)[^/].*/{
44465 test -d "$as_dir" && break
44467 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
44468 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44469 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44470 { (exit 1); exit 1; }; }; }
44474 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
44476 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44477 # A ".." for each directory in $ac_dir_suffix.
44478 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44479 case $ac_top_builddir_sub in
44480 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
44481 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
44484 ac_abs_top_builddir
=$ac_pwd
44485 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
44486 # for backward compatibility:
44487 ac_top_builddir
=$ac_top_build_prefix
44490 .
) # We are building in place.
44492 ac_top_srcdir
=$ac_top_builddir_sub
44493 ac_abs_top_srcdir
=$ac_pwd ;;
44494 [\\/]* | ?
:[\\/]* ) # Absolute name.
44495 ac_srcdir
=$srcdir$ac_dir_suffix;
44496 ac_top_srcdir
=$srcdir
44497 ac_abs_top_srcdir
=$srcdir ;;
44498 *) # Relative name.
44499 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
44500 ac_top_srcdir
=$ac_top_build_prefix$srcdir
44501 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
44503 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
44508 # Check for guested configure; otherwise get Cygnus style configure.
44509 if test -f "$ac_srcdir/configure.gnu"; then
44510 ac_sub_configure
=$ac_srcdir/configure.gnu
44511 elif test -f "$ac_srcdir/configure"; then
44512 ac_sub_configure
=$ac_srcdir/configure
44513 elif test -f "$ac_srcdir/configure.in"; then
44514 # This should be Cygnus configure.
44515 ac_sub_configure
=$ac_aux_dir/configure
44517 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
44518 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44522 # The recursion is here.
44523 if test -n "$ac_sub_configure"; then
44524 # Make the cache file name correct relative to the subdirectory.
44525 case $cache_file in
44526 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
44527 *) # Relative name.
44528 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
44531 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44532 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44533 # The eval makes quoting arguments work.
44534 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44535 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44536 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
44537 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
44538 { (exit 1); exit 1; }; }
44546 { echo "$as_me:$LINENO: Configured to build curl/libcurl:
44548 curl version: ${VERSION}
44549 Host setup: ${host}
44550 Install prefix: ${prefix}
44552 SSL support: ${curl_ssl_msg}
44553 SSH support: ${curl_ssh_msg}
44554 zlib support: ${curl_zlib_msg}
44555 krb4 support: ${curl_krb4_msg}
44556 GSSAPI support: ${curl_gss_msg}
44557 SPNEGO support: ${curl_spnego_msg}
44558 c-ares support: ${curl_ares_msg}
44559 ipv6 support: ${curl_ipv6_msg}
44560 IDN support: ${curl_idn_msg}
44561 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44562 Built-in manual: ${curl_manual_msg}
44563 Verbose errors: ${curl_verbose_msg}
44564 SSPI support: ${curl_sspi_msg}
44565 ca cert bundle: ${ca}
44566 ca cert path: ${capath}
44567 LDAP support: ${curl_ldap_msg}
44568 LDAPS support: ${curl_ldaps_msg}
44570 echo "$as_me: Configured to build curl/libcurl:
44572 curl version: ${VERSION}
44573 Host setup: ${host}
44574 Install prefix: ${prefix}
44576 SSL support: ${curl_ssl_msg}
44577 SSH support: ${curl_ssh_msg}
44578 zlib support: ${curl_zlib_msg}
44579 krb4 support: ${curl_krb4_msg}
44580 GSSAPI support: ${curl_gss_msg}
44581 SPNEGO support: ${curl_spnego_msg}
44582 c-ares support: ${curl_ares_msg}
44583 ipv6 support: ${curl_ipv6_msg}
44584 IDN support: ${curl_idn_msg}
44585 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44586 Built-in manual: ${curl_manual_msg}
44587 Verbose errors: ${curl_verbose_msg}
44588 SSPI support: ${curl_sspi_msg}
44589 ca cert bundle: ${ca}
44590 ca cert path: ${capath}
44591 LDAP support: ${curl_ldap_msg}
44592 LDAPS support: ${curl_ldaps_msg}
44595 if test "x$soname_bump" = "xyes"; then
44598 SONAME bump: yes - WARNING: this library will be built with the SONAME
44599 number bumped due to (a detected) ABI breakage.
44600 See lib/README.curl_off_t for details on this.