2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for curl -.
5 # Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
15 # Copyright (C) Daniel Stenberg, <daniel@haxx.se>
16 # This configure script may be copied, distributed and modified under the
17 # terms of the curl license; see COPYING for more details
19 ## -------------------------------- ##
20 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
21 ## -------------------------------- ##
23 xc_configure_preamble_ver_major='1'
24 xc_configure_preamble_ver_minor='0'
27 # Set IFS to space, tab and newline.
34 IFS="$xc_space$xc_tab$xc_newline"
37 # Set internationalization behavior variables.
48 # Some useful variables.
51 xc_msg_warn='configure: WARNING:'
52 xc_msg_abrt='Can not continue.'
53 xc_msg_err='configure: error:'
56 # Verify that 'echo' command is available, otherwise abort.
60 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
61 case "x$xc_tst_str" in # ((
66 # Try built-in echo, and fail.
67 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
73 # Verify that 'test' command is available, otherwise abort.
77 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
78 case "x$xc_tst_str" in # ((
83 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
89 # Verify that 'PATH' variable is set, otherwise abort.
93 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
94 case "x$xc_tst_str" in # ((
99 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
105 # Verify that 'expr' command is available, otherwise abort.
109 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
110 case "x$xc_tst_str" in # ((
115 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
121 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
125 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
126 | sed -e 's:unknown:success:' 2>/dev/null`
127 case "x$xc_tst_str" in # ((
132 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
138 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
142 (`echo "$xc_tst_str" 2>/dev/null \
143 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
144 case "x$xc_tst_str" in # ((
149 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
155 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
158 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
159 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
160 | tr -d "0123456789$xc_tab" 2>/dev/null`
161 case "x$xc_tst_str" in # ((
166 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
172 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
175 xc_tst_str='unknown unknown unknown unknown'
176 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
177 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
178 case "x$xc_tst_str" in # ((
183 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
189 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
193 xc_tst_str=`cat <<_EOT 2>/dev/null \
194 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
199 case "x$xc_tst_str" in # ((
204 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
210 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
213 # Directory count in 'PATH' when using a colon separator.
215 xc_tst_prev_IFS=$IFS; IFS=':'
216 for xc_tst_dir in $PATH; do
218 xc_tst_dirs_col="x$xc_tst_dirs_col"
221 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
223 # Directory count in 'PATH' when using a semicolon separator.
225 xc_tst_prev_IFS=$IFS; IFS=';'
226 for xc_tst_dir in $PATH; do
228 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
231 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
233 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
234 # When both counting methods give the same result we do not want to
235 # chose one over the other, and consider auto-detection not possible.
236 if test -z "$PATH_SEPARATOR"; then
237 # User should provide the correct 'PATH_SEPARATOR' definition.
238 # Until then, guess that it is colon!
239 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
243 # Separator with the greater directory count is the auto-detected one.
244 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
245 xc_tst_auto_separator=';'
247 xc_tst_auto_separator=':'
249 if test -z "$PATH_SEPARATOR"; then
250 # Simply use the auto-detected one when not already set.
251 PATH_SEPARATOR=$xc_tst_auto_separator
252 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
253 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
256 xc_PATH_SEPARATOR=$PATH_SEPARATOR
258 xc_configure_preamble_result='yes'
261 ## -------------------- ##
262 ## M4sh Initialization. ##
263 ## -------------------- ##
265 # Be more Bourne compatible
266 DUALCASE=1; export DUALCASE # for MKS sh
268 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
272 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
273 # is contrary to our usage. Disable this feature.
274 alias -g '${1+"$@"}'='"$@"'
277 case `(set -o) 2>/dev/null` in #(
287 # Reset variables that may have inherited troublesome values from
290 # IFS needs to be set, to space, tab, and newline, in precisely that order.
291 # (If _AS_PATH_WALK were called with IFS unset, it would have the
292 # side effect of setting IFS to empty, thus disabling word splitting.)
293 # Quoting is to prevent editors from complaining about space-tab.
303 # Ensure predictable behavior from utilities with locale-dependent output.
309 # We cannot yet rely on "unset" to work, but we need these variables
310 # to be unset--not just set to an empty or harmless value--now, to
311 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
312 # also avoids known problems related to "unset" and subshell syntax
313 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
314 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
315 do eval test \${$as_var+y} \
316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
319 # Ensure that fds 0, 1, and 2 are open.
320 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
321 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
322 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
326 # Find who we are. Look in the path if we contain no directory separator.
329 *[\\/]* ) as_myself=$0 ;;
330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
337 *) as_dir=$as_dir/ ;;
339 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
345 # We did not find ourselves, most probably we were run as `sh COMMAND'
346 # in which case we are not to be found in the path.
347 if test "x$as_myself" = x; then
350 if test ! -f "$as_myself"; then
351 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
356 # Use a proper internal environment variable to ensure we don't fall
357 # into an infinite loop, continuously re-executing ourselves.
358 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
359 _as_can_reexec=no; export _as_can_reexec;
360 # We cannot yet assume a decent shell, so we have to provide a
361 # neutralization value for shells without unset; and this also
362 # works around shells that cannot unset nonexistent variables.
363 # Preserve -v and -x to the replacement shell.
366 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
368 *v*x* | *x*v* ) as_opts=-vx ;;
373 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
374 # Admittedly, this is quite paranoid, since all the known shells bail
375 # out after a failed `exec'.
376 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
379 # We don't want this to propagate to other subprocesses.
380 { _as_can_reexec=; unset _as_can_reexec;}
381 if test "x$CONFIG_SHELL" = x; then
382 as_bourne_compatible="as_nop=:
383 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
387 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
388 # is contrary to our usage. Disable this feature.
389 alias -g '\${1+\"\$@\"}'='\"\$@\"'
392 case \`(set -o) 2>/dev/null\` in #(
400 as_required="as_fn_return () { (exit \$1); }
401 as_fn_success () { as_fn_return 0; }
402 as_fn_failure () { as_fn_return 1; }
403 as_fn_ret_success () { return 0; }
404 as_fn_ret_failure () { return 1; }
407 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
408 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
409 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
410 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
411 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
415 exitcode=1; echo positional parameters were not saved.
417 test x\$exitcode = x0 || exit 1
418 blah=\$(echo \$(echo blah))
419 test x\"\$blah\" = xblah || exit 1
421 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
422 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
423 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
424 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
425 test \$(( 1 + 1 )) = 2 || exit 1
427 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
428 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
429 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
430 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
431 PATH=/empty FPATH=/empty; export PATH FPATH
432 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
433 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
434 if (eval "$as_required") 2>/dev/null
440 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
446 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
452 *) as_dir=$as_dir/ ;;
457 for as_base in sh bash ksh sh5; do
458 # Try only shells that exist, to save several forks.
459 as_shell=$as_dir$as_base
460 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
461 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
463 CONFIG_SHELL=$as_shell as_have_required=yes
464 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
478 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
479 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
481 CONFIG_SHELL=$SHELL as_have_required=yes
486 if test "x$CONFIG_SHELL" != x
489 # We cannot yet assume a decent shell, so we have to provide a
490 # neutralization value for shells without unset; and this also
491 # works around shells that cannot unset nonexistent variables.
492 # Preserve -v and -x to the replacement shell.
495 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
497 *v*x* | *x*v* ) as_opts=-vx ;;
502 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503 # Admittedly, this is quite paranoid, since all the known shells bail
504 # out after a failed `exec'.
505 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
509 if test x$as_have_required = xno
511 printf "%s\n" "$0: This script requires a shell more modern than all"
512 printf "%s\n" "$0: the shells that I found on your system."
513 if test ${ZSH_VERSION+y} ; then
514 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
515 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
517 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and a suitable curl
518 $0: mailing list: https://curl.se/mail/ about your system,
519 $0: including any error possibly output before this
520 $0: message. Then install a modern shell, or manually run
521 $0: the script under such a shell if you do have one."
527 SHELL=${CONFIG_SHELL-/bin/sh}
529 # Unset more variables known to interfere with behavior of common tools.
530 CLICOLOR_FORCE= GREP_OPTIONS=
531 unset CLICOLOR_FORCE GREP_OPTIONS
533 ## --------------------- ##
534 ## M4sh Shell Functions. ##
535 ## --------------------- ##
538 # Portably unset VAR.
541 { eval $1=; unset $1;}
546 # as_fn_set_status STATUS
547 # -----------------------
548 # Set $? to STATUS, without forking.
556 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
565 # Do nothing but, unlike ":", preserve the value of $?.
574 # Create "$as_dir" as a directory, including parents if necessary.
579 -*) as_dir=./$as_dir;;
581 test -d "$as_dir" || eval $as_mkdir_p || {
585 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
588 as_dirs="'$as_qdir' $as_dirs"
589 as_dir=`$as_dirname -- "$as_dir" ||
590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
591 X"$as_dir" : 'X\(//\)[^/]' \| \
592 X"$as_dir" : 'X\(//\)$' \| \
593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
594 printf "%s\n" X"$as_dir" |
595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
612 test -d "$as_dir" && break
614 test -z "$as_dirs" || eval "mkdir $as_dirs"
615 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
620 # as_fn_executable_p FILE
621 # -----------------------
622 # Test if FILE is an executable regular file.
623 as_fn_executable_p ()
625 test -f "$1" && test -x "$1"
626 } # as_fn_executable_p
627 # as_fn_append VAR VALUE
628 # ----------------------
629 # Append the text in VALUE to the end of the definition contained in VAR. Take
630 # advantage of any shell optimizations that allow amortized linear growth over
631 # repeated appends, instead of the typical quadratic growth present in naive
633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
635 eval 'as_fn_append ()
648 # Perform arithmetic evaluation on the ARGs, and store the result in the
649 # global $as_val. Take advantage of shells that can avoid forks. The arguments
650 # must be portable across $(()) and expr.
651 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
660 as_val=`expr "$@" || test $? -eq 1`
666 # Do nothing but, unlike ":", preserve the value of $?.
673 # as_fn_error STATUS ERROR [LINENO LOG_FD]
674 # ----------------------------------------
675 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
676 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
677 # script with STATUS, using 1 if that was 0.
680 as_status=$1; test $as_status -eq 0 && as_status=1
682 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
685 printf "%s\n" "$as_me: error: $2" >&2
686 as_fn_exit $as_status
689 if expr a : '\(a\)' >/dev/null 2>&1 &&
690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
708 as_me=`$as_basename -- "$0" ||
709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
710 X"$0" : 'X\(//\)$' \| \
711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
712 printf "%s\n" X/"$0" |
713 sed '/^.*\/\([^/][^/]*\)\/*$/{
727 # Avoid depending upon Character Ranges.
728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
731 as_cr_digits='0123456789'
732 as_cr_alnum=$as_cr_Letters$as_cr_digits
735 as_lineno_1=$LINENO as_lineno_1a=$LINENO
736 as_lineno_2=$LINENO as_lineno_2a=$LINENO
737 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
738 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
739 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
755 chmod +x "$as_me.lineno" ||
756 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
758 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
759 # already done that, so ensure we don't try to do so again and fall
760 # in an infinite loop. This has already happened in practice.
761 _as_can_reexec=no; export _as_can_reexec
762 # Don't try to exec as it changes $[0], causing all sort of problems
763 # (the dirname of $[0] is not the place where we might find the
764 # original and so on. Autoconf is especially sensitive to this).
766 # Exit status is that of the last command.
771 # Determine whether it's possible to make 'echo' print without a newline.
772 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
773 # for compatibility with existing Makefiles.
774 ECHO_C= ECHO_N= ECHO_T=
775 case `echo -n x` in #(((((
777 case `echo 'xy\c'` in
778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
780 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
787 # For backward compatibility with old third-party macros, we provide
788 # the shell variables $as_echo and $as_echo_n. New code should use
789 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
790 as_echo='printf %s\n'
791 as_echo_n='printf %s'
794 rm -f conf$$ conf$$.exe conf$$.file
795 if test -d conf$$.dir; then
796 rm -f conf$$.dir/conf$$.file
799 mkdir conf$$.dir 2>/dev/null
801 if (echo >conf$$.file) 2>/dev/null; then
802 if ln -s conf$$.file conf$$ 2>/dev/null; then
804 # ... but there are two gotchas:
805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
807 # In both cases, we have to default to `cp -pR'.
808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
810 elif ln conf$$.file conf$$ 2>/dev/null; then
818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
819 rmdir conf$$.dir 2>/dev/null
821 if mkdir -p . 2>/dev/null; then
822 as_mkdir_p='mkdir -p "$as_dir"'
824 test -d ./-p && rmdir ./-p
829 as_executable_p=as_fn_executable_p
831 # Sed expression to map a string onto a valid CPP name.
832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
834 # Sed expression to map a string onto a valid variable name.
835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
837 SHELL=${CONFIG_SHELL-/bin/sh}
840 test -n "$DJDIR" || exec 7<&0 </dev/null
844 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
845 # so uname gets run too.
846 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
851 ac_default_prefix=/usr/local
853 ac_config_libobj_dir=.
860 # Identity of this package.
862 PACKAGE_TARNAME='curl'
864 PACKAGE_STRING='curl -'
865 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/'
868 ac_unique_file="lib/urldata.h"
869 # Factoring default headers for most tests.
870 ac_includes_default="\
881 #ifdef HAVE_INTTYPES_H
882 # include <inttypes.h>
887 #ifdef HAVE_STRINGS_H
888 # include <strings.h>
890 #ifdef HAVE_SYS_TYPES_H
891 # include <sys/types.h>
893 #ifdef HAVE_SYS_STAT_H
894 # include <sys/stat.h>
901 ac_subst_vars='am__EXEEXT_FALSE
914 CURL_NETWORK_AND_TIME_LIBS
917 CFLAG_CURL_SYMBOL_HIDING
918 DOING_CURL_SYMBOL_HIDING_FALSE
919 DOING_CURL_SYMBOL_HIDING_TRUE
921 BUILD_LIBHOSTNAME_FALSE
922 BUILD_LIBHOSTNAME_TRUE
934 USE_NGTCP2_CRYPTO_WOLFSSL
935 USE_NGTCP2_CRYPTO_GNUTLS
936 USE_NGTCP2_CRYPTO_QUICTLS
941 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
942 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
943 CURL_LT_SHLIB_VERSIONED_FLAVOUR
978 HAVE_PROTO_BSDSOCKET_H
1001 USE_WIN32_SMALL_FILES
1002 USE_WIN32_LARGE_FILES
1003 DOING_NATIVE_WINDOWS_FALSE
1004 DOING_NATIVE_WINDOWS_TRUE
1005 BUILD_UNITTESTS_FALSE
1006 BUILD_UNITTESTS_TRUE
1010 USE_EXPLICIT_LIB_DEPS_FALSE
1011 USE_EXPLICIT_LIB_DEPS_TRUE
1013 CPPFLAG_CURL_STATICLIB
1014 USE_CPPFLAG_CURL_STATICLIB_FALSE
1015 USE_CPPFLAG_CURL_STATICLIB_TRUE
1016 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1017 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1018 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1019 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1020 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1021 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1083 INSTALL_STRIP_PROGRAM
1115 AM_DEFAULT_VERBOSITY
1119 MAINTAINER_MODE_FALSE
1120 MAINTAINER_MODE_TRUE
1149 program_transform_name
1163 enable_option_checking
1164 enable_maintainer_mode
1171 enable_symbol_hiding
1175 enable_code_coverage
1176 enable_dependency_tracking
1178 with_secure_transport
1218 enable_libcurl_option
1226 with_gssapi_includes
1229 with_default_ssl_backend
1231 enable_openssl_auto_load_config
1242 enable_versioned_symbols
1250 with_zsh_functions_dir
1251 with_fish_functions_dir
1252 enable_threaded_resolver
1259 enable_kerberos_auth
1260 enable_negotiate_auth
1275 enable_progress_meter
1277 enable_get_easy_options
1283 ac_precious_vars='build_alias
1292 LT_SYS_LIBRARY_PATH'
1295 # Initialize some variables set by options.
1297 ac_init_version=false
1298 ac_unrecognized_opts=
1299 ac_unrecognized_sep=
1300 # The variables have the same names as the options, with
1301 # dashes changed to underlines.
1302 cache_file=/dev/null
1309 program_transform_name=s,x,x,
1317 # Installation directory options.
1318 # These are left unexpanded so users can "make install exec_prefix=/foo"
1319 # and all the variables that are supposed to be based on exec_prefix
1320 # by default will actually change.
1321 # Use braces instead of parens because sh, perl, etc. also accept them.
1322 # (The list follows the same order as the GNU Coding Standards.)
1323 bindir='${exec_prefix}/bin'
1324 sbindir='${exec_prefix}/sbin'
1325 libexecdir='${exec_prefix}/libexec'
1326 datarootdir='${prefix}/share'
1327 datadir='${datarootdir}'
1328 sysconfdir='${prefix}/etc'
1329 sharedstatedir='${prefix}/com'
1330 localstatedir='${prefix}/var'
1331 runstatedir='${localstatedir}/run'
1332 includedir='${prefix}/include'
1333 oldincludedir='/usr/include'
1334 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1335 infodir='${datarootdir}/info'
1340 libdir='${exec_prefix}/lib'
1341 localedir='${datarootdir}/locale'
1342 mandir='${datarootdir}/man'
1348 # If the previous option needs an argument, assign it.
1349 if test -n "$ac_prev"; then
1350 eval $ac_prev=\$ac_option
1356 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1361 case $ac_dashdash$ac_option in
1365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1368 bindir=$ac_optarg ;;
1370 -build | --build | --buil | --bui | --bu)
1371 ac_prev=build_alias ;;
1372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1373 build_alias=$ac_optarg ;;
1375 -cache-file | --cache-file | --cache-fil | --cache-fi \
1376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1377 ac_prev=cache_file ;;
1378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1380 cache_file=$ac_optarg ;;
1382 --config-cache | -C)
1383 cache_file=config.cache ;;
1385 -datadir | --datadir | --datadi | --datad)
1387 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1388 datadir=$ac_optarg ;;
1390 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1391 | --dataroo | --dataro | --datar)
1392 ac_prev=datarootdir ;;
1393 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1394 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1395 datarootdir=$ac_optarg ;;
1397 -disable-* | --disable-*)
1398 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1399 # Reject names that are not valid shell variable names.
1400 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1401 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1402 ac_useropt_orig=$ac_useropt
1403 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1404 case $ac_user_opts in
1406 "enable_$ac_useropt"
1408 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1409 ac_unrecognized_sep=', ';;
1411 eval enable_$ac_useropt=no ;;
1413 -docdir | --docdir | --docdi | --doc | --do)
1415 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1416 docdir=$ac_optarg ;;
1418 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1420 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1421 dvidir=$ac_optarg ;;
1423 -enable-* | --enable-*)
1424 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1425 # Reject names that are not valid shell variable names.
1426 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1427 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1428 ac_useropt_orig=$ac_useropt
1429 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1430 case $ac_user_opts in
1432 "enable_$ac_useropt"
1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1435 ac_unrecognized_sep=', ';;
1437 eval enable_$ac_useropt=\$ac_optarg ;;
1439 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1440 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1441 | --exec | --exe | --ex)
1442 ac_prev=exec_prefix ;;
1443 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1444 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1445 | --exec=* | --exe=* | --ex=*)
1446 exec_prefix=$ac_optarg ;;
1448 -gas | --gas | --ga | --g)
1449 # Obsolete; use --with-gas.
1452 -help | --help | --hel | --he | -h)
1453 ac_init_help=long ;;
1454 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1455 ac_init_help=recursive ;;
1456 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1457 ac_init_help=short ;;
1459 -host | --host | --hos | --ho)
1460 ac_prev=host_alias ;;
1461 -host=* | --host=* | --hos=* | --ho=*)
1462 host_alias=$ac_optarg ;;
1464 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1466 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1468 htmldir=$ac_optarg ;;
1470 -includedir | --includedir | --includedi | --included | --include \
1471 | --includ | --inclu | --incl | --inc)
1472 ac_prev=includedir ;;
1473 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1474 | --includ=* | --inclu=* | --incl=* | --inc=*)
1475 includedir=$ac_optarg ;;
1477 -infodir | --infodir | --infodi | --infod | --info | --inf)
1479 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1480 infodir=$ac_optarg ;;
1482 -libdir | --libdir | --libdi | --libd)
1484 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1485 libdir=$ac_optarg ;;
1487 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1488 | --libexe | --libex | --libe)
1489 ac_prev=libexecdir ;;
1490 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1491 | --libexe=* | --libex=* | --libe=*)
1492 libexecdir=$ac_optarg ;;
1494 -localedir | --localedir | --localedi | --localed | --locale)
1495 ac_prev=localedir ;;
1496 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1497 localedir=$ac_optarg ;;
1499 -localstatedir | --localstatedir | --localstatedi | --localstated \
1500 | --localstate | --localstat | --localsta | --localst | --locals)
1501 ac_prev=localstatedir ;;
1502 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1503 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1504 localstatedir=$ac_optarg ;;
1506 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1508 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1509 mandir=$ac_optarg ;;
1511 -nfp | --nfp | --nf)
1512 # Obsolete; use --without-fp.
1515 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1516 | --no-cr | --no-c | -n)
1519 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1520 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1523 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1524 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1525 | --oldin | --oldi | --old | --ol | --o)
1526 ac_prev=oldincludedir ;;
1527 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1528 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1529 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1530 oldincludedir=$ac_optarg ;;
1532 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1534 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1535 prefix=$ac_optarg ;;
1537 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1538 | --program-pre | --program-pr | --program-p)
1539 ac_prev=program_prefix ;;
1540 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1541 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1542 program_prefix=$ac_optarg ;;
1544 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1545 | --program-suf | --program-su | --program-s)
1546 ac_prev=program_suffix ;;
1547 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1548 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1549 program_suffix=$ac_optarg ;;
1551 -program-transform-name | --program-transform-name \
1552 | --program-transform-nam | --program-transform-na \
1553 | --program-transform-n | --program-transform- \
1554 | --program-transform | --program-transfor \
1555 | --program-transfo | --program-transf \
1556 | --program-trans | --program-tran \
1557 | --progr-tra | --program-tr | --program-t)
1558 ac_prev=program_transform_name ;;
1559 -program-transform-name=* | --program-transform-name=* \
1560 | --program-transform-nam=* | --program-transform-na=* \
1561 | --program-transform-n=* | --program-transform-=* \
1562 | --program-transform=* | --program-transfor=* \
1563 | --program-transfo=* | --program-transf=* \
1564 | --program-trans=* | --program-tran=* \
1565 | --progr-tra=* | --program-tr=* | --program-t=*)
1566 program_transform_name=$ac_optarg ;;
1568 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1570 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1571 pdfdir=$ac_optarg ;;
1573 -psdir | --psdir | --psdi | --psd | --ps)
1575 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579 | -silent | --silent | --silen | --sile | --sil)
1582 -runstatedir | --runstatedir | --runstatedi | --runstated \
1583 | --runstate | --runstat | --runsta | --runst | --runs \
1584 | --run | --ru | --r)
1585 ac_prev=runstatedir ;;
1586 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1587 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1588 | --run=* | --ru=* | --r=*)
1589 runstatedir=$ac_optarg ;;
1591 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1593 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1595 sbindir=$ac_optarg ;;
1597 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1598 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1599 | --sharedst | --shareds | --shared | --share | --shar \
1601 ac_prev=sharedstatedir ;;
1602 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1603 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1604 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1606 sharedstatedir=$ac_optarg ;;
1608 -site | --site | --sit)
1610 -site=* | --site=* | --sit=*)
1613 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1615 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1616 srcdir=$ac_optarg ;;
1618 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1619 | --syscon | --sysco | --sysc | --sys | --sy)
1620 ac_prev=sysconfdir ;;
1621 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1622 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1623 sysconfdir=$ac_optarg ;;
1625 -target | --target | --targe | --targ | --tar | --ta | --t)
1626 ac_prev=target_alias ;;
1627 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1628 target_alias=$ac_optarg ;;
1630 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1633 -version | --version | --versio | --versi | --vers | -V)
1634 ac_init_version=: ;;
1637 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1638 # Reject names that are not valid shell variable names.
1639 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1640 as_fn_error $? "invalid package name: \`$ac_useropt'"
1641 ac_useropt_orig=$ac_useropt
1642 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1643 case $ac_user_opts in
1647 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1648 ac_unrecognized_sep=', ';;
1650 eval with_$ac_useropt=\$ac_optarg ;;
1652 -without-* | --without-*)
1653 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1654 # Reject names that are not valid shell variable names.
1655 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1656 as_fn_error $? "invalid package name: \`$ac_useropt'"
1657 ac_useropt_orig=$ac_useropt
1658 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1659 case $ac_user_opts in
1663 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1664 ac_unrecognized_sep=', ';;
1666 eval with_$ac_useropt=no ;;
1669 # Obsolete; use --with-x.
1672 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1673 | --x-incl | --x-inc | --x-in | --x-i)
1674 ac_prev=x_includes ;;
1675 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1676 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1677 x_includes=$ac_optarg ;;
1679 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1680 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1681 ac_prev=x_libraries ;;
1682 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1683 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1684 x_libraries=$ac_optarg ;;
1686 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1687 Try \`$0 --help' for more information"
1691 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1692 # Reject names that are not valid shell variable names.
1693 case $ac_envvar in #(
1694 '' | [0-9]* | *[!_$as_cr_alnum]* )
1695 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1697 eval $ac_envvar=\$ac_optarg
1698 export $ac_envvar ;;
1701 # FIXME: should be removed in autoconf 3.0.
1702 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1703 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1704 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1705 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1711 if test -n "$ac_prev"; then
1712 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1713 as_fn_error $? "missing argument to $ac_option"
1716 if test -n "$ac_unrecognized_opts"; then
1717 case $enable_option_checking in
1719 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1720 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1724 # Check all directory arguments for consistency.
1725 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1726 datadir sysconfdir sharedstatedir localstatedir includedir \
1727 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1728 libdir localedir mandir runstatedir
1730 eval ac_val=\$$ac_var
1731 # Remove trailing slashes.
1734 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1735 eval $ac_var=\$ac_val;;
1737 # Be sure to have absolute directory names.
1739 [\\/$]* | ?:[\\/]* ) continue;;
1740 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1742 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1745 # There might be people who depend on the old broken behavior: `$host'
1746 # used to hold the argument of --host etc.
1747 # FIXME: To remove some day.
1750 target=$target_alias
1752 # FIXME: To remove some day.
1753 if test "x$host_alias" != x; then
1754 if test "x$build_alias" = x; then
1755 cross_compiling=maybe
1756 elif test "x$build_alias" != "x$host_alias"; then
1762 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1764 test "$silent" = yes && exec 6>/dev/null
1767 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1768 ac_ls_di=`ls -di .` &&
1769 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1770 as_fn_error $? "working directory cannot be determined"
1771 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1772 as_fn_error $? "pwd does not report name of working directory"
1775 # Find the source files, if location was not specified.
1776 if test -z "$srcdir"; then
1777 ac_srcdir_defaulted=yes
1778 # Try the directory containing this script, then the parent directory.
1779 ac_confdir=`$as_dirname -- "$as_myself" ||
1780 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1781 X"$as_myself" : 'X\(//\)[^/]' \| \
1782 X"$as_myself" : 'X\(//\)$' \| \
1783 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1784 printf "%s\n" X"$as_myself" |
1785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1803 if test ! -r "$srcdir/$ac_unique_file"; then
1807 ac_srcdir_defaulted=no
1809 if test ! -r "$srcdir/$ac_unique_file"; then
1810 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1811 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1813 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1815 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1817 # When building in place, set srcdir=.
1818 if test "$ac_abs_confdir" = "$ac_pwd"; then
1821 # Remove unnecessary trailing slashes from srcdir.
1822 # Double slashes in file names in object file debugging info
1823 # mess up M-x gdb in Emacs.
1825 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1827 for ac_var in $ac_precious_vars; do
1828 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1829 eval ac_env_${ac_var}_value=\$${ac_var}
1830 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1831 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1835 # Report the --help message.
1837 if test "$ac_init_help" = "long"; then
1838 # Omit some internal or obsolete options to make the list less imposing.
1839 # This message is too long to be a string in the A/UX 3.1 sh.
1841 \`configure' configures curl - to adapt to many kinds of systems.
1843 Usage: $0 [OPTION]... [VAR=VALUE]...
1845 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1846 VAR=VALUE. See below for descriptions of some of the useful variables.
1848 Defaults for the options are specified in brackets.
1851 -h, --help display this help and exit
1852 --help=short display options specific to this package
1853 --help=recursive display the short help of all the included packages
1854 -V, --version display version information and exit
1855 -q, --quiet, --silent do not print \`checking ...' messages
1856 --cache-file=FILE cache test results in FILE [disabled]
1857 -C, --config-cache alias for \`--cache-file=config.cache'
1858 -n, --no-create do not create output files
1859 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1861 Installation directories:
1862 --prefix=PREFIX install architecture-independent files in PREFIX
1863 [$ac_default_prefix]
1864 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1867 By default, \`make install' will install all the files in
1868 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1869 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1870 for instance \`--prefix=\$HOME'.
1872 For better control, use the options below.
1874 Fine tuning of the installation directories:
1875 --bindir=DIR user executables [EPREFIX/bin]
1876 --sbindir=DIR system admin executables [EPREFIX/sbin]
1877 --libexecdir=DIR program executables [EPREFIX/libexec]
1878 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1879 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1880 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1881 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1882 --libdir=DIR object code libraries [EPREFIX/lib]
1883 --includedir=DIR C header files [PREFIX/include]
1884 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1885 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1886 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1887 --infodir=DIR info documentation [DATAROOTDIR/info]
1888 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1889 --mandir=DIR man documentation [DATAROOTDIR/man]
1890 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1891 --htmldir=DIR html documentation [DOCDIR]
1892 --dvidir=DIR dvi documentation [DOCDIR]
1893 --pdfdir=DIR pdf documentation [DOCDIR]
1894 --psdir=DIR ps documentation [DOCDIR]
1900 --program-prefix=PREFIX prepend PREFIX to installed program names
1901 --program-suffix=SUFFIX append SUFFIX to installed program names
1902 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1905 --build=BUILD configure for building on BUILD [guessed]
1906 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1910 if test -n "$ac_init_help"; then
1911 case $ac_init_help in
1912 short | recursive ) echo "Configuration of curl -:";;
1917 --disable-option-checking ignore unrecognized --enable/--with options
1918 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1919 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1920 --enable-maintainer-mode
1921 enable make rules and dependencies not useful (and
1922 sometimes confusing) to the casual installer
1923 --enable-silent-rules less verbose build output (undo: "make V=1")
1924 --disable-silent-rules verbose build output (undo: "make V=0")
1925 --enable-debug Enable debug build options
1926 --disable-debug Disable debug build options
1927 --enable-optimize Enable compiler optimizations
1928 --disable-optimize Disable compiler optimizations
1929 --enable-warnings Enable strict compiler warnings
1930 --disable-warnings Disable strict compiler warnings
1931 --enable-werror Enable compiler warnings as errors
1932 --disable-werror Disable compiler warnings as errors
1933 --enable-curldebug Enable curl debug memory tracking
1934 --disable-curldebug Disable curl debug memory tracking
1935 --enable-symbol-hiding Enable hiding of library internal symbols
1936 --disable-symbol-hiding Disable hiding of library internal symbols
1937 --enable-ares[=PATH] Enable c-ares for DNS lookups
1938 --disable-ares Disable c-ares for DNS lookups
1939 --disable-rt disable dependency on -lrt
1940 --enable-ech Enable ECH support
1941 --disable-ech Disable ECH support
1942 --enable-code-coverage Provide code coverage
1943 --enable-dependency-tracking
1944 do not reject slow dependency extractors
1945 --disable-dependency-tracking
1946 speeds up one-time build
1947 --disable-largefile omit support for large files
1948 --enable-shared[=PKGS] build shared libraries [default=yes]
1949 --enable-static[=PKGS] build static libraries [default=yes]
1950 --enable-fast-install[=PKGS]
1951 optimize for fast installation [default=yes]
1952 --disable-libtool-lock avoid locking (might break parallel builds)
1953 --enable-http Enable HTTP support
1954 --disable-http Disable HTTP support
1955 --enable-ftp Enable FTP support
1956 --disable-ftp Disable FTP support
1957 --enable-file Enable FILE support
1958 --disable-file Disable FILE support
1959 --enable-ldap Enable LDAP support
1960 --disable-ldap Disable LDAP support
1961 --enable-ldaps Enable LDAPS support
1962 --disable-ldaps Disable LDAPS support
1963 --enable-rtsp Enable RTSP support
1964 --disable-rtsp Disable RTSP support
1965 --enable-proxy Enable proxy support
1966 --disable-proxy Disable proxy support
1967 --enable-dict Enable DICT support
1968 --disable-dict Disable DICT support
1969 --enable-telnet Enable TELNET support
1970 --disable-telnet Disable TELNET support
1971 --enable-tftp Enable TFTP support
1972 --disable-tftp Disable TFTP support
1973 --enable-pop3 Enable POP3 support
1974 --disable-pop3 Disable POP3 support
1975 --enable-imap Enable IMAP support
1976 --disable-imap Disable IMAP support
1977 --enable-smb Enable SMB/CIFS support
1978 --disable-smb Disable SMB/CIFS support
1979 --enable-smtp Enable SMTP support
1980 --disable-smtp Disable SMTP support
1981 --enable-gopher Enable Gopher support
1982 --disable-gopher Disable Gopher support
1983 --enable-mqtt Enable MQTT support
1984 --disable-mqtt Disable MQTT support
1985 --enable-manual Enable built-in manual
1986 --disable-manual Disable built-in manual
1987 --enable-libcurl-option Enable --libcurl C code generation support
1988 --disable-libcurl-option
1989 Disable --libcurl C code generation support
1990 --enable-libgcc use libgcc when linking
1991 --enable-ipv6 Enable IPv6 (with IPv4) support
1992 --disable-ipv6 Disable IPv6 support
1993 --enable-openssl-auto-load-config
1994 Enable automatic loading of OpenSSL configuration
1995 --disable-openssl-auto-load-config
1996 Disable automatic loading of OpenSSL configuration
1997 --enable-versioned-symbols
1998 Enable versioned symbols in shared library
1999 --disable-versioned-symbols
2000 Disable versioned symbols in shared library
2001 --enable-threaded-resolver
2002 Enable threaded resolver
2003 --disable-threaded-resolver
2004 Disable threaded resolver
2005 --enable-pthreads Enable POSIX threads (default for threaded resolver)
2006 --disable-pthreads Disable POSIX threads
2007 --enable-verbose Enable verbose strings
2008 --disable-verbose Disable verbose strings
2009 --enable-sspi Enable SSPI
2010 --disable-sspi Disable SSPI
2011 --enable-basic-auth Enable basic authentication (default)
2012 --disable-basic-auth Disable basic authentication
2013 --enable-bearer-auth Enable bearer authentication (default)
2014 --disable-bearer-auth Disable bearer authentication
2015 --enable-digest-auth Enable digest authentication (default)
2016 --disable-digest-auth Disable digest authentication
2017 --enable-kerberos-auth Enable kerberos authentication (default)
2018 --disable-kerberos-auth Disable kerberos authentication
2019 --enable-negotiate-auth Enable negotiate authentication (default)
2020 --disable-negotiate-auth
2021 Disable negotiate authentication
2022 --enable-aws Enable AWS sig support (default)
2023 --disable-aws Disable AWS sig support
2024 --enable-ntlm Enable NTLM support
2025 --disable-ntlm Disable NTLM support
2026 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
2027 helper, where FILE is ntlm_auth's absolute filename
2028 (default: /usr/bin/ntlm_auth)
2029 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
2031 --enable-tls-srp Enable TLS-SRP authentication
2032 --disable-tls-srp Disable TLS-SRP authentication
2033 --enable-unix-sockets Enable Unix domain sockets
2034 --disable-unix-sockets Disable Unix domain sockets
2035 --enable-cookies Enable cookies support
2036 --disable-cookies Disable cookies support
2037 --enable-socketpair Enable socketpair support
2038 --disable-socketpair Disable socketpair support
2039 --enable-http-auth Enable HTTP authentication support
2040 --disable-http-auth Disable HTTP authentication support
2041 --enable-doh Enable DoH support
2042 --disable-doh Disable DoH support
2043 --enable-mime Enable mime API support
2044 --disable-mime Disable mime API support
2045 --enable-bindlocal Enable local binding support
2046 --disable-bindlocal Disable local binding support
2047 --enable-form-api Enable form API support
2048 --disable-form-api Disable form API support
2049 --enable-dateparse Enable date parsing
2050 --disable-dateparse Disable date parsing
2051 --enable-netrc Enable netrc parsing
2052 --disable-netrc Disable netrc parsing
2053 --enable-progress-meter Enable progress-meter
2054 --disable-progress-meter
2055 Disable progress-meter
2056 --enable-dnsshuffle Enable DNS shuffling
2057 --disable-dnsshuffle Disable DNS shuffling
2058 --enable-get-easy-options
2059 Enable curl_easy_options
2060 --disable-get-easy-options
2061 Disable curl_easy_options
2062 --enable-alt-svc Enable alt-svc support
2063 --disable-alt-svc Disable alt-svc support
2064 --enable-headers-api Enable headers-api support
2065 --disable-headers-api Disable headers-api support
2066 --enable-hsts Enable HSTS support
2067 --disable-hsts Disable HSTS support
2068 --enable-websockets Enable WebSockets support
2069 --disable-websockets Disable WebSockets support
2072 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2073 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2074 --with-schannel enable Windows native SSL/TLS
2075 --with-secure-transport enable Apple OS native SSL/TLS
2076 --with-amissl enable Amiga native SSL/TLS (AmiSSL)
2077 --with-ssl=PATH old version of --with-openssl
2078 --without-ssl build without any TLS library
2079 --with-openssl=PATH Where to look for OpenSSL, PATH points to the SSL
2080 installation (default: /usr/local/ssl); when
2081 possible, set the PKG_CONFIG_PATH environment
2082 variable instead of using this option
2083 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
2085 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
2087 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2088 installation root (default: system lib default)
2089 --with-bearssl=PATH where to look for BearSSL, PATH points to the
2091 --with-rustls=PATH where to look for rustls, PATH points to the
2093 --with-test-nghttpx=PATH
2094 where to find nghttpx for testing
2095 --with-test-caddy=PATH where to find caddy for testing
2096 --with-test-httpd=PATH where to find httpd/apache2 for testing
2098 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2100 --with-aix-soname=aix|svr4|both
2101 shared library versioning (aka "SONAME") variant to
2102 provide on AIX, [default=aix].
2103 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2104 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2105 compiler's sysroot if not specified).
2106 --with-hyper=PATH Enable hyper usage
2107 --without-hyper Disable hyper usage
2108 --with-zlib=PATH search for zlib in PATH
2109 --without-zlib disable use of zlib
2110 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
2111 installation; when possible, set the PKG_CONFIG_PATH
2112 environment variable instead of using this option
2113 --without-brotli disable BROTLI
2114 --with-zstd=PATH Where to look for libzstd, PATH points to the
2115 libzstd installation; when possible, set the
2116 PKG_CONFIG_PATH environment variable instead of
2118 --without-zstd disable libzstd
2119 --with-ldap-lib=libname Specify name of ldap lib file
2120 --with-lber-lib=libname Specify name of lber lib file
2121 --with-gssapi-includes=DIR
2122 Specify location of GSS-API headers
2123 --with-gssapi-libs=DIR Specify location of GSS-API libs
2124 --with-gssapi=DIR Where to look for GSS-API
2125 --with-default-ssl-backend=NAME
2126 Use NAME as default SSL backend
2127 --without-default-ssl-backend
2128 Use implicit default SSL backend
2129 --with-random=FILE read randomness from FILE (default=/dev/urandom)
2130 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2132 --without-ca-bundle Don't use a default CA bundle
2133 --with-ca-path=DIRECTORY
2134 Path to a directory containing CA certificates
2135 stored individually, with their filenames in a hash
2136 format. This option can be used with the OpenSSL,
2137 GnuTLS, mbedTLS and wolfSSL backends. Refer to
2138 OpenSSL c_rehash for details. (example:
2140 --without-ca-path Don't use a default CA path
2141 --with-ca-fallback Use the built in CA store of the SSL library
2142 --without-ca-fallback Don't use the built in CA store of the SSL library
2143 --without-libpsl disable support for libpsl cookie checking
2144 --without-libgsasl disable libgsasl support for SCRAM
2145 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2146 libssh2 installation; when possible, set the
2147 PKG_CONFIG_PATH environment variable instead of
2149 --with-libssh2 enable libssh2
2150 --with-libssh=PATH Where to look for libssh, PATH points to the libssh
2151 installation; when possible, set the PKG_CONFIG_PATH
2152 environment variable instead of using this option
2153 --with-libssh enable libssh
2154 --with-wolfssh=PATH Where to look for wolfssh, PATH points to the
2155 wolfSSH installation; when possible, set the
2156 PKG_CONFIG_PATH environment variable instead of
2158 --with-wolfssh enable wolfssh
2159 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2160 LIBRTMP installation; when possible, set the
2161 PKG_CONFIG_PATH environment variable instead of
2163 --without-librtmp disable LIBRTMP
2164 --with-winidn=PATH enable Windows native IDN
2165 --without-winidn disable Windows native IDN
2166 --with-libidn2=PATH Enable libidn2 usage
2167 --without-libidn2 Disable libidn2 usage
2168 --with-nghttp2=PATH Enable nghttp2 usage
2169 --without-nghttp2 Disable nghttp2 usage
2170 --with-ngtcp2=PATH Enable ngtcp2 usage
2171 --without-ngtcp2 Disable ngtcp2 usage
2172 --with-nghttp3=PATH Enable nghttp3 usage
2173 --without-nghttp3 Disable nghttp3 usage
2174 --with-quiche=PATH Enable quiche usage
2175 --without-quiche Disable quiche usage
2176 --with-msh3=PATH Enable msh3 usage
2177 --without-msh3 Disable msh3 usage
2178 --with-zsh-functions-dir=PATH
2179 Install zsh completions to PATH
2180 --without-zsh-functions-dir
2181 Do not install zsh completions
2182 --with-fish-functions-dir=PATH
2183 Install fish completions to PATH
2184 --without-fish-functions-dir
2185 Do not install fish completions
2187 Some influential environment variables:
2188 CC C compiler command
2189 CFLAGS C compiler flags
2190 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2191 nonstandard directory <lib dir>
2192 LIBS libraries to pass to the linker, e.g. -l<library>
2193 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2194 you have headers in a nonstandard directory <include dir>
2197 User-defined run-time library search path.
2199 Use these variables to override the choices made by `configure' or to help
2200 it to find libraries and programs with nonstandard names/locations.
2202 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2207 if test "$ac_init_help" = "recursive"; then
2208 # If there are subdirs, report their specific --help.
2209 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2210 test -d "$ac_dir" ||
2211 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2216 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2218 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2219 # A ".." for each directory in $ac_dir_suffix.
2220 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2221 case $ac_top_builddir_sub in
2222 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2223 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2226 ac_abs_top_builddir=$ac_pwd
2227 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2228 # for backward compatibility:
2229 ac_top_builddir=$ac_top_build_prefix
2232 .) # We are building in place.
2234 ac_top_srcdir=$ac_top_builddir_sub
2235 ac_abs_top_srcdir=$ac_pwd ;;
2236 [\\/]* | ?:[\\/]* ) # Absolute name.
2237 ac_srcdir=$srcdir$ac_dir_suffix;
2238 ac_top_srcdir=$srcdir
2239 ac_abs_top_srcdir=$srcdir ;;
2241 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2242 ac_top_srcdir=$ac_top_build_prefix$srcdir
2243 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2245 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2247 cd "$ac_dir" || { ac_status=$?; continue; }
2248 # Check for configure.gnu first; this name is used for a wrapper for
2249 # Metaconfig's "Configure" on case-insensitive file systems.
2250 if test -f "$ac_srcdir/configure.gnu"; then
2252 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2253 elif test -f "$ac_srcdir/configure"; then
2255 $SHELL "$ac_srcdir/configure" --help=recursive
2257 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2259 cd "$ac_pwd" || { ac_status=$?; break; }
2263 test -n "$ac_init_help" && exit $ac_status
2264 if $ac_init_version; then
2267 generated by GNU Autoconf 2.71
2269 Copyright (C) 2021 Free Software Foundation, Inc.
2270 This configure script is free software; the Free Software Foundation
2271 gives unlimited permission to copy, distribute and modify it.
2273 Copyright (C) Daniel Stenberg, <daniel@haxx.se>
2274 This configure script may be copied, distributed and modified under the
2275 terms of the curl license; see COPYING for more details
2280 ## ------------------------ ##
2281 ## Autoconf initialization. ##
2282 ## ------------------------ ##
2284 # ac_fn_c_try_compile LINENO
2285 # --------------------------
2286 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2287 ac_fn_c_try_compile ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext conftest.beam
2291 if { { ac_try="$ac_compile"
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 printf "%s\n" "$ac_try_echo"; } >&5
2298 (eval "$ac_compile") 2>conftest.err
2300 if test -s conftest.err; then
2301 grep -v '^ *+' conftest.err >conftest.er1
2302 cat conftest.er1 >&5
2303 mv -f conftest.er1 conftest.err
2305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && {
2307 test -z "$ac_c_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest.$ac_objext
2313 printf "%s\n" "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 as_fn_set_status $ac_retval
2321 } # ac_fn_c_try_compile
2323 # ac_fn_c_try_cpp LINENO
2324 # ----------------------
2325 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2328 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329 if { { ac_try="$ac_cpp conftest.$ac_ext"
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335 printf "%s\n" "$ac_try_echo"; } >&5
2336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2338 if test -s conftest.err; then
2339 grep -v '^ *+' conftest.err >conftest.er1
2340 cat conftest.er1 >&5
2341 mv -f conftest.er1 conftest.err
2343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } > conftest.i && {
2345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2346 test ! -s conftest.err
2351 printf "%s\n" "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357 as_fn_set_status $ac_retval
2361 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2362 # -------------------------------------------------------
2363 # Tests whether HEADER exists and can be compiled using the include files in
2364 # INCLUDES, setting the cache variable VAR accordingly.
2365 ac_fn_c_check_header_compile ()
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 printf %s "checking for $2... " >&6; }
2370 if eval test \${$3+y}
2372 printf %s "(cached) " >&6
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2379 if ac_fn_c_try_compile "$LINENO"
2385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 printf "%s\n" "$ac_res" >&6; }
2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392 } # ac_fn_c_check_header_compile
2394 # ac_fn_c_try_link LINENO
2395 # -----------------------
2396 # Try to link conftest.$ac_ext, and return whether this succeeded.
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2401 if { { ac_try="$ac_link"
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 printf "%s\n" "$ac_try_echo"; } >&5
2408 (eval "$ac_link") 2>conftest.err
2410 if test -s conftest.err; then
2411 grep -v '^ *+' conftest.err >conftest.er1
2412 cat conftest.er1 >&5
2413 mv -f conftest.er1 conftest.err
2415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416 test $ac_status = 0; } && {
2417 test -z "$ac_c_werror_flag" ||
2418 test ! -s conftest.err
2419 } && test -s conftest$ac_exeext && {
2420 test "$cross_compiling" = yes ||
2421 test -x conftest$ac_exeext
2426 printf "%s\n" "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2431 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2432 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2433 # interfere with the next link command; also delete a directory that is
2434 # left behind by Apple's compiler. We do this before executing the actions.
2435 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437 as_fn_set_status $ac_retval
2439 } # ac_fn_c_try_link
2441 # ac_fn_c_check_func LINENO FUNC VAR
2442 # ----------------------------------
2443 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2444 ac_fn_c_check_func ()
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448 printf %s "checking for $2... " >&6; }
2449 if eval test \${$3+y}
2451 printf %s "(cached) " >&6
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2456 #define $2 innocuous_$2
2458 # include <limits.h>
2460 # include <assert.h>
2467 #if defined __stub_$2 || defined __stub___$2
2478 if ac_fn_c_try_link "$LINENO"
2484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2485 conftest$ac_exeext conftest.$ac_ext
2488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 printf "%s\n" "$ac_res" >&6; }
2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492 } # ac_fn_c_check_func
2494 # ac_fn_c_try_run LINENO
2495 # ----------------------
2496 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2497 # executables *can* be run.
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 if { { ac_try="$ac_link"
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507 printf "%s\n" "$ac_try_echo"; } >&5
2508 (eval "$ac_link") 2>&5
2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2512 { { case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 printf "%s\n" "$ac_try_echo"; } >&5
2518 (eval "$ac_try") 2>&5
2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521 test $ac_status = 0; }; }
2525 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2526 printf "%s\n" "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 ac_retval=$ac_status
2531 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533 as_fn_set_status $ac_retval
2537 # ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES
2538 # -------------------------------------------------------
2539 # Tests whether TYPE exists after having included INCLUDES, setting cache
2540 # variable VAR accordingly.
2541 ac_fn_c_check_type ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 printf %s "checking for $2... " >&6; }
2546 if eval test \${$3+y}
2548 printf %s "(cached) " >&6
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2562 if ac_fn_c_try_compile "$LINENO"
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2575 if ac_fn_c_try_compile "$LINENO"
2581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 printf "%s\n" "$ac_res" >&6; }
2588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2590 } # ac_fn_c_check_type
2592 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2593 # ------------------------------------------------------------------
2594 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2595 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 as_decl_name=`echo $2|sed 's/ *(.*//'`
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2601 printf %s "checking whether $as_decl_name is declared... " >&6; }
2602 if eval test \${$3+y}
2604 printf %s "(cached) " >&6
2606 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2607 eval ac_save_FLAGS=\$$6
2608 as_fn_append $6 " $5"
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2614 #ifndef $as_decl_name
2616 (void) $as_decl_use;
2618 (void) $as_decl_name;
2626 if ac_fn_c_try_compile "$LINENO"
2632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2633 eval $6=\$ac_save_FLAGS
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 printf "%s\n" "$ac_res" >&6; }
2639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2641 } # ac_fn_check_decl
2643 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2644 # ----------------------------------------------------
2645 # Tries to find if the field MEMBER exists in type AGGR, after including
2646 # INCLUDES, setting cache variable VAR accordingly.
2647 ac_fn_c_check_member ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2651 printf %s "checking for $2.$3... " >&6; }
2652 if eval test \${$4+y}
2654 printf %s "(cached) " >&6
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2668 if ac_fn_c_try_compile "$LINENO"
2672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h. */
2678 if (sizeof ac_aggr.$3)
2684 if ac_fn_c_try_compile "$LINENO"
2690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696 printf "%s\n" "$ac_res" >&6; }
2697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2699 } # ac_fn_c_check_member
2700 ac_configure_args_raw=
2705 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2707 as_fn_append ac_configure_args_raw " '$ac_arg'"
2710 case $ac_configure_args_raw in
2714 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2715 ac_unsafe_a="$ac_unsafe_z#~"
2716 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2717 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2720 cat >config.log <<_ACEOF
2721 This file contains any messages produced by compilers while
2722 running configure, to aid debugging if configure makes a mistake.
2724 It was created by curl $as_me -, which was
2725 generated by GNU Autoconf 2.71. Invocation command line was
2727 $ $0$ac_configure_args_raw
2737 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2738 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2739 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2740 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2741 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2743 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2744 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2746 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2747 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2748 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2749 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2750 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2751 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2752 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 case $as_dir in #(((
2763 *) as_dir=$as_dir/ ;;
2765 printf "%s\n" "PATH: $as_dir"
2781 # Keep a trace of the command line.
2782 # Strip out --no-create and --no-recursion so they do not pile up.
2783 # Strip out --silent because we don't want to record it for future runs.
2784 # Also quote any args containing shell meta-characters.
2785 # Make two passes to allow for proper duplicate-argument suppression.
2789 ac_must_keep_next=false
2795 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2797 | -silent | --silent | --silen | --sile | --sil)
2800 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2803 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2805 as_fn_append ac_configure_args1 " '$ac_arg'"
2806 if test $ac_must_keep_next = true; then
2807 ac_must_keep_next=false # Got value, back to normal.
2810 *=* | --config-cache | -C | -disable-* | --disable-* \
2811 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2812 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2813 | -with-* | --with-* | -without-* | --without-* | --x)
2814 case "$ac_configure_args0 " in
2815 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2818 -* ) ac_must_keep_next=true ;;
2821 as_fn_append ac_configure_args " '$ac_arg'"
2826 { ac_configure_args0=; unset ac_configure_args0;}
2827 { ac_configure_args1=; unset ac_configure_args1;}
2829 # When interrupted or exit'd, cleanup temporary files, and complete
2830 # config.log. We remove comments because anyway the quotes in there
2831 # would cause problems or look ugly.
2832 # WARNING: Use '\'' to represent an apostrophe within the trap.
2833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2834 trap 'exit_status=$?
2837 # Save into config.log some information that might help in debugging.
2841 printf "%s\n" "## ---------------- ##
2842 ## Cache variables. ##
2843 ## ---------------- ##"
2845 # The following way of writing the cache mishandles newlines in values,
2847 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2848 eval ac_val=\$$ac_var
2852 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2853 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2856 _ | IFS | as_nl) ;; #(
2857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2858 *) { eval $ac_var=; unset $ac_var;} ;;
2863 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2864 *${as_nl}ac_space=\ *)
2866 "s/'\''/'\''\\\\'\'''\''/g;
2867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2870 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2877 printf "%s\n" "## ----------------- ##
2878 ## Output variables. ##
2879 ## ----------------- ##"
2881 for ac_var in $ac_subst_vars
2883 eval ac_val=\$$ac_var
2885 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2887 printf "%s\n" "$ac_var='\''$ac_val'\''"
2891 if test -n "$ac_subst_files"; then
2892 printf "%s\n" "## ------------------- ##
2893 ## File substitutions. ##
2894 ## ------------------- ##"
2896 for ac_var in $ac_subst_files
2898 eval ac_val=\$$ac_var
2900 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2902 printf "%s\n" "$ac_var='\''$ac_val'\''"
2907 if test -s confdefs.h; then
2908 printf "%s\n" "## ----------- ##
2915 test "$ac_signal" != 0 &&
2916 printf "%s\n" "$as_me: caught signal $ac_signal"
2917 printf "%s\n" "$as_me: exit $exit_status"
2919 rm -f core *.core core.conftest.* &&
2920 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2923 for ac_signal in 1 2 13 15; do
2924 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2928 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2929 rm -f -r conftest* confdefs.h
2931 printf "%s\n" "/* confdefs.h */" > confdefs.h
2933 # Predefined preprocessor variables.
2935 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2937 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2939 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2941 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2943 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2945 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2948 # Let the site file select an alternate cache file if it wants to.
2949 # Prefer an explicitly selected file to automatically selected ones.
2950 if test -n "$CONFIG_SITE"; then
2951 ac_site_files="$CONFIG_SITE"
2952 elif test "x$prefix" != xNONE; then
2953 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2955 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2958 for ac_site_file in $ac_site_files
2960 case $ac_site_file in #(
2964 ac_site_file=./$ac_site_file ;;
2966 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2968 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2969 sed 's/^/| /' "$ac_site_file" >&5
2971 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2972 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2973 as_fn_error $? "failed to load site script $ac_site_file
2974 See \`config.log' for more details" "$LINENO" 5; }
2978 if test -r "$cache_file"; then
2979 # Some versions of bash will fail to source /dev/null (special files
2980 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2981 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2983 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2985 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2986 *) . "./$cache_file";;
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2991 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2995 # Test code for whether the C compiler supports C89 (global declarations)
2996 ac_c_conftest_c89_globals='
2997 /* Does the compiler advertise C89 conformance?
2998 Do not test the value of __STDC__, because some compilers set it to 0
2999 while being otherwise adequately conformant. */
3000 #if !defined __STDC__
3001 # error "Compiler does not advertise C89 conformance"
3007 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3008 struct buf { int x; };
3009 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3010 static char *e (p, i)
3016 static char *f (char * (*g) (char **, int), char **p, ...)
3021 s = g (p, va_arg (v,int));
3026 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3027 function prototypes and stuff, but not \xHH hex character constants.
3028 These do not provoke an error unfortunately, instead are silently treated
3029 as an "x". The following induces an error, until -std is added to get
3030 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3031 array size at least. It is necessary to write \x00 == 0 to get something
3032 that is true only with -std. */
3033 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3035 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3036 inside strings and character constants. */
3037 #define FOO(x) '\''x'\''
3038 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3040 int test (int i, double x);
3041 struct s1 {int (*f) (int a);};
3042 struct s2 {int (*f) (double a);};
3043 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3046 # Test code for whether the C compiler supports C89 (body of main).
3047 ac_c_conftest_c89_main='
3048 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3051 # Test code for whether the C compiler supports C99 (global declarations)
3052 ac_c_conftest_c99_globals='
3053 // Does the compiler advertise C99 conformance?
3054 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3055 # error "Compiler does not advertise C99 conformance"
3058 #include <stdbool.h>
3059 extern int puts (const char *);
3060 extern int printf (const char *, ...);
3061 extern int dprintf (int, const char *, ...);
3062 extern void *malloc (size_t);
3064 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3065 // dprintf is used instead of fprintf to avoid needing to declare
3067 #define debug(...) dprintf (2, __VA_ARGS__)
3068 #define showlist(...) puts (#__VA_ARGS__)
3069 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3071 test_varargs_macros (void)
3076 debug ("X = %d\n", x);
3077 showlist (The first, second, and third items.);
3078 report (x>y, "x is %d but y is %d", x, y);
3081 // Check long long types.
3082 #define BIG64 18446744073709551615ull
3083 #define BIG32 4294967295ul
3084 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3086 #error "your preprocessor is broken"
3090 #error "your preprocessor is broken"
3092 static long long int bignum = -9223372036854775807LL;
3093 static unsigned long long int ubignum = BIG64;
3095 struct incomplete_array
3103 const wchar_t *name;
3107 typedef const char *ccp;
3110 test_restrict (ccp restrict text)
3112 // See if C++-style comments work.
3113 // Iterate through items via the restricted pointer.
3114 // Also check for declarations in for loops.
3115 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3120 // Check varargs and va_copy.
3122 test_varargs (const char *format, ...)
3125 va_start (args, format);
3127 va_copy (args_copy, args);
3129 const char *str = "";
3137 case '\''s'\'': // string
3138 str = va_arg (args_copy, const char *);
3140 case '\''d'\'': // int
3141 number = va_arg (args_copy, int);
3143 case '\''f'\'': // float
3144 fnumber = va_arg (args_copy, double);
3153 return *str && number && fnumber;
3157 # Test code for whether the C compiler supports C99 (body of main).
3158 ac_c_conftest_c99_main='
3160 _Bool success = false;
3161 success |= (argc != 0);
3164 if (test_restrict ("String literal") == 0)
3166 char *restrict newvar = "Another string";
3169 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3170 test_varargs_macros ();
3172 // Check flexible array members.
3173 struct incomplete_array *ia =
3174 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3176 for (int i = 0; i < ia->datasize; ++i)
3177 ia->data[i] = i * 1.234;
3179 // Check named initializers.
3180 struct named_init ni = {
3182 .name = L"Test wide string",
3183 .average = 543.34343,
3188 int dynamic_array[ni.number];
3189 dynamic_array[0] = argv[0][0];
3190 dynamic_array[ni.number - 1] = 543;
3192 // work around unused variable warnings
3193 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3194 || dynamic_array[ni.number - 1] != 543);
3197 # Test code for whether the C compiler supports C11 (global declarations)
3198 ac_c_conftest_c11_globals='
3199 // Does the compiler advertise C11 conformance?
3200 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3201 # error "Compiler does not advertise C11 conformance"
3205 char _Alignas (double) aligned_as_double;
3206 char _Alignas (0) no_special_alignment;
3207 extern char aligned_as_int;
3208 char _Alignas (0) _Alignas (int) aligned_as_int;
3213 int_alignment = _Alignof (int),
3214 int_array_alignment = _Alignof (int[100]),
3215 char_alignment = _Alignof (char)
3217 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3220 int _Noreturn does_not_return (void) { for (;;) continue; }
3222 // Check _Static_assert.
3223 struct test_static_assert
3226 _Static_assert (sizeof (int) <= sizeof (long int),
3227 "_Static_assert does not work in struct");
3231 // Check UTF-8 literals.
3232 #define u8 syntax error!
3233 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3235 // Check duplicate typedefs.
3236 typedef long *long_ptr;
3237 typedef long int *long_ptr;
3238 typedef long_ptr long_ptr;
3240 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3244 struct { int i; int j; };
3245 struct { int k; long int l; } w;
3251 # Test code for whether the C compiler supports C11 (body of main).
3252 ac_c_conftest_c11_main='
3253 _Static_assert ((offsetof (struct anonymous, i)
3254 == offsetof (struct anonymous, w.k)),
3255 "Anonymous union alignment botch");
3261 # Test code for whether the C compiler supports C11 (complete).
3262 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3263 ${ac_c_conftest_c99_globals}
3264 ${ac_c_conftest_c11_globals}
3267 main (int argc, char **argv)
3270 ${ac_c_conftest_c89_main}
3271 ${ac_c_conftest_c99_main}
3272 ${ac_c_conftest_c11_main}
3277 # Test code for whether the C compiler supports C99 (complete).
3278 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3279 ${ac_c_conftest_c99_globals}
3282 main (int argc, char **argv)
3285 ${ac_c_conftest_c89_main}
3286 ${ac_c_conftest_c99_main}
3291 # Test code for whether the C compiler supports C89 (complete).
3292 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3295 main (int argc, char **argv)
3298 ${ac_c_conftest_c89_main}
3303 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3304 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3305 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3306 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3307 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3308 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3309 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3310 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3311 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3313 # Auxiliary files required by this configure script.
3314 ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3316 # Locations in which to look for auxiliary files.
3317 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3319 # Search for a directory containing all of the required auxiliary files,
3320 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3321 # If we don't find one directory that contains all the files we need,
3322 # we report the set of missing files from the *first* directory in
3323 # $ac_aux_dir_candidates and give up.
3324 ac_missing_aux_files=""
3325 ac_first_candidate=:
3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $ac_aux_dir_candidates
3332 case $as_dir in #(((
3335 *) as_dir=$as_dir/ ;;
3339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3340 ac_aux_dir_found=yes
3342 for ac_aux in $ac_aux_files
3344 # As a special case, if "install-sh" is required, that requirement
3345 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3346 # and $ac_install_sh is set appropriately for whichever one is found.
3347 if test x"$ac_aux" = x"install-sh"
3349 if test -f "${as_dir}install-sh"; then
3350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3351 ac_install_sh="${as_dir}install-sh -c"
3352 elif test -f "${as_dir}install.sh"; then
3353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3354 ac_install_sh="${as_dir}install.sh -c"
3355 elif test -f "${as_dir}shtool"; then
3356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3357 ac_install_sh="${as_dir}shtool install -c"
3360 if $ac_first_candidate; then
3361 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3367 if test -f "${as_dir}${ac_aux}"; then
3368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3371 if $ac_first_candidate; then
3372 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3379 if test "$ac_aux_dir_found" = yes; then
3380 ac_aux_dir="$as_dir"
3383 ac_first_candidate=false
3392 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3396 # These three variables are undocumented and unsupported,
3397 # and are intended to be withdrawn in a future Autoconf release.
3398 # They can cause serious problems if a builder's source tree is in a directory
3399 # whose full name contains unusual characters.
3400 if test -f "${ac_aux_dir}config.guess"; then
3401 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3403 if test -f "${ac_aux_dir}config.sub"; then
3404 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3406 if test -f "$ac_aux_dir/configure"; then
3407 ac_configure="$SHELL ${ac_aux_dir}configure"
3410 # Check that the precious variables saved in the cache have kept the same
3412 ac_cache_corrupted=false
3413 for ac_var in $ac_precious_vars; do
3414 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3415 eval ac_new_set=\$ac_env_${ac_var}_set
3416 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3417 eval ac_new_val=\$ac_env_${ac_var}_value
3418 case $ac_old_set,$ac_new_set in
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3421 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3422 ac_cache_corrupted=: ;;
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3425 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3426 ac_cache_corrupted=: ;;
3429 if test "x$ac_old_val" != "x$ac_new_val"; then
3430 # differences in whitespace do not lead to failure.
3431 ac_old_val_w=`echo x $ac_old_val`
3432 ac_new_val_w=`echo x $ac_new_val`
3433 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3435 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3436 ac_cache_corrupted=:
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3439 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3440 eval $ac_var=\$ac_old_val
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3443 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3445 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3448 # Pass precious variables to config.status.
3449 if test "$ac_new_set" = set; then
3451 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3452 *) ac_arg=$ac_var=$ac_new_val ;;
3454 case " $ac_configure_args " in
3455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3456 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3460 if $ac_cache_corrupted; then
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3464 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3465 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3466 and start over" "$LINENO" 5
3468 ## -------------------- ##
3469 ## Main body of script. ##
3470 ## -------------------- ##
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484 # using curl-override.m4
3490 ac_config_headers="$ac_config_headers lib/curl_config.h"
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3495 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3496 # Check whether --enable-maintainer-mode was given.
3497 if test ${enable_maintainer_mode+y}
3499 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3501 USE_MAINTAINER_MODE=no
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3505 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3506 if test $USE_MAINTAINER_MODE = yes; then
3507 MAINTAINER_MODE_TRUE=
3508 MAINTAINER_MODE_FALSE='#'
3510 MAINTAINER_MODE_TRUE='#'
3511 MAINTAINER_MODE_FALSE=
3514 MAINT=$MAINTAINER_MODE_TRUE
3517 # Check whether --enable-silent-rules was given.
3518 if test ${enable_silent_rules+y}
3520 enableval=$enable_silent_rules;
3523 case $enable_silent_rules in # (((
3524 yes) AM_DEFAULT_VERBOSITY=0;;
3525 no) AM_DEFAULT_VERBOSITY=1;;
3526 *) AM_DEFAULT_VERBOSITY=0;;
3528 am_make=${MAKE-make}
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3530 printf %s "checking whether $am_make supports nested variables... " >&6; }
3531 if test ${am_cv_make_support_nested_variables+y}
3533 printf %s "(cached) " >&6
3535 if printf "%s\n" 'TRUE=$(BAR$(V))
3541 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3542 am_cv_make_support_nested_variables=yes
3544 am_cv_make_support_nested_variables=no
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3548 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3549 if test $am_cv_make_support_nested_variables = yes; then
3551 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3553 AM_V=$AM_DEFAULT_VERBOSITY
3554 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3561 printf %s "checking whether to enable debug build options... " >&6; }
3562 OPT_DEBUG_BUILD="default"
3563 # Check whether --enable-debug was given.
3564 if test ${enable_debug+y}
3566 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3569 case "$OPT_DEBUG_BUILD" in
3579 printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3584 printf "%s\n" "$want_debug" >&6; }
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3588 printf %s "checking whether to enable compiler optimizer... " >&6; }
3589 OPT_COMPILER_OPTIMIZE="default"
3590 # Check whether --enable-optimize was given.
3591 if test ${enable_optimize+y}
3593 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3596 case "$OPT_COMPILER_OPTIMIZE" in
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 printf "%s\n" "no" >&6; }
3603 if test "$want_debug" = "yes"; then
3604 want_optimize="assume_no"
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3606 printf "%s\n" "(assumed) no" >&6; }
3608 want_optimize="assume_yes"
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3610 printf "%s\n" "(assumed) yes" >&6; }
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3616 printf "%s\n" "yes" >&6; }
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3622 printf %s "checking whether to enable strict compiler warnings... " >&6; }
3623 OPT_COMPILER_WARNINGS="default"
3624 # Check whether --enable-warnings was given.
3625 if test ${enable_warnings+y}
3627 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3630 case "$OPT_COMPILER_WARNINGS" in
3635 want_warnings="$want_debug"
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3642 printf "%s\n" "$want_warnings" >&6; }
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3646 printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3647 OPT_COMPILER_WERROR="default"
3648 # Check whether --enable-werror was given.
3649 if test ${enable_werror+y}
3651 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3654 case "$OPT_COMPILER_WERROR" in
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3666 printf "%s\n" "$want_werror" >&6; }
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3670 printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3671 OPT_CURLDEBUG_BUILD="default"
3672 # Check whether --enable-curldebug was given.
3673 if test ${enable_curldebug+y}
3675 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3678 case "$OPT_CURLDEBUG_BUILD" in
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 printf "%s\n" "no" >&6; }
3685 if test "$want_debug" = "yes"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3687 printf "%s\n" "(assumed) yes" >&6; }
3689 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 printf "%s\n" "no" >&6; }
3695 want_curldebug_assumed="yes"
3696 want_curldebug="$want_debug"
3699 want_curldebug="yes"
3701 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704 printf "%s\n" "yes" >&6; }
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3710 printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3711 OPT_SYMBOL_HIDING="default"
3712 # Check whether --enable-symbol-hiding was given.
3713 if test ${enable_symbol_hiding+y}
3715 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3718 case "$OPT_SYMBOL_HIDING" in
3720 want_symbol_hiding="no"
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 printf "%s\n" "no" >&6; }
3725 want_symbol_hiding="yes"
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3727 printf "%s\n" "yes" >&6; }
3730 want_symbol_hiding="yes"
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732 printf "%s\n" "yes" >&6; }
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3738 printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3740 # Check whether --enable-ares was given.
3741 if test ${enable_ares+y}
3743 enableval=$enable_ares; OPT_ARES=$enableval
3755 if test -n "$enableval" && test "$enableval" != "yes"; then
3756 want_ares_path="$enableval"
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3761 printf "%s\n" "$want_ares" >&6; }
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3765 printf %s "checking whether to disable dependency on -lrt... " >&6; }
3767 # Check whether --enable-rt was given.
3768 if test ${enable_rt+y}
3770 enableval=$enable_rt; OPT_RT=$enableval
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777 printf "%s\n" "yes" >&6; }
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3782 printf "%s\n" "(assumed no)" >&6; }
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 printf "%s\n" "no" >&6; }
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3793 printf %s "checking whether to enable ECH support... " >&6; }
3795 # Check whether --enable-ech was given.
3796 if test ${enable_ech+y}
3798 enableval=$enable_ech; OPT_ECH=$enableval
3804 curl_ech_msg="no (--enable-ech)"
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 printf "%s\n" "no" >&6; }
3810 curl_ech_msg="no (--enable-ech)"
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 printf "%s\n" "no" >&6; }
3816 curl_ech_msg="enabled (--disable-ech)"
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3819 printf "%s\n" "yes" >&6; }
3825 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3828 if test -z "$xc_configure_preamble_result"; then
3829 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3833 # Check that 'PATH_SEPARATOR' has already been set.
3836 if test -z "$xc_PATH_SEPARATOR"; then
3837 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3839 if test -z "$PATH_SEPARATOR"; then
3840 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3843 printf %s "checking for path separator... " >&6; }
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3845 printf "%s\n" "$PATH_SEPARATOR" >&6; }
3846 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3848 printf %s "checking for initial path separator... " >&6; }
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3850 printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3851 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3856 # save the configure arguments
3858 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3861 if test -z "$SED"; then
3862 # Extract the first word of "sed", so it can be a program name with args.
3863 set dummy sed; ac_word=$2
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 printf %s "checking for $ac_word... " >&6; }
3866 if test ${ac_cv_path_SED+y}
3868 printf %s "(cached) " >&6
3872 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3877 for as_dir in $as_dummy
3880 case $as_dir in #(((
3883 *) as_dir=$as_dir/ ;;
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3887 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3895 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3900 if test -n "$SED"; then
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3902 printf "%s\n" "$SED" >&6; }
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 printf "%s\n" "no" >&6; }
3909 if test -z "$SED" || test "$SED" = "not_found"; then
3910 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3915 if test -z "$GREP"; then
3916 # Extract the first word of "grep", so it can be a program name with args.
3917 set dummy grep; ac_word=$2
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 printf %s "checking for $ac_word... " >&6; }
3920 if test ${ac_cv_path_GREP+y}
3922 printf %s "(cached) " >&6
3926 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3931 for as_dir in $as_dummy
3934 case $as_dir in #(((
3937 *) as_dir=$as_dir/ ;;
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3941 ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3949 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3953 GREP=$ac_cv_path_GREP
3954 if test -n "$GREP"; then
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3956 printf "%s\n" "$GREP" >&6; }
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3963 if test -z "$GREP" || test "$GREP" = "not_found"; then
3964 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3969 if test -z "$EGREP"; then
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5
3971 printf %s "checking that grep -E works... " >&6; }
3972 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3975 printf "%s\n" "yes" >&6; }
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 printf "%s\n" "no" >&6; }
3979 # Extract the first word of "egrep", so it can be a program name with args.
3980 set dummy egrep; ac_word=$2
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 printf %s "checking for $ac_word... " >&6; }
3983 if test ${ac_cv_path_EGREP+y}
3985 printf %s "(cached) " >&6
3989 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3994 for as_dir in $as_dummy
3997 case $as_dir in #(((
4000 *) as_dir=$as_dir/ ;;
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4004 ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
4005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4012 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
4016 EGREP=$ac_cv_path_EGREP
4017 if test -n "$EGREP"; then
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
4019 printf "%s\n" "$EGREP" >&6; }
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 printf "%s\n" "no" >&6; }
4028 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4029 as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5
4033 if test -z "$AR"; then
4034 if test -n "$ac_tool_prefix"; then
4035 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4036 set dummy ${ac_tool_prefix}ar; ac_word=$2
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 printf %s "checking for $ac_word... " >&6; }
4039 if test ${ac_cv_path_AR+y}
4041 printf %s "(cached) " >&6
4045 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4050 for as_dir in $as_dummy
4053 case $as_dir in #(((
4056 *) as_dir=$as_dir/ ;;
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4060 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4072 if test -n "$AR"; then
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4074 printf "%s\n" "$AR" >&6; }
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 printf "%s\n" "no" >&6; }
4082 if test -z "$ac_cv_path_AR"; then
4084 # Extract the first word of "ar", so it can be a program name with args.
4085 set dummy ar; ac_word=$2
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 printf %s "checking for $ac_word... " >&6; }
4088 if test ${ac_cv_path_ac_pt_AR+y}
4090 printf %s "(cached) " >&6
4094 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4099 for as_dir in $as_dummy
4102 case $as_dir in #(((
4105 *) as_dir=$as_dir/ ;;
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4109 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4120 ac_pt_AR=$ac_cv_path_ac_pt_AR
4121 if test -n "$ac_pt_AR"; then
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4123 printf "%s\n" "$ac_pt_AR" >&6; }
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 printf "%s\n" "no" >&6; }
4129 if test "x$ac_pt_AR" = x; then
4132 case $cross_compiling:$ac_tool_warned in
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4144 if test -z "$AR" || test "$AR" = "not_found"; then
4145 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4152 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4154 xc_prog_cc_prev_IFS=$IFS
4155 xc_prog_cc_prev_LIBS=$LIBS
4156 xc_prog_cc_prev_CFLAGS=$CFLAGS
4157 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4158 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4163 for xc_word in $LIBS; do
4173 if test $xc_bad_var_libs = yes; then
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4175 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4177 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4181 xc_bad_var_ldflags=no
4182 for xc_word in $LDFLAGS; do
4185 xc_bad_var_ldflags=yes
4188 xc_bad_var_ldflags=yes
4191 xc_bad_var_ldflags=yes
4194 xc_bad_var_ldflags=yes
4198 if test $xc_bad_var_ldflags = yes; then
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4200 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4201 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4202 for xc_word in $LDFLAGS; do
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4206 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4210 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4214 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4218 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4225 xc_bad_var_cppflags=no
4226 for xc_word in $CPPFLAGS; do
4229 xc_bad_var_cppflags=yes
4231 -L* | --library-path=*)
4232 xc_bad_var_cppflags=yes
4235 xc_bad_var_cppflags=yes
4239 if test $xc_bad_var_cppflags = yes; then
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4241 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4242 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4243 for xc_word in $CPPFLAGS; do
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4247 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4249 -L* | --library-path=*)
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4251 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4255 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4262 xc_bad_var_cflags=no
4263 for xc_word in $CFLAGS; do
4266 xc_bad_var_cflags=yes
4269 xc_bad_var_cflags=yes
4272 xc_bad_var_cflags=yes
4275 xc_bad_var_cflags=yes
4277 -L* | --library-path=*)
4278 xc_bad_var_cflags=yes
4281 xc_bad_var_cflags=yes
4285 if test $xc_bad_var_cflags = yes; then
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4287 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4288 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4289 for xc_word in $CFLAGS; do
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4293 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4297 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4301 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4305 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4307 -L* | --library-path=*)
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4309 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4313 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4319 if test $xc_bad_var_libs = yes ||
4320 test $xc_bad_var_cflags = yes ||
4321 test $xc_bad_var_ldflags = yes ||
4322 test $xc_bad_var_cppflags = yes; then
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4324 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4329 # Find a good install program. We prefer a C program (faster),
4330 # so one script is as good as another. But avoid the broken or
4331 # incompatible versions:
4332 # SysV /etc/install, /usr/sbin/install
4333 # SunOS /usr/etc/install
4334 # IRIX /sbin/install
4336 # AmigaOS /C/install, which installs bootblocks on floppy discs
4337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4340 # OS/2's system install, which has a completely different semantic
4341 # ./install, which can be erroneously created by make from ./install.sh.
4342 # Reject install programs that cannot install multiple files.
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4344 printf %s "checking for a BSD-compatible install... " >&6; }
4345 if test -z "$INSTALL"; then
4346 if test ${ac_cv_path_install+y}
4348 printf %s "(cached) " >&6
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 case $as_dir in #(((
4357 *) as_dir=$as_dir/ ;;
4359 # Account for fact that we put trailing slashes in our PATH walk.
4362 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4363 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4366 # OSF1 and SCO ODT 3.0 have their own names for install.
4367 # Don't use installbsd from OSF since it installs stuff as root
4369 for ac_prog in ginstall scoinst install; do
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4372 if test $ac_prog = install &&
4373 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4374 # AIX install. It has an incompatible calling convention.
4376 elif test $ac_prog = install &&
4377 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4378 # program-specific install script used by HP pwplus--don't use.
4381 rm -rf conftest.one conftest.two conftest.dir
4382 echo one > conftest.one
4383 echo two > conftest.two
4385 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4386 test -s conftest.one && test -s conftest.two &&
4387 test -s conftest.dir/conftest.one &&
4388 test -s conftest.dir/conftest.two
4390 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4403 rm -rf conftest.one conftest.two conftest.dir
4406 if test ${ac_cv_path_install+y}; then
4407 INSTALL=$ac_cv_path_install
4409 # As a last resort, use the slow shell script. Don't cache a
4410 # value for INSTALL within a source directory, because that will
4411 # break other packages using the cache if that directory is
4412 # removed, or if the value is a relative name.
4413 INSTALL=$ac_install_sh
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4417 printf "%s\n" "$INSTALL" >&6; }
4419 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4420 # It thinks the first close brace ends the variable substitution.
4421 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4425 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4437 # Expand $ac_aux_dir to an absolute path.
4438 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445 if test -n "$ac_tool_prefix"; then
4446 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4447 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 printf %s "checking for $ac_word... " >&6; }
4450 if test ${ac_cv_prog_CC+y}
4452 printf %s "(cached) " >&6
4454 if test -n "$CC"; then
4455 ac_cv_prog_CC="$CC" # Let the user override the test.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 case $as_dir in #(((
4464 *) as_dir=$as_dir/ ;;
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4479 if test -n "$CC"; then
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481 printf "%s\n" "$CC" >&6; }
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 printf "%s\n" "no" >&6; }
4489 if test -z "$ac_cv_prog_CC"; then
4491 # Extract the first word of "gcc", so it can be a program name with args.
4492 set dummy gcc; ac_word=$2
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 printf %s "checking for $ac_word... " >&6; }
4495 if test ${ac_cv_prog_ac_ct_CC+y}
4497 printf %s "(cached) " >&6
4499 if test -n "$ac_ct_CC"; then
4500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 case $as_dir in #(((
4509 *) as_dir=$as_dir/ ;;
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_ac_ct_CC="gcc"
4514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4524 if test -n "$ac_ct_CC"; then
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4526 printf "%s\n" "$ac_ct_CC" >&6; }
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 printf "%s\n" "no" >&6; }
4532 if test "x$ac_ct_CC" = x; then
4535 case $cross_compiling:$ac_tool_warned in
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539 ac_tool_warned=yes ;;
4547 if test -z "$CC"; then
4548 if test -n "$ac_tool_prefix"; then
4549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4550 set dummy ${ac_tool_prefix}cc; ac_word=$2
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 printf %s "checking for $ac_word... " >&6; }
4553 if test ${ac_cv_prog_CC+y}
4555 printf %s "(cached) " >&6
4557 if test -n "$CC"; then
4558 ac_cv_prog_CC="$CC" # Let the user override the test.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 case $as_dir in #(((
4567 *) as_dir=$as_dir/ ;;
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_CC="${ac_tool_prefix}cc"
4572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4582 if test -n "$CC"; then
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4584 printf "%s\n" "$CC" >&6; }
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 printf "%s\n" "no" >&6; }
4593 if test -z "$CC"; then
4594 # Extract the first word of "cc", so it can be a program name with args.
4595 set dummy cc; ac_word=$2
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 printf %s "checking for $ac_word... " >&6; }
4598 if test ${ac_cv_prog_CC+y}
4600 printf %s "(cached) " >&6
4602 if test -n "$CC"; then
4603 ac_cv_prog_CC="$CC" # Let the user override the test.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 case $as_dir in #(((
4613 *) as_dir=$as_dir/ ;;
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4617 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4618 ac_prog_rejected=yes
4622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4629 if test $ac_prog_rejected = yes; then
4630 # We found a bogon in the path, so make sure we never use it.
4631 set dummy $ac_cv_prog_CC
4633 if test $# != 0; then
4634 # We chose a different compiler from the bogus one.
4635 # However, it has the same basename, so the bogon will be chosen
4636 # first if we set CC to just the basename; use the full file name.
4638 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4644 if test -n "$CC"; then
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4646 printf "%s\n" "$CC" >&6; }
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 printf "%s\n" "no" >&6; }
4654 if test -z "$CC"; then
4655 if test -n "$ac_tool_prefix"; then
4656 for ac_prog in cl.exe
4658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 printf %s "checking for $ac_word... " >&6; }
4662 if test ${ac_cv_prog_CC+y}
4664 printf %s "(cached) " >&6
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 case $as_dir in #(((
4676 *) as_dir=$as_dir/ ;;
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4691 if test -n "$CC"; then
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4693 printf "%s\n" "$CC" >&6; }
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 printf "%s\n" "no" >&6; }
4700 test -n "$CC" && break
4703 if test -z "$CC"; then
4705 for ac_prog in cl.exe
4707 # Extract the first word of "$ac_prog", so it can be a program name with args.
4708 set dummy $ac_prog; ac_word=$2
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 printf %s "checking for $ac_word... " >&6; }
4711 if test ${ac_cv_prog_ac_ct_CC+y}
4713 printf %s "(cached) " >&6
4715 if test -n "$ac_ct_CC"; then
4716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 case $as_dir in #(((
4725 *) as_dir=$as_dir/ ;;
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_ac_ct_CC="$ac_prog"
4730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4740 if test -n "$ac_ct_CC"; then
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4742 printf "%s\n" "$ac_ct_CC" >&6; }
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 printf "%s\n" "no" >&6; }
4749 test -n "$ac_ct_CC" && break
4752 if test "x$ac_ct_CC" = x; then
4755 case $cross_compiling:$ac_tool_warned in
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759 ac_tool_warned=yes ;;
4766 if test -z "$CC"; then
4767 if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}clang; ac_word=$2
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 printf %s "checking for $ac_word... " >&6; }
4772 if test ${ac_cv_prog_CC+y}
4774 printf %s "(cached) " >&6
4776 if test -n "$CC"; then
4777 ac_cv_prog_CC="$CC" # Let the user override the test.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 case $as_dir in #(((
4786 *) as_dir=$as_dir/ ;;
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4790 ac_cv_prog_CC="${ac_tool_prefix}clang"
4791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4801 if test -n "$CC"; then
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4803 printf "%s\n" "$CC" >&6; }
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 printf "%s\n" "no" >&6; }
4811 if test -z "$ac_cv_prog_CC"; then
4813 # Extract the first word of "clang", so it can be a program name with args.
4814 set dummy clang; ac_word=$2
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 printf %s "checking for $ac_word... " >&6; }
4817 if test ${ac_cv_prog_ac_ct_CC+y}
4819 printf %s "(cached) " >&6
4821 if test -n "$ac_ct_CC"; then
4822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 case $as_dir in #(((
4831 *) as_dir=$as_dir/ ;;
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4835 ac_cv_prog_ac_ct_CC="clang"
4836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4846 if test -n "$ac_ct_CC"; then
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4848 printf "%s\n" "$ac_ct_CC" >&6; }
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 printf "%s\n" "no" >&6; }
4854 if test "x$ac_ct_CC" = x; then
4857 case $cross_compiling:$ac_tool_warned in
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861 ac_tool_warned=yes ;;
4872 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4873 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4874 as_fn_error $? "no acceptable C compiler found in \$PATH
4875 See \`config.log' for more details" "$LINENO" 5; }
4877 # Provide some information about the compiler.
4878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4881 for ac_option in --version -v -V -qversion -version; do
4882 { { ac_try="$ac_compiler $ac_option >&5"
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4888 printf "%s\n" "$ac_try_echo"; } >&5
4889 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4891 if test -s conftest.err; then
4893 ... rest of stderr output deleted ...
4894 10q' conftest.err >conftest.er1
4895 cat conftest.er1 >&5
4897 rm -f conftest.er1 conftest.err
4898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4899 test $ac_status = 0; }
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4912 ac_clean_files_save=$ac_clean_files
4913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4914 # Try to create an executable without -o first, disregard a.out.
4915 # It will help us diagnose broken compilers, and finding out an intuition
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4918 printf %s "checking whether the C compiler works... " >&6; }
4919 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4921 # The possible output files:
4922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4925 for ac_file in $ac_files
4928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4929 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4934 if { { ac_try="$ac_link_default"
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940 printf "%s\n" "$ac_try_echo"; } >&5
4941 (eval "$ac_link_default") 2>&5
4943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944 test $ac_status = 0; }
4946 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4947 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4948 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4949 # so that the user can short-circuit this test for compilers unknown to
4951 for ac_file in $ac_files ''
4953 test -f "$ac_file" || continue
4955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4958 # We found the default executable, but exeext='' is most
4962 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4964 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4966 # We set ac_cv_exeext here because the later test for it is not
4967 # safe: cross compilers may not add the suffix if given an `-o'
4968 # argument, so we may need to know it at that point already.
4969 # Even if this section looks crufty: it has the advantage of
4976 test "$ac_cv_exeext" = no && ac_cv_exeext=
4981 if test -z "$ac_file"
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 printf "%s\n" "no" >&6; }
4985 printf "%s\n" "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4989 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4990 as_fn_error 77 "C compiler cannot create executables
4991 See \`config.log' for more details" "$LINENO" 5; }
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4994 printf "%s\n" "yes" >&6; }
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4997 printf %s "checking for C compiler default output file name... " >&6; }
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4999 printf "%s\n" "$ac_file" >&6; }
5000 ac_exeext=$ac_cv_exeext
5002 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5003 ac_clean_files=$ac_clean_files_save
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5005 printf %s "checking for suffix of executables... " >&6; }
5006 if { { ac_try="$ac_link"
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5012 printf "%s\n" "$ac_try_echo"; } >&5
5013 (eval "$ac_link") 2>&5
5015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5016 test $ac_status = 0; }
5018 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5019 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5020 # work properly (i.e., refer to `conftest.exe'), while it won't with
5022 for ac_file in conftest.exe conftest conftest.*; do
5023 test -f "$ac_file" || continue
5025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5032 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5033 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5034 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5035 See \`config.log' for more details" "$LINENO" 5; }
5037 rm -f conftest conftest$ac_cv_exeext
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5039 printf "%s\n" "$ac_cv_exeext" >&6; }
5041 rm -f conftest.$ac_ext
5042 EXEEXT=$ac_cv_exeext
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5049 FILE *f = fopen ("conftest.out", "w");
5050 return ferror (f) || fclose (f) != 0;
5056 ac_clean_files="$ac_clean_files conftest.out"
5057 # Check that the compiler produces executables we can run. If not, either
5058 # the compiler is broken, or we cross compile.
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5060 printf %s "checking whether we are cross compiling... " >&6; }
5061 if test "$cross_compiling" != yes; then
5062 { { ac_try="$ac_link"
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5068 printf "%s\n" "$ac_try_echo"; } >&5
5069 (eval "$ac_link") 2>&5
5071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5072 test $ac_status = 0; }
5073 if { ac_try='./conftest$ac_cv_exeext'
5074 { { case "(($ac_try" in
5075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076 *) ac_try_echo=$ac_try;;
5078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5079 printf "%s\n" "$ac_try_echo"; } >&5
5080 (eval "$ac_try") 2>&5
5082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5083 test $ac_status = 0; }; }; then
5086 if test "$cross_compiling" = maybe; then
5089 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error 77 "cannot run C compiled programs.
5092 If you meant to cross compile, use \`--host'.
5093 See \`config.log' for more details" "$LINENO" 5; }
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5098 printf "%s\n" "$cross_compiling" >&6; }
5100 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5101 ac_clean_files=$ac_clean_files_save
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5103 printf %s "checking for suffix of object files... " >&6; }
5104 if test ${ac_cv_objext+y}
5106 printf %s "(cached) " >&6
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5118 rm -f conftest.o conftest.obj
5119 if { { ac_try="$ac_compile"
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5125 printf "%s\n" "$ac_try_echo"; } >&5
5126 (eval "$ac_compile") 2>&5
5128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129 test $ac_status = 0; }
5131 for ac_file in conftest.o conftest.obj conftest.*; do
5132 test -f "$ac_file" || continue;
5134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5135 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5140 printf "%s\n" "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5144 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5145 as_fn_error $? "cannot compute suffix of object files: cannot compile
5146 See \`config.log' for more details" "$LINENO" 5; }
5148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5151 printf "%s\n" "$ac_cv_objext" >&6; }
5152 OBJEXT=$ac_cv_objext
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5155 printf %s "checking whether the compiler supports GNU C... " >&6; }
5156 if test ${ac_cv_c_compiler_gnu+y}
5158 printf %s "(cached) " >&6
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5173 if ac_fn_c_try_compile "$LINENO"
5179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5184 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5187 if test $ac_compiler_gnu = yes; then
5192 ac_test_CFLAGS=${CFLAGS+y}
5193 ac_save_CFLAGS=$CFLAGS
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5195 printf %s "checking whether $CC accepts -g... " >&6; }
5196 if test ${ac_cv_prog_cc_g+y}
5198 printf %s "(cached) " >&6
5200 ac_save_c_werror_flag=$ac_c_werror_flag
5201 ac_c_werror_flag=yes
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5214 if ac_fn_c_try_compile "$LINENO"
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5229 if ac_fn_c_try_compile "$LINENO"
5233 ac_c_werror_flag=$ac_save_c_werror_flag
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5245 if ac_fn_c_try_compile "$LINENO"
5249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5254 ac_c_werror_flag=$ac_save_c_werror_flag
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5257 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5258 if test $ac_test_CFLAGS; then
5259 CFLAGS=$ac_save_CFLAGS
5260 elif test $ac_cv_prog_cc_g = yes; then
5261 if test "$GCC" = yes; then
5267 if test "$GCC" = yes; then
5274 if test x$ac_prog_cc_stdc = xno
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5277 printf %s "checking for $CC option to enable C11 features... " >&6; }
5278 if test ${ac_cv_prog_cc_c11+y}
5280 printf %s "(cached) " >&6
5282 ac_cv_prog_cc_c11=no
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 $ac_c_conftest_c11_program
5288 for ac_arg in '' -std=gnu11
5290 CC="$ac_save_CC $ac_arg"
5291 if ac_fn_c_try_compile "$LINENO"
5293 ac_cv_prog_cc_c11=$ac_arg
5295 rm -f core conftest.err conftest.$ac_objext conftest.beam
5296 test "x$ac_cv_prog_cc_c11" != "xno" && break
5298 rm -f conftest.$ac_ext
5302 if test "x$ac_cv_prog_cc_c11" = xno
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5305 printf "%s\n" "unsupported" >&6; }
5307 if test "x$ac_cv_prog_cc_c11" = x
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5310 printf "%s\n" "none needed" >&6; }
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5313 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5314 CC="$CC $ac_cv_prog_cc_c11"
5316 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5320 if test x$ac_prog_cc_stdc = xno
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5323 printf %s "checking for $CC option to enable C99 features... " >&6; }
5324 if test ${ac_cv_prog_cc_c99+y}
5326 printf %s "(cached) " >&6
5328 ac_cv_prog_cc_c99=no
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 $ac_c_conftest_c99_program
5334 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5336 CC="$ac_save_CC $ac_arg"
5337 if ac_fn_c_try_compile "$LINENO"
5339 ac_cv_prog_cc_c99=$ac_arg
5341 rm -f core conftest.err conftest.$ac_objext conftest.beam
5342 test "x$ac_cv_prog_cc_c99" != "xno" && break
5344 rm -f conftest.$ac_ext
5348 if test "x$ac_cv_prog_cc_c99" = xno
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5351 printf "%s\n" "unsupported" >&6; }
5353 if test "x$ac_cv_prog_cc_c99" = x
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5356 printf "%s\n" "none needed" >&6; }
5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5359 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5360 CC="$CC $ac_cv_prog_cc_c99"
5362 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5366 if test x$ac_prog_cc_stdc = xno
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5369 printf %s "checking for $CC option to enable C89 features... " >&6; }
5370 if test ${ac_cv_prog_cc_c89+y}
5372 printf %s "(cached) " >&6
5374 ac_cv_prog_cc_c89=no
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 $ac_c_conftest_c89_program
5380 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5382 CC="$ac_save_CC $ac_arg"
5383 if ac_fn_c_try_compile "$LINENO"
5385 ac_cv_prog_cc_c89=$ac_arg
5387 rm -f core conftest.err conftest.$ac_objext conftest.beam
5388 test "x$ac_cv_prog_cc_c89" != "xno" && break
5390 rm -f conftest.$ac_ext
5394 if test "x$ac_cv_prog_cc_c89" = xno
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5397 printf "%s\n" "unsupported" >&6; }
5399 if test "x$ac_cv_prog_cc_c89" = x
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5402 printf "%s\n" "none needed" >&6; }
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5405 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5406 CC="$CC $ac_cv_prog_cc_c89"
5408 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5414 ac_cpp='$CPP $CPPFLAGS'
5415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5426 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5427 if test ${am_cv_prog_cc_c_o+y}
5429 printf %s "(cached) " >&6
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5441 # Make sure it works both with $CC and with simple cc.
5442 # Following AC_PROG_CC_C_O, we do the test twice because some
5443 # compilers refuse to overwrite an existing .o file with -o,
5444 # though they will create one.
5445 am_cv_prog_cc_c_o=yes
5447 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5448 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } \
5452 && test -f conftest2.$ac_objext; then
5455 am_cv_prog_cc_c_o=no
5459 rm -f core conftest*
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5463 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5464 if test "$am_cv_prog_cc_c_o" != yes; then
5465 # Losing compiler, so override with the script.
5466 # FIXME: It is wrong to rewrite CC.
5467 # But if we don't then we get into trouble of one sort or another.
5468 # A longer-term fix would be to have automake use am__CC in this case,
5469 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5470 CC="$am_aux_dir/compile $CC"
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481 ac_cpp='$CPP $CPPFLAGS'
5482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5486 printf %s "checking how to run the C preprocessor... " >&6; }
5487 # On Suns, sometimes $CPP names a directory.
5488 if test -n "$CPP" && test -d "$CPP"; then
5491 if test -z "$CPP"; then
5492 if test ${ac_cv_prog_CPP+y}
5494 printf %s "(cached) " >&6
5496 # Double quotes because $CC needs to be expanded
5497 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5500 for ac_c_preproc_warn_flag in '' yes
5502 # Use a header file that comes with gcc, so configuring glibc
5503 # with a fresh cross-compiler works.
5504 # On the NeXT, cc -E runs the code through the compiler's parser,
5505 # not just through cpp. "Syntax error" is here to catch this case.
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5511 if ac_fn_c_try_cpp "$LINENO"
5515 # Broken: fails on valid input.
5518 rm -f conftest.err conftest.i conftest.$ac_ext
5520 # OK, works on sane cases. Now check whether nonexistent headers
5521 # can be detected and how.
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 #include <ac_nonexistent.h>
5526 if ac_fn_c_try_cpp "$LINENO"
5528 # Broken: success on invalid input.
5531 # Passes both tests.
5535 rm -f conftest.err conftest.i conftest.$ac_ext
5538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5539 rm -f conftest.i conftest.err conftest.$ac_ext
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5554 printf "%s\n" "$CPP" >&6; }
5556 for ac_c_preproc_warn_flag in '' yes
5558 # Use a header file that comes with gcc, so configuring glibc
5559 # with a fresh cross-compiler works.
5560 # On the NeXT, cc -E runs the code through the compiler's parser,
5561 # not just through cpp. "Syntax error" is here to catch this case.
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5567 if ac_fn_c_try_cpp "$LINENO"
5571 # Broken: fails on valid input.
5574 rm -f conftest.err conftest.i conftest.$ac_ext
5576 # OK, works on sane cases. Now check whether nonexistent headers
5577 # can be detected and how.
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 #include <ac_nonexistent.h>
5582 if ac_fn_c_try_cpp "$LINENO"
5584 # Broken: success on invalid input.
5587 # Passes both tests.
5591 rm -f conftest.err conftest.i conftest.$ac_ext
5594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5595 rm -f conftest.i conftest.err conftest.$ac_ext
5600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5601 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5602 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5603 See \`config.log' for more details" "$LINENO" 5; }
5607 ac_cpp='$CPP $CPPFLAGS'
5608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5613 IFS=$xc_prog_cc_prev_IFS
5614 LIBS=$xc_prog_cc_prev_LIBS
5615 CFLAGS=$xc_prog_cc_prev_CFLAGS
5616 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5617 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5624 ac_header= ac_cache=
5625 for ac_item in $ac_header_c_list
5627 if test $ac_cache; then
5628 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5629 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5630 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5632 ac_header= ac_cache=
5633 elif test $ac_header; then
5647 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5650 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5654 for ac_header in stdatomic.h
5656 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
5657 if test "x$ac_cv_header_stdatomic_h" = xyes
5659 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5
5662 printf %s "checking if _Atomic is available... " >&6; }
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5667 $curl_includes_unistd
5673 i = 4; // Force an atomic-write operation.
5680 if ac_fn_c_try_link "$LINENO"
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684 printf "%s\n" "yes" >&6; }
5686 printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 printf "%s\n" "no" >&6; }
5697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5698 conftest$ac_exeext conftest.$ac_ext
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5706 printf %s "checking for a sed that does not truncate output... " >&6; }
5707 if test ${ac_cv_path_SED+y}
5709 printf %s "(cached) " >&6
5711 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5712 for ac_i in 1 2 3 4 5 6 7; do
5713 ac_script="$ac_script$as_nl$ac_script"
5715 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5716 { ac_script=; unset ac_script;}
5717 if test -z "$SED"; then
5718 ac_path_SED_found=false
5719 # Loop through the user's path and test for each of PROGNAME-LIST
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 case $as_dir in #(((
5727 *) as_dir=$as_dir/ ;;
5729 for ac_prog in sed gsed
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5733 as_fn_executable_p "$ac_path_SED" || continue
5734 # Check for GNU ac_path_SED and select it if it is found.
5735 # Check for GNU $ac_path_SED
5736 case `"$ac_path_SED" --version 2>&1` in
5738 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5741 printf %s 0123456789 >"conftest.in"
5744 cat "conftest.in" "conftest.in" >"conftest.tmp"
5745 mv "conftest.tmp" "conftest.in"
5746 cp "conftest.in" "conftest.nl"
5747 printf "%s\n" '' >> "conftest.nl"
5748 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5750 as_fn_arith $ac_count + 1 && ac_count=$as_val
5751 if test $ac_count -gt ${ac_path_SED_max-0}; then
5752 # Best one so far, save it but keep looking for a better one
5753 ac_cv_path_SED="$ac_path_SED"
5754 ac_path_SED_max=$ac_count
5756 # 10*(2^10) chars as input seems more than enough
5757 test $ac_count -gt 10 && break
5759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5762 $ac_path_SED_found && break 3
5767 if test -z "$ac_cv_path_SED"; then
5768 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5776 printf "%s\n" "$ac_cv_path_SED" >&6; }
5777 SED="$ac_cv_path_SED"
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5784 printf %s "checking for code coverage support... " >&6; }
5786 curl_coverage_msg="disabled"
5788 # Check whether --enable-code-coverage was given.
5789 if test ${enable_code_coverage+y}
5791 enableval=$enable_code_coverage; coverage="$enableval"
5795 if test "$GCC" != "yes"
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5800 printf "%s\n" "$coverage" >&6; }
5802 if test "x$coverage" = "xyes"; then
5803 curl_coverage_msg="enabled"
5805 if test -n "$ac_tool_prefix"; then
5806 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5807 set dummy ${ac_tool_prefix}gcov; ac_word=$2
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 printf %s "checking for $ac_word... " >&6; }
5810 if test ${ac_cv_prog_GCOV+y}
5812 printf %s "(cached) " >&6
5814 if test -n "$GCOV"; then
5815 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 case $as_dir in #(((
5824 *) as_dir=$as_dir/ ;;
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5838 GCOV=$ac_cv_prog_GCOV
5839 if test -n "$GCOV"; then
5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5841 printf "%s\n" "$GCOV" >&6; }
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 printf "%s\n" "no" >&6; }
5849 if test -z "$ac_cv_prog_GCOV"; then
5851 # Extract the first word of "gcov", so it can be a program name with args.
5852 set dummy gcov; ac_word=$2
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 printf %s "checking for $ac_word... " >&6; }
5855 if test ${ac_cv_prog_ac_ct_GCOV+y}
5857 printf %s "(cached) " >&6
5859 if test -n "$ac_ct_GCOV"; then
5860 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 case $as_dir in #(((
5869 *) as_dir=$as_dir/ ;;
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5873 ac_cv_prog_ac_ct_GCOV="gcov"
5874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5883 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5884 if test -n "$ac_ct_GCOV"; then
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5886 printf "%s\n" "$ac_ct_GCOV" >&6; }
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 printf "%s\n" "no" >&6; }
5892 if test "x$ac_ct_GCOV" = x; then
5895 case $cross_compiling:$ac_tool_warned in
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899 ac_tool_warned=yes ;;
5904 GCOV="$ac_cv_prog_GCOV"
5907 if test -z "$GCOV"; then
5908 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5910 # Extract the first word of "lcov", so it can be a program name with args.
5911 set dummy lcov; ac_word=$2
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 printf %s "checking for $ac_word... " >&6; }
5914 if test ${ac_cv_prog_LCOV+y}
5916 printf %s "(cached) " >&6
5918 if test -n "$LCOV"; then
5919 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 case $as_dir in #(((
5928 *) as_dir=$as_dir/ ;;
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_LCOV="lcov"
5933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5942 LCOV=$ac_cv_prog_LCOV
5943 if test -n "$LCOV"; then
5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5945 printf "%s\n" "$LCOV" >&6; }
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 printf "%s\n" "no" >&6; }
5952 if test -z "$LCOV"; then
5953 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5956 CPPFLAGS="$CPPFLAGS -DNDEBUG"
5957 CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5962 am__api_version='1.16'
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5965 printf %s "checking whether build environment is sane... " >&6; }
5966 # Reject unsafe characters in $srcdir or the absolute working directory
5967 # name. Accept space and tab only in the latter.
5971 *[\\\"\#\$\&\'\`$am_lf]*)
5972 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5975 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5976 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5979 # Do 'set' in a subshell so we don't clobber the current shell's
5980 # arguments. Must try -L first in case configure is actually a
5981 # symlink; some systems play weird games with the mod time of symlinks
5982 # (eg FreeBSD returns the mod time of the symlink's containing
5986 for am_try in 1 2; do
5987 echo "timestamp, slept: $am_has_slept" > conftest.file
5988 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5989 if test "$*" = "X"; then
5991 set X `ls -t "$srcdir/configure" conftest.file`
5993 if test "$*" != "X $srcdir/configure conftest.file" \
5994 && test "$*" != "X conftest.file $srcdir/configure"; then
5996 # If neither matched, then we have a broken ls. This can happen
5997 # if, for instance, CONFIG_SHELL is bash and it inherits a
5998 # broken ls alias from the environment. This has actually
5999 # happened. Such a system could not be considered "sane".
6000 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6001 alias in your environment" "$LINENO" 5
6003 if test "$2" = conftest.file || test $am_try -eq 2; then
6010 test "$2" = conftest.file
6016 as_fn_error $? "newly created file is older than distributed files!
6017 Check your system clock" "$LINENO" 5
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6020 printf "%s\n" "yes" >&6; }
6021 # If we didn't sleep, we still need to ensure time stamps of config.status and
6022 # generated files are strictly newer.
6024 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6031 test "$program_prefix" != NONE &&
6032 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6033 # Use a double $ so make ignores it.
6034 test "$program_suffix" != NONE &&
6035 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6036 # Double any \ or $.
6037 # By default was `s,x,x', remove it if useless.
6038 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6039 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6042 if test x"${MISSING+set}" != xset; then
6043 MISSING="\${SHELL} '$am_aux_dir/missing'"
6045 # Use eval to expand $SHELL
6046 if eval "$MISSING --is-lightweight"; then
6047 am_missing_run="$MISSING "
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6051 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6054 if test x"${install_sh+set}" != xset; then
6057 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6059 install_sh="\${SHELL} $am_aux_dir/install-sh"
6063 # Installed binaries are usually stripped using 'strip' when the user
6064 # run "make install-strip". However 'strip' might not be the right
6065 # tool to use in cross-compilation environments, therefore Automake
6066 # will honor the 'STRIP' environment variable to overrule this program.
6067 if test "$cross_compiling" != no; then
6068 if test -n "$ac_tool_prefix"; then
6069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6070 set dummy ${ac_tool_prefix}strip; ac_word=$2
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 printf %s "checking for $ac_word... " >&6; }
6073 if test ${ac_cv_prog_STRIP+y}
6075 printf %s "(cached) " >&6
6077 if test -n "$STRIP"; then
6078 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 case $as_dir in #(((
6087 *) as_dir=$as_dir/ ;;
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6091 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6101 STRIP=$ac_cv_prog_STRIP
6102 if test -n "$STRIP"; then
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6104 printf "%s\n" "$STRIP" >&6; }
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 printf "%s\n" "no" >&6; }
6112 if test -z "$ac_cv_prog_STRIP"; then
6114 # Extract the first word of "strip", so it can be a program name with args.
6115 set dummy strip; ac_word=$2
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 printf %s "checking for $ac_word... " >&6; }
6118 if test ${ac_cv_prog_ac_ct_STRIP+y}
6120 printf %s "(cached) " >&6
6122 if test -n "$ac_ct_STRIP"; then
6123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 case $as_dir in #(((
6132 *) as_dir=$as_dir/ ;;
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_ac_ct_STRIP="strip"
6137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6146 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6147 if test -n "$ac_ct_STRIP"; then
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6149 printf "%s\n" "$ac_ct_STRIP" >&6; }
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 printf "%s\n" "no" >&6; }
6155 if test "x$ac_ct_STRIP" = x; then
6158 case $cross_compiling:$ac_tool_warned in
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162 ac_tool_warned=yes ;;
6167 STRIP="$ac_cv_prog_STRIP"
6171 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6175 printf %s "checking for a race-free mkdir -p... " >&6; }
6176 if test -z "$MKDIR_P"; then
6177 if test ${ac_cv_path_mkdir+y}
6179 printf %s "(cached) " >&6
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6185 case $as_dir in #(((
6188 *) as_dir=$as_dir/ ;;
6190 for ac_prog in mkdir gmkdir; do
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6193 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6194 'mkdir ('*'coreutils) '* | \
6196 'mkdir (fileutils) '4.1*)
6197 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6207 test -d ./--version && rmdir ./--version
6208 if test ${ac_cv_path_mkdir+y}; then
6209 MKDIR_P="$ac_cv_path_mkdir -p"
6211 # As a last resort, use the slow shell script. Don't cache a
6212 # value for MKDIR_P within a source directory, because that will
6213 # break other packages using the cache if that directory is
6214 # removed, or if the value is a relative name.
6215 MKDIR_P="$ac_install_sh -d"
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6219 printf "%s\n" "$MKDIR_P" >&6; }
6221 for ac_prog in gawk mawk nawk awk
6223 # Extract the first word of "$ac_prog", so it can be a program name with args.
6224 set dummy $ac_prog; ac_word=$2
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 printf %s "checking for $ac_word... " >&6; }
6227 if test ${ac_cv_prog_AWK+y}
6229 printf %s "(cached) " >&6
6231 if test -n "$AWK"; then
6232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 case $as_dir in #(((
6241 *) as_dir=$as_dir/ ;;
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_AWK="$ac_prog"
6246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6256 if test -n "$AWK"; then
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6258 printf "%s\n" "$AWK" >&6; }
6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 printf "%s\n" "no" >&6; }
6265 test -n "$AWK" && break
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6269 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6271 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6272 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6274 printf %s "(cached) " >&6
6276 cat >conftest.make <<\_ACEOF
6279 @echo '@@@%%%=$(MAKE)=@@@%%%'
6281 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6282 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6284 eval ac_cv_prog_make_${ac_make}_set=yes;;
6286 eval ac_cv_prog_make_${ac_make}_set=no;;
6290 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6292 printf "%s\n" "yes" >&6; }
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 printf "%s\n" "no" >&6; }
6297 SET_MAKE="MAKE=${MAKE-make}"
6300 rm -rf .tst 2>/dev/null
6301 mkdir .tst 2>/dev/null
6302 if test -d .tst; then
6307 rmdir .tst 2>/dev/null
6309 DEPDIR="${am__leading_dot}deps"
6311 ac_config_commands="$ac_config_commands depfiles"
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6314 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6315 cat > confinc.mk << 'END'
6317 @echo this is the am__doit target >confinc.out
6322 # BSD make does it like this.
6323 echo '.include "confinc.mk" # ignored' > confmf.BSD
6324 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
6325 echo 'include confinc.mk # ignored' > confmf.GNU
6327 for s in GNU BSD; do
6328 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6329 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }
6333 case $?:`cat confinc.out 2>/dev/null` in #(
6334 '0:this is the am__doit target') :
6337 am__include='.include' am__quote='"' ;; #(
6339 am__include='include' am__quote='' ;;
6344 if test "$am__include" != "#"; then
6345 _am_result="yes ($s style)"
6349 rm -f confinc.* confmf.*
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6351 printf "%s\n" "${_am_result}" >&6; }
6353 # Check whether --enable-dependency-tracking was given.
6354 if test ${enable_dependency_tracking+y}
6356 enableval=$enable_dependency_tracking;
6359 if test "x$enable_dependency_tracking" != xno; then
6360 am_depcomp="$ac_aux_dir/depcomp"
6364 if test "x$enable_dependency_tracking" != xno; then
6373 ## --------------------------------------- ##
6374 ## Start of automake initialization code ##
6375 ## --------------------------------------- ##
6377 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6378 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6379 # is not polluted with repeated "-I."
6380 am__isrc=' -I$(srcdir)'
6381 # test to see if srcdir already configured
6382 if test -f $srcdir/config.status; then
6383 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6387 # test whether we have cygpath
6388 if test -z "$CYGPATH_W"; then
6389 if (cygpath --version) >/dev/null 2>/dev/null; then
6390 CYGPATH_W='cygpath -w'
6397 # Define the identity of the package.
6402 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6405 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6407 # Some tools Automake needs.
6409 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6412 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6415 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6418 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6421 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6423 # For better backward compatibility. To be removed once Automake 1.9.x
6424 # dies out for good. For more background, see:
6425 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6426 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6427 mkdir_p='$(MKDIR_P)'
6429 # We need awk for the "check" target (and possibly the TAP driver). The
6430 # system "awk" is bad on some platforms.
6431 # Always define AMTAR for backward compatibility. Yes, it's still used
6432 # in the wild :-( We should find a proper way to deprecate it ...
6436 # We'll loop over all known methods to create a tar archive until one works.
6437 _am_tools='gnutar pax cpio none'
6439 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6445 depcc="$CC" am_compiler_list=
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6448 printf %s "checking dependency style of $depcc... " >&6; }
6449 if test ${am_cv_CC_dependencies_compiler_type+y}
6451 printf %s "(cached) " >&6
6453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6454 # We make a subdir and do the tests there. Otherwise we can end up
6455 # making bogus files that we don't know about and never remove. For
6456 # instance it was reported that on HP-UX the gcc test will end up
6457 # making a dummy file named 'D' -- because '-MD' means "put the output
6461 # Copy depcomp to subdir because otherwise we won't find it if we're
6462 # using a relative directory.
6463 cp "$am_depcomp" conftest.dir
6465 # We will build objects and dependencies in a subdirectory because
6466 # it helps to detect inapplicable dependency modes. For instance
6467 # both Tru64's cc and ICC support -MD to output dependencies as a
6468 # side effect of compilation, but ICC will put the dependencies in
6469 # the current directory while Tru64 will put them in the object
6473 am_cv_CC_dependencies_compiler_type=none
6474 if test "$am_compiler_list" = ""; then
6475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6478 case " $depcc " in #(
6479 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6482 for depmode in $am_compiler_list; do
6483 # Setup a source with many dependencies, because some compilers
6484 # like to wrap large dependency lists on column 80 (with \), and
6485 # we should not choose a depcomp mode which is confused by this.
6487 # We need to recreate these files for each test, as the compiler may
6488 # overwrite some of them when testing with obscure command lines.
6489 # This happens at least with the AIX C compiler.
6491 for i in 1 2 3 4 5 6; do
6492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6493 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6494 # Solaris 10 /bin/sh.
6495 echo '/* dummy */' > sub/conftst$i.h
6497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6499 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6500 # mode. It turns out that the SunPro C++ compiler does not properly
6501 # handle '-M -o', and we need to detect this. Also, some Intel
6502 # versions had trouble with output in subdirs.
6503 am__obj=sub/conftest.${OBJEXT-o}
6504 am__minus_obj="-o $am__obj"
6507 # This depmode causes a compiler race in universal mode.
6508 test "$am__universal" = false || continue
6511 # After this tag, mechanisms are not by side-effect, so they'll
6512 # only be used when explicitly requested.
6513 if test "x$enable_dependency_tracking" = xyes; then
6519 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6520 # This compiler won't grok '-c -o', but also, the minuso test has
6521 # not run yet. These depmodes are late enough in the game, and
6522 # so weak that their functioning should not be impacted.
6523 am__obj=conftest.${OBJEXT-o}
6528 if depmode=$depmode \
6529 source=sub/conftest.c object=$am__obj \
6530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6531 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6532 >/dev/null 2>conftest.err &&
6533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6535 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6537 # icc doesn't choke on unknown options, it will just issue warnings
6538 # or remarks (even with -Werror). So we grep stderr for any message
6539 # that says an option was ignored or not supported.
6540 # When given -MP, icc 7.0 and 7.1 complain thusly:
6541 # icc: Command line warning: ignoring option '-M'; no argument required
6542 # The diagnosis changed in icc 8.0:
6543 # icc: Command line remark: option '-MP' not supported
6544 if (grep 'ignoring option' conftest.err ||
6545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6546 am_cv_CC_dependencies_compiler_type=$depmode
6555 am_cv_CC_dependencies_compiler_type=none
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6560 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6561 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6564 test "x$enable_dependency_tracking" != xno \
6565 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6567 am__fastdepCC_FALSE='#'
6569 am__fastdepCC_TRUE='#'
6570 am__fastdepCC_FALSE=
6574 # Variables for tags utilities; see am/tags.am
6575 if test -z "$CTAGS"; then
6579 if test -z "$ETAGS"; then
6583 if test -z "$CSCOPE"; then
6589 # POSIX will say in a future version that running "rm -f" with no argument
6590 # is OK; and we want to be able to make that assumption in our Makefile
6591 # recipes. So use an aggressive probe to check that the usage we want is
6592 # actually supported "in the wild" to an acceptable degree.
6593 # See automake bug#10828.
6594 # To make any issue more visible, cause the running configure to be aborted
6595 # by default if the 'rm' program in use doesn't match our expectations; the
6596 # user can still override this though.
6597 if rm -f && rm -fr && rm -rf; then : OK; else
6601 Your 'rm' program seems unable to run without file operands specified
6602 on the command line, even when the '-f' option is present. This is contrary
6603 to the behaviour of most rm programs out there, and not conforming with
6604 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6606 Please tell bug-automake@gnu.org about your system, including the value
6607 of your $PATH and any error possibly output before this message. This
6608 can help us improve future automake versions.
6611 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6612 echo 'Configuration will proceed anyway, since you have set the' >&2
6613 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6617 Aborting the configuration process, to ensure you take notice of the issue.
6619 You can download and install GNU coreutils to get an 'rm' implementation
6620 that behaves properly: <https://www.gnu.org/software/coreutils/>.
6622 If you want to complete the configuration process using your problematic
6623 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6624 to "yes", and re-run configure.
6627 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6631 ## ------------------------------------- ##
6632 ## End of automake initialization code ##
6633 ## ------------------------------------- ##
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6637 printf %s "checking curl version... " >&6; }
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6639 printf "%s\n" "$CURLVERSION" >&6; }
6643 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6646 PKGADD_PKG="HAXXcurl"
6647 PKGADD_NAME="curl - a client that groks URLs"
6648 PKGADD_VENDOR="curl.se"
6653 curl_ssl_msg="no (--with-{openssl,gnutls,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
6654 curl_ssh_msg="no (--with-{libssh,libssh2})"
6655 curl_zlib_msg="no (--with-zlib)"
6656 curl_brotli_msg="no (--with-brotli)"
6657 curl_zstd_msg="no (--with-zstd)"
6658 curl_gss_msg="no (--with-gssapi)"
6659 curl_gsasl_msg="no (--with-gsasl)"
6660 curl_tls_srp_msg="no (--enable-tls-srp)"
6661 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6662 curl_ipv6_msg="no (--enable-ipv6)"
6663 curl_unix_sockets_msg="no (--enable-unix-sockets)"
6664 curl_idn_msg="no (--with-{libidn2,winidn})"
6665 curl_manual_msg="no (--enable-manual)"
6666 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6667 curl_verbose_msg="enabled (--disable-verbose)"
6668 curl_sspi_msg="no (--enable-sspi)"
6669 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6670 curl_ldaps_msg="no (--enable-ldaps)"
6671 curl_rtsp_msg="no (--enable-rtsp)"
6672 curl_rtmp_msg="no (--with-librtmp)"
6673 curl_psl_msg="no (--with-libpsl)"
6674 curl_altsvc_msg="enabled (--disable-alt-svc)"
6675 curl_headers_msg="enabled (--disable-headers-api)"
6676 curl_hsts_msg="enabled (--disable-hsts)"
6677 curl_ws_msg="no (--enable-websockets)"
6679 curl_h1_msg="enabled (internal)"
6680 curl_h2_msg="no (--with-nghttp2)"
6681 curl_h3_msg="no (--with-ngtcp2 --with-nghttp3, --with-quiche, --with-msh3)"
6686 INITIAL_LDFLAGS=$LDFLAGS
6689 compilersh="run-compiler"
6691 export CURL_SAVED_CC
6692 CURL_SAVED_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
6693 export CURL_SAVED_LD_LIBRARY_PATH
6694 cat <<\EOF > "$compilersh"
6697 LD_LIBRARY_PATH="$CURL_SAVED_LD_LIBRARY_PATH"
6698 export LD_LIBRARY_PATH
6704 # Check whether --with-schannel was given.
6705 if test ${with_schannel+y}
6707 withval=$with_schannel; OPT_SCHANNEL=$withval
6708 TLSCHOICE="schannel"
6712 OPT_SECURETRANSPORT=no
6714 # Check whether --with-secure-transport was given.
6715 if test ${with_secure_transport+y}
6717 withval=$with_secure_transport;
6718 OPT_SECURETRANSPORT=$withval
6719 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
6726 # Check whether --with-amissl was given.
6727 if test ${with_amissl+y}
6729 withval=$with_amissl;
6731 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
6739 # Check whether --with-ssl was given.
6740 if test ${with_ssl+y}
6744 OPT_OPENSSL=$withval
6745 if test X"$withval" != Xno; then
6746 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6755 # Check whether --with-openssl was given.
6756 if test ${with_openssl+y}
6758 withval=$with_openssl;
6759 OPT_OPENSSL=$withval
6760 if test X"$withval" != Xno; then
6761 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6769 # Check whether --with-gnutls was given.
6770 if test ${with_gnutls+y}
6772 withval=$with_gnutls;
6774 if test X"$withval" != Xno; then
6775 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
6783 # Check whether --with-mbedtls was given.
6784 if test ${with_mbedtls+y}
6786 withval=$with_mbedtls;
6787 OPT_MBEDTLS=$withval
6788 if test X"$withval" != Xno; then
6789 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
6797 # Check whether --with-wolfssl was given.
6798 if test ${with_wolfssl+y}
6800 withval=$with_wolfssl;
6801 OPT_WOLFSSL=$withval
6802 if test X"$withval" != Xno; then
6803 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
6811 # Check whether --with-bearssl was given.
6812 if test ${with_bearssl+y}
6814 withval=$with_bearssl;
6815 OPT_BEARSSL=$withval
6816 if test X"$withval" != Xno; then
6817 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL"
6825 # Check whether --with-rustls was given.
6826 if test ${with_rustls+y}
6828 withval=$with_rustls;
6830 if test X"$withval" != Xno; then
6831 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls"
6832 experimental="$experimental rustls"
6838 TEST_NGHTTPX=nghttpx
6840 # Check whether --with-test-nghttpx was given.
6841 if test ${with_test_nghttpx+y}
6843 withval=$with_test_nghttpx; TEST_NGHTTPX=$withval
6844 if test X"$OPT_TEST_NGHTTPX" = "Xno" ; then
6854 # Check whether --with-test-caddy was given.
6855 if test ${with_test_caddy+y}
6857 withval=$with_test_caddy; CADDY=$withval
6858 if test X"$OPT_CADDY" = "Xno" ; then
6866 HTTPD_ENABLED="maybe"
6868 # Check whether --with-test-httpd was given.
6869 if test ${with_test_httpd+y}
6871 withval=$with_test_httpd; request_httpd=$withval
6876 if test x"$request_httpd" = "xcheck" -o x"$request_httpd" = "xyes"; then
6877 if test -x "/usr/sbin/apache2" -a -x "/usr/sbin/apache2ctl"; then
6878 # common location on distros (debian/ubuntu)
6879 HTTPD="/usr/sbin/apache2"
6880 APACHECTL="/usr/sbin/apache2ctl"
6881 # Extract the first word of "apxs", so it can be a program name with args.
6882 set dummy apxs; ac_word=$2
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 printf %s "checking for $ac_word... " >&6; }
6885 if test ${ac_cv_path_APXS+y}
6887 printf %s "(cached) " >&6
6891 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 case $as_dir in #(((
6901 *) as_dir=$as_dir/ ;;
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6905 ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
6906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6916 APXS=$ac_cv_path_APXS
6917 if test -n "$APXS"; then
6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
6919 printf "%s\n" "$APXS" >&6; }
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 printf "%s\n" "no" >&6; }
6926 if test "x$APXS" = "x"; then
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apache2-dev not installed, httpd tests disabled" >&5
6928 printf "%s\n" "$as_me: apache2-dev not installed, httpd tests disabled" >&6;}
6932 # Extract the first word of "httpd", so it can be a program name with args.
6933 set dummy httpd; ac_word=$2
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 printf %s "checking for $ac_word... " >&6; }
6936 if test ${ac_cv_path_HTTPD+y}
6938 printf %s "(cached) " >&6
6942 ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 case $as_dir in #(((
6952 *) as_dir=$as_dir/ ;;
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6956 ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
6957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6967 HTTPD=$ac_cv_path_HTTPD
6968 if test -n "$HTTPD"; then
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
6970 printf "%s\n" "$HTTPD" >&6; }
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 printf "%s\n" "no" >&6; }
6977 if test "x$HTTPD" = "x"; then
6978 # Extract the first word of "apache2", so it can be a program name with args.
6979 set dummy apache2; ac_word=$2
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 printf %s "checking for $ac_word... " >&6; }
6982 if test ${ac_cv_path_HTTPD+y}
6984 printf %s "(cached) " >&6
6988 ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path.
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 case $as_dir in #(((
6998 *) as_dir=$as_dir/ ;;
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7002 ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext"
7003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7013 HTTPD=$ac_cv_path_HTTPD
7014 if test -n "$HTTPD"; then
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5
7016 printf "%s\n" "$HTTPD" >&6; }
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 printf "%s\n" "no" >&6; }
7024 # Extract the first word of "apachectl", so it can be a program name with args.
7025 set dummy apachectl; ac_word=$2
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 printf %s "checking for $ac_word... " >&6; }
7028 if test ${ac_cv_path_APACHECTL+y}
7030 printf %s "(cached) " >&6
7034 ac_cv_path_APACHECTL="$APACHECTL" # Let the user override the test with a path.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 case $as_dir in #(((
7044 *) as_dir=$as_dir/ ;;
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7048 ac_cv_path_APACHECTL="$as_dir$ac_word$ac_exec_ext"
7049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7059 APACHECTL=$ac_cv_path_APACHECTL
7060 if test -n "$APACHECTL"; then
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APACHECTL" >&5
7062 printf "%s\n" "$APACHECTL" >&6; }
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 printf "%s\n" "no" >&6; }
7069 # Extract the first word of "apxs", so it can be a program name with args.
7070 set dummy apxs; ac_word=$2
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 printf %s "checking for $ac_word... " >&6; }
7073 if test ${ac_cv_path_APXS+y}
7075 printf %s "(cached) " >&6
7079 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 case $as_dir in #(((
7089 *) as_dir=$as_dir/ ;;
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7093 ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext"
7094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7104 APXS=$ac_cv_path_APXS
7105 if test -n "$APXS"; then
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
7107 printf "%s\n" "$APXS" >&6; }
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 printf "%s\n" "no" >&6; }
7114 if test "x$HTTPD" = "x" -o "x$APACHECTL" = "x"; then
7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd/apache2 not in PATH, http tests disabled" >&5
7116 printf "%s\n" "$as_me: httpd/apache2 not in PATH, http tests disabled" >&6;}
7119 if test "x$APXS" = "x"; then
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not in PATH, http tests disabled" >&5
7121 printf "%s\n" "$as_me: apxs not in PATH, http tests disabled" >&6;}
7125 elif test x"$request_httpd" != "xno"; then
7126 HTTPD="${request_httpd}/bin/httpd"
7127 APACHECTL="${request_httpd}/bin/apachectl"
7128 APXS="${request_httpd}/bin/apxs"
7129 if test ! -x "${HTTPD}"; then
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd not found as ${HTTPD}, http tests disabled" >&5
7131 printf "%s\n" "$as_me: httpd not found as ${HTTPD}, http tests disabled" >&6;}
7133 elif test ! -x "${APACHECTL}"; then
7134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apachectl not found as ${APACHECTL}, http tests disabled" >&5
7135 printf "%s\n" "$as_me: apachectl not found as ${APACHECTL}, http tests disabled" >&6;}
7137 elif test ! -x "${APXS}"; then
7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not found as ${APXS}, http tests disabled" >&5
7139 printf "%s\n" "$as_me: apxs not found as ${APXS}, http tests disabled" >&6;}
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using HTTPD=$HTTPD for tests" >&5
7143 printf "%s\n" "$as_me: using HTTPD=$HTTPD for tests" >&6;}
7146 if test x"$HTTPD_ENABLED" = "xno"; then
7155 if test "x$TEST_NGHTTPX" != "x" -a "x$TEST_NGHTTPX" != "xnghttpx"; then
7156 HTTPD_NGHTTPX="$TEST_NGHTTPX"
7158 # Extract the first word of "nghttpx", so it can be a program name with args.
7159 set dummy nghttpx; ac_word=$2
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 printf %s "checking for $ac_word... " >&6; }
7162 if test ${ac_cv_path_HTTPD_NGHTTPX+y}
7164 printf %s "(cached) " >&6
7166 case $HTTPD_NGHTTPX in
7168 ac_cv_path_HTTPD_NGHTTPX="$HTTPD_NGHTTPX" # Let the user override the test with a path.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 as_dummy="$PATH:/usr/bin:/usr/local/bin"
7173 for as_dir in $as_dummy
7176 case $as_dir in #(((
7179 *) as_dir=$as_dir/ ;;
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7183 ac_cv_path_HTTPD_NGHTTPX="$as_dir$ac_word$ac_exec_ext"
7184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7194 HTTPD_NGHTTPX=$ac_cv_path_HTTPD_NGHTTPX
7195 if test -n "$HTTPD_NGHTTPX"; then
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD_NGHTTPX" >&5
7197 printf "%s\n" "$HTTPD_NGHTTPX" >&6; }
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 printf "%s\n" "no" >&6; }
7207 if test "x$TEST_CADDY" != "x"; then
7210 # Extract the first word of "caddy", so it can be a program name with args.
7211 set dummy caddy; ac_word=$2
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 printf %s "checking for $ac_word... " >&6; }
7214 if test ${ac_cv_path_CADDY+y}
7216 printf %s "(cached) " >&6
7220 ac_cv_path_CADDY="$CADDY" # Let the user override the test with a path.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 case $as_dir in #(((
7230 *) as_dir=$as_dir/ ;;
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7234 ac_cv_path_CADDY="$as_dir$ac_word$ac_exec_ext"
7235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7245 CADDY=$ac_cv_path_CADDY
7246 if test -n "$CADDY"; then
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CADDY" >&5
7248 printf "%s\n" "$CADDY" >&6; }
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 printf "%s\n" "no" >&6; }
7258 if test -z "$TLSCHOICE"; then
7259 if test "x$OPT_SSL" != "xno"; then
7260 as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
7268 --with-openssl (also works for BoringSSL and libressl)
7271 --with-secure-transport
7278 # Check whether --with-darwinssl was given.
7279 if test ${with_darwinssl+y}
7281 withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl and --without-darwin-ssl no longer work!" "$LINENO" 5
7288 # Make sure we can run config.sub.
7289 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7290 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7293 printf %s "checking build system type... " >&6; }
7294 if test ${ac_cv_build+y}
7296 printf %s "(cached) " >&6
7298 ac_build_alias=$build_alias
7299 test "x$ac_build_alias" = x &&
7300 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7301 test "x$ac_build_alias" = x &&
7302 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7303 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7304 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7308 printf "%s\n" "$ac_cv_build" >&6; }
7309 case $ac_cv_build in
7311 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7314 ac_save_IFS=$IFS; IFS='-'
7320 # Remember, the first character of IFS is used to create $*,
7321 # except with old shells:
7324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7328 printf %s "checking host system type... " >&6; }
7329 if test ${ac_cv_host+y}
7331 printf %s "(cached) " >&6
7333 if test "x$host_alias" = x; then
7334 ac_cv_host=$ac_cv_build
7336 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7337 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7342 printf "%s\n" "$ac_cv_host" >&6; }
7345 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7348 ac_save_IFS=$IFS; IFS='-'
7354 # Remember, the first character of IFS is used to create $*,
7355 # except with old shells:
7358 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7362 printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
7365 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7371 printf %s "checking for grep that handles long lines and -e... " >&6; }
7372 if test ${ac_cv_path_GREP+y}
7374 printf %s "(cached) " >&6
7376 if test -z "$GREP"; then
7377 ac_path_GREP_found=false
7378 # Loop through the user's path and test for each of PROGNAME-LIST
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7383 case $as_dir in #(((
7386 *) as_dir=$as_dir/ ;;
7388 for ac_prog in grep ggrep
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7392 as_fn_executable_p "$ac_path_GREP" || continue
7393 # Check for GNU ac_path_GREP and select it if it is found.
7394 # Check for GNU $ac_path_GREP
7395 case `"$ac_path_GREP" --version 2>&1` in
7397 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7400 printf %s 0123456789 >"conftest.in"
7403 cat "conftest.in" "conftest.in" >"conftest.tmp"
7404 mv "conftest.tmp" "conftest.in"
7405 cp "conftest.in" "conftest.nl"
7406 printf "%s\n" 'GREP' >> "conftest.nl"
7407 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7409 as_fn_arith $ac_count + 1 && ac_count=$as_val
7410 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7411 # Best one so far, save it but keep looking for a better one
7412 ac_cv_path_GREP="$ac_path_GREP"
7413 ac_path_GREP_max=$ac_count
7415 # 10*(2^10) chars as input seems more than enough
7416 test $ac_count -gt 10 && break
7418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7421 $ac_path_GREP_found && break 3
7426 if test -z "$ac_cv_path_GREP"; then
7427 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7430 ac_cv_path_GREP=$GREP
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7435 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7436 GREP="$ac_cv_path_GREP"
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7440 printf %s "checking for egrep... " >&6; }
7441 if test ${ac_cv_path_EGREP+y}
7443 printf %s "(cached) " >&6
7445 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7446 then ac_cv_path_EGREP="$GREP -E"
7448 if test -z "$EGREP"; then
7449 ac_path_EGREP_found=false
7450 # Loop through the user's path and test for each of PROGNAME-LIST
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7455 case $as_dir in #(((
7458 *) as_dir=$as_dir/ ;;
7460 for ac_prog in egrep
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7464 as_fn_executable_p "$ac_path_EGREP" || continue
7465 # Check for GNU ac_path_EGREP and select it if it is found.
7466 # Check for GNU $ac_path_EGREP
7467 case `"$ac_path_EGREP" --version 2>&1` in
7469 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7472 printf %s 0123456789 >"conftest.in"
7475 cat "conftest.in" "conftest.in" >"conftest.tmp"
7476 mv "conftest.tmp" "conftest.in"
7477 cp "conftest.in" "conftest.nl"
7478 printf "%s\n" 'EGREP' >> "conftest.nl"
7479 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7481 as_fn_arith $ac_count + 1 && ac_count=$as_val
7482 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7483 # Best one so far, save it but keep looking for a better one
7484 ac_cv_path_EGREP="$ac_path_EGREP"
7485 ac_path_EGREP_max=$ac_count
7487 # 10*(2^10) chars as input seems more than enough
7488 test $ac_count -gt 10 && break
7490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7493 $ac_path_EGREP_found && break 3
7498 if test -z "$ac_cv_path_EGREP"; then
7499 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7502 ac_cv_path_EGREP=$EGREP
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7508 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7509 EGREP="$ac_cv_path_EGREP"
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7515 printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7525 $EGREP "yes_this_is_aix" >/dev/null 2>&1
7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7529 printf "%s\n" "yes" >&6; }
7530 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 printf "%s\n" "no" >&6; }
7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7546 printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7558 force compilation error
7566 if ac_fn_c_try_compile "$LINENO"
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7570 printf "%s\n" "yes" >&6; }
7571 tmp_thread_safe_initially_defined="yes"
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 printf "%s\n" "no" >&6; }
7577 tmp_thread_safe_initially_defined="no"
7580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7582 if test "$tmp_thread_safe_initially_defined" = "no"; then
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7584 printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7587 aix[123].* | aix4.[012].*)
7588 tmp_need_thread_safe="no"
7591 tmp_need_thread_safe="yes"
7594 tmp_need_thread_safe="no"
7598 if test "$tmp_need_thread_safe" = "yes"; then
7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600 printf "%s\n" "yes" >&6; }
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 printf "%s\n" "no" >&6; }
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7608 printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7609 if test "$tmp_thread_safe_initially_defined" = "yes" ||
7610 test "$tmp_need_thread_safe" = "yes"; then
7613 printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7615 cat >>confdefs.h <<_EOF
7616 #ifndef _THREAD_SAFE
7617 # define _THREAD_SAFE
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622 printf "%s\n" "yes" >&6; }
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 printf "%s\n" "no" >&6; }
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7632 printf %s "checking if _REENTRANT is already defined... " >&6; }
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7644 force compilation error
7652 if ac_fn_c_try_compile "$LINENO"
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7656 printf "%s\n" "yes" >&6; }
7657 tmp_reentrant_initially_defined="yes"
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 printf "%s\n" "no" >&6; }
7663 tmp_reentrant_initially_defined="no"
7666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7668 if test "$tmp_reentrant_initially_defined" = "no"; then
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7670 printf %s "checking if _REENTRANT is actually needed... " >&6; }
7674 tmp_need_reentrant="yes"
7677 tmp_need_reentrant="no"
7681 if test "$tmp_need_reentrant" = "no"; then
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7700 if ac_fn_c_try_compile "$LINENO"
7710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7711 if test "$tmp_errno" = "yes"; then
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7724 force compilation error
7732 if ac_fn_c_try_compile "$LINENO"
7735 tmp_errno="errno_macro_defined"
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7752 force compilation error
7760 if ac_fn_c_try_compile "$LINENO"
7763 tmp_errno="errno_macro_needs_reentrant"
7764 tmp_need_reentrant="yes"
7767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7774 if test "$tmp_need_reentrant" = "no"; then
7776 if test "$tmp_need_reentrant" = "no"; then
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7782 #define gmtime_r innocuous_gmtime_r
7784 # include <limits.h>
7786 # include <assert.h>
7793 #if defined __stub_gmtime_r || defined __stub___gmtime_r
7805 if ac_fn_c_try_link "$LINENO"
7815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7816 conftest$ac_exeext conftest.$ac_ext
7817 if test "$tmp_gmtime_r" = "yes"; then
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7821 #include <sys/types.h>
7825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7826 $EGREP "gmtime_r" >/dev/null 2>&1
7829 tmp_gmtime_r="proto_declared"
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7837 #include <sys/types.h>
7841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7842 $EGREP "gmtime_r" >/dev/null 2>&1
7845 tmp_gmtime_r="proto_needs_reentrant"
7846 tmp_need_reentrant="yes"
7858 if test "$tmp_need_reentrant" = "no"; then
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7864 #define localtime_r innocuous_localtime_r
7866 # include <limits.h>
7868 # include <assert.h>
7874 char localtime_r ();
7875 #if defined __stub_localtime_r || defined __stub___localtime_r
7881 return localtime_r ();
7887 if ac_fn_c_try_link "$LINENO"
7890 tmp_localtime_r="yes"
7894 tmp_localtime_r="no"
7897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7898 conftest$ac_exeext conftest.$ac_ext
7899 if test "$tmp_localtime_r" = "yes"; then
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7903 #include <sys/types.h>
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908 $EGREP "localtime_r" >/dev/null 2>&1
7911 tmp_localtime_r="proto_declared"
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7919 #include <sys/types.h>
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924 $EGREP "localtime_r" >/dev/null 2>&1
7927 tmp_localtime_r="proto_needs_reentrant"
7928 tmp_need_reentrant="yes"
7940 if test "$tmp_need_reentrant" = "no"; then
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7946 #define strerror_r innocuous_strerror_r
7948 # include <limits.h>
7950 # include <assert.h>
7957 #if defined __stub_strerror_r || defined __stub___strerror_r
7963 return strerror_r ();
7969 if ac_fn_c_try_link "$LINENO"
7972 tmp_strerror_r="yes"
7979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7980 conftest$ac_exeext conftest.$ac_ext
7981 if test "$tmp_strerror_r" = "yes"; then
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7985 #include <sys/types.h>
7989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7990 $EGREP "strerror_r" >/dev/null 2>&1
7993 tmp_strerror_r="proto_declared"
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
8001 #include <sys/types.h>
8005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8006 $EGREP "strerror_r" >/dev/null 2>&1
8009 tmp_strerror_r="proto_needs_reentrant"
8010 tmp_need_reentrant="yes"
8022 if test "$tmp_need_reentrant" = "no"; then
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8028 #define strtok_r innocuous_strtok_r
8030 # include <limits.h>
8032 # include <assert.h>
8039 #if defined __stub_strtok_r || defined __stub___strtok_r
8051 if ac_fn_c_try_link "$LINENO"
8061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8062 conftest$ac_exeext conftest.$ac_ext
8063 if test "$tmp_strtok_r" = "yes"; then
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8067 #include <sys/types.h>
8071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8072 $EGREP "strtok_r" >/dev/null 2>&1
8075 tmp_strtok_r="proto_declared"
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8083 #include <sys/types.h>
8087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8088 $EGREP "strtok_r" >/dev/null 2>&1
8091 tmp_strtok_r="proto_needs_reentrant"
8092 tmp_need_reentrant="yes"
8104 if test "$tmp_need_reentrant" = "no"; then
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8110 #define gethostbyname_r innocuous_gethostbyname_r
8112 # include <limits.h>
8114 # include <assert.h>
8116 #undef gethostbyname_r
8120 char gethostbyname_r ();
8121 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
8127 return gethostbyname_r ();
8133 if ac_fn_c_try_link "$LINENO"
8136 tmp_gethostbyname_r="yes"
8140 tmp_gethostbyname_r="no"
8143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8144 conftest$ac_exeext conftest.$ac_ext
8145 if test "$tmp_gethostbyname_r" = "yes"; then
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8149 #include <sys/types.h>
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154 $EGREP "gethostbyname_r" >/dev/null 2>&1
8157 tmp_gethostbyname_r="proto_declared"
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8165 #include <sys/types.h>
8169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8170 $EGREP "gethostbyname_r" >/dev/null 2>&1
8173 tmp_gethostbyname_r="proto_needs_reentrant"
8174 tmp_need_reentrant="yes"
8186 if test "$tmp_need_reentrant" = "no"; then
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8192 #define getprotobyname_r innocuous_getprotobyname_r
8194 # include <limits.h>
8196 # include <assert.h>
8198 #undef getprotobyname_r
8202 char getprotobyname_r ();
8203 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
8209 return getprotobyname_r ();
8215 if ac_fn_c_try_link "$LINENO"
8218 tmp_getprotobyname_r="yes"
8222 tmp_getprotobyname_r="no"
8225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8226 conftest$ac_exeext conftest.$ac_ext
8227 if test "$tmp_getprotobyname_r" = "yes"; then
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8231 #include <sys/types.h>
8235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8236 $EGREP "getprotobyname_r" >/dev/null 2>&1
8239 tmp_getprotobyname_r="proto_declared"
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8247 #include <sys/types.h>
8251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8252 $EGREP "getprotobyname_r" >/dev/null 2>&1
8255 tmp_getprotobyname_r="proto_needs_reentrant"
8256 tmp_need_reentrant="yes"
8270 if test "$tmp_need_reentrant" = "yes"; then
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272 printf "%s\n" "yes" >&6; }
8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 printf "%s\n" "no" >&6; }
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
8280 printf %s "checking if _REENTRANT is onwards defined... " >&6; }
8281 if test "$tmp_reentrant_initially_defined" = "yes" ||
8282 test "$tmp_need_reentrant" = "yes"; then
8285 printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
8287 cat >>confdefs.h <<_EOF
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8294 printf "%s\n" "yes" >&6; }
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 printf "%s\n" "no" >&6; }
8302 # Check whether --enable-largefile was given.
8303 if test ${enable_largefile+y}
8305 enableval=$enable_largefile;
8308 if test "$enable_largefile" != no; then
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8311 printf %s "checking for special C compiler options needed for large files... " >&6; }
8312 if test ${ac_cv_sys_largefile_CC+y}
8314 printf %s "(cached) " >&6
8316 ac_cv_sys_largefile_CC=no
8317 if test "$GCC" != yes; then
8320 # IRIX 6.2 and later do not support large files by default,
8321 # so use the C compiler's -n32 option if that helps.
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 #include <sys/types.h>
8325 /* Check that off_t can represent 2**63 - 1 correctly.
8326 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8327 since some C++ compilers masquerading as C compilers
8328 incorrectly reject 9223372036854775807. */
8329 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8331 && LARGE_OFF_T % 2147483647 == 1)
8340 if ac_fn_c_try_compile "$LINENO"
8344 rm -f core conftest.err conftest.$ac_objext conftest.beam
8346 if ac_fn_c_try_compile "$LINENO"
8348 ac_cv_sys_largefile_CC=' -n32'; break
8350 rm -f core conftest.err conftest.$ac_objext conftest.beam
8354 rm -f conftest.$ac_ext
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8358 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
8359 if test "$ac_cv_sys_largefile_CC" != no; then
8360 CC=$CC$ac_cv_sys_largefile_CC
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8364 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8365 if test ${ac_cv_sys_file_offset_bits+y}
8367 printf %s "(cached) " >&6
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <sys/types.h>
8373 /* Check that off_t can represent 2**63 - 1 correctly.
8374 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8375 since some C++ compilers masquerading as C compilers
8376 incorrectly reject 9223372036854775807. */
8377 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8378 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8379 && LARGE_OFF_T % 2147483647 == 1)
8388 if ac_fn_c_try_compile "$LINENO"
8390 ac_cv_sys_file_offset_bits=no; break
8392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #define _FILE_OFFSET_BITS 64
8396 #include <sys/types.h>
8397 /* Check that off_t can represent 2**63 - 1 correctly.
8398 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8399 since some C++ compilers masquerading as C compilers
8400 incorrectly reject 9223372036854775807. */
8401 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8403 && LARGE_OFF_T % 2147483647 == 1)
8412 if ac_fn_c_try_compile "$LINENO"
8414 ac_cv_sys_file_offset_bits=64; break
8416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8417 ac_cv_sys_file_offset_bits=unknown
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8422 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
8423 case $ac_cv_sys_file_offset_bits in #(
8426 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8430 if test $ac_cv_sys_file_offset_bits = unknown; then
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8432 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8433 if test ${ac_cv_sys_large_files+y}
8435 printf %s "(cached) " >&6
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <sys/types.h>
8441 /* Check that off_t can represent 2**63 - 1 correctly.
8442 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8443 since some C++ compilers masquerading as C compilers
8444 incorrectly reject 9223372036854775807. */
8445 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8447 && LARGE_OFF_T % 2147483647 == 1)
8456 if ac_fn_c_try_compile "$LINENO"
8458 ac_cv_sys_large_files=no; break
8460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 #define _LARGE_FILES 1
8464 #include <sys/types.h>
8465 /* Check that off_t can represent 2**63 - 1 correctly.
8466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8467 since some C++ compilers masquerading as C compilers
8468 incorrectly reject 9223372036854775807. */
8469 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8471 && LARGE_OFF_T % 2147483647 == 1)
8480 if ac_fn_c_try_compile "$LINENO"
8482 ac_cv_sys_large_files=1; break
8484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8485 ac_cv_sys_large_files=unknown
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8490 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8491 case $ac_cv_sys_large_files in #(
8494 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8505 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8510 macro_version='2.4.7'
8511 macro_revision='2.4.7'
8526 ltmain=$ac_aux_dir/ltmain.sh
8528 # Backslashify metacharacters that are still active within
8529 # double-quoted strings.
8530 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8532 # Same as above, but do not quote variable references.
8533 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8535 # Sed substitution to delay expansion of an escaped shell variable in a
8536 # double_quote_subst'ed string.
8537 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8539 # Sed substitution to delay expansion of an escaped single quote.
8540 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8542 # Sed substitution to avoid accidental globbing in evaled expressions
8543 no_glob_subst='s/\*/\\\*/g'
8545 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8546 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8547 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8550 printf %s "checking how to print strings... " >&6; }
8551 # Test print first, because it will be a builtin if present.
8552 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8553 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8555 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8558 # Use this function as a fallback that always works.
8559 func_fallback_echo ()
8561 eval 'cat <<_LTECHO_EOF
8565 ECHO='func_fallback_echo'
8568 # func_echo_all arg...
8569 # Invoke $ECHO with all args, space-separated.
8576 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8577 printf "%s\n" "printf" >&6; } ;;
8578 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8579 printf "%s\n" "print -r" >&6; } ;;
8580 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8581 printf "%s\n" "cat" >&6; } ;;
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8598 printf %s "checking for a sed that does not truncate output... " >&6; }
8599 if test ${ac_cv_path_SED+y}
8601 printf %s "(cached) " >&6
8603 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8604 for ac_i in 1 2 3 4 5 6 7; do
8605 ac_script="$ac_script$as_nl$ac_script"
8607 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8608 { ac_script=; unset ac_script;}
8609 if test -z "$SED"; then
8610 ac_path_SED_found=false
8611 # Loop through the user's path and test for each of PROGNAME-LIST
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 case $as_dir in #(((
8619 *) as_dir=$as_dir/ ;;
8621 for ac_prog in sed gsed
8623 for ac_exec_ext in '' $ac_executable_extensions; do
8624 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8625 as_fn_executable_p "$ac_path_SED" || continue
8626 # Check for GNU ac_path_SED and select it if it is found.
8627 # Check for GNU $ac_path_SED
8628 case `"$ac_path_SED" --version 2>&1` in
8630 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8633 printf %s 0123456789 >"conftest.in"
8636 cat "conftest.in" "conftest.in" >"conftest.tmp"
8637 mv "conftest.tmp" "conftest.in"
8638 cp "conftest.in" "conftest.nl"
8639 printf "%s\n" '' >> "conftest.nl"
8640 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8642 as_fn_arith $ac_count + 1 && ac_count=$as_val
8643 if test $ac_count -gt ${ac_path_SED_max-0}; then
8644 # Best one so far, save it but keep looking for a better one
8645 ac_cv_path_SED="$ac_path_SED"
8646 ac_path_SED_max=$ac_count
8648 # 10*(2^10) chars as input seems more than enough
8649 test $ac_count -gt 10 && break
8651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8654 $ac_path_SED_found && break 3
8659 if test -z "$ac_cv_path_SED"; then
8660 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8668 printf "%s\n" "$ac_cv_path_SED" >&6; }
8669 SED="$ac_cv_path_SED"
8672 test -z "$SED" && SED=sed
8673 Xsed="$SED -e 1s/^X//"
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8686 printf %s "checking for fgrep... " >&6; }
8687 if test ${ac_cv_path_FGREP+y}
8689 printf %s "(cached) " >&6
8691 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8692 then ac_cv_path_FGREP="$GREP -F"
8694 if test -z "$FGREP"; then
8695 ac_path_FGREP_found=false
8696 # Loop through the user's path and test for each of PROGNAME-LIST
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8701 case $as_dir in #(((
8704 *) as_dir=$as_dir/ ;;
8706 for ac_prog in fgrep
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8710 as_fn_executable_p "$ac_path_FGREP" || continue
8711 # Check for GNU ac_path_FGREP and select it if it is found.
8712 # Check for GNU $ac_path_FGREP
8713 case `"$ac_path_FGREP" --version 2>&1` in
8715 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8718 printf %s 0123456789 >"conftest.in"
8721 cat "conftest.in" "conftest.in" >"conftest.tmp"
8722 mv "conftest.tmp" "conftest.in"
8723 cp "conftest.in" "conftest.nl"
8724 printf "%s\n" 'FGREP' >> "conftest.nl"
8725 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8727 as_fn_arith $ac_count + 1 && ac_count=$as_val
8728 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8729 # Best one so far, save it but keep looking for a better one
8730 ac_cv_path_FGREP="$ac_path_FGREP"
8731 ac_path_FGREP_max=$ac_count
8733 # 10*(2^10) chars as input seems more than enough
8734 test $ac_count -gt 10 && break
8736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8739 $ac_path_FGREP_found && break 3
8744 if test -z "$ac_cv_path_FGREP"; then
8745 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8748 ac_cv_path_FGREP=$FGREP
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8754 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8755 FGREP="$ac_cv_path_FGREP"
8758 test -z "$GREP" && GREP=grep
8778 # Check whether --with-gnu-ld was given.
8779 if test ${with_gnu_ld+y}
8781 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8787 if test yes = "$GCC"; then
8788 # Check if gcc -print-prog-name=ld gives a path.
8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8790 printf %s "checking for ld used by $CC... " >&6; }
8793 # gcc leaves a trailing carriage return, which upsets mingw
8794 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8796 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8799 # Accept absolute paths.
8801 re_direlt='/[^/][^/]*/\.\./'
8802 # Canonicalize the pathname of ld
8803 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8804 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8805 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8807 test -z "$LD" && LD=$ac_prog
8810 # If it fails, then pretend we aren't using GCC.
8814 # If it is relative, then search for the first ld in PATH.
8818 elif test yes = "$with_gnu_ld"; then
8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8820 printf %s "checking for GNU ld... " >&6; }
8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8823 printf %s "checking for non-GNU ld... " >&6; }
8825 if test ${lt_cv_path_LD+y}
8827 printf %s "(cached) " >&6
8829 if test -z "$LD"; then
8830 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8831 for ac_dir in $PATH; do
8833 test -z "$ac_dir" && ac_dir=.
8834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8835 lt_cv_path_LD=$ac_dir/$ac_prog
8836 # Check to see if the program is GNU ld. I'd rather use --version,
8837 # but apparently some variants of GNU ld only accept -v.
8838 # Break only if it was the GNU/non-GNU ld that we prefer.
8839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8840 *GNU* | *'with BFD'*)
8841 test no != "$with_gnu_ld" && break
8844 test yes != "$with_gnu_ld" && break
8851 lt_cv_path_LD=$LD # Let the user override the test with a path.
8856 if test -n "$LD"; then
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8858 printf "%s\n" "$LD" >&6; }
8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 printf "%s\n" "no" >&6; }
8863 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8865 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8866 if test ${lt_cv_prog_gnu_ld+y}
8868 printf %s "(cached) " >&6
8870 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8871 case `$LD -v 2>&1 </dev/null` in
8872 *GNU* | *'with BFD'*)
8873 lt_cv_prog_gnu_ld=yes
8876 lt_cv_prog_gnu_ld=no
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8881 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8882 with_gnu_ld=$lt_cv_prog_gnu_ld
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8893 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8894 if test ${lt_cv_path_NM+y}
8896 printf %s "(cached) " >&6
8898 if test -n "$NM"; then
8899 # Let the user override the test.
8902 lt_nm_to_check=${ac_tool_prefix}nm
8903 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8904 lt_nm_to_check="$lt_nm_to_check nm"
8906 for lt_tmp_nm in $lt_nm_to_check; do
8907 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8908 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8910 test -z "$ac_dir" && ac_dir=.
8911 tmp_nm=$ac_dir/$lt_tmp_nm
8912 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8913 # Check to see if the nm accepts a BSD-compat flag.
8914 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8915 # nm: unknown option "B" ignored
8916 # Tru64's nm complains that /dev/null is an invalid object file
8917 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8919 mingw*) lt_bad_file=conftest.nm/nofile ;;
8920 *) lt_bad_file=/dev/null ;;
8922 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8923 *$lt_bad_file* | *'Invalid file or object type'*)
8924 lt_cv_path_NM="$tmp_nm -B"
8928 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8930 lt_cv_path_NM="$tmp_nm -p"
8934 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8935 continue # so that we can try to find one that supports BSD flags
8944 : ${lt_cv_path_NM=no}
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8948 printf "%s\n" "$lt_cv_path_NM" >&6; }
8949 if test no != "$lt_cv_path_NM"; then
8952 # Didn't find any BSD compatible name lister, look for dumpbin.
8953 if test -n "$DUMPBIN"; then :
8954 # Let the user override the test.
8956 if test -n "$ac_tool_prefix"; then
8957 for ac_prog in dumpbin "link -dump"
8959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 printf %s "checking for $ac_word... " >&6; }
8963 if test ${ac_cv_prog_DUMPBIN+y}
8965 printf %s "(cached) " >&6
8967 if test -n "$DUMPBIN"; then
8968 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 case $as_dir in #(((
8977 *) as_dir=$as_dir/ ;;
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8981 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8991 DUMPBIN=$ac_cv_prog_DUMPBIN
8992 if test -n "$DUMPBIN"; then
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8994 printf "%s\n" "$DUMPBIN" >&6; }
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 printf "%s\n" "no" >&6; }
9001 test -n "$DUMPBIN" && break
9004 if test -z "$DUMPBIN"; then
9005 ac_ct_DUMPBIN=$DUMPBIN
9006 for ac_prog in dumpbin "link -dump"
9008 # Extract the first word of "$ac_prog", so it can be a program name with args.
9009 set dummy $ac_prog; ac_word=$2
9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011 printf %s "checking for $ac_word... " >&6; }
9012 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9014 printf %s "(cached) " >&6
9016 if test -n "$ac_ct_DUMPBIN"; then
9017 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 case $as_dir in #(((
9026 *) as_dir=$as_dir/ ;;
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9030 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9040 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9041 if test -n "$ac_ct_DUMPBIN"; then
9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9043 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 printf "%s\n" "no" >&6; }
9050 test -n "$ac_ct_DUMPBIN" && break
9053 if test "x$ac_ct_DUMPBIN" = x; then
9056 case $cross_compiling:$ac_tool_warned in
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9060 ac_tool_warned=yes ;;
9062 DUMPBIN=$ac_ct_DUMPBIN
9066 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9068 DUMPBIN="$DUMPBIN -symbols -headers"
9076 if test : != "$DUMPBIN"; then
9080 test -z "$NM" && NM=nm
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9088 printf %s "checking the name lister ($NM) interface... " >&6; }
9089 if test ${lt_cv_nm_interface+y}
9091 printf %s "(cached) " >&6
9093 lt_cv_nm_interface="BSD nm"
9094 echo "int some_variable = 0;" > conftest.$ac_ext
9095 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9096 (eval "$ac_compile" 2>conftest.err)
9097 cat conftest.err >&5
9098 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9099 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9100 cat conftest.err >&5
9101 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9102 cat conftest.out >&5
9103 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9104 lt_cv_nm_interface="MS dumpbin"
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9109 printf "%s\n" "$lt_cv_nm_interface" >&6; }
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9112 printf %s "checking whether ln -s works... " >&6; }
9114 if test "$LN_S" = "ln -s"; then
9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9116 printf "%s\n" "yes" >&6; }
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9119 printf "%s\n" "no, using $LN_S" >&6; }
9122 # find the maximum length of command line arguments
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9124 printf %s "checking the maximum length of command line arguments... " >&6; }
9125 if test ${lt_cv_sys_max_cmd_len+y}
9127 printf %s "(cached) " >&6
9134 # On DJGPP, this test can blow up pretty badly due to problems in libc
9135 # (any single argument exceeding 2000 bytes causes a buffer overrun
9136 # during glob expansion). Even if it were fixed, the result of this
9137 # check would be larger than it should be.
9138 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9142 # Under GNU Hurd, this test is not required because there is
9143 # no limit to the length of command line arguments.
9144 # Libtool will interpret -1 as no limit whatsoever
9145 lt_cv_sys_max_cmd_len=-1;
9148 cygwin* | mingw* | cegcc*)
9149 # On Win9x/ME, this test blows up -- it succeeds, but takes
9150 # about 5 minutes as the teststring grows exponentially.
9151 # Worse, since 9x/ME are not pre-emptively multitasking,
9152 # you end up with a "frozen" computer, even though with patience
9153 # the test eventually succeeds (with a max line length of 256k).
9154 # Instead, let's just punt: use the minimum linelength reported by
9155 # all of the supported platforms: 8192 (on NT/2K/XP).
9156 lt_cv_sys_max_cmd_len=8192;
9160 # On MiNT this can take a long time and run out of memory.
9161 lt_cv_sys_max_cmd_len=8192;
9165 # On AmigaOS with pdksh, this test takes hours, literally.
9166 # So we just punt and use a minimum line length of 8192.
9167 lt_cv_sys_max_cmd_len=8192;
9170 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9171 # This has been around since 386BSD, at least. Likely further.
9172 if test -x /sbin/sysctl; then
9173 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9174 elif test -x /usr/sbin/sysctl; then
9175 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9177 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9179 # And add a safety zone
9180 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9181 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9185 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9186 lt_cv_sys_max_cmd_len=196608
9190 # The test takes a long time on OS/2.
9191 lt_cv_sys_max_cmd_len=8192
9195 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9196 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9197 # nice to cause kernel panics so lets avoid the loop below.
9198 # First set a reasonable default.
9199 lt_cv_sys_max_cmd_len=16384
9201 if test -x /sbin/sysconfig; then
9202 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9203 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9208 lt_cv_sys_max_cmd_len=102400
9210 sysv5* | sco5v6* | sysv4.2uw2*)
9211 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9212 if test -n "$kargmax"; then
9213 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
9215 lt_cv_sys_max_cmd_len=32768
9219 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9220 if test -n "$lt_cv_sys_max_cmd_len" && \
9221 test undefined != "$lt_cv_sys_max_cmd_len"; then
9222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9225 # Make teststring a little bigger before we do anything with it.
9226 # a 1K string should be a reasonable start.
9227 for i in 1 2 3 4 5 6 7 8; do
9228 teststring=$teststring$teststring
9230 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9231 # If test is not a shell built-in, we'll probably end up computing a
9232 # maximum length that is only half of the actual maximum length, but
9234 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9235 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9236 test 17 != "$i" # 1/2 MB should be enough
9239 teststring=$teststring$teststring
9241 # Only check the string length outside the loop.
9242 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9244 # Add a significant safety factor because C++ compilers can tack on
9245 # massive amounts of additional arguments before passing them to the
9246 # linker. It appears as though 1/2 is a usable value.
9247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9254 if test -n "$lt_cv_sys_max_cmd_len"; then
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9256 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9259 printf "%s\n" "none" >&6; }
9261 max_cmd_len=$lt_cv_sys_max_cmd_len
9272 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9282 # test EBCDIC or ASCII
9283 case `echo X|tr X '\101'` in
9284 A) # ASCII based system
9285 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9286 lt_SP2NL='tr \040 \012'
9287 lt_NL2SP='tr \015\012 \040\040'
9289 *) # EBCDIC based system
9290 lt_SP2NL='tr \100 \n'
9291 lt_NL2SP='tr \r\n \100\100'
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9304 printf %s "checking how to convert $build file names to $host format... " >&6; }
9305 if test ${lt_cv_to_host_file_cmd+y}
9307 printf %s "(cached) " >&6
9312 *-*-mingw* ) # actually msys
9313 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9316 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9318 * ) # otherwise, assume *nix
9319 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9325 *-*-mingw* ) # actually msys
9326 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9329 lt_cv_to_host_file_cmd=func_convert_file_noop
9331 * ) # otherwise, assume *nix
9332 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9336 * ) # unhandled hosts (and "normal" native builds)
9337 lt_cv_to_host_file_cmd=func_convert_file_noop
9343 to_host_file_cmd=$lt_cv_to_host_file_cmd
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9345 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9352 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9353 if test ${lt_cv_to_tool_file_cmd+y}
9355 printf %s "(cached) " >&6
9357 #assume ordinary cross tools, or native build.
9358 lt_cv_to_tool_file_cmd=func_convert_file_noop
9362 *-*-mingw* ) # actually msys
9363 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9371 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9373 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9380 printf %s "checking for $LD option to reload object files... " >&6; }
9381 if test ${lt_cv_ld_reload_flag+y}
9383 printf %s "(cached) " >&6
9385 lt_cv_ld_reload_flag='-r'
9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9388 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9389 reload_flag=$lt_cv_ld_reload_flag
9390 case $reload_flag in
9392 *) reload_flag=" $reload_flag" ;;
9394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9396 cygwin* | mingw* | pw32* | cegcc*)
9397 if test yes != "$GCC"; then
9402 if test yes = "$GCC"; then
9403 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9405 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9418 if test -n "$ac_tool_prefix"; then
9419 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9420 set dummy ${ac_tool_prefix}file; ac_word=$2
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9422 printf %s "checking for $ac_word... " >&6; }
9423 if test ${ac_cv_prog_FILECMD+y}
9425 printf %s "(cached) " >&6
9427 if test -n "$FILECMD"; then
9428 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 case $as_dir in #(((
9437 *) as_dir=$as_dir/ ;;
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9441 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9451 FILECMD=$ac_cv_prog_FILECMD
9452 if test -n "$FILECMD"; then
9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9454 printf "%s\n" "$FILECMD" >&6; }
9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 printf "%s\n" "no" >&6; }
9462 if test -z "$ac_cv_prog_FILECMD"; then
9463 ac_ct_FILECMD=$FILECMD
9464 # Extract the first word of "file", so it can be a program name with args.
9465 set dummy file; ac_word=$2
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 printf %s "checking for $ac_word... " >&6; }
9468 if test ${ac_cv_prog_ac_ct_FILECMD+y}
9470 printf %s "(cached) " >&6
9472 if test -n "$ac_ct_FILECMD"; then
9473 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 case $as_dir in #(((
9482 *) as_dir=$as_dir/ ;;
9484 for ac_exec_ext in '' $ac_executable_extensions; do
9485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9486 ac_cv_prog_ac_ct_FILECMD="file"
9487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9496 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9497 if test -n "$ac_ct_FILECMD"; then
9498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9499 printf "%s\n" "$ac_ct_FILECMD" >&6; }
9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502 printf "%s\n" "no" >&6; }
9505 if test "x$ac_ct_FILECMD" = x; then
9508 case $cross_compiling:$ac_tool_warned in
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9512 ac_tool_warned=yes ;;
9514 FILECMD=$ac_ct_FILECMD
9517 FILECMD="$ac_cv_prog_FILECMD"
9526 if test -n "$ac_tool_prefix"; then
9527 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9528 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 printf %s "checking for $ac_word... " >&6; }
9531 if test ${ac_cv_prog_OBJDUMP+y}
9533 printf %s "(cached) " >&6
9535 if test -n "$OBJDUMP"; then
9536 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 case $as_dir in #(((
9545 *) as_dir=$as_dir/ ;;
9547 for ac_exec_ext in '' $ac_executable_extensions; do
9548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9549 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9559 OBJDUMP=$ac_cv_prog_OBJDUMP
9560 if test -n "$OBJDUMP"; then
9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9562 printf "%s\n" "$OBJDUMP" >&6; }
9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 printf "%s\n" "no" >&6; }
9570 if test -z "$ac_cv_prog_OBJDUMP"; then
9571 ac_ct_OBJDUMP=$OBJDUMP
9572 # Extract the first word of "objdump", so it can be a program name with args.
9573 set dummy objdump; ac_word=$2
9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 printf %s "checking for $ac_word... " >&6; }
9576 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9578 printf %s "(cached) " >&6
9580 if test -n "$ac_ct_OBJDUMP"; then
9581 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 case $as_dir in #(((
9590 *) as_dir=$as_dir/ ;;
9592 for ac_exec_ext in '' $ac_executable_extensions; do
9593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9594 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9604 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9605 if test -n "$ac_ct_OBJDUMP"; then
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9607 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 printf "%s\n" "no" >&6; }
9613 if test "x$ac_ct_OBJDUMP" = x; then
9616 case $cross_compiling:$ac_tool_warned in
9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9620 ac_tool_warned=yes ;;
9622 OBJDUMP=$ac_ct_OBJDUMP
9625 OBJDUMP="$ac_cv_prog_OBJDUMP"
9628 test -z "$OBJDUMP" && OBJDUMP=objdump
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9636 printf %s "checking how to recognize dependent libraries... " >&6; }
9637 if test ${lt_cv_deplibs_check_method+y}
9639 printf %s "(cached) " >&6
9641 lt_cv_file_magic_cmd='$MAGIC_CMD'
9642 lt_cv_file_magic_test_file=
9643 lt_cv_deplibs_check_method='unknown'
9644 # Need to set the preceding variable on all platforms that support
9645 # interlibrary dependencies.
9646 # 'none' -- dependencies not supported.
9647 # 'unknown' -- same as none, but documents that we really don't know.
9648 # 'pass_all' -- all dependencies passed with no checks.
9649 # 'test_compile' -- check by making test program.
9650 # 'file_magic [[regex]]' -- check by looking for files in library path
9651 # that responds to the $file_magic_cmd with a given extended regex.
9652 # If you have 'file' or equivalent on your system and you're not sure
9653 # whether 'pass_all' will *always* work, you probably want this one.
9657 lt_cv_deplibs_check_method=pass_all
9661 lt_cv_deplibs_check_method=pass_all
9665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9666 lt_cv_file_magic_cmd='$FILECMD -L'
9667 lt_cv_file_magic_test_file=/shlib/libc.so
9671 # func_win32_libid is a shell function defined in ltmain.sh
9672 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9673 lt_cv_file_magic_cmd='func_win32_libid'
9677 # Base MSYS/MinGW do not provide the 'file' command needed by
9678 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9679 # unless we find 'file', for example because we are cross-compiling.
9680 if ( file / ) >/dev/null 2>&1; then
9681 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9682 lt_cv_file_magic_cmd='func_win32_libid'
9684 # Keep this pattern in sync with the one in func_win32_libid.
9685 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9686 lt_cv_file_magic_cmd='$OBJDUMP -f'
9691 # use the weaker test based on 'objdump'. See mingw*.
9692 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9693 lt_cv_file_magic_cmd='$OBJDUMP -f'
9696 darwin* | rhapsody*)
9697 lt_cv_deplibs_check_method=pass_all
9700 freebsd* | dragonfly* | midnightbsd*)
9701 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9704 # Not sure whether the presence of OpenBSD here was a mistake.
9705 # Let's accept both of them until this is cleared up.
9706 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9707 lt_cv_file_magic_cmd=$FILECMD
9708 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9712 lt_cv_deplibs_check_method=pass_all
9717 lt_cv_deplibs_check_method=pass_all
9720 hpux10.20* | hpux11*)
9721 lt_cv_file_magic_cmd=$FILECMD
9724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9725 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
9729 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9732 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9733 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9739 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9743 irix5* | irix6* | nonstopux*)
9745 *-32|*"-32 ") libmagic=32-bit;;
9746 *-n32|*"-n32 ") libmagic=N32;;
9747 *-64|*"-64 ") libmagic=64-bit;;
9748 *) libmagic=never-match;;
9750 lt_cv_deplibs_check_method=pass_all
9753 # This must be glibc/ELF.
9754 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9755 lt_cv_deplibs_check_method=pass_all
9758 netbsd* | netbsdelf*-gnu)
9759 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9768 lt_cv_file_magic_cmd=$FILECMD
9769 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9773 lt_cv_deplibs_check_method=pass_all
9777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9784 osf3* | osf4* | osf5*)
9785 lt_cv_deplibs_check_method=pass_all
9789 lt_cv_deplibs_check_method=pass_all
9793 lt_cv_deplibs_check_method=pass_all
9796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9797 lt_cv_deplibs_check_method=pass_all
9801 case $host_vendor in
9803 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]'
9804 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9807 lt_cv_deplibs_check_method=pass_all
9810 lt_cv_file_magic_cmd='/bin/file'
9811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9814 lt_cv_file_magic_cmd='/bin/file'
9815 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9816 lt_cv_file_magic_test_file=/lib/libc.so
9819 lt_cv_deplibs_check_method=pass_all
9822 lt_cv_deplibs_check_method=pass_all
9828 lt_cv_deplibs_check_method=pass_all
9831 lt_cv_deplibs_check_method=pass_all
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9837 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9841 if test "$build" = "$host"; then
9844 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9847 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9853 file_magic_cmd=$lt_cv_file_magic_cmd
9854 deplibs_check_method=$lt_cv_deplibs_check_method
9855 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9878 if test -n "$ac_tool_prefix"; then
9879 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9880 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882 printf %s "checking for $ac_word... " >&6; }
9883 if test ${ac_cv_prog_DLLTOOL+y}
9885 printf %s "(cached) " >&6
9887 if test -n "$DLLTOOL"; then
9888 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 case $as_dir in #(((
9897 *) as_dir=$as_dir/ ;;
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9901 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9911 DLLTOOL=$ac_cv_prog_DLLTOOL
9912 if test -n "$DLLTOOL"; then
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9914 printf "%s\n" "$DLLTOOL" >&6; }
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 printf "%s\n" "no" >&6; }
9922 if test -z "$ac_cv_prog_DLLTOOL"; then
9923 ac_ct_DLLTOOL=$DLLTOOL
9924 # Extract the first word of "dlltool", so it can be a program name with args.
9925 set dummy dlltool; ac_word=$2
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 printf %s "checking for $ac_word... " >&6; }
9928 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9930 printf %s "(cached) " >&6
9932 if test -n "$ac_ct_DLLTOOL"; then
9933 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 case $as_dir in #(((
9942 *) as_dir=$as_dir/ ;;
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9946 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9956 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9957 if test -n "$ac_ct_DLLTOOL"; then
9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9959 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 printf "%s\n" "no" >&6; }
9965 if test "x$ac_ct_DLLTOOL" = x; then
9968 case $cross_compiling:$ac_tool_warned in
9970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9971 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9972 ac_tool_warned=yes ;;
9974 DLLTOOL=$ac_ct_DLLTOOL
9977 DLLTOOL="$ac_cv_prog_DLLTOOL"
9980 test -z "$DLLTOOL" && DLLTOOL=dlltool
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9989 printf %s "checking how to associate runtime and link libraries... " >&6; }
9990 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9992 printf %s "(cached) " >&6
9994 lt_cv_sharedlib_from_linklib_cmd='unknown'
9997 cygwin* | mingw* | pw32* | cegcc*)
9998 # two different shell functions defined in ltmain.sh;
9999 # decide which one to use based on capabilities of $DLLTOOL
10000 case `$DLLTOOL --help 2>&1` in
10001 *--identify-strict*)
10002 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10005 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10010 # fallback: assume linklib IS sharedlib
10011 lt_cv_sharedlib_from_linklib_cmd=$ECHO
10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10017 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10018 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10019 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10027 if test -n "$ac_tool_prefix"; then
10030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033 printf %s "checking for $ac_word... " >&6; }
10034 if test ${ac_cv_prog_AR+y}
10036 printf %s "(cached) " >&6
10038 if test -n "$AR"; then
10039 ac_cv_prog_AR="$AR" # Let the user override the test.
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10045 case $as_dir in #(((
10048 *) as_dir=$as_dir/ ;;
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10052 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10063 if test -n "$AR"; then
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10065 printf "%s\n" "$AR" >&6; }
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068 printf "%s\n" "no" >&6; }
10072 test -n "$AR" && break
10075 if test -z "$AR"; then
10079 # Extract the first word of "$ac_prog", so it can be a program name with args.
10080 set dummy $ac_prog; ac_word=$2
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 printf %s "checking for $ac_word... " >&6; }
10083 if test ${ac_cv_prog_ac_ct_AR+y}
10085 printf %s "(cached) " >&6
10087 if test -n "$ac_ct_AR"; then
10088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10094 case $as_dir in #(((
10097 *) as_dir=$as_dir/ ;;
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10101 ac_cv_prog_ac_ct_AR="$ac_prog"
10102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10112 if test -n "$ac_ct_AR"; then
10113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10114 printf "%s\n" "$ac_ct_AR" >&6; }
10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 printf "%s\n" "no" >&6; }
10121 test -n "$ac_ct_AR" && break
10124 if test "x$ac_ct_AR" = x; then
10127 case $cross_compiling:$ac_tool_warned in
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10131 ac_tool_warned=yes ;;
10144 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
10145 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10146 # higher priority because thats what people were doing historically (setting
10147 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
10148 # variable obsoleted/removed.
10150 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10151 lt_ar_flags=$AR_FLAGS
10158 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
10159 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10167 printf %s "checking for archiver @FILE support... " >&6; }
10168 if test ${lt_cv_ar_at_file+y}
10170 printf %s "(cached) " >&6
10172 lt_cv_ar_at_file=no
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10183 if ac_fn_c_try_compile "$LINENO"
10185 echo conftest.$ac_objext > conftest.lst
10186 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10188 (eval $lt_ar_try) 2>&5
10190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10191 test $ac_status = 0; }
10192 if test 0 -eq "$ac_status"; then
10193 # Ensure the archiver fails upon bogus file names.
10194 rm -f conftest.$ac_objext libconftest.a
10195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10196 (eval $lt_ar_try) 2>&5
10198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199 test $ac_status = 0; }
10200 if test 0 -ne "$ac_status"; then
10204 rm -f conftest.* libconftest.a
10207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10211 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10213 if test no = "$lt_cv_ar_at_file"; then
10214 archiver_list_spec=
10216 archiver_list_spec=$lt_cv_ar_at_file
10225 if test -n "$ac_tool_prefix"; then
10226 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10227 set dummy ${ac_tool_prefix}strip; ac_word=$2
10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 printf %s "checking for $ac_word... " >&6; }
10230 if test ${ac_cv_prog_STRIP+y}
10232 printf %s "(cached) " >&6
10234 if test -n "$STRIP"; then
10235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10241 case $as_dir in #(((
10244 *) as_dir=$as_dir/ ;;
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10258 STRIP=$ac_cv_prog_STRIP
10259 if test -n "$STRIP"; then
10260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10261 printf "%s\n" "$STRIP" >&6; }
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 printf "%s\n" "no" >&6; }
10269 if test -z "$ac_cv_prog_STRIP"; then
10271 # Extract the first word of "strip", so it can be a program name with args.
10272 set dummy strip; ac_word=$2
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10274 printf %s "checking for $ac_word... " >&6; }
10275 if test ${ac_cv_prog_ac_ct_STRIP+y}
10277 printf %s "(cached) " >&6
10279 if test -n "$ac_ct_STRIP"; then
10280 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10286 case $as_dir in #(((
10289 *) as_dir=$as_dir/ ;;
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10293 ac_cv_prog_ac_ct_STRIP="strip"
10294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10303 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10304 if test -n "$ac_ct_STRIP"; then
10305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10306 printf "%s\n" "$ac_ct_STRIP" >&6; }
10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 printf "%s\n" "no" >&6; }
10312 if test "x$ac_ct_STRIP" = x; then
10315 case $cross_compiling:$ac_tool_warned in
10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10318 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10319 ac_tool_warned=yes ;;
10324 STRIP="$ac_cv_prog_STRIP"
10327 test -z "$STRIP" && STRIP=:
10334 if test -n "$ac_tool_prefix"; then
10335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338 printf %s "checking for $ac_word... " >&6; }
10339 if test ${ac_cv_prog_RANLIB+y}
10341 printf %s "(cached) " >&6
10343 if test -n "$RANLIB"; then
10344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10350 case $as_dir in #(((
10353 *) as_dir=$as_dir/ ;;
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10367 RANLIB=$ac_cv_prog_RANLIB
10368 if test -n "$RANLIB"; then
10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10370 printf "%s\n" "$RANLIB" >&6; }
10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 printf "%s\n" "no" >&6; }
10378 if test -z "$ac_cv_prog_RANLIB"; then
10379 ac_ct_RANLIB=$RANLIB
10380 # Extract the first word of "ranlib", so it can be a program name with args.
10381 set dummy ranlib; ac_word=$2
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 printf %s "checking for $ac_word... " >&6; }
10384 if test ${ac_cv_prog_ac_ct_RANLIB+y}
10386 printf %s "(cached) " >&6
10388 if test -n "$ac_ct_RANLIB"; then
10389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10395 case $as_dir in #(((
10398 *) as_dir=$as_dir/ ;;
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_ac_ct_RANLIB="ranlib"
10403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10413 if test -n "$ac_ct_RANLIB"; then
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10415 printf "%s\n" "$ac_ct_RANLIB" >&6; }
10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418 printf "%s\n" "no" >&6; }
10421 if test "x$ac_ct_RANLIB" = x; then
10424 case $cross_compiling:$ac_tool_warned in
10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10427 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10428 ac_tool_warned=yes ;;
10430 RANLIB=$ac_ct_RANLIB
10433 RANLIB="$ac_cv_prog_RANLIB"
10436 test -z "$RANLIB" && RANLIB=:
10443 # Determine commands to create old-style static archives.
10444 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10445 old_postinstall_cmds='chmod 644 $oldlib'
10446 old_postuninstall_cmds=
10448 if test -n "$RANLIB"; then
10450 bitrig* | openbsd*)
10451 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10454 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10457 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10462 lock_old_archive_extraction=yes ;;
10464 lock_old_archive_extraction=no ;;
10505 # If no C compiler was specified, use CC.
10508 # If no C compiler flags were specified, use CFLAGS.
10509 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10511 # Allow CC to be a program name with arguments.
10515 # Check for command to grab the raw symbol name followed by C symbol from nm.
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10517 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10518 if test ${lt_cv_sys_global_symbol_pipe+y}
10520 printf %s "(cached) " >&6
10523 # These are sane defaults that work on at least a few old systems.
10524 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10526 # Character class describing NM global symbol codes.
10527 symcode='[BCDEGRST]'
10529 # Regexp to match symbols that can be accessed directly from C.
10530 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10532 # Define system-specific variables.
10537 cygwin* | mingw* | pw32* | cegcc*)
10538 symcode='[ABCDGISTW]'
10541 if test ia64 = "$host_cpu"; then
10542 symcode='[ABCDEGRST]'
10545 irix* | nonstopux*)
10546 symcode='[BCDEGRST]'
10549 symcode='[BCDEGQRST]'
10560 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10568 # If we're using GNU nm, then use its standard symbol codes.
10569 case `$NM -V 2>&1` in
10570 *GNU* | *'with BFD'*)
10571 symcode='[ABCDGIRSTW]' ;;
10574 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10575 # Gets list of data symbols to import.
10576 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10577 # Adjust the below global symbol transforms to fixup imported variables.
10578 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10579 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10580 lt_c_name_lib_hook="\
10581 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10582 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10584 # Disable hooks by default.
10585 lt_cv_sys_global_symbol_to_import=
10588 lt_c_name_lib_hook=
10591 # Transform an extracted symbol line into a proper C declaration.
10592 # Some systems (esp. on ia64) link data and code symbols differently,
10593 # so use this general approach.
10594 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10596 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10597 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10599 # Transform an extracted symbol line into symbol name and symbol address
10600 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10602 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10603 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10605 # Transform an extracted symbol line into symbol name with lib prefix and
10607 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10608 $lt_c_name_lib_hook\
10609 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10610 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10611 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10613 # Handle CRLF in mingw tool chain
10617 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10621 # Try without a prefix underscore, then with it.
10622 for ac_symprfx in "" "_"; do
10624 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10625 symxfrm="\\1 $ac_symprfx\\2 \\2"
10627 # Write the raw and C identifiers.
10628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10629 # Fake it for dumpbin and say T for any non-static function,
10630 # D for any global variable and I for any imported variable.
10631 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10632 # which start with @ or ?.
10633 lt_cv_sys_global_symbol_pipe="$AWK '"\
10634 " {last_section=section; section=\$ 3};"\
10635 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10636 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10637 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10638 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10639 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10640 " \$ 0!~/External *\|/{next};"\
10641 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10642 " {if(hide[section]) next};"\
10643 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10644 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10645 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10646 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10647 " ' prfx=^$ac_symprfx"
10649 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10651 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10653 # Check to see that the pipe works correctly.
10657 cat > conftest.$ac_ext <<_LT_EOF
10662 void nm_test_func(void);
10663 void nm_test_func(void){}
10667 int main(){nm_test_var='a';nm_test_func();return(0);}
10670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10671 (eval $ac_compile) 2>&5
10673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10674 test $ac_status = 0; }; then
10675 # Now try to grab the symbols.
10677 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10678 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10679 # Try sorting and uniquifying the output.
10680 if sort "$nlist" | uniq > "$nlist"T; then
10681 mv -f "$nlist"T "$nlist"
10686 # Make sure that we snagged all the symbols we need.
10687 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10688 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10689 cat <<_LT_EOF > conftest.$ac_ext
10690 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10691 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10692 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10693 relocations are performed -- see ld's documentation on pseudo-relocs. */
10694 # define LT_DLSYM_CONST
10695 #elif defined __osf__
10696 /* This system does not cope well with relocations in const data. */
10697 # define LT_DLSYM_CONST
10699 # define LT_DLSYM_CONST const
10707 # Now generate the symbol file.
10708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10710 cat <<_LT_EOF >> conftest.$ac_ext
10712 /* The mapping between symbol names and symbols. */
10713 LT_DLSYM_CONST struct {
10717 lt__PROGRAM__LTX_preloaded_symbols[] =
10719 { "@PROGRAM@", (void *) 0 },
10721 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10722 cat <<\_LT_EOF >> conftest.$ac_ext
10726 /* This works around a problem in FreeBSD linker */
10727 #ifdef FREEBSD_WORKAROUND
10728 static const void *lt_preloaded_setup() {
10729 return lt__PROGRAM__LTX_preloaded_symbols;
10737 # Now try linking the two files.
10738 mv conftest.$ac_objext conftstm.$ac_objext
10739 lt_globsym_save_LIBS=$LIBS
10740 lt_globsym_save_CFLAGS=$CFLAGS
10741 LIBS=conftstm.$ac_objext
10742 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10744 (eval $ac_link) 2>&5
10746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10747 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10750 LIBS=$lt_globsym_save_LIBS
10751 CFLAGS=$lt_globsym_save_CFLAGS
10753 echo "cannot find nm_test_func in $nlist" >&5
10756 echo "cannot find nm_test_var in $nlist" >&5
10759 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10762 echo "$progname: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10765 rm -rf conftest* conftst*
10767 # Do not use the global_symbol_pipe unless it works.
10768 if test yes = "$pipe_works"; then
10771 lt_cv_sys_global_symbol_pipe=
10777 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10778 lt_cv_sys_global_symbol_to_cdecl=
10780 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10782 printf "%s\n" "failed" >&6; }
10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10785 printf "%s\n" "ok" >&6; }
10788 # Response file support.
10789 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10790 nm_file_list_spec='@'
10791 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10792 nm_file_list_spec='@'
10831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10832 printf %s "checking for sysroot... " >&6; }
10834 # Check whether --with-sysroot was given.
10835 if test ${with_sysroot+y}
10837 withval=$with_sysroot;
10844 case $with_sysroot in #(
10846 if test yes = "$GCC"; then
10847 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10851 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10857 printf "%s\n" "$with_sysroot" >&6; }
10858 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10863 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10870 printf %s "checking for a working dd... " >&6; }
10871 if test ${ac_cv_path_lt_DD+y}
10873 printf %s "(cached) " >&6
10875 printf 0123456789abcdef0123456789abcdef >conftest.i
10876 cat conftest.i conftest.i >conftest2.i
10878 if test -z "$lt_DD"; then
10879 ac_path_lt_DD_found=false
10880 # Loop through the user's path and test for each of PROGNAME-LIST
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10885 case $as_dir in #(((
10888 *) as_dir=$as_dir/ ;;
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10894 as_fn_executable_p "$ac_path_lt_DD" || continue
10895 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10896 cmp -s conftest.i conftest.out \
10897 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10899 $ac_path_lt_DD_found && break 3
10904 if test -z "$ac_cv_path_lt_DD"; then
10908 ac_cv_path_lt_DD=$lt_DD
10911 rm -f conftest.i conftest2.i conftest.out
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10914 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10918 printf %s "checking how to truncate binary pipes... " >&6; }
10919 if test ${lt_cv_truncate_bin+y}
10921 printf %s "(cached) " >&6
10923 printf 0123456789abcdef0123456789abcdef >conftest.i
10924 cat conftest.i conftest.i >conftest2.i
10925 lt_cv_truncate_bin=
10926 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10927 cmp -s conftest.i conftest.out \
10928 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10930 rm -f conftest.i conftest2.i conftest.out
10931 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10934 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10942 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10943 func_cc_basename ()
10945 for cc_temp in $*""; do
10947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10953 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10956 # Check whether --enable-libtool-lock was given.
10957 if test ${enable_libtool_lock+y}
10959 enableval=$enable_libtool_lock;
10962 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10964 # Some flags need to be propagated to the compiler or linker for good
10968 # Find out what ABI is being produced by ac_compile, and set mode
10969 # options accordingly.
10970 echo 'int i;' > conftest.$ac_ext
10971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10972 (eval $ac_compile) 2>&5
10974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10975 test $ac_status = 0; }; then
10976 case `$FILECMD conftest.$ac_objext` in
10988 # Find out what ABI is being produced by ac_compile, and set linker
10989 # options accordingly.
10990 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10992 (eval $ac_compile) 2>&5
10994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10995 test $ac_status = 0; }; then
10996 if test yes = "$lt_cv_prog_gnu_ld"; then
10997 case `$FILECMD conftest.$ac_objext` in
10999 LD="${LD-ld} -melf32bsmip"
11002 LD="${LD-ld} -melf32bmipn32"
11005 LD="${LD-ld} -melf64bmip"
11009 case `$FILECMD conftest.$ac_objext` in
11026 # Find out what ABI is being produced by ac_compile, and set linker
11027 # options accordingly.
11028 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11030 (eval $ac_compile) 2>&5
11032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11033 test $ac_status = 0; }; then
11035 case `$FILECMD conftest.$ac_objext` in
11043 case `$FILECMD conftest.$ac_objext` in
11045 emul="${emul}btsmip"
11048 emul="${emul}ltsmip"
11051 case `$FILECMD conftest.$ac_objext` in
11056 LD="${LD-ld} -m $emul"
11061 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11062 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11063 # Find out what ABI is being produced by ac_compile, and set linker
11064 # options accordingly. Note that the listed cases only cover the
11065 # situations where additional linker options are needed (such as when
11066 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11067 # vice versa); the common cases where no linker options are needed do
11068 # not appear in the list.
11069 echo 'int i;' > conftest.$ac_ext
11070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11071 (eval $ac_compile) 2>&5
11073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11074 test $ac_status = 0; }; then
11075 case `$FILECMD conftest.o` in
11078 x86_64-*kfreebsd*-gnu)
11079 LD="${LD-ld} -m elf_i386_fbsd"
11082 case `$FILECMD conftest.o` in
11084 LD="${LD-ld} -m elf32_x86_64"
11087 LD="${LD-ld} -m elf_i386"
11091 powerpc64le-*linux*)
11092 LD="${LD-ld} -m elf32lppclinux"
11095 LD="${LD-ld} -m elf32ppclinux"
11098 LD="${LD-ld} -m elf_s390"
11101 LD="${LD-ld} -m elf32_sparc"
11107 x86_64-*kfreebsd*-gnu)
11108 LD="${LD-ld} -m elf_x86_64_fbsd"
11111 LD="${LD-ld} -m elf_x86_64"
11114 LD="${LD-ld} -m elf64lppc"
11117 LD="${LD-ld} -m elf64ppc"
11119 s390*-*linux*|s390*-*tpf*)
11120 LD="${LD-ld} -m elf64_s390"
11123 LD="${LD-ld} -m elf64_sparc"
11133 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11134 SAVE_CFLAGS=$CFLAGS
11135 CFLAGS="$CFLAGS -belf"
11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11137 printf %s "checking whether the C compiler needs -belf... " >&6; }
11138 if test ${lt_cv_cc_needs_belf+y}
11140 printf %s "(cached) " >&6
11143 ac_cpp='$CPP $CPPFLAGS'
11144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11158 if ac_fn_c_try_link "$LINENO"
11160 lt_cv_cc_needs_belf=yes
11162 lt_cv_cc_needs_belf=no
11164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11165 conftest$ac_exeext conftest.$ac_ext
11167 ac_cpp='$CPP $CPPFLAGS'
11168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11174 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11175 if test yes != "$lt_cv_cc_needs_belf"; then
11176 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11177 CFLAGS=$SAVE_CFLAGS
11181 # Find out what ABI is being produced by ac_compile, and set linker
11182 # options accordingly.
11183 echo 'int i;' > conftest.$ac_ext
11184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11185 (eval $ac_compile) 2>&5
11187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11188 test $ac_status = 0; }; then
11189 case `$FILECMD conftest.o` in
11191 case $lt_cv_prog_gnu_ld in
11194 i?86-*-solaris*|x86_64-*-solaris*)
11195 LD="${LD-ld} -m elf_x86_64"
11198 LD="${LD-ld} -m elf64_sparc"
11201 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11202 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11207 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11219 need_locks=$enable_libtool_lock
11221 if test -n "$ac_tool_prefix"; then
11222 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11223 set dummy ${ac_tool_prefix}mt; ac_word=$2
11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 printf %s "checking for $ac_word... " >&6; }
11226 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11228 printf %s "(cached) " >&6
11230 if test -n "$MANIFEST_TOOL"; then
11231 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11237 case $as_dir in #(((
11240 *) as_dir=$as_dir/ ;;
11242 for ac_exec_ext in '' $ac_executable_extensions; do
11243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11244 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11254 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11255 if test -n "$MANIFEST_TOOL"; then
11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11257 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 printf "%s\n" "no" >&6; }
11265 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11266 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11267 # Extract the first word of "mt", so it can be a program name with args.
11268 set dummy mt; ac_word=$2
11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270 printf %s "checking for $ac_word... " >&6; }
11271 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11273 printf %s "(cached) " >&6
11275 if test -n "$ac_ct_MANIFEST_TOOL"; then
11276 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279 for as_dir in $PATH
11282 case $as_dir in #(((
11285 *) as_dir=$as_dir/ ;;
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11289 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11299 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11300 if test -n "$ac_ct_MANIFEST_TOOL"; then
11301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11302 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 printf "%s\n" "no" >&6; }
11308 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11311 case $cross_compiling:$ac_tool_warned in
11313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11315 ac_tool_warned=yes ;;
11317 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11320 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11323 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11325 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11326 if test ${lt_cv_path_mainfest_tool+y}
11328 printf %s "(cached) " >&6
11330 lt_cv_path_mainfest_tool=no
11331 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11332 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11333 cat conftest.err >&5
11334 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11335 lt_cv_path_mainfest_tool=yes
11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11340 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11341 if test yes != "$lt_cv_path_mainfest_tool"; then
11351 rhapsody* | darwin*)
11352 if test -n "$ac_tool_prefix"; then
11353 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11354 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 printf %s "checking for $ac_word... " >&6; }
11357 if test ${ac_cv_prog_DSYMUTIL+y}
11359 printf %s "(cached) " >&6
11361 if test -n "$DSYMUTIL"; then
11362 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11368 case $as_dir in #(((
11371 *) as_dir=$as_dir/ ;;
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11375 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11385 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11386 if test -n "$DSYMUTIL"; then
11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11388 printf "%s\n" "$DSYMUTIL" >&6; }
11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 printf "%s\n" "no" >&6; }
11396 if test -z "$ac_cv_prog_DSYMUTIL"; then
11397 ac_ct_DSYMUTIL=$DSYMUTIL
11398 # Extract the first word of "dsymutil", so it can be a program name with args.
11399 set dummy dsymutil; ac_word=$2
11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 printf %s "checking for $ac_word... " >&6; }
11402 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11404 printf %s "(cached) " >&6
11406 if test -n "$ac_ct_DSYMUTIL"; then
11407 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410 for as_dir in $PATH
11413 case $as_dir in #(((
11416 *) as_dir=$as_dir/ ;;
11418 for ac_exec_ext in '' $ac_executable_extensions; do
11419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11420 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11430 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11431 if test -n "$ac_ct_DSYMUTIL"; then
11432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11433 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 printf "%s\n" "no" >&6; }
11439 if test "x$ac_ct_DSYMUTIL" = x; then
11442 case $cross_compiling:$ac_tool_warned in
11444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11445 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11446 ac_tool_warned=yes ;;
11448 DSYMUTIL=$ac_ct_DSYMUTIL
11451 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11454 if test -n "$ac_tool_prefix"; then
11455 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11456 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11458 printf %s "checking for $ac_word... " >&6; }
11459 if test ${ac_cv_prog_NMEDIT+y}
11461 printf %s "(cached) " >&6
11463 if test -n "$NMEDIT"; then
11464 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11470 case $as_dir in #(((
11473 *) as_dir=$as_dir/ ;;
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11477 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11487 NMEDIT=$ac_cv_prog_NMEDIT
11488 if test -n "$NMEDIT"; then
11489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11490 printf "%s\n" "$NMEDIT" >&6; }
11492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 printf "%s\n" "no" >&6; }
11498 if test -z "$ac_cv_prog_NMEDIT"; then
11499 ac_ct_NMEDIT=$NMEDIT
11500 # Extract the first word of "nmedit", so it can be a program name with args.
11501 set dummy nmedit; ac_word=$2
11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 printf %s "checking for $ac_word... " >&6; }
11504 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11506 printf %s "(cached) " >&6
11508 if test -n "$ac_ct_NMEDIT"; then
11509 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11515 case $as_dir in #(((
11518 *) as_dir=$as_dir/ ;;
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11522 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11532 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11533 if test -n "$ac_ct_NMEDIT"; then
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11535 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 printf "%s\n" "no" >&6; }
11541 if test "x$ac_ct_NMEDIT" = x; then
11544 case $cross_compiling:$ac_tool_warned in
11546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11547 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11548 ac_tool_warned=yes ;;
11550 NMEDIT=$ac_ct_NMEDIT
11553 NMEDIT="$ac_cv_prog_NMEDIT"
11556 if test -n "$ac_tool_prefix"; then
11557 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11558 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560 printf %s "checking for $ac_word... " >&6; }
11561 if test ${ac_cv_prog_LIPO+y}
11563 printf %s "(cached) " >&6
11565 if test -n "$LIPO"; then
11566 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11572 case $as_dir in #(((
11575 *) as_dir=$as_dir/ ;;
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11579 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11589 LIPO=$ac_cv_prog_LIPO
11590 if test -n "$LIPO"; then
11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11592 printf "%s\n" "$LIPO" >&6; }
11594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 printf "%s\n" "no" >&6; }
11600 if test -z "$ac_cv_prog_LIPO"; then
11602 # Extract the first word of "lipo", so it can be a program name with args.
11603 set dummy lipo; ac_word=$2
11604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605 printf %s "checking for $ac_word... " >&6; }
11606 if test ${ac_cv_prog_ac_ct_LIPO+y}
11608 printf %s "(cached) " >&6
11610 if test -n "$ac_ct_LIPO"; then
11611 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11617 case $as_dir in #(((
11620 *) as_dir=$as_dir/ ;;
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11624 ac_cv_prog_ac_ct_LIPO="lipo"
11625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11634 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11635 if test -n "$ac_ct_LIPO"; then
11636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11637 printf "%s\n" "$ac_ct_LIPO" >&6; }
11639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 printf "%s\n" "no" >&6; }
11643 if test "x$ac_ct_LIPO" = x; then
11646 case $cross_compiling:$ac_tool_warned in
11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11649 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11650 ac_tool_warned=yes ;;
11655 LIPO="$ac_cv_prog_LIPO"
11658 if test -n "$ac_tool_prefix"; then
11659 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11660 set dummy ${ac_tool_prefix}otool; ac_word=$2
11661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 printf %s "checking for $ac_word... " >&6; }
11663 if test ${ac_cv_prog_OTOOL+y}
11665 printf %s "(cached) " >&6
11667 if test -n "$OTOOL"; then
11668 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11674 case $as_dir in #(((
11677 *) as_dir=$as_dir/ ;;
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11681 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11691 OTOOL=$ac_cv_prog_OTOOL
11692 if test -n "$OTOOL"; then
11693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11694 printf "%s\n" "$OTOOL" >&6; }
11696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 printf "%s\n" "no" >&6; }
11702 if test -z "$ac_cv_prog_OTOOL"; then
11704 # Extract the first word of "otool", so it can be a program name with args.
11705 set dummy otool; ac_word=$2
11706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 printf %s "checking for $ac_word... " >&6; }
11708 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11710 printf %s "(cached) " >&6
11712 if test -n "$ac_ct_OTOOL"; then
11713 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11719 case $as_dir in #(((
11722 *) as_dir=$as_dir/ ;;
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11726 ac_cv_prog_ac_ct_OTOOL="otool"
11727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11736 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11737 if test -n "$ac_ct_OTOOL"; then
11738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11739 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 printf "%s\n" "no" >&6; }
11745 if test "x$ac_ct_OTOOL" = x; then
11748 case $cross_compiling:$ac_tool_warned in
11750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11751 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11752 ac_tool_warned=yes ;;
11757 OTOOL="$ac_cv_prog_OTOOL"
11760 if test -n "$ac_tool_prefix"; then
11761 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11762 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 printf %s "checking for $ac_word... " >&6; }
11765 if test ${ac_cv_prog_OTOOL64+y}
11767 printf %s "(cached) " >&6
11769 if test -n "$OTOOL64"; then
11770 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11776 case $as_dir in #(((
11779 *) as_dir=$as_dir/ ;;
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11783 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11793 OTOOL64=$ac_cv_prog_OTOOL64
11794 if test -n "$OTOOL64"; then
11795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11796 printf "%s\n" "$OTOOL64" >&6; }
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 printf "%s\n" "no" >&6; }
11804 if test -z "$ac_cv_prog_OTOOL64"; then
11805 ac_ct_OTOOL64=$OTOOL64
11806 # Extract the first word of "otool64", so it can be a program name with args.
11807 set dummy otool64; ac_word=$2
11808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 printf %s "checking for $ac_word... " >&6; }
11810 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11812 printf %s "(cached) " >&6
11814 if test -n "$ac_ct_OTOOL64"; then
11815 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11821 case $as_dir in #(((
11824 *) as_dir=$as_dir/ ;;
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11828 ac_cv_prog_ac_ct_OTOOL64="otool64"
11829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11838 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11839 if test -n "$ac_ct_OTOOL64"; then
11840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11841 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 printf "%s\n" "no" >&6; }
11847 if test "x$ac_ct_OTOOL64" = x; then
11850 case $cross_compiling:$ac_tool_warned in
11852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11853 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11854 ac_tool_warned=yes ;;
11856 OTOOL64=$ac_ct_OTOOL64
11859 OTOOL64="$ac_cv_prog_OTOOL64"
11888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11889 printf %s "checking for -single_module linker flag... " >&6; }
11890 if test ${lt_cv_apple_cc_single_mod+y}
11892 printf %s "(cached) " >&6
11894 lt_cv_apple_cc_single_mod=no
11895 if test -z "$LT_MULTI_MODULE"; then
11896 # By default we will add the -single_module flag. You can override
11897 # by either setting the environment variable LT_MULTI_MODULE
11898 # non-empty at configure time, or by adding -multi_module to the
11900 rm -rf libconftest.dylib*
11901 echo "int foo(void){return 1;}" > conftest.c
11902 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11903 -dynamiclib -Wl,-single_module conftest.c" >&5
11904 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11905 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11907 # If there is a non-empty error log, and "single_module"
11908 # appears in it, assume the flag caused a linker warning
11909 if test -s conftest.err && $GREP single_module conftest.err; then
11910 cat conftest.err >&5
11911 # Otherwise, if the output was created with a 0 exit code from
11912 # the compiler, it worked.
11913 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11914 lt_cv_apple_cc_single_mod=yes
11916 cat conftest.err >&5
11918 rm -rf libconftest.dylib*
11922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11923 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11926 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11927 if test ${lt_cv_ld_exported_symbols_list+y}
11929 printf %s "(cached) " >&6
11931 lt_cv_ld_exported_symbols_list=no
11932 save_LDFLAGS=$LDFLAGS
11933 echo "_main" > conftest.sym
11934 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11945 if ac_fn_c_try_link "$LINENO"
11947 lt_cv_ld_exported_symbols_list=yes
11949 lt_cv_ld_exported_symbols_list=no
11951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11952 conftest$ac_exeext conftest.$ac_ext
11953 LDFLAGS=$save_LDFLAGS
11956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11957 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11960 printf %s "checking for -force_load linker flag... " >&6; }
11961 if test ${lt_cv_ld_force_load+y}
11963 printf %s "(cached) " >&6
11965 lt_cv_ld_force_load=no
11966 cat > conftest.c << _LT_EOF
11967 int forced_loaded() { return 2;}
11969 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11970 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11971 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11972 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11973 echo "$RANLIB libconftest.a" >&5
11974 $RANLIB libconftest.a 2>&5
11975 cat > conftest.c << _LT_EOF
11976 int main() { return 0;}
11978 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11979 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11981 if test -s conftest.err && $GREP force_load conftest.err; then
11982 cat conftest.err >&5
11983 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11984 lt_cv_ld_force_load=yes
11986 cat conftest.err >&5
11988 rm -f conftest.err libconftest.a conftest conftest.c
11989 rm -rf conftest.dSYM
11992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11993 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11995 rhapsody* | darwin1.[012])
11996 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11998 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12000 case $MACOSX_DEPLOYMENT_TARGET,$host in
12001 10.[012],*|,*powerpc*-darwin[5-8]*)
12002 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12004 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12008 if test yes = "$lt_cv_apple_cc_single_mod"; then
12009 _lt_dar_single_mod='$single_module'
12011 if test yes = "$lt_cv_ld_exported_symbols_list"; then
12012 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12014 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12016 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12017 _lt_dsymutil='~$DSYMUTIL $lib || :'
12024 # func_munge_path_list VARIABLE PATH
12025 # -----------------------------------
12026 # VARIABLE is name of variable containing _space_ separated list of
12027 # directories to be munged by the contents of PATH, which is string
12030 # string "DIR[ DIR]" will be prepended to VARIABLE
12032 # string "DIR[ DIR]" will be appended to VARIABLE
12033 # "DIRP[:DIRP]::[DIRA:]DIRA"
12034 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12035 # "DIRA[ DIRA]" will be appended to VARIABLE
12037 # VARIABLE will be replaced by "DIR[ DIR]"
12038 func_munge_path_list ()
12044 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12047 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12050 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12051 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12054 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12059 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12061 if test "x$ac_cv_header_dlfcn_h" = xyes
12063 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12067 # ------------------------------------ #
12068 # Determine libtool default behavior #
12069 # ------------------------------------ #
12072 # Default behavior is to enable shared and static libraries on systems
12073 # where libtool knows how to build both library versions, and does not
12074 # require separate configuration and build runs for each flavor.
12077 xc_lt_want_enable_shared='yes'
12078 xc_lt_want_enable_static='yes'
12081 # User may have disabled shared or static libraries.
12083 case "x$enable_shared" in # (
12085 xc_lt_want_enable_shared='no'
12088 case "x$enable_static" in # (
12090 xc_lt_want_enable_static='no'
12093 if test "x$xc_lt_want_enable_shared" = 'xno' &&
12094 test "x$xc_lt_want_enable_static" = 'xno'; then
12095 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
12099 # Default behavior on systems that require independent configuration
12100 # and build runs for shared and static is to enable shared libraries
12101 # and disable static ones. On these systems option '--disable-shared'
12102 # must be used in order to build a proper static library.
12105 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
12106 test "x$xc_lt_want_enable_static" = 'xyes'; then
12107 case $host_os in # (
12108 pw32* | cegcc* | os2* | aix*)
12109 xc_lt_want_enable_static='no'
12115 # Make libtool aware of current shared and static library preferences
12116 # taking in account that, depending on host characteristics, libtool
12117 # may modify these option preferences later in this configure script.
12120 enable_shared=$xc_lt_want_enable_shared
12121 enable_static=$xc_lt_want_enable_static
12124 # Default behavior is to build PIC objects for shared libraries and
12125 # non-PIC objects for static libraries.
12128 xc_lt_want_with_pic='default'
12131 # User may have specified PIC preference.
12134 case "x$with_pic" in # ((
12136 xc_lt_want_with_pic='no'
12139 xc_lt_want_with_pic='yes'
12144 # Default behavior on some systems where building a shared library out
12145 # of non-PIC compiled objects will fail with following linker error
12146 # "relocation R_X86_64_32 can not be used when making a shared object"
12147 # is to build PIC objects even for static libraries. This behavior may
12148 # be overridden using 'configure --disable-shared --without-pic'.
12151 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
12152 case $host_cpu in # (
12153 x86_64 | amd64 | ia64)
12154 case $host_os in # (
12155 linux* | freebsd* | midnightbsd*)
12156 xc_lt_want_with_pic='yes'
12164 # Make libtool aware of current PIC preference taking in account that,
12165 # depending on host characteristics, libtool may modify PIC default
12166 # behavior to fit host system idiosyncrasies later in this script.
12169 with_pic=$xc_lt_want_with_pic
12171 ## ----------------------- ##
12172 ## Start of libtool code ##
12173 ## ----------------------- ##
12179 enable_win32_dll=yes
12182 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12183 if test -n "$ac_tool_prefix"; then
12184 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12185 set dummy ${ac_tool_prefix}as; ac_word=$2
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 printf %s "checking for $ac_word... " >&6; }
12188 if test ${ac_cv_prog_AS+y}
12190 printf %s "(cached) " >&6
12192 if test -n "$AS"; then
12193 ac_cv_prog_AS="$AS" # Let the user override the test.
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12199 case $as_dir in #(((
12202 *) as_dir=$as_dir/ ;;
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12206 ac_cv_prog_AS="${ac_tool_prefix}as"
12207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12217 if test -n "$AS"; then
12218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12219 printf "%s\n" "$AS" >&6; }
12221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 printf "%s\n" "no" >&6; }
12227 if test -z "$ac_cv_prog_AS"; then
12229 # Extract the first word of "as", so it can be a program name with args.
12230 set dummy as; ac_word=$2
12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 printf %s "checking for $ac_word... " >&6; }
12233 if test ${ac_cv_prog_ac_ct_AS+y}
12235 printf %s "(cached) " >&6
12237 if test -n "$ac_ct_AS"; then
12238 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12244 case $as_dir in #(((
12247 *) as_dir=$as_dir/ ;;
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12251 ac_cv_prog_ac_ct_AS="as"
12252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12261 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12262 if test -n "$ac_ct_AS"; then
12263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12264 printf "%s\n" "$ac_ct_AS" >&6; }
12266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 printf "%s\n" "no" >&6; }
12270 if test "x$ac_ct_AS" = x; then
12273 case $cross_compiling:$ac_tool_warned in
12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12277 ac_tool_warned=yes ;;
12282 AS="$ac_cv_prog_AS"
12285 if test -n "$ac_tool_prefix"; then
12286 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12287 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12289 printf %s "checking for $ac_word... " >&6; }
12290 if test ${ac_cv_prog_DLLTOOL+y}
12292 printf %s "(cached) " >&6
12294 if test -n "$DLLTOOL"; then
12295 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in $PATH
12301 case $as_dir in #(((
12304 *) as_dir=$as_dir/ ;;
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12308 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12318 DLLTOOL=$ac_cv_prog_DLLTOOL
12319 if test -n "$DLLTOOL"; then
12320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12321 printf "%s\n" "$DLLTOOL" >&6; }
12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 printf "%s\n" "no" >&6; }
12329 if test -z "$ac_cv_prog_DLLTOOL"; then
12330 ac_ct_DLLTOOL=$DLLTOOL
12331 # Extract the first word of "dlltool", so it can be a program name with args.
12332 set dummy dlltool; ac_word=$2
12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12334 printf %s "checking for $ac_word... " >&6; }
12335 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12337 printf %s "(cached) " >&6
12339 if test -n "$ac_ct_DLLTOOL"; then
12340 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12346 case $as_dir in #(((
12349 *) as_dir=$as_dir/ ;;
12351 for ac_exec_ext in '' $ac_executable_extensions; do
12352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12353 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12363 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12364 if test -n "$ac_ct_DLLTOOL"; then
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12366 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 printf "%s\n" "no" >&6; }
12372 if test "x$ac_ct_DLLTOOL" = x; then
12375 case $cross_compiling:$ac_tool_warned in
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12378 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12379 ac_tool_warned=yes ;;
12381 DLLTOOL=$ac_ct_DLLTOOL
12384 DLLTOOL="$ac_cv_prog_DLLTOOL"
12387 if test -n "$ac_tool_prefix"; then
12388 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12389 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 printf %s "checking for $ac_word... " >&6; }
12392 if test ${ac_cv_prog_OBJDUMP+y}
12394 printf %s "(cached) " >&6
12396 if test -n "$OBJDUMP"; then
12397 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12403 case $as_dir in #(((
12406 *) as_dir=$as_dir/ ;;
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12410 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12420 OBJDUMP=$ac_cv_prog_OBJDUMP
12421 if test -n "$OBJDUMP"; then
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12423 printf "%s\n" "$OBJDUMP" >&6; }
12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 printf "%s\n" "no" >&6; }
12431 if test -z "$ac_cv_prog_OBJDUMP"; then
12432 ac_ct_OBJDUMP=$OBJDUMP
12433 # Extract the first word of "objdump", so it can be a program name with args.
12434 set dummy objdump; ac_word=$2
12435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 printf %s "checking for $ac_word... " >&6; }
12437 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12439 printf %s "(cached) " >&6
12441 if test -n "$ac_ct_OBJDUMP"; then
12442 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12448 case $as_dir in #(((
12451 *) as_dir=$as_dir/ ;;
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12455 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12465 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12466 if test -n "$ac_ct_OBJDUMP"; then
12467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12468 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 printf "%s\n" "no" >&6; }
12474 if test "x$ac_ct_OBJDUMP" = x; then
12477 case $cross_compiling:$ac_tool_warned in
12479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12480 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12481 ac_tool_warned=yes ;;
12483 OBJDUMP=$ac_ct_OBJDUMP
12486 OBJDUMP="$ac_cv_prog_OBJDUMP"
12492 test -z "$AS" && AS=as
12498 test -z "$DLLTOOL" && DLLTOOL=dlltool
12504 test -z "$OBJDUMP" && OBJDUMP=objdump
12516 # Check whether --enable-shared was given.
12517 if test ${enable_shared+y}
12519 enableval=$enable_shared; p=${PACKAGE-default}
12521 yes) enable_shared=yes ;;
12522 no) enable_shared=no ;;
12525 # Look at the argument we got. We use all the common list separators.
12526 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12527 for pkg in $enableval; do
12529 if test "X$pkg" = "X$p"; then
12548 # Check whether --enable-static was given.
12549 if test ${enable_static+y}
12551 enableval=$enable_static; p=${PACKAGE-default}
12553 yes) enable_static=yes ;;
12554 no) enable_static=no ;;
12557 # Look at the argument we got. We use all the common list separators.
12558 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12559 for pkg in $enableval; do
12561 if test "X$pkg" = "X$p"; then
12581 # Check whether --with-pic was given.
12582 if test ${with_pic+y}
12584 withval=$with_pic; lt_p=${PACKAGE-default}
12586 yes|no) pic_mode=$withval ;;
12589 # Look at the argument we got. We use all the common list separators.
12590 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12591 for lt_pkg in $withval; do
12593 if test "X$lt_pkg" = "X$lt_p"; then
12611 # Check whether --enable-fast-install was given.
12612 if test ${enable_fast_install+y}
12614 enableval=$enable_fast_install; p=${PACKAGE-default}
12616 yes) enable_fast_install=yes ;;
12617 no) enable_fast_install=no ;;
12619 enable_fast_install=no
12620 # Look at the argument we got. We use all the common list separators.
12621 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12622 for pkg in $enableval; do
12624 if test "X$pkg" = "X$p"; then
12625 enable_fast_install=yes
12632 enable_fast_install=yes
12642 shared_archive_member_spec=
12643 case $host,$enable_shared in
12644 power*-*-aix[5-9]*,yes)
12645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12646 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12648 # Check whether --with-aix-soname was given.
12649 if test ${with_aix_soname+y}
12651 withval=$with_aix_soname; case $withval in
12655 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12658 lt_cv_with_aix_soname=$with_aix_soname
12660 if test ${lt_cv_with_aix_soname+y}
12662 printf %s "(cached) " >&6
12664 lt_cv_with_aix_soname=aix
12667 with_aix_soname=$lt_cv_with_aix_soname
12670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12671 printf "%s\n" "$with_aix_soname" >&6; }
12672 if test aix != "$with_aix_soname"; then
12673 # For the AIX way of multilib, we name the shared archive member
12674 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12675 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12676 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12677 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12678 if test 64 = "${OBJECT_MODE-32}"; then
12679 shared_archive_member_spec=shr_64
12681 shared_archive_member_spec=shr
12686 with_aix_soname=aix
12699 # This can be used to rebuild libtool when needed
12700 LIBTOOL_DEPS=$ltmain
12702 # Always use our own libtool.
12703 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12734 test -z "$LN_S" && LN_S="ln -s"
12749 if test -n "${ZSH_VERSION+set}"; then
12750 setopt NO_GLOB_SUBST
12753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12754 printf %s "checking for objdir... " >&6; }
12755 if test ${lt_cv_objdir+y}
12757 printf %s "(cached) " >&6
12759 rm -f .libs 2>/dev/null
12760 mkdir .libs 2>/dev/null
12761 if test -d .libs; then
12764 # MS-DOS does not allow filenames that begin with a dot.
12767 rmdir .libs 2>/dev/null
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12770 printf "%s\n" "$lt_cv_objdir" >&6; }
12771 objdir=$lt_cv_objdir
12777 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12784 # AIX sometimes has problems with the GCC collect2 program. For some
12785 # reason, if we set the COLLECT_NAMES environment variable, the problems
12786 # vanish in a puff of smoke.
12787 if test set != "${COLLECT_NAMES+set}"; then
12789 export COLLECT_NAMES
12794 # Global variables:
12796 can_build_shared=yes
12798 # All known linkers require a '.a' archive for static linking (except MSVC and
12799 # ICC, which need '.lib').
12802 with_gnu_ld=$lt_cv_prog_gnu_ld
12807 # Set sane defaults for various variables
12808 test -z "$CC" && CC=cc
12809 test -z "$LTCC" && LTCC=$CC
12810 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12811 test -z "$LD" && LD=ld
12812 test -z "$ac_objext" && ac_objext=o
12814 func_cc_basename $compiler
12815 cc_basename=$func_cc_basename_result
12818 # Only perform the check for file, if the check method requires it
12819 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12820 case $deplibs_check_method in
12822 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12824 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12825 if test ${lt_cv_path_MAGIC_CMD+y}
12827 printf %s "(cached) " >&6
12831 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12834 lt_save_MAGIC_CMD=$MAGIC_CMD
12835 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12837 for ac_dir in $ac_dummy; do
12839 test -z "$ac_dir" && ac_dir=.
12840 if test -f "$ac_dir/${ac_tool_prefix}file"; then
12841 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12842 if test -n "$file_magic_test_file"; then
12843 case $deplibs_check_method in
12845 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12846 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12848 $EGREP "$file_magic_regex" > /dev/null; then
12853 *** Warning: the command libtool uses to detect shared libraries,
12854 *** $file_magic_cmd, produces output that libtool cannot recognize.
12855 *** The result is that libtool may fail to recognize shared libraries
12856 *** as such. This will affect the creation of libtool libraries that
12857 *** depend on shared libraries, but programs linked with such libtool
12858 *** libraries will work regardless of this problem. Nevertheless, you
12859 *** may want to report the problem to your system manager and/or to
12860 *** bug-libtool@gnu.org
12870 MAGIC_CMD=$lt_save_MAGIC_CMD
12875 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12876 if test -n "$MAGIC_CMD"; then
12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12878 printf "%s\n" "$MAGIC_CMD" >&6; }
12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881 printf "%s\n" "no" >&6; }
12888 if test -z "$lt_cv_path_MAGIC_CMD"; then
12889 if test -n "$ac_tool_prefix"; then
12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12891 printf %s "checking for file... " >&6; }
12892 if test ${lt_cv_path_MAGIC_CMD+y}
12894 printf %s "(cached) " >&6
12898 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12901 lt_save_MAGIC_CMD=$MAGIC_CMD
12902 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12904 for ac_dir in $ac_dummy; do
12906 test -z "$ac_dir" && ac_dir=.
12907 if test -f "$ac_dir/file"; then
12908 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12909 if test -n "$file_magic_test_file"; then
12910 case $deplibs_check_method in
12912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12913 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12915 $EGREP "$file_magic_regex" > /dev/null; then
12920 *** Warning: the command libtool uses to detect shared libraries,
12921 *** $file_magic_cmd, produces output that libtool cannot recognize.
12922 *** The result is that libtool may fail to recognize shared libraries
12923 *** as such. This will affect the creation of libtool libraries that
12924 *** depend on shared libraries, but programs linked with such libtool
12925 *** libraries will work regardless of this problem. Nevertheless, you
12926 *** may want to report the problem to your system manager and/or to
12927 *** bug-libtool@gnu.org
12937 MAGIC_CMD=$lt_save_MAGIC_CMD
12942 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12943 if test -n "$MAGIC_CMD"; then
12944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12945 printf "%s\n" "$MAGIC_CMD" >&6; }
12947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 printf "%s\n" "no" >&6; }
12961 # Use C for the default configuration in the libtool script
12965 ac_cpp='$CPP $CPPFLAGS'
12966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12971 # Source file extension for C test sources.
12974 # Object file extension for compiled C test sources.
12978 # Code to be used in simple compile tests
12979 lt_simple_compile_test_code="int some_variable = 0;"
12981 # Code to be used in simple link tests
12982 lt_simple_link_test_code='int main(){return(0);}'
12990 # If no C compiler was specified, use CC.
12993 # If no C compiler flags were specified, use CFLAGS.
12994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12996 # Allow CC to be a program name with arguments.
12999 # Save the default compiler, since it gets overwritten when the other
13000 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13001 compiler_DEFAULT=$CC
13003 # save warnings/boilerplate of simple test code
13004 ac_outfile=conftest.$ac_objext
13005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13007 _lt_compiler_boilerplate=`cat conftest.err`
13010 ac_outfile=conftest.$ac_objext
13011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13013 _lt_linker_boilerplate=`cat conftest.err`
13018 ## There is no encapsulation within the following macros, do not change
13019 ## the running order or otherwise move them around unless you know exactly
13020 ## what you are doing...
13021 if test -n "$compiler"; then
13023 lt_prog_compiler_no_builtin_flag=
13025 if test yes = "$GCC"; then
13026 case $cc_basename in
13028 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13030 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13034 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13035 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13037 printf %s "(cached) " >&6
13039 lt_cv_prog_compiler_rtti_exceptions=no
13040 ac_outfile=conftest.$ac_objext
13041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13042 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13043 # Insert the option either (1) after the last *FLAGS variable, or
13044 # (2) before a word containing "conftest.", or (3) at the end.
13045 # Note that $ac_compile itself does not contain backslashes and begins
13046 # with a dollar sign (not a hyphen), so the echo should work correctly.
13047 # The option is referenced via a variable to avoid confusing sed.
13048 lt_compile=`echo "$ac_compile" | $SED \
13049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13051 -e 's:$: $lt_compiler_flag:'`
13052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13053 (eval "$lt_compile" 2>conftest.err)
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 if (exit $ac_status) && test -s "$ac_outfile"; then
13058 # The compiler can only warn and ignore the option if not recognized
13059 # So say no if there are warnings other than the usual output.
13060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13063 lt_cv_prog_compiler_rtti_exceptions=yes
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13070 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13072 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13073 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13085 lt_prog_compiler_wl=
13086 lt_prog_compiler_pic=
13087 lt_prog_compiler_static=
13090 if test yes = "$GCC"; then
13091 lt_prog_compiler_wl='-Wl,'
13092 lt_prog_compiler_static='-static'
13096 # All AIX code is PIC.
13097 if test ia64 = "$host_cpu"; then
13098 # AIX 5 now supports IA64 processor
13099 lt_prog_compiler_static='-Bstatic'
13101 lt_prog_compiler_pic='-fPIC'
13107 # see comment about AmigaOS4 .so support
13108 lt_prog_compiler_pic='-fPIC'
13111 # FIXME: we need at least 68020 code to build shared libraries, but
13112 # adding the '-m68020' flag to GCC prevents building anything better,
13114 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13119 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13120 # PIC is the default for these OSes.
13123 mingw* | cygwin* | pw32* | os2* | cegcc*)
13124 # This hack is so that the source file can tell whether it is being
13125 # built for inclusion in a dll (and should export symbols for example).
13126 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13127 # (--disable-auto-import) libraries
13128 lt_prog_compiler_pic='-DDLL_EXPORT'
13131 lt_prog_compiler_static='$wl-static'
13136 darwin* | rhapsody*)
13137 # PIC is the default on this platform
13138 # Common symbols not allowed in MH_DYLIB files
13139 lt_prog_compiler_pic='-fno-common'
13143 # PIC is the default for Haiku.
13144 # The "-static" flag exists, but is broken.
13145 lt_prog_compiler_static=
13149 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13150 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13151 # sets the default TLS model and affects inlining.
13157 lt_prog_compiler_pic='-fPIC'
13163 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13164 # Instead, we relocate shared libraries at runtime.
13168 # Just because we use GCC doesn't mean we suddenly get shared libraries
13169 # on systems that don't support them.
13170 lt_prog_compiler_can_build_shared=no
13175 # QNX uses GNU C++, but need to define -shared option too, otherwise
13176 # it will coredump.
13177 lt_prog_compiler_pic='-fPIC -shared'
13181 if test -d /usr/nec; then
13182 lt_prog_compiler_pic=-Kconform_pic
13187 lt_prog_compiler_pic='-fPIC'
13191 case $cc_basename in
13192 nvcc*) # Cuda Compiler Driver 2.2
13193 lt_prog_compiler_wl='-Xlinker '
13194 if test -n "$lt_prog_compiler_pic"; then
13195 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13200 # PORTME Check for flag to pass linker flags through the system compiler.
13203 lt_prog_compiler_wl='-Wl,'
13204 if test ia64 = "$host_cpu"; then
13205 # AIX 5 now supports IA64 processor
13206 lt_prog_compiler_static='-Bstatic'
13208 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13212 darwin* | rhapsody*)
13213 # PIC is the default on this platform
13214 # Common symbols not allowed in MH_DYLIB files
13215 lt_prog_compiler_pic='-fno-common'
13216 case $cc_basename in
13218 # NAG Fortran compiler
13219 lt_prog_compiler_wl='-Wl,-Wl,,'
13220 lt_prog_compiler_pic='-PIC'
13221 lt_prog_compiler_static='-Bstatic'
13226 mingw* | cygwin* | pw32* | os2* | cegcc*)
13227 # This hack is so that the source file can tell whether it is being
13228 # built for inclusion in a dll (and should export symbols for example).
13229 lt_prog_compiler_pic='-DDLL_EXPORT'
13232 lt_prog_compiler_static='$wl-static'
13237 hpux9* | hpux10* | hpux11*)
13238 lt_prog_compiler_wl='-Wl,'
13239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13240 # not for PA HP-UX.
13246 lt_prog_compiler_pic='+Z'
13249 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13250 lt_prog_compiler_static='$wl-a ${wl}archive'
13253 irix5* | irix6* | nonstopux*)
13254 lt_prog_compiler_wl='-Wl,'
13255 # PIC (with -KPIC) is the default.
13256 lt_prog_compiler_static='-non_shared'
13259 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13260 case $cc_basename in
13261 # old Intel for x86_64, which still supported -KPIC.
13263 lt_prog_compiler_wl='-Wl,'
13264 lt_prog_compiler_pic='-KPIC'
13265 lt_prog_compiler_static='-static'
13267 # flang / f18. f95 an alias for gfortran or flang on Debian
13268 flang* | f18* | f95*)
13269 lt_prog_compiler_wl='-Wl,'
13270 lt_prog_compiler_pic='-fPIC'
13271 lt_prog_compiler_static='-static'
13273 # icc used to be incompatible with GCC.
13274 # ICC 10 doesn't accept -KPIC any more.
13276 lt_prog_compiler_wl='-Wl,'
13277 lt_prog_compiler_pic='-fPIC'
13278 lt_prog_compiler_static='-static'
13280 # Lahey Fortran 8.1.
13282 lt_prog_compiler_wl='-Wl,'
13283 lt_prog_compiler_pic='--shared'
13284 lt_prog_compiler_static='--static'
13287 # NAG Fortran compiler
13288 lt_prog_compiler_wl='-Wl,-Wl,,'
13289 lt_prog_compiler_pic='-PIC'
13290 lt_prog_compiler_static='-Bstatic'
13293 # Fabrice Bellard et al's Tiny C Compiler
13294 lt_prog_compiler_wl='-Wl,'
13295 lt_prog_compiler_pic='-fPIC'
13296 lt_prog_compiler_static='-static'
13298 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13299 # Portland Group compilers (*not* the Pentium gcc compiler,
13300 # which looks to be a dead project)
13301 lt_prog_compiler_wl='-Wl,'
13302 lt_prog_compiler_pic='-fpic'
13303 lt_prog_compiler_static='-Bstatic'
13306 lt_prog_compiler_wl='-Wl,'
13307 # All Alpha code is PIC.
13308 lt_prog_compiler_static='-non_shared'
13310 xl* | bgxl* | bgf* | mpixl*)
13311 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13312 lt_prog_compiler_wl='-Wl,'
13313 lt_prog_compiler_pic='-qpic'
13314 lt_prog_compiler_static='-qstaticlink'
13317 case `$CC -V 2>&1 | $SED 5q` in
13318 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13319 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13320 lt_prog_compiler_pic='-KPIC'
13321 lt_prog_compiler_static='-Bstatic'
13322 lt_prog_compiler_wl=''
13324 *Sun\ F* | *Sun*Fortran*)
13325 lt_prog_compiler_pic='-KPIC'
13326 lt_prog_compiler_static='-Bstatic'
13327 lt_prog_compiler_wl='-Qoption ld '
13331 lt_prog_compiler_pic='-KPIC'
13332 lt_prog_compiler_static='-Bstatic'
13333 lt_prog_compiler_wl='-Wl,'
13335 *Intel*\ [CF]*Compiler*)
13336 lt_prog_compiler_wl='-Wl,'
13337 lt_prog_compiler_pic='-fPIC'
13338 lt_prog_compiler_static='-static'
13341 lt_prog_compiler_wl='-Wl,'
13342 lt_prog_compiler_pic='-fpic'
13343 lt_prog_compiler_static='-Bstatic'
13351 lt_prog_compiler_pic='-KPIC'
13352 lt_prog_compiler_static='-Bstatic'
13356 # QNX uses GNU C++, but need to define -shared option too, otherwise
13357 # it will coredump.
13358 lt_prog_compiler_pic='-fPIC -shared'
13361 osf3* | osf4* | osf5*)
13362 lt_prog_compiler_wl='-Wl,'
13363 # All OSF/1 code is PIC.
13364 lt_prog_compiler_static='-non_shared'
13368 lt_prog_compiler_static='-non_shared'
13372 lt_prog_compiler_pic='-KPIC'
13373 lt_prog_compiler_static='-Bstatic'
13374 case $cc_basename in
13375 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13376 lt_prog_compiler_wl='-Qoption ld ';;
13378 lt_prog_compiler_wl='-Wl,';;
13383 lt_prog_compiler_wl='-Qoption ld '
13384 lt_prog_compiler_pic='-PIC'
13385 lt_prog_compiler_static='-Bstatic'
13388 sysv4 | sysv4.2uw2* | sysv4.3*)
13389 lt_prog_compiler_wl='-Wl,'
13390 lt_prog_compiler_pic='-KPIC'
13391 lt_prog_compiler_static='-Bstatic'
13395 if test -d /usr/nec; then
13396 lt_prog_compiler_pic='-Kconform_pic'
13397 lt_prog_compiler_static='-Bstatic'
13401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13402 lt_prog_compiler_wl='-Wl,'
13403 lt_prog_compiler_pic='-KPIC'
13404 lt_prog_compiler_static='-Bstatic'
13408 lt_prog_compiler_wl='-Wl,'
13409 lt_prog_compiler_can_build_shared=no
13413 lt_prog_compiler_pic='-pic'
13414 lt_prog_compiler_static='-Bstatic'
13418 lt_prog_compiler_can_build_shared=no
13424 # For platforms that do not support PIC, -DPIC is meaningless:
13426 lt_prog_compiler_pic=
13429 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13434 printf %s "checking for $compiler option to produce PIC... " >&6; }
13435 if test ${lt_cv_prog_compiler_pic+y}
13437 printf %s "(cached) " >&6
13439 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13442 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13443 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13446 # Check to make sure the PIC flag actually works.
13448 if test -n "$lt_prog_compiler_pic"; then
13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13450 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13451 if test ${lt_cv_prog_compiler_pic_works+y}
13453 printf %s "(cached) " >&6
13455 lt_cv_prog_compiler_pic_works=no
13456 ac_outfile=conftest.$ac_objext
13457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13458 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13459 # Insert the option either (1) after the last *FLAGS variable, or
13460 # (2) before a word containing "conftest.", or (3) at the end.
13461 # Note that $ac_compile itself does not contain backslashes and begins
13462 # with a dollar sign (not a hyphen), so the echo should work correctly.
13463 # The option is referenced via a variable to avoid confusing sed.
13464 lt_compile=`echo "$ac_compile" | $SED \
13465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13467 -e 's:$: $lt_compiler_flag:'`
13468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13469 (eval "$lt_compile" 2>conftest.err)
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 if (exit $ac_status) && test -s "$ac_outfile"; then
13474 # The compiler can only warn and ignore the option if not recognized
13475 # So say no if there are warnings other than the usual output.
13476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13479 lt_cv_prog_compiler_pic_works=yes
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13486 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13488 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13489 case $lt_prog_compiler_pic in
13491 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13494 lt_prog_compiler_pic=
13495 lt_prog_compiler_can_build_shared=no
13511 # Check to make sure the static flag actually works.
13513 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13515 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13516 if test ${lt_cv_prog_compiler_static_works+y}
13518 printf %s "(cached) " >&6
13520 lt_cv_prog_compiler_static_works=no
13521 save_LDFLAGS=$LDFLAGS
13522 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13523 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13525 # The linker can only warn and ignore the option if not recognized
13526 # So say no if there are warnings
13527 if test -s conftest.err; then
13528 # Append any errors to the config.log.
13529 cat conftest.err 1>&5
13530 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13532 if diff conftest.exp conftest.er2 >/dev/null; then
13533 lt_cv_prog_compiler_static_works=yes
13536 lt_cv_prog_compiler_static_works=yes
13540 LDFLAGS=$save_LDFLAGS
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13544 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13546 if test yes = "$lt_cv_prog_compiler_static_works"; then
13549 lt_prog_compiler_static=
13558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13559 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13560 if test ${lt_cv_prog_compiler_c_o+y}
13562 printf %s "(cached) " >&6
13564 lt_cv_prog_compiler_c_o=no
13565 $RM -r conftest 2>/dev/null
13569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13571 lt_compiler_flag="-o out/conftest2.$ac_objext"
13572 # Insert the option either (1) after the last *FLAGS variable, or
13573 # (2) before a word containing "conftest.", or (3) at the end.
13574 # Note that $ac_compile itself does not contain backslashes and begins
13575 # with a dollar sign (not a hyphen), so the echo should work correctly.
13576 lt_compile=`echo "$ac_compile" | $SED \
13577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13579 -e 's:$: $lt_compiler_flag:'`
13580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13581 (eval "$lt_compile" 2>out/conftest.err)
13583 cat out/conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13587 # The compiler can only warn and ignore the option if not recognized
13588 # So say no if there are warnings
13589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13592 lt_cv_prog_compiler_c_o=yes
13597 # SGI C++ compiler will create directory out/ii_files/ for
13598 # template instantiation
13599 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13600 $RM out/* && rmdir out
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13607 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13615 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13616 if test ${lt_cv_prog_compiler_c_o+y}
13618 printf %s "(cached) " >&6
13620 lt_cv_prog_compiler_c_o=no
13621 $RM -r conftest 2>/dev/null
13625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13627 lt_compiler_flag="-o out/conftest2.$ac_objext"
13628 # Insert the option either (1) after the last *FLAGS variable, or
13629 # (2) before a word containing "conftest.", or (3) at the end.
13630 # Note that $ac_compile itself does not contain backslashes and begins
13631 # with a dollar sign (not a hyphen), so the echo should work correctly.
13632 lt_compile=`echo "$ac_compile" | $SED \
13633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635 -e 's:$: $lt_compiler_flag:'`
13636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13637 (eval "$lt_compile" 2>out/conftest.err)
13639 cat out/conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13643 # The compiler can only warn and ignore the option if not recognized
13644 # So say no if there are warnings
13645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13648 lt_cv_prog_compiler_c_o=yes
13653 # SGI C++ compiler will create directory out/ii_files/ for
13654 # template instantiation
13655 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13656 $RM out/* && rmdir out
13662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13663 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13668 hard_links=nottested
13669 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13670 # do not overwrite the value of need_locks provided by the user
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13672 printf %s "checking if we can lock with hard links... " >&6; }
13675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13677 ln conftest.a conftest.b 2>&5 || hard_links=no
13678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13680 printf "%s\n" "$hard_links" >&6; }
13681 if test no = "$hard_links"; then
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13683 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13696 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13699 allow_undefined_flag=
13700 always_export_symbols=no
13702 archive_expsym_cmds=
13703 compiler_needs_object=no
13704 enable_shared_with_static_runtimes=no
13705 export_dynamic_flag_spec=
13706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13707 hardcode_automatic=no
13709 hardcode_direct_absolute=no
13710 hardcode_libdir_flag_spec=
13711 hardcode_libdir_separator=
13712 hardcode_minus_L=no
13713 hardcode_shlibpath_var=unsupported
13715 link_all_deplibs=unknown
13717 module_expsym_cmds=
13718 old_archive_from_new_cmds=
13719 old_archive_from_expsyms_cmds=
13720 thread_safe_flag_spec=
13721 whole_archive_flag_spec=
13722 # include_expsyms should be a list of space-separated symbols to be *always*
13723 # included in the symbol list
13725 # exclude_expsyms can be an extended regexp of symbols to exclude
13726 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13727 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13728 # as well as any symbol that contains 'd'.
13729 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13730 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13731 # platforms (ab)use it in PIC code, but their linkers get confused if
13732 # the symbol is explicitly referenced. Since portable code cannot
13733 # rely on this symbol name, it's probably fine to never include it in
13734 # preloaded symbol tables.
13735 # Exclude shared library initialization/finalization symbols.
13736 extract_expsyms_cmds=
13739 cygwin* | mingw* | pw32* | cegcc*)
13740 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13741 # When not using gcc, we currently assume that we are using
13742 # Microsoft Visual C++ or Intel C++ Compiler.
13743 if test yes != "$GCC"; then
13748 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13751 openbsd* | bitrig*)
13754 linux* | k*bsd*-gnu | gnu*)
13755 link_all_deplibs=no
13761 # On some targets, GNU ld is compatible enough with the native linker
13762 # that we're better off using the native interface for both.
13763 lt_use_gnu_ld_interface=no
13764 if test yes = "$with_gnu_ld"; then
13767 # The AIX port of GNU ld has always aspired to compatibility
13768 # with the native linker. However, as the warning in the GNU ld
13769 # block says, versions before 2.19.5* couldn't really create working
13770 # shared libraries, regardless of the interface used.
13771 case `$LD -v 2>&1` in
13772 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13773 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13774 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13776 lt_use_gnu_ld_interface=yes
13781 lt_use_gnu_ld_interface=yes
13786 if test yes = "$lt_use_gnu_ld_interface"; then
13787 # If archive_cmds runs LD, not CC, wlarc should be empty
13790 # Set some defaults for GNU ld with shared library support. These
13791 # are reset later if shared libraries are not supported. Putting them
13792 # here allows them to be overridden if necessary.
13793 runpath_var=LD_RUN_PATH
13794 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13795 export_dynamic_flag_spec='$wl--export-dynamic'
13796 # ancient GNU ld didn't support --whole-archive et. al.
13797 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13798 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13800 whole_archive_flag_spec=
13802 supports_anon_versioning=no
13803 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13804 *GNU\ gold*) supports_anon_versioning=yes ;;
13805 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13806 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13807 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13808 *\ 2.11.*) ;; # other 2.11 versions
13809 *) supports_anon_versioning=yes ;;
13812 # See if GNU ld supports shared libraries.
13815 # On AIX/PPC, the GNU linker is very broken
13816 if test ia64 != "$host_cpu"; then
13820 *** Warning: the GNU linker, at least up to release 2.19, is reported
13821 *** to be unable to reliably create shared libraries on AIX.
13822 *** Therefore, libtool is disabling shared libraries support. If you
13823 *** really care for shared libraries, you may want to install binutils
13824 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13825 *** You will then need to restart the configuration process.
13834 # see comment about AmigaOS4 .so support
13835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13836 archive_expsym_cmds=''
13839 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)'
13840 hardcode_libdir_flag_spec='-L$libdir'
13841 hardcode_minus_L=yes
13847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13848 allow_undefined_flag=unsupported
13849 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13850 # support --undefined. This deserves some investigation. FIXME
13851 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13857 cygwin* | mingw* | pw32* | cegcc*)
13858 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13859 # as there is no search path for DLLs.
13860 hardcode_libdir_flag_spec='-L$libdir'
13861 export_dynamic_flag_spec='$wl--export-all-symbols'
13862 allow_undefined_flag=unsupported
13863 always_export_symbols=no
13864 enable_shared_with_static_runtimes=yes
13865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13866 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13868 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13870 # If the export-symbols file already is a .def file, use it as
13871 # is; otherwise, prepend EXPORTS...
13872 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13873 cp $export_symbols $output_objdir/$soname.def;
13875 echo EXPORTS > $output_objdir/$soname.def;
13876 cat $export_symbols >> $output_objdir/$soname.def;
13878 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13886 link_all_deplibs=yes
13890 hardcode_libdir_flag_spec='-L$libdir'
13891 hardcode_minus_L=yes
13892 allow_undefined_flag=unsupported
13894 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13895 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13896 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13897 $ECHO EXPORTS >> $output_objdir/$libname.def~
13898 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13899 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13900 emximp -o $lib $output_objdir/$libname.def'
13901 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13902 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13903 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13904 $ECHO EXPORTS >> $output_objdir/$libname.def~
13905 prefix_cmds="$SED"~
13906 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13907 prefix_cmds="$prefix_cmds -e 1d";
13909 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13910 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13911 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13912 emximp -o $lib $output_objdir/$libname.def'
13913 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13914 enable_shared_with_static_runtimes=yes
13920 hardcode_shlibpath_var=no
13921 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13922 export_dynamic_flag_spec='$wl-E'
13923 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13924 # Instead, shared libraries are loaded at an image base (0x10000000 by
13925 # default) and relocated if they conflict, which is a slow very memory
13926 # consuming and fragmenting process. To avoid this, we pick a random,
13927 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13928 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13929 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13930 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'
13933 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13935 if test linux-dietlibc = "$host_os"; then
13936 case $cc_basename in
13937 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13940 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13941 && test no = "$tmp_diet"
13943 tmp_addflag=' $pic_flag'
13944 tmp_sharedflag='-shared'
13945 case $cc_basename,$host_cpu in
13946 pgcc*) # Portland Group C compiler
13947 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13948 tmp_addflag=' $pic_flag'
13950 pgf77* | pgf90* | pgf95* | pgfortran*)
13951 # Portland Group f77 and f90 compilers
13952 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13953 tmp_addflag=' $pic_flag -Mnomain' ;;
13954 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13955 tmp_addflag=' -i_dynamic' ;;
13956 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13957 tmp_addflag=' -i_dynamic -nofor_main' ;;
13958 ifc* | ifort*) # Intel Fortran compiler
13959 tmp_addflag=' -nofor_main' ;;
13960 lf95*) # Lahey Fortran 8.1
13961 whole_archive_flag_spec=
13962 tmp_sharedflag='--shared' ;;
13963 nagfor*) # NAGFOR 5.3
13964 tmp_sharedflag='-Wl,-shared' ;;
13965 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13966 tmp_sharedflag='-qmkshrobj'
13968 nvcc*) # Cuda Compiler Driver 2.2
13969 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13970 compiler_needs_object=yes
13973 case `$CC -V 2>&1 | $SED 5q` in
13974 *Sun\ C*) # Sun C 5.9
13975 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13976 compiler_needs_object=yes
13977 tmp_sharedflag='-G' ;;
13978 *Sun\ F*) # Sun Fortran 8.3
13979 tmp_sharedflag='-G' ;;
13981 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13983 if test yes = "$supports_anon_versioning"; then
13984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13985 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13986 echo "local: *; };" >> $output_objdir/$libname.ver~
13987 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13990 case $cc_basename in
13992 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13993 export_dynamic_flag_spec='-rdynamic'
13995 xlf* | bgf* | bgxlf* | mpixlf*)
13996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13997 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13998 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13999 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14000 if test yes = "$supports_anon_versioning"; then
14001 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14002 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14003 echo "local: *; };" >> $output_objdir/$libname.ver~
14004 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14013 netbsd* | netbsdelf*-gnu)
14014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14015 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14024 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14028 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14029 *** create shared libraries on Solaris systems. Therefore, libtool
14030 *** is disabling shared libraries support. We urge you to upgrade GNU
14031 *** binutils to release 2.9.1 or newer. Another option is to modify
14032 *** your PATH or compiler configuration so that the native linker is
14033 *** used, and then restart.
14036 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14038 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14045 case `$LD -v 2>&1` in
14046 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14050 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14051 *** reliably create shared libraries on SCO systems. Therefore, libtool
14052 *** is disabling shared libraries support. We urge you to upgrade GNU
14053 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14054 *** your PATH or compiler configuration so that the native linker is
14055 *** used, and then restart.
14060 # For security reasons, it is highly recommended that you always
14061 # use absolute paths for naming shared libraries, and exclude the
14062 # DT_RUNPATH tag from executables and libraries. But doing so
14063 # requires that you compile everything twice, which is a pain.
14064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14065 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14076 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14078 hardcode_direct=yes
14079 hardcode_shlibpath_var=no
14083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14085 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14092 if test no = "$ld_shlibs"; then
14094 hardcode_libdir_flag_spec=
14095 export_dynamic_flag_spec=
14096 whole_archive_flag_spec=
14099 # PORTME fill in a description of your system's linker (not GNU ld)
14102 allow_undefined_flag=unsupported
14103 always_export_symbols=yes
14104 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'
14105 # Note: this linker hardcodes the directories in LIBPATH if there
14106 # are no directories specified by -L.
14107 hardcode_minus_L=yes
14108 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14109 # Neither direct hardcoding nor static linking is supported with a
14111 hardcode_direct=unsupported
14116 if test ia64 = "$host_cpu"; then
14117 # On IA64, the linker does run time linking by default, so we don't
14118 # have to do anything special.
14119 aix_use_runtimelinking=no
14120 exp_sym_flag='-Bexport'
14123 # If we're using GNU nm, then we don't want the "-C" option.
14124 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14125 # Without the "-l" option, or with the "-B" option, AIX nm treats
14126 # weak defined symbols like other global defined symbols, whereas
14127 # GNU nm marks them as "W".
14128 # While the 'weak' keyword is ignored in the Export File, we need
14129 # it in the Import File for the 'aix-soname' feature, so we have
14130 # to replace the "-B" option with "-P" for AIX nm.
14131 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14132 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14134 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14136 aix_use_runtimelinking=no
14138 # Test if we are trying to use run time linking or normal
14139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14140 # have runtime linking enabled, and use it for executables.
14141 # For shared libraries, we enable/disable runtime linking
14142 # depending on the kind of the shared library created -
14143 # when "with_aix_soname,aix_use_runtimelinking" is:
14144 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14145 # "aix,yes" lib.so shared, rtl:yes, for executables
14146 # lib.a static archive
14147 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14148 # lib.a(lib.so.V) shared, rtl:no, for executables
14149 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14150 # lib.a(lib.so.V) shared, rtl:no
14151 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14152 # lib.a static archive
14153 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14154 for ld_flag in $LDFLAGS; do
14155 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14156 aix_use_runtimelinking=yes
14160 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14161 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14162 # so we don't have lib.a shared libs to link our executables.
14163 # We have to force runtime linking in this case.
14164 aix_use_runtimelinking=yes
14165 LDFLAGS="$LDFLAGS -Wl,-brtl"
14170 exp_sym_flag='-bexport'
14171 no_entry_flag='-bnoentry'
14174 # When large executables or shared objects are built, AIX ld can
14175 # have problems creating the table of contents. If linking a library
14176 # or program results in "error TOC overflow" add -mminimal-toc to
14177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14181 hardcode_direct=yes
14182 hardcode_direct_absolute=yes
14183 hardcode_libdir_separator=':'
14184 link_all_deplibs=yes
14185 file_list_spec='$wl-f,'
14186 case $with_aix_soname,$aix_use_runtimelinking in
14187 aix,*) ;; # traditional, no import file
14188 svr4,* | *,yes) # use import file
14189 # The Import File defines what to hardcode.
14191 hardcode_direct_absolute=no
14195 if test yes = "$GCC"; then
14196 case $host_os in aix4.[012]|aix4.[012].*)
14197 # We only want to do this on AIX 4.2 and lower, the check
14198 # below for broken collect2 doesn't work under 4.3+
14199 collect2name=`$CC -print-prog-name=collect2`
14200 if test -f "$collect2name" &&
14201 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14203 # We have reworked collect2
14206 # We have old collect2
14207 hardcode_direct=unsupported
14208 # It fails to find uninstalled libraries when the uninstalled
14209 # path is not listed in the libpath. Setting hardcode_minus_L
14210 # to unsupported forces relinking
14211 hardcode_minus_L=yes
14212 hardcode_libdir_flag_spec='-L$libdir'
14213 hardcode_libdir_separator=
14217 shared_flag='-shared'
14218 if test yes = "$aix_use_runtimelinking"; then
14219 shared_flag="$shared_flag "'$wl-G'
14221 # Need to ensure runtime linking is disabled for the traditional
14222 # shared library, or the linker may eventually find shared libraries
14223 # /with/ Import File - we do not want to mix them.
14224 shared_flag_aix='-shared'
14225 shared_flag_svr4='-shared $wl-G'
14228 if test ia64 = "$host_cpu"; then
14229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14230 # chokes on -Wl,-G. The following line is correct:
14233 if test yes = "$aix_use_runtimelinking"; then
14234 shared_flag='$wl-G'
14236 shared_flag='$wl-bM:SRE'
14238 shared_flag_aix='$wl-bM:SRE'
14239 shared_flag_svr4='$wl-G'
14243 export_dynamic_flag_spec='$wl-bexpall'
14244 # It seems that -bexpall does not export symbols beginning with
14245 # underscore (_), so it is better to generate a list of symbols to export.
14246 always_export_symbols=yes
14247 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14248 # Warning - without using the other runtime loading flags (-brtl),
14249 # -berok will link without error, but may produce a broken library.
14250 allow_undefined_flag='-berok'
14251 # Determine the default libpath from the value encoded in an
14252 # empty executable.
14253 if test set = "${lt_cv_aix_libpath+set}"; then
14254 aix_libpath=$lt_cv_aix_libpath
14256 if test ${lt_cv_aix_libpath_+y}
14258 printf %s "(cached) " >&6
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14270 if ac_fn_c_try_link "$LINENO"
14273 lt_aix_libpath_sed='
14274 /Import File Strings/,/^$/ {
14276 s/^0 *\([^ ]*\) *$/\1/
14280 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14281 # Check for a 64-bit object if we didn't find anything.
14282 if test -z "$lt_cv_aix_libpath_"; then
14283 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14287 conftest$ac_exeext conftest.$ac_ext
14288 if test -z "$lt_cv_aix_libpath_"; then
14289 lt_cv_aix_libpath_=/usr/lib:/lib
14294 aix_libpath=$lt_cv_aix_libpath_
14297 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14298 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14300 if test ia64 = "$host_cpu"; then
14301 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14302 allow_undefined_flag="-z nodefs"
14303 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"
14305 # Determine the default libpath from the value encoded in an
14306 # empty executable.
14307 if test set = "${lt_cv_aix_libpath+set}"; then
14308 aix_libpath=$lt_cv_aix_libpath
14310 if test ${lt_cv_aix_libpath_+y}
14312 printf %s "(cached) " >&6
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14324 if ac_fn_c_try_link "$LINENO"
14327 lt_aix_libpath_sed='
14328 /Import File Strings/,/^$/ {
14330 s/^0 *\([^ ]*\) *$/\1/
14334 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14335 # Check for a 64-bit object if we didn't find anything.
14336 if test -z "$lt_cv_aix_libpath_"; then
14337 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14341 conftest$ac_exeext conftest.$ac_ext
14342 if test -z "$lt_cv_aix_libpath_"; then
14343 lt_cv_aix_libpath_=/usr/lib:/lib
14348 aix_libpath=$lt_cv_aix_libpath_
14351 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14352 # Warning - without using the other run time loading flags,
14353 # -berok will link without error, but may produce a broken library.
14354 no_undefined_flag=' $wl-bernotok'
14355 allow_undefined_flag=' $wl-berok'
14356 if test yes = "$with_gnu_ld"; then
14357 # We only use this code for GNU lds that support --whole-archive.
14358 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14360 # Exported symbols can be pulled into shared objects from archives
14361 whole_archive_flag_spec='$convenience'
14363 archive_cmds_need_lc=yes
14364 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14365 # -brtl affects multiple linker settings, -berok does not and is overridden later
14366 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14367 if test svr4 != "$with_aix_soname"; then
14368 # This is similar to how AIX traditionally builds its shared libraries.
14369 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14371 if test aix != "$with_aix_soname"; then
14372 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14374 # used by -dlpreopen to get the symbols
14375 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14377 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14385 # see comment about AmigaOS4 .so support
14386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14387 archive_expsym_cmds=''
14390 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)'
14391 hardcode_libdir_flag_spec='-L$libdir'
14392 hardcode_minus_L=yes
14398 export_dynamic_flag_spec=-rdynamic
14401 cygwin* | mingw* | pw32* | cegcc*)
14402 # When not using gcc, we currently assume that we are using
14403 # Microsoft Visual C++ or Intel C++ Compiler.
14404 # hardcode_libdir_flag_spec is actually meaningless, as there is
14405 # no search path for DLLs.
14406 case $cc_basename in
14408 # Native MSVC or ICC
14409 hardcode_libdir_flag_spec=' '
14410 allow_undefined_flag=unsupported
14411 always_export_symbols=yes
14413 # Tell ltmain to make .lib files, not .a files.
14415 # Tell ltmain to make .dll files, not .so files.
14417 # FIXME: Setting linknames here is a bad hack.
14418 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14419 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14420 cp "$export_symbols" "$output_objdir/$soname.def";
14421 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14423 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14425 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14427 # The linker will not automatically build a static lib if we build a DLL.
14428 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14429 enable_shared_with_static_runtimes=yes
14430 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14431 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14433 old_postinstall_cmds='chmod 644 $oldlib'
14434 postlink_cmds='lt_outputfile="@OUTPUT@"~
14435 lt_tool_outputfile="@TOOL_OUTPUT@"~
14436 case $lt_outputfile in
14439 lt_outputfile=$lt_outputfile.exe
14440 lt_tool_outputfile=$lt_tool_outputfile.exe
14443 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14444 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14445 $RM "$lt_outputfile.manifest";
14449 # Assume MSVC and ICC wrapper
14450 hardcode_libdir_flag_spec=' '
14451 allow_undefined_flag=unsupported
14452 # Tell ltmain to make .lib files, not .a files.
14454 # Tell ltmain to make .dll files, not .so files.
14456 # FIXME: Setting linknames here is a bad hack.
14457 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14458 # The linker will automatically build a .lib file if we build a DLL.
14459 old_archive_from_new_cmds='true'
14460 # FIXME: Should let the user specify the lib program.
14461 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14462 enable_shared_with_static_runtimes=yes
14467 darwin* | rhapsody*)
14470 archive_cmds_need_lc=no
14472 hardcode_automatic=yes
14473 hardcode_shlibpath_var=unsupported
14474 if test yes = "$lt_cv_ld_force_load"; then
14475 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14478 whole_archive_flag_spec=''
14480 link_all_deplibs=yes
14481 allow_undefined_flag=$_lt_dar_allow_undefined
14482 case $cc_basename in
14483 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14484 *) _lt_dar_can_shared=$GCC ;;
14486 if test yes = "$_lt_dar_can_shared"; then
14487 output_verbose_link_cmd=func_echo_all
14488 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14489 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14490 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"
14491 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"
14500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14501 hardcode_libdir_flag_spec='-L$libdir'
14502 hardcode_shlibpath_var=no
14505 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14506 # support. Future versions do this automatically, but an explicit c++rt0.o
14507 # does not break anything, and helps significantly (at the cost of a little
14510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14511 hardcode_libdir_flag_spec='-R$libdir'
14512 hardcode_direct=yes
14513 hardcode_shlibpath_var=no
14516 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14519 hardcode_direct=yes
14520 hardcode_minus_L=yes
14521 hardcode_shlibpath_var=no
14524 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14525 freebsd* | dragonfly* | midnightbsd*)
14526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14527 hardcode_libdir_flag_spec='-R$libdir'
14528 hardcode_direct=yes
14529 hardcode_shlibpath_var=no
14533 if test yes = "$GCC"; then
14534 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14536 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14538 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14539 hardcode_libdir_separator=:
14540 hardcode_direct=yes
14542 # hardcode_minus_L: Not really in the search PATH,
14543 # but as the default location of the library.
14544 hardcode_minus_L=yes
14545 export_dynamic_flag_spec='$wl-E'
14549 if test yes,no = "$GCC,$with_gnu_ld"; then
14550 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14552 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14554 if test no = "$with_gnu_ld"; then
14555 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14556 hardcode_libdir_separator=:
14557 hardcode_direct=yes
14558 hardcode_direct_absolute=yes
14559 export_dynamic_flag_spec='$wl-E'
14560 # hardcode_minus_L: Not really in the search PATH,
14561 # but as the default location of the library.
14562 hardcode_minus_L=yes
14567 if test yes,no = "$GCC,$with_gnu_ld"; then
14570 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14573 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14576 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14582 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14585 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14589 # Older versions of the 11.00 compiler do not understand -b yet
14590 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14592 printf %s "checking if $CC understands -b... " >&6; }
14593 if test ${lt_cv_prog_compiler__b+y}
14595 printf %s "(cached) " >&6
14597 lt_cv_prog_compiler__b=no
14598 save_LDFLAGS=$LDFLAGS
14599 LDFLAGS="$LDFLAGS -b"
14600 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14601 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14602 # The linker can only warn and ignore the option if not recognized
14603 # So say no if there are warnings
14604 if test -s conftest.err; then
14605 # Append any errors to the config.log.
14606 cat conftest.err 1>&5
14607 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14609 if diff conftest.exp conftest.er2 >/dev/null; then
14610 lt_cv_prog_compiler__b=yes
14613 lt_cv_prog_compiler__b=yes
14617 LDFLAGS=$save_LDFLAGS
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14621 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14623 if test yes = "$lt_cv_prog_compiler__b"; then
14624 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14626 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14632 if test no = "$with_gnu_ld"; then
14633 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14634 hardcode_libdir_separator=:
14639 hardcode_shlibpath_var=no
14642 hardcode_direct=yes
14643 hardcode_direct_absolute=yes
14644 export_dynamic_flag_spec='$wl-E'
14646 # hardcode_minus_L: Not really in the search PATH,
14647 # but as the default location of the library.
14648 hardcode_minus_L=yes
14654 irix5* | irix6* | nonstopux*)
14655 if test yes = "$GCC"; then
14656 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14657 # Try to use the -exported_symbol ld option, if it does not
14658 # work, assume that -exports_file does not work either and
14659 # implicitly export all symbols.
14660 # This should be the same for all languages, so no per-tag cache variable.
14661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14662 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14663 if test ${lt_cv_irix_exported_symbol+y}
14665 printf %s "(cached) " >&6
14667 save_LDFLAGS=$LDFLAGS
14668 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671 int foo (void) { return 0; }
14673 if ac_fn_c_try_link "$LINENO"
14675 lt_cv_irix_exported_symbol=yes
14677 lt_cv_irix_exported_symbol=no
14679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14680 conftest$ac_exeext conftest.$ac_ext
14681 LDFLAGS=$save_LDFLAGS
14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14684 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14685 if test yes = "$lt_cv_irix_exported_symbol"; then
14686 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
14688 link_all_deplibs=no
14690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
14693 archive_cmds_need_lc='no'
14694 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14695 hardcode_libdir_separator=:
14697 link_all_deplibs=yes
14701 case $cc_basename in
14703 # Fabrice Bellard et al's Tiny C Compiler
14705 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14706 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14711 netbsd* | netbsdelf*-gnu)
14712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14715 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14717 hardcode_libdir_flag_spec='-R$libdir'
14718 hardcode_direct=yes
14719 hardcode_shlibpath_var=no
14723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14724 hardcode_direct=yes
14725 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14726 hardcode_libdir_separator=:
14727 hardcode_shlibpath_var=no
14733 openbsd* | bitrig*)
14734 if test -f /usr/libexec/ld.so; then
14735 hardcode_direct=yes
14736 hardcode_shlibpath_var=no
14737 hardcode_direct_absolute=yes
14738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14740 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14741 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14742 export_dynamic_flag_spec='$wl-E'
14744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14745 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14753 hardcode_libdir_flag_spec='-L$libdir'
14754 hardcode_minus_L=yes
14755 allow_undefined_flag=unsupported
14757 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14758 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14759 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14760 $ECHO EXPORTS >> $output_objdir/$libname.def~
14761 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14762 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14763 emximp -o $lib $output_objdir/$libname.def'
14764 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14765 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14766 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14767 $ECHO EXPORTS >> $output_objdir/$libname.def~
14768 prefix_cmds="$SED"~
14769 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14770 prefix_cmds="$prefix_cmds -e 1d";
14772 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14773 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14774 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14775 emximp -o $lib $output_objdir/$libname.def'
14776 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14777 enable_shared_with_static_runtimes=yes
14782 if test yes = "$GCC"; then
14783 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14784 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14786 allow_undefined_flag=' -expect_unresolved \*'
14787 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14789 archive_cmds_need_lc='no'
14790 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14791 hardcode_libdir_separator=:
14794 osf4* | osf5*) # as osf3* with the addition of -msym flag
14795 if test yes = "$GCC"; then
14796 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14797 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14798 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14800 allow_undefined_flag=' -expect_unresolved \*'
14801 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14802 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
14803 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
14805 # Both c and cxx compiler support -rpath directly
14806 hardcode_libdir_flag_spec='-rpath $libdir'
14808 archive_cmds_need_lc='no'
14809 hardcode_libdir_separator=:
14813 no_undefined_flag=' -z defs'
14814 if test yes = "$GCC"; then
14816 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14818 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14820 case `$CC -V 2>&1` in
14823 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14825 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14829 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14831 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14835 hardcode_libdir_flag_spec='-R$libdir'
14836 hardcode_shlibpath_var=no
14838 solaris2.[0-5] | solaris2.[0-5].*) ;;
14840 # The compiler driver will combine and reorder linker options,
14841 # but understands '-z linker_flag'. GCC discards it without '$wl',
14842 # but is careful enough not to reorder.
14843 # Supported since Solaris 2.6 (maybe 2.5.1?)
14844 if test yes = "$GCC"; then
14845 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14847 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14851 link_all_deplibs=yes
14855 if test sequent = "$host_vendor"; then
14856 # Use $CC to link under sequent, because it throws in some extra .o
14857 # files that make .init and .fini sections work.
14858 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14860 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14862 hardcode_libdir_flag_spec='-L$libdir'
14863 hardcode_direct=yes
14864 hardcode_minus_L=yes
14865 hardcode_shlibpath_var=no
14869 case $host_vendor in
14871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872 hardcode_direct=yes # is this really true???
14875 ## LD is ld it makes a PLAMLIB
14876 ## CC just makes a GrossModule.
14877 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14878 reload_cmds='$CC -r -o $output$reload_objs'
14882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14883 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14886 runpath_var='LD_RUN_PATH'
14887 hardcode_shlibpath_var=no
14891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892 hardcode_shlibpath_var=no
14893 export_dynamic_flag_spec='-Bexport'
14897 if test -d /usr/nec; then
14898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14899 hardcode_shlibpath_var=no
14900 runpath_var=LD_RUN_PATH
14901 hardcode_runpath_var=yes
14906 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14907 no_undefined_flag='$wl-z,text'
14908 archive_cmds_need_lc=no
14909 hardcode_shlibpath_var=no
14910 runpath_var='LD_RUN_PATH'
14912 if test yes = "$GCC"; then
14913 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14921 sysv5* | sco3.2v5* | sco5v6*)
14922 # Note: We CANNOT use -z defs as we might desire, because we do not
14923 # link with -lc, and that would cause any symbols used from libc to
14924 # always be unresolved, which means just about no library would
14925 # ever link correctly. If we're not using GNU ld we use -z text
14926 # though, which does catch some bad symbols but isn't as heavy-handed
14928 no_undefined_flag='$wl-z,text'
14929 allow_undefined_flag='$wl-z,nodefs'
14930 archive_cmds_need_lc=no
14931 hardcode_shlibpath_var=no
14932 hardcode_libdir_flag_spec='$wl-R,$libdir'
14933 hardcode_libdir_separator=':'
14934 link_all_deplibs=yes
14935 export_dynamic_flag_spec='$wl-Bexport'
14936 runpath_var='LD_RUN_PATH'
14938 if test yes = "$GCC"; then
14939 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14940 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14942 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14943 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14949 hardcode_libdir_flag_spec='-L$libdir'
14950 hardcode_shlibpath_var=no
14958 if test sni = "$host_vendor"; then
14960 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14961 export_dynamic_flag_spec='$wl-Blargedynsym'
14967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14968 printf "%s\n" "$ld_shlibs" >&6; }
14969 test no = "$ld_shlibs" && can_build_shared=no
14971 with_gnu_ld=$with_gnu_ld
14988 # Do we need to explicitly link libc?
14990 case "x$archive_cmds_need_lc" in
14992 # Assume -lc should be added
14993 archive_cmds_need_lc=yes
14995 if test yes,yes = "$GCC,$enable_shared"; then
14996 case $archive_cmds in
14998 # FIXME: we may have to deal with multi-command sequences.
15001 # Test whether the compiler implicitly links with -lc since on some
15002 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15003 # to ld, don't add -lc before -lgcc.
15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15005 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15006 if test ${lt_cv_archive_cmds_need_lc+y}
15008 printf %s "(cached) " >&6
15011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15014 (eval $ac_compile) 2>&5
15016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15017 test $ac_status = 0; } 2>conftest.err; then
15020 libobjs=conftest.$ac_objext
15022 wl=$lt_prog_compiler_wl
15023 pic_flag=$lt_prog_compiler_pic
15029 lt_save_allow_undefined_flag=$allow_undefined_flag
15030 allow_undefined_flag=
15031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15032 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15035 test $ac_status = 0; }
15037 lt_cv_archive_cmds_need_lc=no
15039 lt_cv_archive_cmds_need_lc=yes
15041 allow_undefined_flag=$lt_save_allow_undefined_flag
15043 cat conftest.err 1>&5
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15049 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15050 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15209 printf %s "checking dynamic linker characteristics... " >&6; }
15211 if test yes = "$GCC"; then
15213 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15214 *) lt_awk_arg='/^libraries:/' ;;
15217 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15218 *) lt_sed_strip_eq='s|=/|/|g' ;;
15220 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15221 case $lt_search_path_spec in
15223 # if the path contains ";" then we assume it to be the separator
15224 # otherwise default to the standard path separator (i.e. ":") - it is
15225 # assumed that no part of a normal pathname contains ";" but that should
15226 # okay in the real world where ";" in dirpaths is itself problematic.
15227 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15233 # Ok, now we have the path, separated by spaces, we can step through it
15234 # and add multilib dir if necessary...
15235 lt_tmp_lt_search_path_spec=
15236 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15237 # ...but if some path component already ends with the multilib dir we assume
15238 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15239 case "$lt_multi_os_dir; $lt_search_path_spec " in
15240 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15244 for lt_sys_path in $lt_search_path_spec; do
15245 if test -d "$lt_sys_path$lt_multi_os_dir"; then
15246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15247 elif test -n "$lt_multi_os_dir"; then
15248 test -d "$lt_sys_path" && \
15249 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15252 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15253 BEGIN {RS = " "; FS = "/|\n";} {
15256 for (lt_i = NF; lt_i > 0; lt_i--) {
15257 if ($lt_i != "" && $lt_i != ".") {
15258 if ($lt_i == "..") {
15261 if (lt_count == 0) {
15262 lt_foo = "/" $lt_i lt_foo;
15269 if (lt_foo != "") { lt_freq[lt_foo]++; }
15270 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15272 # AWK program above erroneously prepends '/' to C:/dos/paths
15275 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15276 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15278 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15280 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15282 library_names_spec=
15283 libname_spec='lib$name'
15287 postuninstall_cmds=
15291 shlibpath_overrides_runpath=unknown
15293 dynamic_linker="$host_os ld.so"
15294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15295 need_lib_prefix=unknown
15296 hardcode_into_libs=no
15298 # when you set need_version to no, make sure it does not cause -set_version
15299 # flags to be left without arguments
15300 need_version=unknown
15306 version_type=linux # correct to gnu/linux during the next big refactor
15307 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15308 shlibpath_var=LIBPATH
15310 # AIX 3 has no versioning support, so we append a major version to the name.
15311 soname_spec='$libname$release$shared_ext$major'
15315 version_type=linux # correct to gnu/linux during the next big refactor
15318 hardcode_into_libs=yes
15319 if test ia64 = "$host_cpu"; then
15320 # AIX 5 supports IA64
15321 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15322 shlibpath_var=LD_LIBRARY_PATH
15324 # With GCC up to 2.95.x, collect2 would create an import file
15325 # for dependence libraries. The import file would start with
15326 # the line '#! .'. This would cause the generated library to
15327 # depend on '.', always an invalid library. This was fixed in
15328 # development snapshots of GCC prior to 3.0.
15330 aix4 | aix4.[01] | aix4.[01].*)
15331 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15333 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15336 can_build_shared=no
15340 # Using Import Files as archive members, it is possible to support
15341 # filename-based versioning of shared library archives on AIX. While
15342 # this would work for both with and without runtime linking, it will
15343 # prevent static linking of such archives. So we do filename-based
15344 # shared library versioning with .so extension only, which is used
15345 # when both runtime linking and shared linking is enabled.
15346 # Unfortunately, runtime linking may impact performance, so we do
15347 # not want this to be the default eventually. Also, we use the
15348 # versioned .so libs for executables only if there is the -brtl
15349 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15350 # To allow for filename-based versioning support, we need to create
15351 # libNAME.so.V as an archive file, containing:
15352 # *) an Import File, referring to the versioned filename of the
15353 # archive as well as the shared archive member, telling the
15354 # bitwidth (32 or 64) of that shared object, and providing the
15355 # list of exported symbols of that shared object, eventually
15356 # decorated with the 'weak' keyword
15357 # *) the shared object with the F_LOADONLY flag set, to really avoid
15358 # it being seen by the linker.
15359 # At run time we better use the real file rather than another symlink,
15360 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15362 case $with_aix_soname,$aix_use_runtimelinking in
15363 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15364 # soname into executable. Probably we can add versioning support to
15365 # collect2, so additional links can be useful in future.
15366 aix,yes) # traditional libtool
15367 dynamic_linker='AIX unversionable lib.so'
15368 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15369 # instead of lib<name>.a to let people know that these are not
15370 # typical AIX shared libraries.
15371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15373 aix,no) # traditional AIX only
15374 dynamic_linker='AIX lib.a(lib.so.V)'
15375 # We preserve .a as extension for shared libraries through AIX4.2
15376 # and later when we are not doing run time linking.
15377 library_names_spec='$libname$release.a $libname.a'
15378 soname_spec='$libname$release$shared_ext$major'
15380 svr4,*) # full svr4 only
15381 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15382 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15383 # We do not specify a path in Import Files, so LIBPATH fires.
15384 shlibpath_overrides_runpath=yes
15386 *,yes) # both, prefer svr4
15387 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15388 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15389 # unpreferred sharedlib libNAME.a needs extra handling
15390 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15391 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15392 # We do not specify a path in Import Files, so LIBPATH fires.
15393 shlibpath_overrides_runpath=yes
15395 *,no) # both, prefer aix
15396 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15397 library_names_spec='$libname$release.a $libname.a'
15398 soname_spec='$libname$release$shared_ext$major'
15399 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15400 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15401 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15404 shlibpath_var=LIBPATH
15411 # Since July 2007 AmigaOS4 officially supports .so libraries.
15412 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15416 library_names_spec='$libname.ixlibrary $libname.a'
15417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15418 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15424 library_names_spec='$libname$shared_ext'
15425 dynamic_linker="$host_os ld.so"
15426 shlibpath_var=LIBRARY_PATH
15430 version_type=linux # correct to gnu/linux during the next big refactor
15432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15433 soname_spec='$libname$release$shared_ext$major'
15434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15435 shlibpath_var=LD_LIBRARY_PATH
15436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15438 # the default ld.so.conf also contains /usr/contrib/lib and
15439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15440 # libtool to hard-code these into programs
15443 cygwin* | mingw* | pw32* | cegcc*)
15444 version_type=windows
15449 case $GCC,$cc_basename in
15452 library_names_spec='$libname.dll.a'
15453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15454 postinstall_cmds='base_file=`basename \$file`~
15455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15456 dldir=$destdir/`dirname \$dlpath`~
15457 test -d \$dldir || mkdir -p \$dldir~
15458 $install_prog $dir/$dlname \$dldir/$dlname~
15459 chmod a+x \$dldir/$dlname~
15460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15464 dlpath=$dir/\$dldll~
15466 shlibpath_overrides_runpath=yes
15470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15471 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15473 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15476 # MinGW DLLs use traditional 'lib' prefix
15477 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15480 # pw32 DLLs use 'pw' prefix rather than 'lib'
15481 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15484 dynamic_linker='Win32 ld.exe'
15488 # Native MSVC or ICC
15489 libname_spec='$name'
15490 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15491 library_names_spec='$libname.dll.lib'
15495 sys_lib_search_path_spec=
15498 for lt_path in $LIB
15501 # Let DOS variable expansion print the short 8.3 style file name.
15502 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15503 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15506 # Convert to MSYS style.
15507 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15510 # Convert to unix form, then to dos form, then back to unix form
15511 # but this time dos style (no spaces!) so that the unix form looks
15512 # like /cygdrive/c/PROGRA~1:/cygdr...
15513 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15514 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15515 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15518 sys_lib_search_path_spec=$LIB
15519 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15520 # It is most probably a Windows format PATH.
15521 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15523 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15525 # FIXME: find the short name or the path components, as spaces are
15526 # common. (e.g. "Program Files" -> "PROGRA~1")
15530 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15531 postinstall_cmds='base_file=`basename \$file`~
15532 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15533 dldir=$destdir/`dirname \$dlpath`~
15534 test -d \$dldir || mkdir -p \$dldir~
15535 $install_prog $dir/$dlname \$dldir/$dlname'
15536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15537 dlpath=$dir/\$dldll~
15539 shlibpath_overrides_runpath=yes
15540 dynamic_linker='Win32 link.exe'
15544 # Assume MSVC and ICC wrapper
15545 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15546 dynamic_linker='Win32 ld.exe'
15549 # FIXME: first we should search . and the directory the executable is in
15553 darwin* | rhapsody*)
15554 dynamic_linker="$host_os dyld"
15555 version_type=darwin
15558 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15559 soname_spec='$libname$release$major$shared_ext'
15560 shlibpath_overrides_runpath=yes
15561 shlibpath_var=DYLD_LIBRARY_PATH
15562 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15569 version_type=linux # correct to gnu/linux during the next big refactor
15572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15573 soname_spec='$libname$release$shared_ext$major'
15574 shlibpath_var=LD_LIBRARY_PATH
15577 freebsd* | dragonfly* | midnightbsd*)
15578 # DragonFly does not have aout. When/if they implement a new
15579 # versioning mechanism, adjust this.
15580 if test -x /usr/bin/objformat; then
15581 objformat=`/usr/bin/objformat`
15584 freebsd[23].*) objformat=aout ;;
15585 *) objformat=elf ;;
15588 version_type=freebsd-$objformat
15589 case $version_type in
15591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15592 soname_spec='$libname$release$shared_ext$major'
15597 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15601 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes
15606 freebsd3.[01]* | freebsdelf3.[01]*)
15607 shlibpath_overrides_runpath=yes
15608 hardcode_into_libs=yes
15610 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15611 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15612 shlibpath_overrides_runpath=no
15613 hardcode_into_libs=yes
15615 *) # from 4.6 on, and DragonFly
15616 shlibpath_overrides_runpath=yes
15617 hardcode_into_libs=yes
15623 version_type=linux # correct to gnu/linux during the next big refactor
15626 dynamic_linker="$host_os runtime_loader"
15627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15628 soname_spec='$libname$release$shared_ext$major'
15629 shlibpath_var=LIBRARY_PATH
15630 shlibpath_overrides_runpath=no
15631 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15632 hardcode_into_libs=yes
15635 hpux9* | hpux10* | hpux11*)
15636 # Give a soname corresponding to the major version so that dld.sl refuses to
15637 # link against other versions.
15644 hardcode_into_libs=yes
15645 dynamic_linker="$host_os dld.so"
15646 shlibpath_var=LD_LIBRARY_PATH
15647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15649 soname_spec='$libname$release$shared_ext$major'
15650 if test 32 = "$HPUX_IA64_MODE"; then
15651 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15652 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15654 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15655 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15660 hardcode_into_libs=yes
15661 dynamic_linker="$host_os dld.sl"
15662 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15665 soname_spec='$libname$release$shared_ext$major'
15666 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15671 dynamic_linker="$host_os dld.sl"
15672 shlibpath_var=SHLIB_PATH
15673 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15675 soname_spec='$libname$release$shared_ext$major'
15678 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15679 postinstall_cmds='chmod 555 $lib'
15680 # or fails outright, so override atomically:
15681 install_override_mode=555
15685 version_type=linux # correct to gnu/linux during the next big refactor
15688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15689 soname_spec='$libname$release$shared_ext$major'
15690 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15691 shlibpath_var=LD_LIBRARY_PATH
15692 shlibpath_overrides_runpath=no
15693 hardcode_into_libs=yes
15696 irix5* | irix6* | nonstopux*)
15698 nonstopux*) version_type=nonstopux ;;
15700 if test yes = "$lt_cv_prog_gnu_ld"; then
15701 version_type=linux # correct to gnu/linux during the next big refactor
15708 soname_spec='$libname$release$shared_ext$major'
15709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15711 irix5* | nonstopux*)
15712 libsuff= shlibsuff=
15715 case $LD in # libtool.m4 will add one of these switches to LD
15716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15717 libsuff= shlibsuff= libmagic=32-bit;;
15718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15719 libsuff=32 shlibsuff=N32 libmagic=N32;;
15720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15721 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15722 *) libsuff= shlibsuff= libmagic=never-match;;
15726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15727 shlibpath_overrides_runpath=no
15728 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15729 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15730 hardcode_into_libs=yes
15733 # No shared lib support for Linux oldld, aout, or coff.
15734 linux*oldld* | linux*aout* | linux*coff*)
15739 version_type=none # Android doesn't support versioned libraries.
15742 library_names_spec='$libname$release$shared_ext'
15743 soname_spec='$libname$release$shared_ext'
15745 shlibpath_var=LD_LIBRARY_PATH
15746 shlibpath_overrides_runpath=yes
15748 # This implies no fast_install, which is unacceptable.
15749 # Some rework will be needed to allow for fast_install
15750 # before this can be enabled.
15751 hardcode_into_libs=yes
15753 dynamic_linker='Android linker'
15754 # Don't embed -rpath directories since the linker doesn't support them.
15755 hardcode_libdir_flag_spec='-L$libdir'
15758 # This must be glibc/ELF.
15759 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15760 version_type=linux # correct to gnu/linux during the next big refactor
15763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15764 soname_spec='$libname$release$shared_ext$major'
15765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15766 shlibpath_var=LD_LIBRARY_PATH
15767 shlibpath_overrides_runpath=no
15769 # Some binutils ld are patched to set DT_RUNPATH
15770 if test ${lt_cv_shlibpath_overrides_runpath+y}
15772 printf %s "(cached) " >&6
15774 lt_cv_shlibpath_overrides_runpath=no
15775 save_LDFLAGS=$LDFLAGS
15776 save_libdir=$libdir
15777 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15778 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15789 if ac_fn_c_try_link "$LINENO"
15791 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15793 lt_cv_shlibpath_overrides_runpath=yes
15796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15797 conftest$ac_exeext conftest.$ac_ext
15798 LDFLAGS=$save_LDFLAGS
15799 libdir=$save_libdir
15803 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15805 # This implies no fast_install, which is unacceptable.
15806 # Some rework will be needed to allow for fast_install
15807 # before this can be enabled.
15808 hardcode_into_libs=yes
15810 # Ideally, we could use ldconfig to report *all* directores which are
15811 # searched for libraries, however this is still not possible. Aside from not
15812 # being certain /sbin/ldconfig is available, command
15813 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15814 # even though it is searched at run-time. Try to do the best guess by
15815 # appending ld.so.conf contents (and includes) to the search path.
15816 if test -f /etc/ld.so.conf; then
15817 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15818 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15821 # We used to test for /lib/ld.so.1 and disable shared libraries on
15822 # powerpc, because MkLinux only supported shared libraries with the
15823 # GNU dynamic linker. Since this was broken with cross compilers,
15824 # most powerpc-linux boxes support dynamic linking these days and
15825 # people can always --disable-shared, the test was removed, and we
15826 # assume the GNU/Linux dynamic linker is in use.
15827 dynamic_linker='GNU/Linux ld.so'
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 shlibpath_overrides_runpath=no
15838 hardcode_into_libs=yes
15839 dynamic_linker='NetBSD ld.elf_so'
15846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15847 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15849 dynamic_linker='NetBSD (a.out) ld.so'
15851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15852 soname_spec='$libname$release$shared_ext$major'
15853 dynamic_linker='NetBSD ld.elf_so'
15855 shlibpath_var=LD_LIBRARY_PATH
15856 shlibpath_overrides_runpath=yes
15857 hardcode_into_libs=yes
15861 version_type=linux # correct to gnu/linux during the next big refactor
15862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15863 shlibpath_var=LD_LIBRARY_PATH
15864 shlibpath_overrides_runpath=yes
15871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15872 soname_spec='$libname$release$shared_ext$major'
15873 shlibpath_var=LD_LIBRARY_PATH
15874 shlibpath_overrides_runpath=no
15875 hardcode_into_libs=yes
15876 dynamic_linker='ldqnx.so'
15879 openbsd* | bitrig*)
15881 sys_lib_dlsearch_path_spec=/usr/lib
15883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15888 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15890 shlibpath_var=LD_LIBRARY_PATH
15891 shlibpath_overrides_runpath=yes
15895 libname_spec='$name'
15896 version_type=windows
15900 # OS/2 can only load a DLL with a base name of 8 characters or less.
15901 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15902 v=$($ECHO $release$versuffix | tr -d .-);
15903 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15904 $ECHO $n$v`$shared_ext'
15905 library_names_spec='${libname}_dll.$libext'
15906 dynamic_linker='OS/2 ld.exe'
15907 shlibpath_var=BEGINLIBPATH
15908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15910 postinstall_cmds='base_file=`basename \$file`~
15911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15912 dldir=$destdir/`dirname \$dlpath`~
15913 test -d \$dldir || mkdir -p \$dldir~
15914 $install_prog $dir/$dlname \$dldir/$dlname~
15915 chmod a+x \$dldir/$dlname~
15916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15920 dlpath=$dir/\$dldll~
15924 osf3* | osf4* | osf5*)
15928 soname_spec='$libname$release$shared_ext$major'
15929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15940 version_type=linux # correct to gnu/linux during the next big refactor
15943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15944 soname_spec='$libname$release$shared_ext$major'
15945 shlibpath_var=LD_LIBRARY_PATH
15946 shlibpath_overrides_runpath=yes
15947 hardcode_into_libs=yes
15948 # ldd complains unless libraries are executable
15949 postinstall_cmds='chmod +x $lib'
15954 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 shlibpath_overrides_runpath=yes
15958 if test yes = "$with_gnu_ld"; then
15965 version_type=linux # correct to gnu/linux during the next big refactor
15966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15967 soname_spec='$libname$release$shared_ext$major'
15968 shlibpath_var=LD_LIBRARY_PATH
15969 case $host_vendor in
15971 shlibpath_overrides_runpath=no
15973 runpath_var=LD_RUN_PATH
15981 shlibpath_overrides_runpath=no
15982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15988 if test -d /usr/nec; then
15989 version_type=linux # correct to gnu/linux during the next big refactor
15990 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15991 soname_spec='$libname$shared_ext.$major'
15992 shlibpath_var=LD_LIBRARY_PATH
15996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16001 soname_spec='$libname$release$shared_ext$major'
16002 shlibpath_var=LD_LIBRARY_PATH
16003 shlibpath_overrides_runpath=yes
16004 hardcode_into_libs=yes
16005 if test yes = "$with_gnu_ld"; then
16006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16015 sys_lib_dlsearch_path_spec='/usr/lib'
16019 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16020 version_type=linux # correct to gnu/linux during the next big refactor
16023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16024 shlibpath_var=LD_LIBRARY_PATH
16025 shlibpath_overrides_runpath=no
16026 hardcode_into_libs=yes
16030 version_type=linux # correct to gnu/linux during the next big refactor
16031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16032 soname_spec='$libname$release$shared_ext$major'
16033 shlibpath_var=LD_LIBRARY_PATH
16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16041 printf "%s\n" "$dynamic_linker" >&6; }
16042 test no = "$dynamic_linker" && can_build_shared=no
16044 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16045 if test yes = "$GCC"; then
16046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16049 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16050 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16053 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16054 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16057 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16058 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16060 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16061 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16063 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16064 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16163 printf %s "checking how to hardcode library paths into programs... " >&6; }
16165 if test -n "$hardcode_libdir_flag_spec" ||
16166 test -n "$runpath_var" ||
16167 test yes = "$hardcode_automatic"; then
16169 # We can hardcode non-existent directories.
16170 if test no != "$hardcode_direct" &&
16171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16172 # have to relink, otherwise we might link with an installed library
16173 # when we should be linking with a yet-to-be-installed one
16174 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16175 test no != "$hardcode_minus_L"; then
16176 # Linking always hardcodes the temporary library directory.
16177 hardcode_action=relink
16179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16180 hardcode_action=immediate
16183 # We cannot hardcode anything, or else we can only hardcode existing
16185 hardcode_action=unsupported
16187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16188 printf "%s\n" "$hardcode_action" >&6; }
16190 if test relink = "$hardcode_action" ||
16191 test yes = "$inherit_rpath"; then
16192 # Fast installation is not supported
16193 enable_fast_install=no
16194 elif test yes = "$shlibpath_overrides_runpath" ||
16195 test no = "$enable_shared"; then
16196 # Fast installation is not necessary
16197 enable_fast_install=needless
16205 if test yes != "$enable_dlopen"; then
16206 enable_dlopen=unknown
16207 enable_dlopen_self=unknown
16208 enable_dlopen_self_static=unknown
16215 lt_cv_dlopen=load_add_on
16217 lt_cv_dlopen_self=yes
16220 mingw* | pw32* | cegcc*)
16221 lt_cv_dlopen=LoadLibrary
16226 lt_cv_dlopen=dlopen
16231 # if libdl is installed we need to link against it
16232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16233 printf %s "checking for dlopen in -ldl... " >&6; }
16234 if test ${ac_cv_lib_dl_dlopen+y}
16236 printf %s "(cached) " >&6
16238 ac_check_lib_save_LIBS=$LIBS
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16255 if ac_fn_c_try_link "$LINENO"
16257 ac_cv_lib_dl_dlopen=yes
16259 ac_cv_lib_dl_dlopen=no
16261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16262 conftest$ac_exeext conftest.$ac_ext
16263 LIBS=$ac_check_lib_save_LIBS
16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16266 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16267 if test "x$ac_cv_lib_dl_dlopen" = xyes
16269 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16274 lt_cv_dlopen_self=yes
16281 # Don't try to run any link tests for TPF. We know it's impossible
16282 # because TPF is a cross-compiler, and we know how we open DSOs.
16283 lt_cv_dlopen=dlopen
16285 lt_cv_dlopen_self=no
16289 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16290 if test "x$ac_cv_func_shl_load" = xyes
16292 lt_cv_dlopen=shl_load
16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16295 printf %s "checking for shl_load in -ldld... " >&6; }
16296 if test ${ac_cv_lib_dld_shl_load+y}
16298 printf %s "(cached) " >&6
16300 ac_check_lib_save_LIBS=$LIBS
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16312 return shl_load ();
16317 if ac_fn_c_try_link "$LINENO"
16319 ac_cv_lib_dld_shl_load=yes
16321 ac_cv_lib_dld_shl_load=no
16323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16324 conftest$ac_exeext conftest.$ac_ext
16325 LIBS=$ac_check_lib_save_LIBS
16327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16328 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16329 if test "x$ac_cv_lib_dld_shl_load" = xyes
16331 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16333 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16334 if test "x$ac_cv_func_dlopen" = xyes
16336 lt_cv_dlopen=dlopen
16338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16339 printf %s "checking for dlopen in -ldl... " >&6; }
16340 if test ${ac_cv_lib_dl_dlopen+y}
16342 printf %s "(cached) " >&6
16344 ac_check_lib_save_LIBS=$LIBS
16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h. */
16361 if ac_fn_c_try_link "$LINENO"
16363 ac_cv_lib_dl_dlopen=yes
16365 ac_cv_lib_dl_dlopen=no
16367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16368 conftest$ac_exeext conftest.$ac_ext
16369 LIBS=$ac_check_lib_save_LIBS
16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16372 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16373 if test "x$ac_cv_lib_dl_dlopen" = xyes
16375 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16378 printf %s "checking for dlopen in -lsvld... " >&6; }
16379 if test ${ac_cv_lib_svld_dlopen+y}
16381 printf %s "(cached) " >&6
16383 ac_check_lib_save_LIBS=$LIBS
16384 LIBS="-lsvld $LIBS"
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16400 if ac_fn_c_try_link "$LINENO"
16402 ac_cv_lib_svld_dlopen=yes
16404 ac_cv_lib_svld_dlopen=no
16406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16407 conftest$ac_exeext conftest.$ac_ext
16408 LIBS=$ac_check_lib_save_LIBS
16410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16411 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16412 if test "x$ac_cv_lib_svld_dlopen" = xyes
16414 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16417 printf %s "checking for dld_link in -ldld... " >&6; }
16418 if test ${ac_cv_lib_dld_dld_link+y}
16420 printf %s "(cached) " >&6
16422 ac_check_lib_save_LIBS=$LIBS
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16434 return dld_link ();
16439 if ac_fn_c_try_link "$LINENO"
16441 ac_cv_lib_dld_dld_link=yes
16443 ac_cv_lib_dld_dld_link=no
16445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16446 conftest$ac_exeext conftest.$ac_ext
16447 LIBS=$ac_check_lib_save_LIBS
16449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16450 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16451 if test "x$ac_cv_lib_dld_dld_link" = xyes
16453 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16474 if test no = "$lt_cv_dlopen"; then
16480 case $lt_cv_dlopen in
16482 save_CPPFLAGS=$CPPFLAGS
16483 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16485 save_LDFLAGS=$LDFLAGS
16486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16489 LIBS="$lt_cv_dlopen_libs $LIBS"
16491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16492 printf %s "checking whether a program can dlopen itself... " >&6; }
16493 if test ${lt_cv_dlopen_self+y}
16495 printf %s "(cached) " >&6
16497 if test yes = "$cross_compiling"; then :
16498 lt_cv_dlopen_self=cross
16500 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16501 lt_status=$lt_dlunknown
16502 cat > conftest.$ac_ext <<_LT_EOF
16503 #line $LINENO "configure"
16504 #include "confdefs.h"
16513 # define LT_DLGLOBAL RTLD_GLOBAL
16516 # define LT_DLGLOBAL DL_GLOBAL
16518 # define LT_DLGLOBAL 0
16522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16523 find out it does not work in some platform. */
16524 #ifndef LT_DLLAZY_OR_NOW
16526 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16529 # define LT_DLLAZY_OR_NOW DL_LAZY
16532 # define LT_DLLAZY_OR_NOW RTLD_NOW
16535 # define LT_DLLAZY_OR_NOW DL_NOW
16537 # define LT_DLLAZY_OR_NOW 0
16544 /* When -fvisibility=hidden is used, assume the code has been annotated
16545 correspondingly for the symbols needed. */
16546 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16547 int fnord () __attribute__((visibility("default")));
16550 int fnord () { return 42; }
16553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16554 int status = $lt_dlunknown;
16558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16561 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16562 else puts (dlerror ());
16564 /* dlclose (self); */
16572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16573 (eval $ac_link) 2>&5
16575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16576 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16577 (./conftest; exit; ) >&5 2>/dev/null
16579 case x$lt_status in
16580 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16581 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16582 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16585 # compilation failed
16586 lt_cv_dlopen_self=no
16593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16594 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16596 if test yes = "$lt_cv_dlopen_self"; then
16597 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16599 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16600 if test ${lt_cv_dlopen_self_static+y}
16602 printf %s "(cached) " >&6
16604 if test yes = "$cross_compiling"; then :
16605 lt_cv_dlopen_self_static=cross
16607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16608 lt_status=$lt_dlunknown
16609 cat > conftest.$ac_ext <<_LT_EOF
16610 #line $LINENO "configure"
16611 #include "confdefs.h"
16620 # define LT_DLGLOBAL RTLD_GLOBAL
16623 # define LT_DLGLOBAL DL_GLOBAL
16625 # define LT_DLGLOBAL 0
16629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16630 find out it does not work in some platform. */
16631 #ifndef LT_DLLAZY_OR_NOW
16633 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16636 # define LT_DLLAZY_OR_NOW DL_LAZY
16639 # define LT_DLLAZY_OR_NOW RTLD_NOW
16642 # define LT_DLLAZY_OR_NOW DL_NOW
16644 # define LT_DLLAZY_OR_NOW 0
16651 /* When -fvisibility=hidden is used, assume the code has been annotated
16652 correspondingly for the symbols needed. */
16653 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16654 int fnord () __attribute__((visibility("default")));
16657 int fnord () { return 42; }
16660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16661 int status = $lt_dlunknown;
16665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16668 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16669 else puts (dlerror ());
16671 /* dlclose (self); */
16679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16680 (eval $ac_link) 2>&5
16682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16684 (./conftest; exit; ) >&5 2>/dev/null
16686 case x$lt_status in
16687 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16688 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16689 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16692 # compilation failed
16693 lt_cv_dlopen_self_static=no
16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16701 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16704 CPPFLAGS=$save_CPPFLAGS
16705 LDFLAGS=$save_LDFLAGS
16710 case $lt_cv_dlopen_self in
16711 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16712 *) enable_dlopen_self=unknown ;;
16715 case $lt_cv_dlopen_self_static in
16716 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16717 *) enable_dlopen_self_static=unknown ;;
16739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16740 printf %s "checking whether stripping libraries is possible... " >&6; }
16741 if test -z "$STRIP"; then
16742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16743 printf "%s\n" "no" >&6; }
16745 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16746 old_striplib="$STRIP --strip-debug"
16747 striplib="$STRIP --strip-unneeded"
16748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16749 printf "%s\n" "yes" >&6; }
16753 # FIXME - insert some real tests, host_os isn't really good enough
16754 striplib="$STRIP -x"
16755 old_striplib="$STRIP -S"
16756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16757 printf "%s\n" "yes" >&6; }
16760 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16761 old_striplib="$STRIP --strip-debug"
16762 striplib="$STRIP --strip-unneeded"
16763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16764 printf "%s\n" "yes" >&6; }
16766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 printf "%s\n" "no" >&6; }
16771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16772 printf "%s\n" "no" >&6; }
16789 # Report what library types will actually be built
16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16791 printf %s "checking if libtool supports shared libraries... " >&6; }
16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16793 printf "%s\n" "$can_build_shared" >&6; }
16795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16796 printf %s "checking whether to build shared libraries... " >&6; }
16797 test no = "$can_build_shared" && enable_shared=no
16799 # On AIX, shared libraries and static libraries use the same namespace, and
16800 # are all built from PIC.
16803 test yes = "$enable_shared" && enable_static=no
16804 if test -n "$RANLIB"; then
16805 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16806 postinstall_cmds='$RANLIB $lib'
16811 if test ia64 != "$host_cpu"; then
16812 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16813 yes,aix,yes) ;; # shared object as lib.so file only
16814 yes,svr4,*) ;; # shared object as lib.so archive member only
16815 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16821 printf "%s\n" "$enable_shared" >&6; }
16823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16824 printf %s "checking whether to build static libraries... " >&6; }
16825 # Make sure either enable_shared or enable_static is yes.
16826 test yes = "$enable_shared" || enable_static=yes
16827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16828 printf "%s\n" "$enable_static" >&6; }
16835 ac_cpp='$CPP $CPPFLAGS'
16836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16856 ac_config_commands="$ac_config_commands libtool"
16861 # Only expand once:
16864 ## --------------------- ##
16865 ## End of libtool code ##
16866 ## --------------------- ##
16869 # Verify if finally libtool shared libraries will be built
16872 case "x$enable_shared" in # ((
16874 xc_lt_build_shared=$enable_shared
16877 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16882 # Verify if finally libtool static libraries will be built
16885 case "x$enable_static" in # ((
16887 xc_lt_build_static=$enable_static
16890 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16895 # Verify if libtool shared libraries should be linked using flag -version-info
16898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16899 printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16900 xc_lt_shlib_use_version_info='yes'
16901 if test "x$version_type" = 'xnone'; then
16902 xc_lt_shlib_use_version_info='no'
16904 case $host_os in # (
16906 xc_lt_shlib_use_version_info='yes'
16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16910 printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16913 # Verify if libtool shared libraries should be linked using flag -no-undefined
16916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16917 printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16918 xc_lt_shlib_use_no_undefined='no'
16919 if test "x$allow_undefined" = 'xno'; then
16920 xc_lt_shlib_use_no_undefined='yes'
16921 elif test "x$allow_undefined_flag" = 'xunsupported'; then
16922 xc_lt_shlib_use_no_undefined='yes'
16924 case $host_os in # (
16925 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16926 xc_lt_shlib_use_no_undefined='yes'
16929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16930 printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16933 # Verify if libtool shared libraries should be linked using flag -mimpure-text
16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16937 printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
16938 xc_lt_shlib_use_mimpure_text='no'
16939 case $host_os in # (
16941 if test "x$GCC" = 'xyes'; then
16942 xc_lt_shlib_use_mimpure_text='yes'
16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16947 printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
16950 # Find out whether libtool libraries would be built with PIC
16953 case "x$pic_mode" in # ((((
16955 xc_lt_build_shared_with_pic='yes'
16956 xc_lt_build_static_with_pic='no'
16959 xc_lt_build_shared_with_pic='yes'
16960 xc_lt_build_static_with_pic='yes'
16963 xc_lt_build_shared_with_pic='no'
16964 xc_lt_build_static_with_pic='no'
16967 xc_lt_build_shared_with_pic='unknown'
16968 xc_lt_build_static_with_pic='unknown'
16969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16970 printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16974 printf %s "checking whether to build shared libraries with PIC... " >&6; }
16975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16976 printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16978 printf %s "checking whether to build static libraries with PIC... " >&6; }
16979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16980 printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
16983 # Verify if libtool shared libraries will be built while static not built
16986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16987 printf %s "checking whether to build shared libraries only... " >&6; }
16988 if test "$xc_lt_build_shared" = 'yes' &&
16989 test "$xc_lt_build_static" = 'no'; then
16990 xc_lt_build_shared_only='yes'
16992 xc_lt_build_shared_only='no'
16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
16995 printf "%s\n" "$xc_lt_build_shared_only" >&6; }
16998 # Verify if libtool static libraries will be built while shared not built
17001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
17002 printf %s "checking whether to build static libraries only... " >&6; }
17003 if test "$xc_lt_build_static" = 'yes' &&
17004 test "$xc_lt_build_shared" = 'no'; then
17005 xc_lt_build_static_only='yes'
17007 xc_lt_build_static_only='no'
17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
17010 printf "%s\n" "$xc_lt_build_static_only" >&6; }
17015 if test -n "$ac_tool_prefix"; then
17016 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17017 set dummy ${ac_tool_prefix}windres; ac_word=$2
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17019 printf %s "checking for $ac_word... " >&6; }
17020 if test ${ac_cv_prog_RC+y}
17022 printf %s "(cached) " >&6
17024 if test -n "$RC"; then
17025 ac_cv_prog_RC="$RC" # Let the user override the test.
17027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17028 for as_dir in $PATH
17031 case $as_dir in #(((
17034 *) as_dir=$as_dir/ ;;
17036 for ac_exec_ext in '' $ac_executable_extensions; do
17037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17038 ac_cv_prog_RC="${ac_tool_prefix}windres"
17039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17049 if test -n "$RC"; then
17050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17051 printf "%s\n" "$RC" >&6; }
17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17054 printf "%s\n" "no" >&6; }
17059 if test -z "$ac_cv_prog_RC"; then
17061 # Extract the first word of "windres", so it can be a program name with args.
17062 set dummy windres; ac_word=$2
17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17064 printf %s "checking for $ac_word... " >&6; }
17065 if test ${ac_cv_prog_ac_ct_RC+y}
17067 printf %s "(cached) " >&6
17069 if test -n "$ac_ct_RC"; then
17070 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17073 for as_dir in $PATH
17076 case $as_dir in #(((
17079 *) as_dir=$as_dir/ ;;
17081 for ac_exec_ext in '' $ac_executable_extensions; do
17082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17083 ac_cv_prog_ac_ct_RC="windres"
17084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17093 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17094 if test -n "$ac_ct_RC"; then
17095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17096 printf "%s\n" "$ac_ct_RC" >&6; }
17098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099 printf "%s\n" "no" >&6; }
17102 if test "x$ac_ct_RC" = x; then
17105 case $cross_compiling:$ac_tool_warned in
17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17108 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17109 ac_tool_warned=yes ;;
17114 RC="$ac_cv_prog_RC"
17120 # Source file extension for RC test sources.
17123 # Object file extension for compiled RC test sources.
17127 # Code to be used in simple compile tests
17128 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17130 # Code to be used in simple link tests
17131 lt_simple_link_test_code=$lt_simple_compile_test_code
17133 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17140 # If no C compiler was specified, use CC.
17143 # If no C compiler flags were specified, use CFLAGS.
17144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17146 # Allow CC to be a program name with arguments.
17150 # save warnings/boilerplate of simple test code
17151 ac_outfile=conftest.$ac_objext
17152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17154 _lt_compiler_boilerplate=`cat conftest.err`
17157 ac_outfile=conftest.$ac_objext
17158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17160 _lt_linker_boilerplate=`cat conftest.err`
17164 # Allow CC to be a program name with arguments.
17166 lt_save_CFLAGS=$CFLAGS
17173 func_cc_basename $compiler
17174 cc_basename=$func_cc_basename_result
17176 lt_cv_prog_compiler_c_o_RC=yes
17178 if test -n "$compiler"; then
17187 ac_cpp='$CPP $CPPFLAGS'
17188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17193 CFLAGS=$lt_save_CFLAGS
17197 # Automake conditionals based on libtool related checks
17200 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
17201 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
17202 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
17204 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
17205 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
17208 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17209 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
17210 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
17212 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
17213 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
17216 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
17217 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
17218 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
17220 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
17221 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
17226 # Due to libtool and automake machinery limitations of not allowing
17227 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
17228 # inclusion of these in shared or static libraries, we are forced to
17229 # build using separate configure runs for shared and static libraries
17230 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
17231 # to compile objects for each kind of library. Notice that relying on
17232 # the '-DPIC' CFLAG that libtool provides is not valid given that the
17233 # user might for example choose to build static libraries with PIC.
17237 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
17238 # targeting a static library and not building its shared counterpart.
17241 if test "x$xc_lt_build_static_only" = 'xyes'; then
17242 USE_CPPFLAG_CURL_STATICLIB_TRUE=
17243 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
17245 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
17246 USE_CPPFLAG_CURL_STATICLIB_FALSE=
17251 # Make staticlib CPPFLAG variable and its definition visible in output
17252 # files unconditionally, providing an empty definition unless strictly
17253 # targeting a static library and not building its shared counterpart.
17256 CPPFLAG_CURL_STATICLIB=
17257 if test "x$xc_lt_build_static_only" = 'xyes'; then
17258 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
17263 # Determine whether all dependent libraries must be specified when linking
17264 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
17266 REQUIRE_LIB_DEPS=no
17268 REQUIRE_LIB_DEPS=yes
17271 if test x$REQUIRE_LIB_DEPS = xyes; then
17272 USE_EXPLICIT_LIB_DEPS_TRUE=
17273 USE_EXPLICIT_LIB_DEPS_FALSE='#'
17275 USE_EXPLICIT_LIB_DEPS_TRUE='#'
17276 USE_EXPLICIT_LIB_DEPS_FALSE=
17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17281 printf %s "checking for inline... " >&6; }
17282 if test ${ac_cv_c_inline+y}
17284 printf %s "(cached) " >&6
17287 for ac_kw in inline __inline__ __inline; do
17288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289 /* end confdefs.h. */
17290 #ifndef __cplusplus
17292 static $ac_kw foo_t static_foo (void) {return 0; }
17293 $ac_kw foo_t foo (void) {return 0; }
17297 if ac_fn_c_try_compile "$LINENO"
17299 ac_cv_c_inline=$ac_kw
17301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17302 test "$ac_cv_c_inline" != no && break
17306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17307 printf "%s\n" "$ac_cv_c_inline" >&6; }
17309 case $ac_cv_c_inline in
17312 case $ac_cv_c_inline in
17314 *) ac_val=$ac_cv_c_inline;;
17316 cat >>confdefs.h <<_ACEOF
17317 #ifndef __cplusplus
17318 #define inline $ac_val
17327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
17328 printf %s "checking if cpp -P is needed... " >&6; }
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17337 $EGREP "TEST.*TEST" >/dev/null 2>&1
17345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
17346 printf "%s\n" "$cpp" >&6; }
17348 if test "x$cpp" = "xyes"; then
17349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
17350 printf %s "checking if cpp -P works... " >&6; }
17351 OLDCPPFLAGS=$CPPFLAGS
17352 CPPFLAGS="$CPPFLAGS -P"
17353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17354 /* end confdefs.h. */
17360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17361 $EGREP "TEST.*TEST" >/dev/null 2>&1
17369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
17370 printf "%s\n" "$cpp_p" >&6; }
17372 if test "x$cpp_p" = "xno"; then
17373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
17374 printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
17381 CPPFLAGS=$OLDCPPFLAGS
17389 compiler_id="unknown"
17392 flags_dbg_yes="unknown"
17393 flags_opt_all="unknown"
17394 flags_opt_yes="unknown"
17395 flags_opt_off="unknown"
17397 flags_prefer_cppflags="no"
17400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
17401 printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
17403 OLDCPPFLAGS=$CPPFLAGS
17404 # CPPPFLAG comes from CURL_CPP_P
17405 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17406 if test -z "$SED"; then
17407 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17409 if test -z "$GREP"; then
17410 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17419 CURL_DEF_TOKEN __DECC
17424 if ac_fn_c_try_cpp "$LINENO"
17427 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17428 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17429 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17430 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17431 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
17436 rm -f conftest.err conftest.i conftest.$ac_ext
17437 if test -z "$tmp_exp"; then
17438 curl_cv_have_def___DECC=no
17441 curl_cv_have_def___DECC=yes
17442 curl_cv_def___DECC=$tmp_exp
17445 CPPFLAGS=$OLDCPPFLAGS
17448 OLDCPPFLAGS=$CPPFLAGS
17449 # CPPPFLAG comes from CURL_CPP_P
17450 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17451 if test -z "$SED"; then
17452 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17454 if test -z "$GREP"; then
17455 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17464 CURL_DEF_TOKEN __DECC_VER
17469 if ac_fn_c_try_cpp "$LINENO"
17472 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17473 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17474 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17475 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17476 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
17481 rm -f conftest.err conftest.i conftest.$ac_ext
17482 if test -z "$tmp_exp"; then
17483 curl_cv_have_def___DECC_VER=no
17486 curl_cv_have_def___DECC_VER=yes
17487 curl_cv_def___DECC_VER=$tmp_exp
17490 CPPFLAGS=$OLDCPPFLAGS
17492 if test "$curl_cv_have_def___DECC" = "yes" &&
17493 test "$curl_cv_have_def___DECC_VER" = "yes"; then
17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17495 printf "%s\n" "yes" >&6; }
17496 compiler_id="DEC_C"
17497 flags_dbg_yes="-g2"
17498 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
17499 flags_opt_yes="-O1"
17500 flags_opt_off="-O0"
17502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 printf "%s\n" "no" >&6; }
17507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
17508 printf %s "checking if compiler is HP-UX C... " >&6; }
17510 OLDCPPFLAGS=$CPPFLAGS
17511 # CPPPFLAG comes from CURL_CPP_P
17512 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17513 if test -z "$SED"; then
17514 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17516 if test -z "$GREP"; then
17517 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522 /* end confdefs.h. */
17526 CURL_DEF_TOKEN __HP_cc
17531 if ac_fn_c_try_cpp "$LINENO"
17534 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17535 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17536 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17537 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17538 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
17543 rm -f conftest.err conftest.i conftest.$ac_ext
17544 if test -z "$tmp_exp"; then
17545 curl_cv_have_def___HP_cc=no
17548 curl_cv_have_def___HP_cc=yes
17549 curl_cv_def___HP_cc=$tmp_exp
17552 CPPFLAGS=$OLDCPPFLAGS
17554 if test "$curl_cv_have_def___HP_cc" = "yes"; then
17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17556 printf "%s\n" "yes" >&6; }
17557 compiler_id="HP_UX_C"
17559 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
17560 flags_opt_yes="+O2"
17561 flags_opt_off="+O0"
17563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564 printf "%s\n" "no" >&6; }
17568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
17569 printf %s "checking if compiler is IBM C... " >&6; }
17571 OLDCPPFLAGS=$CPPFLAGS
17572 # CPPPFLAG comes from CURL_CPP_P
17573 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17574 if test -z "$SED"; then
17575 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17577 if test -z "$GREP"; then
17578 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583 /* end confdefs.h. */
17587 CURL_DEF_TOKEN __IBMC__
17592 if ac_fn_c_try_cpp "$LINENO"
17595 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17596 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17597 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17598 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17599 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
17604 rm -f conftest.err conftest.i conftest.$ac_ext
17605 if test -z "$tmp_exp"; then
17606 curl_cv_have_def___IBMC__=no
17609 curl_cv_have_def___IBMC__=yes
17610 curl_cv_def___IBMC__=$tmp_exp
17613 CPPFLAGS=$OLDCPPFLAGS
17615 if test "$curl_cv_have_def___IBMC__" = "yes"; then
17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17617 printf "%s\n" "yes" >&6; }
17618 compiler_id="IBM_C"
17620 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
17621 flags_opt_all="$flags_opt_all -qnooptimize"
17622 flags_opt_all="$flags_opt_all -qoptimize=0"
17623 flags_opt_all="$flags_opt_all -qoptimize=1"
17624 flags_opt_all="$flags_opt_all -qoptimize=2"
17625 flags_opt_all="$flags_opt_all -qoptimize=3"
17626 flags_opt_all="$flags_opt_all -qoptimize=4"
17627 flags_opt_all="$flags_opt_all -qoptimize=5"
17628 flags_opt_yes="-O2"
17629 flags_opt_off="-qnooptimize"
17630 flags_prefer_cppflags="yes"
17632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17633 printf "%s\n" "no" >&6; }
17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
17638 printf %s "checking if compiler is Intel C... " >&6; }
17640 OLDCPPFLAGS=$CPPFLAGS
17641 # CPPPFLAG comes from CURL_CPP_P
17642 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17643 if test -z "$SED"; then
17644 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17646 if test -z "$GREP"; then
17647 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17655 #ifdef __INTEL_COMPILER
17656 CURL_DEF_TOKEN __INTEL_COMPILER
17661 if ac_fn_c_try_cpp "$LINENO"
17664 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17665 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17666 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17667 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17668 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
17673 rm -f conftest.err conftest.i conftest.$ac_ext
17674 if test -z "$tmp_exp"; then
17675 curl_cv_have_def___INTEL_COMPILER=no
17678 curl_cv_have_def___INTEL_COMPILER=yes
17679 curl_cv_def___INTEL_COMPILER=$tmp_exp
17682 CPPFLAGS=$OLDCPPFLAGS
17684 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
17685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17686 printf "%s\n" "yes" >&6; }
17687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17688 printf %s "checking compiler version... " >&6; }
17689 compiler_num="$curl_cv_def___INTEL_COMPILER"
17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Intel C '$compiler_num'" >&5
17691 printf "%s\n" "Intel C '$compiler_num'" >&6; }
17693 OLDCPPFLAGS=$CPPFLAGS
17694 # CPPPFLAG comes from CURL_CPP_P
17695 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17696 if test -z "$SED"; then
17697 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17699 if test -z "$GREP"; then
17700 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17709 CURL_DEF_TOKEN __unix__
17714 if ac_fn_c_try_cpp "$LINENO"
17717 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17718 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17719 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17720 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17721 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
17726 rm -f conftest.err conftest.i conftest.$ac_ext
17727 if test -z "$tmp_exp"; then
17728 curl_cv_have_def___unix__=no
17731 curl_cv_have_def___unix__=yes
17732 curl_cv_def___unix__=$tmp_exp
17735 CPPFLAGS=$OLDCPPFLAGS
17737 if test "$curl_cv_have_def___unix__" = "yes"; then
17738 compiler_id="INTEL_UNIX_C"
17740 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
17741 flags_opt_yes="-O2"
17742 flags_opt_off="-O0"
17744 compiler_id="INTEL_WINDOWS_C"
17745 flags_dbg_yes="/Zi /Oy-"
17746 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
17747 flags_opt_yes="/O2"
17748 flags_opt_off="/Od"
17751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17752 printf "%s\n" "no" >&6; }
17756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
17757 printf %s "checking if compiler is clang... " >&6; }
17759 OLDCPPFLAGS=$CPPFLAGS
17760 # CPPPFLAG comes from CURL_CPP_P
17761 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17762 if test -z "$SED"; then
17763 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17765 if test -z "$GREP"; then
17766 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h. */
17775 CURL_DEF_TOKEN __clang__
17780 if ac_fn_c_try_cpp "$LINENO"
17783 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17784 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17785 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17786 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17787 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
17792 rm -f conftest.err conftest.i conftest.$ac_ext
17793 if test -z "$tmp_exp"; then
17794 curl_cv_have_def___clang__=no
17797 curl_cv_have_def___clang__=yes
17798 curl_cv_def___clang__=$tmp_exp
17801 CPPFLAGS=$OLDCPPFLAGS
17803 if test "$curl_cv_have_def___clang__" = "yes"; then
17804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17805 printf "%s\n" "yes" >&6; }
17806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
17807 printf %s "checking if compiler is xlclang... " >&6; }
17809 OLDCPPFLAGS=$CPPFLAGS
17810 # CPPPFLAG comes from CURL_CPP_P
17811 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17812 if test -z "$SED"; then
17813 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17815 if test -z "$GREP"; then
17816 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17825 CURL_DEF_TOKEN __ibmxl__
17830 if ac_fn_c_try_cpp "$LINENO"
17833 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17834 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17835 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17836 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17837 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17842 rm -f conftest.err conftest.i conftest.$ac_ext
17843 if test -z "$tmp_exp"; then
17844 curl_cv_have_def___ibmxl__=no
17847 curl_cv_have_def___ibmxl__=yes
17848 curl_cv_def___ibmxl__=$tmp_exp
17851 CPPFLAGS=$OLDCPPFLAGS
17853 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17855 printf "%s\n" "yes" >&6; }
17856 compiler_id="XLCLANG"
17858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17859 printf "%s\n" "no" >&6; }
17860 compiler_id="CLANG"
17862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17863 printf %s "checking compiler version... " >&6; }
17864 fullclangver=`$CC -v 2>&1 | grep version`
17865 if echo $fullclangver | grep 'Apple' >/dev/null; then
17870 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17871 if test -z "$clangver"; then
17872 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17877 clangvhi=`echo $clangver | cut -d . -f1`
17878 clangvlo=`echo $clangver | cut -d . -f2`
17879 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17880 if test "$appleclang" = '1' && test "$oldapple" = '0'; then
17881 if test "$compiler_num" -ge '1300'; then compiler_num='1200'
17882 elif test "$compiler_num" -ge '1205'; then compiler_num='1101'
17883 elif test "$compiler_num" -ge '1204'; then compiler_num='1000'
17884 elif test "$compiler_num" -ge '1107'; then compiler_num='900'
17885 elif test "$compiler_num" -ge '1103'; then compiler_num='800'
17886 elif test "$compiler_num" -ge '1003'; then compiler_num='700'
17887 elif test "$compiler_num" -ge '1001'; then compiler_num='600'
17888 elif test "$compiler_num" -ge '904'; then compiler_num='500'
17889 elif test "$compiler_num" -ge '902'; then compiler_num='400'
17890 elif test "$compiler_num" -ge '803'; then compiler_num='309'
17891 elif test "$compiler_num" -ge '703'; then compiler_num='308'
17892 else compiler_num='307'
17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&5
17896 printf "%s\n" "clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&6; }
17898 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17899 flags_opt_yes="-O2"
17900 flags_opt_off="-O0"
17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17903 printf "%s\n" "no" >&6; }
17907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17908 printf %s "checking if compiler is GNU C... " >&6; }
17910 OLDCPPFLAGS=$CPPFLAGS
17911 # CPPPFLAG comes from CURL_CPP_P
17912 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17913 if test -z "$SED"; then
17914 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17916 if test -z "$GREP"; then
17917 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h. */
17926 CURL_DEF_TOKEN __GNUC__
17931 if ac_fn_c_try_cpp "$LINENO"
17934 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17935 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17936 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17937 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17938 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17943 rm -f conftest.err conftest.i conftest.$ac_ext
17944 if test -z "$tmp_exp"; then
17945 curl_cv_have_def___GNUC__=no
17948 curl_cv_have_def___GNUC__=yes
17949 curl_cv_def___GNUC__=$tmp_exp
17952 CPPFLAGS=$OLDCPPFLAGS
17954 if test "$curl_cv_have_def___GNUC__" = "yes" &&
17955 test "$compiler_id" = "unknown"; then
17956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17957 printf "%s\n" "yes" >&6; }
17958 compiler_id="GNU_C"
17959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5
17960 printf %s "checking compiler version... " >&6; }
17961 # strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32'
17962 gccver=`$CC -dumpversion | sed -E 's/-.+$//'`
17963 gccvhi=`echo $gccver | cut -d . -f1`
17964 if echo $gccver | grep -F '.' >/dev/null; then
17965 gccvlo=`echo $gccver | cut -d . -f2`
17969 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gcc '$compiler_num' (raw: '$gccver')" >&5
17971 printf "%s\n" "gcc '$compiler_num' (raw: '$gccver')" >&6; }
17973 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17974 flags_opt_yes="-O2"
17975 flags_opt_off="-O0"
17977 OLDCPPFLAGS=$CPPFLAGS
17978 # CPPPFLAG comes from CURL_CPP_P
17979 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17980 if test -z "$SED"; then
17981 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17983 if test -z "$GREP"; then
17984 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17993 CURL_DEF_TOKEN _WIN32
17998 if ac_fn_c_try_cpp "$LINENO"
18001 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18002 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18003 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18004 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18005 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
18010 rm -f conftest.err conftest.i conftest.$ac_ext
18011 if test -z "$tmp_exp"; then
18012 curl_cv_have_def__WIN32=no
18015 curl_cv_have_def__WIN32=yes
18016 curl_cv_def__WIN32=$tmp_exp
18019 CPPFLAGS=$OLDCPPFLAGS
18022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18023 printf "%s\n" "no" >&6; }
18027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
18028 printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
18030 OLDCPPFLAGS=$CPPFLAGS
18031 # CPPPFLAG comes from CURL_CPP_P
18032 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18033 if test -z "$SED"; then
18034 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18036 if test -z "$GREP"; then
18037 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18046 CURL_DEF_TOKEN __GNUC__
18051 if ac_fn_c_try_cpp "$LINENO"
18054 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18055 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18056 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18057 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18058 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18063 rm -f conftest.err conftest.i conftest.$ac_ext
18064 if test -z "$tmp_exp"; then
18065 curl_cv_have_def___GNUC__=no
18068 curl_cv_have_def___GNUC__=yes
18069 curl_cv_def___GNUC__=$tmp_exp
18072 CPPFLAGS=$OLDCPPFLAGS
18075 OLDCPPFLAGS=$CPPFLAGS
18076 # CPPPFLAG comes from CURL_CPP_P
18077 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18078 if test -z "$SED"; then
18079 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18081 if test -z "$GREP"; then
18082 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18090 #ifdef _COMPILER_VERSION
18091 CURL_DEF_TOKEN _COMPILER_VERSION
18096 if ac_fn_c_try_cpp "$LINENO"
18099 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18100 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18101 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18102 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18103 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
18108 rm -f conftest.err conftest.i conftest.$ac_ext
18109 if test -z "$tmp_exp"; then
18110 curl_cv_have_def__COMPILER_VERSION=no
18113 curl_cv_have_def__COMPILER_VERSION=yes
18114 curl_cv_def__COMPILER_VERSION=$tmp_exp
18117 CPPFLAGS=$OLDCPPFLAGS
18120 OLDCPPFLAGS=$CPPFLAGS
18121 # CPPPFLAG comes from CURL_CPP_P
18122 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18123 if test -z "$SED"; then
18124 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18126 if test -z "$GREP"; then
18127 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18135 #ifdef _SGI_COMPILER_VERSION
18136 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
18141 if ac_fn_c_try_cpp "$LINENO"
18144 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18145 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18146 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18147 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18148 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
18153 rm -f conftest.err conftest.i conftest.$ac_ext
18154 if test -z "$tmp_exp"; then
18155 curl_cv_have_def__SGI_COMPILER_VERSION=no
18158 curl_cv_have_def__SGI_COMPILER_VERSION=yes
18159 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
18162 CPPFLAGS=$OLDCPPFLAGS
18164 if test "$curl_cv_have_def___GNUC__" = "no" &&
18165 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
18166 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
18167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18168 printf "%s\n" "yes" >&6; }
18169 compiler_id="SGI_MIPSPRO_C"
18171 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18172 flags_opt_yes="-O2"
18173 flags_opt_off="-O0"
18175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176 printf "%s\n" "no" >&6; }
18180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
18181 printf %s "checking if compiler is SGI MIPS C... " >&6; }
18183 OLDCPPFLAGS=$CPPFLAGS
18184 # CPPPFLAG comes from CURL_CPP_P
18185 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18186 if test -z "$SED"; then
18187 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18189 if test -z "$GREP"; then
18190 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h. */
18199 CURL_DEF_TOKEN __GNUC__
18204 if ac_fn_c_try_cpp "$LINENO"
18207 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18208 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18209 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18210 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18211 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
18216 rm -f conftest.err conftest.i conftest.$ac_ext
18217 if test -z "$tmp_exp"; then
18218 curl_cv_have_def___GNUC__=no
18221 curl_cv_have_def___GNUC__=yes
18222 curl_cv_def___GNUC__=$tmp_exp
18225 CPPFLAGS=$OLDCPPFLAGS
18228 OLDCPPFLAGS=$CPPFLAGS
18229 # CPPPFLAG comes from CURL_CPP_P
18230 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18231 if test -z "$SED"; then
18232 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18234 if test -z "$GREP"; then
18235 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18244 CURL_DEF_TOKEN __sgi
18249 if ac_fn_c_try_cpp "$LINENO"
18252 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18253 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18254 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18255 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18256 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
18261 rm -f conftest.err conftest.i conftest.$ac_ext
18262 if test -z "$tmp_exp"; then
18263 curl_cv_have_def___sgi=no
18266 curl_cv_have_def___sgi=yes
18267 curl_cv_def___sgi=$tmp_exp
18270 CPPFLAGS=$OLDCPPFLAGS
18272 if test "$curl_cv_have_def___GNUC__" = "no" &&
18273 test "$curl_cv_have_def___sgi" = "yes" &&
18274 test "$compiler_id" = "unknown"; then
18275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18276 printf "%s\n" "yes" >&6; }
18277 compiler_id="SGI_MIPS_C"
18279 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
18280 flags_opt_yes="-O2"
18281 flags_opt_off="-O0"
18283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284 printf "%s\n" "no" >&6; }
18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
18289 printf %s "checking if compiler is SunPro C... " >&6; }
18291 OLDCPPFLAGS=$CPPFLAGS
18292 # CPPPFLAG comes from CURL_CPP_P
18293 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18294 if test -z "$SED"; then
18295 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18297 if test -z "$GREP"; then
18298 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303 /* end confdefs.h. */
18307 CURL_DEF_TOKEN __SUNPRO_C
18312 if ac_fn_c_try_cpp "$LINENO"
18315 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18316 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18317 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18318 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18319 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
18324 rm -f conftest.err conftest.i conftest.$ac_ext
18325 if test -z "$tmp_exp"; then
18326 curl_cv_have_def___SUNPRO_C=no
18329 curl_cv_have_def___SUNPRO_C=yes
18330 curl_cv_def___SUNPRO_C=$tmp_exp
18333 CPPFLAGS=$OLDCPPFLAGS
18335 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18337 printf "%s\n" "yes" >&6; }
18338 compiler_id="SUNPRO_C"
18340 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
18341 flags_opt_yes="-xO2"
18344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18345 printf "%s\n" "no" >&6; }
18349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
18350 printf %s "checking if compiler is Tiny C... " >&6; }
18352 OLDCPPFLAGS=$CPPFLAGS
18353 # CPPPFLAG comes from CURL_CPP_P
18354 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
18355 if test -z "$SED"; then
18356 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
18358 if test -z "$GREP"; then
18359 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18368 CURL_DEF_TOKEN __TINYC__
18373 if ac_fn_c_try_cpp "$LINENO"
18376 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
18377 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
18378 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
18379 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
18380 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
18385 rm -f conftest.err conftest.i conftest.$ac_ext
18386 if test -z "$tmp_exp"; then
18387 curl_cv_have_def___TINYC__=no
18390 curl_cv_have_def___TINYC__=yes
18391 curl_cv_def___TINYC__=$tmp_exp
18394 CPPFLAGS=$OLDCPPFLAGS
18396 if test "$curl_cv_have_def___TINYC__" = "yes"; then
18397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18398 printf "%s\n" "yes" >&6; }
18399 compiler_id="TINY_C"
18405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18406 printf "%s\n" "no" >&6; }
18410 if test "$compiler_id" = "unknown"; then
18413 *** Warning: This configure script does not have information about the
18414 *** compiler you are using, relative to the flags required to enable or
18415 *** disable generation of debug info, optimization options or warnings.
18417 *** Whatever settings are present in CFLAGS will be used for this run.
18419 *** If you wish to help the curl project to better support your compiler
18420 *** you can report this and the required info on the libcurl development
18421 *** mailing list: https://lists.haxx.selistinfo/curl-library/
18429 eval _sqz_input=\$$1
18430 for _sqz_token in $_sqz_input; do
18431 if test -z "$_sqz_result"; then
18432 _sqz_result="$_sqz_token"
18434 _sqz_result="$_sqz_result $_sqz_token"
18437 eval $1=\$_sqz_result
18443 if test "$compiler_id" != "unknown"; then
18445 tmp_save_CPPFLAGS="$CPPFLAGS"
18446 tmp_save_CFLAGS="$CFLAGS"
18450 case "$compiler_id" in
18454 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
18459 tmp_CFLAGS="$tmp_CFLAGS -std1"
18460 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
18461 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
18462 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
18467 if test "$compiler_num" -ge "295"; then
18468 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
18474 tmp_CFLAGS="$tmp_CFLAGS -z"
18475 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
18480 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
18481 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
18482 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
18487 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
18488 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
18489 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
18494 tmp_CFLAGS="$tmp_CFLAGS"
18499 tmp_CFLAGS="$tmp_CFLAGS"
18504 tmp_CFLAGS="$tmp_CFLAGS"
18509 tmp_CFLAGS="$tmp_CFLAGS"
18514 tmp_CFLAGS="$tmp_CFLAGS"
18519 squeeze tmp_CPPFLAGS
18522 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
18524 printf %s "checking if compiler accepts some basic options... " >&6; }
18525 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18526 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18530 tmp_compiler_works="unknown"
18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18547 if ac_fn_c_try_compile "$LINENO"
18550 tmp_compiler_works="yes"
18554 tmp_compiler_works="no"
18556 sed 's/^/cc-fail: /' conftest.err >&6
18560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18561 if test "$tmp_compiler_works" = "yes"; then
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18578 if ac_fn_c_try_link "$LINENO"
18581 tmp_compiler_works="yes"
18585 tmp_compiler_works="no"
18587 sed 's/^/link-fail: /' conftest.err >&6
18591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18592 conftest$ac_exeext conftest.$ac_ext
18594 if test "x$cross_compiling" != "xyes" &&
18595 test "$tmp_compiler_works" = "yes"; then
18599 if test "$cross_compiling" = yes
18601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18602 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18603 as_fn_error $? "cannot run test program while cross compiling
18604 See \`config.log' for more details" "$LINENO" 5; }
18606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18607 /* end confdefs.h. */
18611 # include <stdlib.h>
18625 if ac_fn_c_try_run "$LINENO"
18627 tmp_compiler_works="yes"
18630 tmp_compiler_works="no"
18632 echo "run-fail: test program exited with status $ac_status" >&6
18636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18637 conftest.$ac_objext conftest.beam conftest.$ac_ext
18643 old=$LD_LIBRARY_PATH
18644 CC="sh ./run-compiler"
18645 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18646 export LD_LIBRARY_PATH
18647 if test "$cross_compiling" = yes
18649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18650 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18651 as_fn_error $? "cannot run test program while cross compiling
18652 See \`config.log' for more details" "$LINENO" 5; }
18654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h. */
18659 # include <stdlib.h>
18673 if ac_fn_c_try_run "$LINENO"
18675 tmp_compiler_works="yes"
18678 tmp_compiler_works="no"
18680 echo "run-fail: test program exited with status $ac_status" >&6
18684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18685 conftest.$ac_objext conftest.beam conftest.$ac_ext
18688 LD_LIBRARY_PATH=$old # restore
18694 if test "$tmp_compiler_works" = "yes"; then
18696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18697 printf "%s\n" "yes" >&6; }
18698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18699 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704 printf "%s\n" "no" >&6; }
18705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18706 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18707 CPPFLAGS="$tmp_save_CPPFLAGS"
18708 CFLAGS="$tmp_save_CFLAGS"
18718 if test "$compiler_id" != "unknown"; then
18720 tmp_save_CFLAGS="$CFLAGS"
18721 tmp_save_CPPFLAGS="$CPPFLAGS"
18724 tmp_CFLAGS="$CFLAGS"
18725 tmp_CPPFLAGS="$CPPFLAGS"
18727 if test "$want_debug" = "yes"; then
18728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18729 printf %s "checking if compiler accepts debug enabling options... " >&6; }
18730 tmp_options="$flags_dbg_yes"
18733 if test "$flags_prefer_cppflags" = "yes"; then
18734 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18735 CFLAGS="$tmp_CFLAGS"
18737 CPPFLAGS="$tmp_CPPFLAGS"
18738 CFLAGS="$tmp_CFLAGS $tmp_options"
18746 if test "$compiler_id" != "unknown"; then
18748 tmp_save_CFLAGS="$CFLAGS"
18749 tmp_save_CPPFLAGS="$CPPFLAGS"
18752 tmp_CFLAGS="$CFLAGS"
18753 tmp_CPPFLAGS="$CPPFLAGS"
18754 honor_optimize_option="yes"
18757 if test "$want_optimize" = "assume_no" ||
18758 test "$want_optimize" = "assume_yes"; then
18759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18760 printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18763 ac_var_match_word="no"
18764 for word1 in $tmp_CFLAGS; do
18765 for word2 in $flags_opt_all; do
18766 if test "$word1" = "$word2"; then
18767 ac_var_match_word="yes"
18772 if test "$ac_var_match_word" = "yes"; then
18774 honor_optimize_option="no"
18781 ac_var_match_word="no"
18782 for word1 in $tmp_CPPFLAGS; do
18783 for word2 in $flags_opt_all; do
18784 if test "$word1" = "$word2"; then
18785 ac_var_match_word="yes"
18790 if test "$ac_var_match_word" = "yes"; then
18792 honor_optimize_option="no"
18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18798 printf "%s\n" "$honor_optimize_option" >&6; }
18799 if test "$honor_optimize_option" = "yes"; then
18800 if test "$want_optimize" = "assume_yes"; then
18801 want_optimize="yes"
18803 if test "$want_optimize" = "assume_no"; then
18809 if test "$honor_optimize_option" = "yes"; then
18812 for word1 in $tmp_CFLAGS; do
18813 ac_var_strip_word="no"
18814 for word2 in $flags_opt_all; do
18815 if test "$word1" = "$word2"; then
18816 ac_var_strip_word="yes"
18819 if test "$ac_var_strip_word" = "no"; then
18820 ac_var_stripped="$ac_var_stripped $word1"
18823 tmp_CFLAGS="$ac_var_stripped"
18828 for word1 in $tmp_CPPFLAGS; do
18829 ac_var_strip_word="no"
18830 for word2 in $flags_opt_all; do
18831 if test "$word1" = "$word2"; then
18832 ac_var_strip_word="yes"
18835 if test "$ac_var_strip_word" = "no"; then
18836 ac_var_stripped="$ac_var_stripped $word1"
18839 tmp_CPPFLAGS="$ac_var_stripped"
18840 squeeze tmp_CPPFLAGS
18842 if test "$want_optimize" = "yes"; then
18843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18844 printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18845 tmp_options="$flags_opt_yes"
18847 if test "$want_optimize" = "no"; then
18848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18849 printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18850 tmp_options="$flags_opt_off"
18852 if test "$flags_prefer_cppflags" = "yes"; then
18853 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18854 CFLAGS="$tmp_CFLAGS"
18856 CPPFLAGS="$tmp_CPPFLAGS"
18857 CFLAGS="$tmp_CFLAGS $tmp_options"
18862 tmp_compiler_works="unknown"
18863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18864 /* end confdefs.h. */
18879 if ac_fn_c_try_compile "$LINENO"
18882 tmp_compiler_works="yes"
18886 tmp_compiler_works="no"
18888 sed 's/^/cc-fail: /' conftest.err >&6
18892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18893 if test "$tmp_compiler_works" = "yes"; then
18894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h. */
18910 if ac_fn_c_try_link "$LINENO"
18913 tmp_compiler_works="yes"
18917 tmp_compiler_works="no"
18919 sed 's/^/link-fail: /' conftest.err >&6
18923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18924 conftest$ac_exeext conftest.$ac_ext
18926 if test "x$cross_compiling" != "xyes" &&
18927 test "$tmp_compiler_works" = "yes"; then
18931 if test "$cross_compiling" = yes
18933 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18934 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18935 as_fn_error $? "cannot run test program while cross compiling
18936 See \`config.log' for more details" "$LINENO" 5; }
18938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18939 /* end confdefs.h. */
18943 # include <stdlib.h>
18957 if ac_fn_c_try_run "$LINENO"
18959 tmp_compiler_works="yes"
18962 tmp_compiler_works="no"
18964 echo "run-fail: test program exited with status $ac_status" >&6
18968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18969 conftest.$ac_objext conftest.beam conftest.$ac_ext
18975 old=$LD_LIBRARY_PATH
18976 CC="sh ./run-compiler"
18977 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18978 export LD_LIBRARY_PATH
18979 if test "$cross_compiling" = yes
18981 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18982 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18983 as_fn_error $? "cannot run test program while cross compiling
18984 See \`config.log' for more details" "$LINENO" 5; }
18986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987 /* end confdefs.h. */
18991 # include <stdlib.h>
19005 if ac_fn_c_try_run "$LINENO"
19007 tmp_compiler_works="yes"
19010 tmp_compiler_works="no"
19012 echo "run-fail: test program exited with status $ac_status" >&6
19016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19017 conftest.$ac_objext conftest.beam conftest.$ac_ext
19020 LD_LIBRARY_PATH=$old # restore
19026 if test "$tmp_compiler_works" = "yes"; then
19028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19029 printf "%s\n" "yes" >&6; }
19030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
19031 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
19035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19036 printf "%s\n" "no" >&6; }
19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
19038 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
19039 CPPFLAGS="$tmp_save_CPPFLAGS"
19040 CFLAGS="$tmp_save_CFLAGS"
19050 if test "$compiler_id" != "unknown"; then
19052 tmp_save_CPPFLAGS="$CPPFLAGS"
19053 tmp_save_CFLAGS="$CFLAGS"
19057 case "$compiler_id" in
19061 if test "$want_warnings" = "yes"; then
19062 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19064 ac_var_added_warnings=""
19065 for warning in all extra; do
19067 ac_var_match_word="no"
19068 for word1 in $CFLAGS; do
19069 for word2 in -Wno-$warning -W$warning; do
19070 if test "$word1" = "$word2"; then
19071 ac_var_match_word="yes"
19076 if test "$ac_var_match_word" = "no"; then
19077 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19080 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19084 ac_var_added_warnings=""
19085 for warning in pointer-arith write-strings; do
19087 ac_var_match_word="no"
19088 for word1 in $CFLAGS; do
19089 for word2 in -Wno-$warning -W$warning; do
19090 if test "$word1" = "$word2"; then
19091 ac_var_match_word="yes"
19096 if test "$ac_var_match_word" = "no"; then
19097 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19100 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19104 ac_var_added_warnings=""
19105 for warning in shadow; do
19107 ac_var_match_word="no"
19108 for word1 in $CFLAGS; do
19109 for word2 in -Wno-$warning -W$warning; do
19110 if test "$word1" = "$word2"; then
19111 ac_var_match_word="yes"
19116 if test "$ac_var_match_word" = "no"; then
19117 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19120 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19124 ac_var_added_warnings=""
19125 for warning in inline nested-externs; do
19127 ac_var_match_word="no"
19128 for word1 in $CFLAGS; do
19129 for word2 in -Wno-$warning -W$warning; do
19130 if test "$word1" = "$word2"; then
19131 ac_var_match_word="yes"
19136 if test "$ac_var_match_word" = "no"; then
19137 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19140 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19144 ac_var_added_warnings=""
19145 for warning in missing-declarations; do
19147 ac_var_match_word="no"
19148 for word1 in $CFLAGS; do
19149 for word2 in -Wno-$warning -W$warning; do
19150 if test "$word1" = "$word2"; then
19151 ac_var_match_word="yes"
19156 if test "$ac_var_match_word" = "no"; then
19157 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19160 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19164 ac_var_added_warnings=""
19165 for warning in missing-prototypes; do
19167 ac_var_match_word="no"
19168 for word1 in $CFLAGS; do
19169 for word2 in -Wno-$warning -W$warning; do
19170 if test "$word1" = "$word2"; then
19171 ac_var_match_word="yes"
19176 if test "$ac_var_match_word" = "no"; then
19177 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19180 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19183 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19185 ac_var_added_warnings=""
19186 for warning in float-equal; do
19188 ac_var_match_word="no"
19189 for word1 in $CFLAGS; do
19190 for word2 in -Wno-$warning -W$warning; do
19191 if test "$word1" = "$word2"; then
19192 ac_var_match_word="yes"
19197 if test "$ac_var_match_word" = "no"; then
19198 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19201 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19205 ac_var_added_warnings=""
19206 for warning in sign-compare; do
19208 ac_var_match_word="no"
19209 for word1 in $CFLAGS; do
19210 for word2 in -Wno-$warning -W$warning; do
19211 if test "$word1" = "$word2"; then
19212 ac_var_match_word="yes"
19217 if test "$ac_var_match_word" = "no"; then
19218 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19221 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19224 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
19226 ac_var_added_warnings=""
19227 for warning in undef; do
19229 ac_var_match_word="no"
19230 for word1 in $CFLAGS; do
19231 for word2 in -Wno-$warning -W$warning; do
19232 if test "$word1" = "$word2"; then
19233 ac_var_match_word="yes"
19238 if test "$ac_var_match_word" = "no"; then
19239 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19242 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19245 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19247 ac_var_added_warnings=""
19248 for warning in endif-labels strict-prototypes; do
19250 ac_var_match_word="no"
19251 for word1 in $CFLAGS; do
19252 for word2 in -Wno-$warning -W$warning; do
19253 if test "$word1" = "$word2"; then
19254 ac_var_match_word="yes"
19259 if test "$ac_var_match_word" = "no"; then
19260 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19263 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19267 ac_var_added_warnings=""
19268 for warning in declaration-after-statement; do
19270 ac_var_match_word="no"
19271 for word1 in $CFLAGS; do
19272 for word2 in -Wno-$warning -W$warning; do
19273 if test "$word1" = "$word2"; then
19274 ac_var_match_word="yes"
19279 if test "$ac_var_match_word" = "no"; then
19280 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19283 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19287 ac_var_added_warnings=""
19288 for warning in cast-align; do
19290 ac_var_match_word="no"
19291 for word1 in $CFLAGS; do
19292 for word2 in -Wno-$warning -W$warning; do
19293 if test "$word1" = "$word2"; then
19294 ac_var_match_word="yes"
19299 if test "$ac_var_match_word" = "no"; then
19300 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19303 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19306 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19308 ac_var_added_warnings=""
19309 for warning in shorten-64-to-32; do
19311 ac_var_match_word="no"
19312 for word1 in $CFLAGS; do
19313 for word2 in -Wno-$warning -W$warning; do
19314 if test "$word1" = "$word2"; then
19315 ac_var_match_word="yes"
19320 if test "$ac_var_match_word" = "no"; then
19321 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19324 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19328 if test "$compiler_num" -ge "101"; then
19330 ac_var_added_warnings=""
19331 for warning in unused; do
19333 ac_var_match_word="no"
19334 for word1 in $CFLAGS; do
19335 for word2 in -Wno-$warning -W$warning; do
19336 if test "$word1" = "$word2"; then
19337 ac_var_match_word="yes"
19342 if test "$ac_var_match_word" = "no"; then
19343 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19346 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19351 if test "$compiler_num" -ge "207"; then
19353 ac_var_added_warnings=""
19354 for warning in address; do
19356 ac_var_match_word="no"
19357 for word1 in $CFLAGS; do
19358 for word2 in -Wno-$warning -W$warning; do
19359 if test "$word1" = "$word2"; then
19360 ac_var_match_word="yes"
19365 if test "$ac_var_match_word" = "no"; then
19366 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19369 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19373 ac_var_added_warnings=""
19374 for warning in attributes; do
19376 ac_var_match_word="no"
19377 for word1 in $CFLAGS; do
19378 for word2 in -Wno-$warning -W$warning; do
19379 if test "$word1" = "$word2"; then
19380 ac_var_match_word="yes"
19385 if test "$ac_var_match_word" = "no"; then
19386 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19389 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19393 ac_var_added_warnings=""
19394 for warning in bad-function-cast; do
19396 ac_var_match_word="no"
19397 for word1 in $CFLAGS; do
19398 for word2 in -Wno-$warning -W$warning; do
19399 if test "$word1" = "$word2"; then
19400 ac_var_match_word="yes"
19405 if test "$ac_var_match_word" = "no"; then
19406 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19409 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19413 ac_var_added_warnings=""
19414 for warning in conversion; do
19416 ac_var_match_word="no"
19417 for word1 in $CFLAGS; do
19418 for word2 in -Wno-$warning -W$warning; do
19419 if test "$word1" = "$word2"; then
19420 ac_var_match_word="yes"
19425 if test "$ac_var_match_word" = "no"; then
19426 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19429 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19433 ac_var_added_warnings=""
19434 for warning in div-by-zero format-security; do
19436 ac_var_match_word="no"
19437 for word1 in $CFLAGS; do
19438 for word2 in -Wno-$warning -W$warning; do
19439 if test "$word1" = "$word2"; then
19440 ac_var_match_word="yes"
19445 if test "$ac_var_match_word" = "no"; then
19446 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19449 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19453 ac_var_added_warnings=""
19454 for warning in empty-body; do
19456 ac_var_match_word="no"
19457 for word1 in $CFLAGS; do
19458 for word2 in -Wno-$warning -W$warning; do
19459 if test "$word1" = "$word2"; then
19460 ac_var_match_word="yes"
19465 if test "$ac_var_match_word" = "no"; then
19466 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19469 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19473 ac_var_added_warnings=""
19474 for warning in missing-field-initializers; do
19476 ac_var_match_word="no"
19477 for word1 in $CFLAGS; do
19478 for word2 in -Wno-$warning -W$warning; do
19479 if test "$word1" = "$word2"; then
19480 ac_var_match_word="yes"
19485 if test "$ac_var_match_word" = "no"; then
19486 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19489 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19493 ac_var_added_warnings=""
19494 for warning in missing-noreturn; do
19496 ac_var_match_word="no"
19497 for word1 in $CFLAGS; do
19498 for word2 in -Wno-$warning -W$warning; do
19499 if test "$word1" = "$word2"; then
19500 ac_var_match_word="yes"
19505 if test "$ac_var_match_word" = "no"; then
19506 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19509 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19513 ac_var_added_warnings=""
19514 for warning in old-style-definition; do
19516 ac_var_match_word="no"
19517 for word1 in $CFLAGS; do
19518 for word2 in -Wno-$warning -W$warning; do
19519 if test "$word1" = "$word2"; then
19520 ac_var_match_word="yes"
19525 if test "$ac_var_match_word" = "no"; then
19526 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19529 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19533 ac_var_added_warnings=""
19534 for warning in redundant-decls; do
19536 ac_var_match_word="no"
19537 for word1 in $CFLAGS; do
19538 for word2 in -Wno-$warning -W$warning; do
19539 if test "$word1" = "$word2"; then
19540 ac_var_match_word="yes"
19545 if test "$ac_var_match_word" = "no"; then
19546 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19549 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19552 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum]) # Not used because this basically disallows default case
19554 ac_var_added_warnings=""
19555 for warning in type-limits; do
19557 ac_var_match_word="no"
19558 for word1 in $CFLAGS; do
19559 for word2 in -Wno-$warning -W$warning; do
19560 if test "$word1" = "$word2"; then
19561 ac_var_match_word="yes"
19566 if test "$ac_var_match_word" = "no"; then
19567 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19570 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19573 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical
19575 ac_var_added_warnings=""
19576 for warning in unreachable-code unused-parameter; do
19578 ac_var_match_word="no"
19579 for word1 in $CFLAGS; do
19580 for word2 in -Wno-$warning -W$warning; do
19581 if test "$word1" = "$word2"; then
19582 ac_var_match_word="yes"
19587 if test "$ac_var_match_word" = "no"; then
19588 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19591 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19596 if test "$compiler_num" -ge "208"; then
19598 ac_var_added_warnings=""
19599 for warning in ignored-qualifiers; do
19601 ac_var_match_word="no"
19602 for word1 in $CFLAGS; do
19603 for word2 in -Wno-$warning -W$warning; do
19604 if test "$word1" = "$word2"; then
19605 ac_var_match_word="yes"
19610 if test "$ac_var_match_word" = "no"; then
19611 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19614 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19618 ac_var_added_warnings=""
19619 for warning in vla; do
19621 ac_var_match_word="no"
19622 for word1 in $CFLAGS; do
19623 for word2 in -Wno-$warning -W$warning; do
19624 if test "$word1" = "$word2"; then
19625 ac_var_match_word="yes"
19630 if test "$ac_var_match_word" = "no"; then
19631 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19634 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19639 if test "$compiler_num" -ge "209"; then
19640 tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
19642 ac_var_added_warnings=""
19643 for warning in shift-sign-overflow; do
19645 ac_var_match_word="no"
19646 for word1 in $CFLAGS; do
19647 for word2 in -Wno-$warning -W$warning; do
19648 if test "$word1" = "$word2"; then
19649 ac_var_match_word="yes"
19654 if test "$ac_var_match_word" = "no"; then
19655 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19658 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19661 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded]) # Not used because we cannot change public structs
19664 if test "$compiler_num" -ge "300"; then
19666 ac_var_added_warnings=""
19667 for warning in language-extension-token; do
19669 ac_var_match_word="no"
19670 for word1 in $CFLAGS; do
19671 for word2 in -Wno-$warning -W$warning; do
19672 if test "$word1" = "$word2"; then
19673 ac_var_match_word="yes"
19678 if test "$ac_var_match_word" = "no"; then
19679 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19682 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19687 if test "$compiler_num" -ge "302"; then
19689 ac_var_added_warnings=""
19690 for warning in enum-conversion; do
19692 ac_var_match_word="no"
19693 for word1 in $CFLAGS; do
19694 for word2 in -Wno-$warning -W$warning; do
19695 if test "$word1" = "$word2"; then
19696 ac_var_match_word="yes"
19701 if test "$ac_var_match_word" = "no"; then
19702 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19705 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19709 ac_var_added_warnings=""
19710 for warning in sometimes-uninitialized; do
19712 ac_var_match_word="no"
19713 for word1 in $CFLAGS; do
19714 for word2 in -Wno-$warning -W$warning; do
19715 if test "$word1" = "$word2"; then
19716 ac_var_match_word="yes"
19721 if test "$ac_var_match_word" = "no"; then
19722 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19725 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19733 ac_var_added_warnings=""
19734 for warning in missing-variable-declarations; do
19736 ac_var_match_word="no"
19737 for word1 in $CFLAGS; do
19738 for word2 in -Wno-$warning -W$warning; do
19739 if test "$word1" = "$word2"; then
19740 ac_var_match_word="yes"
19745 if test "$ac_var_match_word" = "no"; then
19746 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19749 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19756 if test "$compiler_num" -ge "304"; then
19758 ac_var_added_warnings=""
19759 for warning in header-guard; do
19761 ac_var_match_word="no"
19762 for word1 in $CFLAGS; do
19763 for word2 in -Wno-$warning -W$warning; do
19764 if test "$word1" = "$word2"; then
19765 ac_var_match_word="yes"
19770 if test "$ac_var_match_word" = "no"; then
19771 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19774 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19778 ac_var_added_warnings=""
19779 for warning in unused-const-variable; do
19781 ac_var_match_word="no"
19782 for word1 in $CFLAGS; do
19783 for word2 in -Wno-$warning -W$warning; do
19784 if test "$word1" = "$word2"; then
19785 ac_var_match_word="yes"
19790 if test "$ac_var_match_word" = "no"; then
19791 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19794 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19799 if test "$compiler_num" -ge "305"; then
19801 ac_var_added_warnings=""
19802 for warning in pragmas; do
19804 ac_var_match_word="no"
19805 for word1 in $CFLAGS; do
19806 for word2 in -Wno-$warning -W$warning; do
19807 if test "$word1" = "$word2"; then
19808 ac_var_match_word="yes"
19813 if test "$ac_var_match_word" = "no"; then
19814 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19817 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19821 ac_var_added_warnings=""
19822 for warning in unreachable-code-break; do
19824 ac_var_match_word="no"
19825 for word1 in $CFLAGS; do
19826 for word2 in -Wno-$warning -W$warning; do
19827 if test "$word1" = "$word2"; then
19828 ac_var_match_word="yes"
19833 if test "$ac_var_match_word" = "no"; then
19834 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19837 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19842 if test "$compiler_num" -ge "306"; then
19844 ac_var_added_warnings=""
19845 for warning in double-promotion; do
19847 ac_var_match_word="no"
19848 for word1 in $CFLAGS; do
19849 for word2 in -Wno-$warning -W$warning; do
19850 if test "$word1" = "$word2"; then
19851 ac_var_match_word="yes"
19856 if test "$ac_var_match_word" = "no"; then
19857 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19860 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19865 if test "$compiler_num" -ge "309"; then
19867 ac_var_added_warnings=""
19868 for warning in comma; do
19870 ac_var_match_word="no"
19871 for word1 in $CFLAGS; do
19872 for word2 in -Wno-$warning -W$warning; do
19873 if test "$word1" = "$word2"; then
19874 ac_var_match_word="yes"
19879 if test "$ac_var_match_word" = "no"; then
19880 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19883 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19886 # avoid the varargs warning, fixed in 4.0
19887 # https://bugs.llvm.org/show_bug.cgi?id=29140
19888 if test "$compiler_num" -lt "400"; then
19889 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
19892 if test "$compiler_num" -ge "700"; then
19894 ac_var_added_warnings=""
19895 for warning in assign-enum; do
19897 ac_var_match_word="no"
19898 for word1 in $CFLAGS; do
19899 for word2 in -Wno-$warning -W$warning; do
19900 if test "$word1" = "$word2"; then
19901 ac_var_match_word="yes"
19906 if test "$ac_var_match_word" = "no"; then
19907 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19910 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19914 ac_var_added_warnings=""
19915 for warning in extra-semi-stmt; do
19917 ac_var_match_word="no"
19918 for word1 in $CFLAGS; do
19919 for word2 in -Wno-$warning -W$warning; do
19920 if test "$word1" = "$word2"; then
19921 ac_var_match_word="yes"
19926 if test "$ac_var_match_word" = "no"; then
19927 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19930 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19935 tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
19940 if test "$want_warnings" = "yes"; then
19941 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
19947 if test "$want_warnings" = "yes"; then
19949 if test "x$cross_compiling" != "xyes" ||
19950 test "$compiler_num" -ge "300"; then
19951 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19955 ac_var_added_warnings=""
19956 for warning in all; do
19958 ac_var_match_word="no"
19959 for word1 in $CFLAGS; do
19960 for word2 in -Wno-$warning -W$warning; do
19961 if test "$word1" = "$word2"; then
19962 ac_var_match_word="yes"
19967 if test "$ac_var_match_word" = "no"; then
19968 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19971 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19974 tmp_CFLAGS="$tmp_CFLAGS -W"
19976 if test "$compiler_num" -ge "104"; then
19978 ac_var_added_warnings=""
19979 for warning in pointer-arith write-strings; do
19981 ac_var_match_word="no"
19982 for word1 in $CFLAGS; do
19983 for word2 in -Wno-$warning -W$warning; do
19984 if test "$word1" = "$word2"; then
19985 ac_var_match_word="yes"
19990 if test "$ac_var_match_word" = "no"; then
19991 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19994 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19997 if test "x$cross_compiling" != "xyes" ||
19998 test "$compiler_num" -ge "300"; then
20000 ac_var_added_warnings=""
20001 for warning in unused shadow; do
20003 ac_var_match_word="no"
20004 for word1 in $CFLAGS; do
20005 for word2 in -Wno-$warning -W$warning; do
20006 if test "$word1" = "$word2"; then
20007 ac_var_match_word="yes"
20012 if test "$ac_var_match_word" = "no"; then
20013 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20016 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20022 if test "$compiler_num" -ge "207"; then
20024 ac_var_added_warnings=""
20025 for warning in inline nested-externs; do
20027 ac_var_match_word="no"
20028 for word1 in $CFLAGS; do
20029 for word2 in -Wno-$warning -W$warning; do
20030 if test "$word1" = "$word2"; then
20031 ac_var_match_word="yes"
20036 if test "$ac_var_match_word" = "no"; then
20037 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20040 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20043 if test "x$cross_compiling" != "xyes" ||
20044 test "$compiler_num" -ge "300"; then
20046 ac_var_added_warnings=""
20047 for warning in missing-declarations; do
20049 ac_var_match_word="no"
20050 for word1 in $CFLAGS; do
20051 for word2 in -Wno-$warning -W$warning; do
20052 if test "$word1" = "$word2"; then
20053 ac_var_match_word="yes"
20058 if test "$ac_var_match_word" = "no"; then
20059 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20062 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20066 ac_var_added_warnings=""
20067 for warning in missing-prototypes; do
20069 ac_var_match_word="no"
20070 for word1 in $CFLAGS; do
20071 for word2 in -Wno-$warning -W$warning; do
20072 if test "$word1" = "$word2"; then
20073 ac_var_match_word="yes"
20078 if test "$ac_var_match_word" = "no"; then
20079 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20082 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20088 if test "$compiler_num" -ge "295"; then
20089 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
20091 ac_var_added_warnings=""
20092 for warning in bad-function-cast; do
20094 ac_var_match_word="no"
20095 for word1 in $CFLAGS; do
20096 for word2 in -Wno-$warning -W$warning; do
20097 if test "$word1" = "$word2"; then
20098 ac_var_match_word="yes"
20103 if test "$ac_var_match_word" = "no"; then
20104 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20107 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20112 if test "$compiler_num" -ge "296"; then
20114 ac_var_added_warnings=""
20115 for warning in float-equal; do
20117 ac_var_match_word="no"
20118 for word1 in $CFLAGS; do
20119 for word2 in -Wno-$warning -W$warning; do
20120 if test "$word1" = "$word2"; then
20121 ac_var_match_word="yes"
20126 if test "$ac_var_match_word" = "no"; then
20127 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20130 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20133 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
20135 ac_var_added_warnings=""
20136 for warning in sign-compare; do
20138 ac_var_match_word="no"
20139 for word1 in $CFLAGS; do
20140 for word2 in -Wno-$warning -W$warning; do
20141 if test "$word1" = "$word2"; then
20142 ac_var_match_word="yes"
20147 if test "$ac_var_match_word" = "no"; then
20148 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20151 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20155 ac_var_added_warnings=""
20156 for warning in undef; do
20158 ac_var_match_word="no"
20159 for word1 in $CFLAGS; do
20160 for word2 in -Wno-$warning -W$warning; do
20161 if test "$word1" = "$word2"; then
20162 ac_var_match_word="yes"
20167 if test "$ac_var_match_word" = "no"; then
20168 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20171 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20176 if test "$compiler_num" -ge "297"; then
20177 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
20180 if test "$compiler_num" -ge "300"; then
20181 tmp_CFLAGS="$tmp_CFLAGS"
20184 if test "$compiler_num" -ge "303"; then
20186 ac_var_added_warnings=""
20187 for warning in endif-labels strict-prototypes; do
20189 ac_var_match_word="no"
20190 for word1 in $CFLAGS; do
20191 for word2 in -Wno-$warning -W$warning; do
20192 if test "$word1" = "$word2"; then
20193 ac_var_match_word="yes"
20198 if test "$ac_var_match_word" = "no"; then
20199 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20202 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20207 if test "$compiler_num" -ge "304"; then
20209 ac_var_added_warnings=""
20210 for warning in declaration-after-statement; do
20212 ac_var_match_word="no"
20213 for word1 in $CFLAGS; do
20214 for word2 in -Wno-$warning -W$warning; do
20215 if test "$word1" = "$word2"; then
20216 ac_var_match_word="yes"
20221 if test "$ac_var_match_word" = "no"; then
20222 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20225 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20229 ac_var_added_warnings=""
20230 for warning in old-style-definition; do
20232 ac_var_match_word="no"
20233 for word1 in $CFLAGS; do
20234 for word2 in -Wno-$warning -W$warning; do
20235 if test "$word1" = "$word2"; then
20236 ac_var_match_word="yes"
20241 if test "$ac_var_match_word" = "no"; then
20242 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20245 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20250 if test "$compiler_num" -ge "400"; then
20251 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
20254 if test "$compiler_num" -ge "401"; then
20256 ac_var_added_warnings=""
20257 for warning in attributes; do
20259 ac_var_match_word="no"
20260 for word1 in $CFLAGS; do
20261 for word2 in -Wno-$warning -W$warning; do
20262 if test "$word1" = "$word2"; then
20263 ac_var_match_word="yes"
20268 if test "$ac_var_match_word" = "no"; then
20269 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20272 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20276 ac_var_added_warnings=""
20277 for warning in div-by-zero format-security; do
20279 ac_var_match_word="no"
20280 for word1 in $CFLAGS; do
20281 for word2 in -Wno-$warning -W$warning; do
20282 if test "$word1" = "$word2"; then
20283 ac_var_match_word="yes"
20288 if test "$ac_var_match_word" = "no"; then
20289 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20292 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20296 ac_var_added_warnings=""
20297 for warning in missing-field-initializers; do
20299 ac_var_match_word="no"
20300 for word1 in $CFLAGS; do
20301 for word2 in -Wno-$warning -W$warning; do
20302 if test "$word1" = "$word2"; then
20303 ac_var_match_word="yes"
20308 if test "$ac_var_match_word" = "no"; then
20309 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20312 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20320 ac_var_added_warnings=""
20321 for warning in missing-noreturn; do
20323 ac_var_match_word="no"
20324 for word1 in $CFLAGS; do
20325 for word2 in -Wno-$warning -W$warning; do
20326 if test "$word1" = "$word2"; then
20327 ac_var_match_word="yes"
20332 if test "$ac_var_match_word" = "no"; then
20333 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20336 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20338 # Seen to clash with libtool-generated stub code
20342 ac_var_added_warnings=""
20343 for warning in unreachable-code unused-parameter; do
20345 ac_var_match_word="no"
20346 for word1 in $CFLAGS; do
20347 for word2 in -Wno-$warning -W$warning; do
20348 if test "$word1" = "$word2"; then
20349 ac_var_match_word="yes"
20354 if test "$ac_var_match_word" = "no"; then
20355 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20358 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20361 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded]) # Not used because we cannot change public structs
20363 ac_var_added_warnings=""
20364 for warning in pragmas; do
20366 ac_var_match_word="no"
20367 for word1 in $CFLAGS; do
20368 for word2 in -Wno-$warning -W$warning; do
20369 if test "$word1" = "$word2"; then
20370 ac_var_match_word="yes"
20375 if test "$ac_var_match_word" = "no"; then
20376 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20379 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20383 ac_var_added_warnings=""
20384 for warning in redundant-decls; do
20386 ac_var_match_word="no"
20387 for word1 in $CFLAGS; do
20388 for word2 in -Wno-$warning -W$warning; do
20389 if test "$word1" = "$word2"; then
20390 ac_var_match_word="yes"
20395 if test "$ac_var_match_word" = "no"; then
20396 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20399 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20402 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum]) # Not used because this basically disallows default case
20403 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical
20406 if test "$compiler_num" -ge "402"; then
20408 ac_var_added_warnings=""
20409 for warning in cast-align; do
20411 ac_var_match_word="no"
20412 for word1 in $CFLAGS; do
20413 for word2 in -Wno-$warning -W$warning; do
20414 if test "$word1" = "$word2"; then
20415 ac_var_match_word="yes"
20420 if test "$ac_var_match_word" = "no"; then
20421 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20424 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20429 if test "$compiler_num" -ge "403"; then
20431 ac_var_added_warnings=""
20432 for warning in address; do
20434 ac_var_match_word="no"
20435 for word1 in $CFLAGS; do
20436 for word2 in -Wno-$warning -W$warning; do
20437 if test "$word1" = "$word2"; then
20438 ac_var_match_word="yes"
20443 if test "$ac_var_match_word" = "no"; then
20444 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20447 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20451 ac_var_added_warnings=""
20452 for warning in type-limits old-style-declaration; do
20454 ac_var_match_word="no"
20455 for word1 in $CFLAGS; do
20456 for word2 in -Wno-$warning -W$warning; do
20457 if test "$word1" = "$word2"; then
20458 ac_var_match_word="yes"
20463 if test "$ac_var_match_word" = "no"; then
20464 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20467 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20471 ac_var_added_warnings=""
20472 for warning in missing-parameter-type empty-body; do
20474 ac_var_match_word="no"
20475 for word1 in $CFLAGS; do
20476 for word2 in -Wno-$warning -W$warning; do
20477 if test "$word1" = "$word2"; then
20478 ac_var_match_word="yes"
20483 if test "$ac_var_match_word" = "no"; then
20484 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20487 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20491 ac_var_added_warnings=""
20492 for warning in clobbered ignored-qualifiers; do
20494 ac_var_match_word="no"
20495 for word1 in $CFLAGS; do
20496 for word2 in -Wno-$warning -W$warning; do
20497 if test "$word1" = "$word2"; then
20498 ac_var_match_word="yes"
20503 if test "$ac_var_match_word" = "no"; then
20504 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20507 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20511 ac_var_added_warnings=""
20512 for warning in conversion; do
20514 ac_var_match_word="no"
20515 for word1 in $CFLAGS; do
20516 for word2 in -Wno-$warning -W$warning; do
20517 if test "$word1" = "$word2"; then
20518 ac_var_match_word="yes"
20523 if test "$ac_var_match_word" = "no"; then
20524 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20527 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20530 tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
20532 ac_var_added_warnings=""
20533 for warning in vla; do
20535 ac_var_match_word="no"
20536 for word1 in $CFLAGS; do
20537 for word2 in -Wno-$warning -W$warning; do
20538 if test "$word1" = "$word2"; then
20539 ac_var_match_word="yes"
20544 if test "$ac_var_match_word" = "no"; then
20545 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20548 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20551 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
20554 if test "$compiler_num" -ge "405"; then
20555 if test "$curl_cv_have_def__WIN32" = "yes"; then
20556 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
20560 if test "$compiler_num" -ge "406"; then
20562 ac_var_added_warnings=""
20563 for warning in double-promotion; do
20565 ac_var_match_word="no"
20566 for word1 in $CFLAGS; do
20567 for word2 in -Wno-$warning -W$warning; do
20568 if test "$word1" = "$word2"; then
20569 ac_var_match_word="yes"
20574 if test "$ac_var_match_word" = "no"; then
20575 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20578 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20583 if test "$compiler_num" -ge "408"; then
20584 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
20587 if test "$compiler_num" -ge "500"; then
20588 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
20591 if test "$compiler_num" -ge "600"; then
20593 ac_var_added_warnings=""
20594 for warning in shift-negative-value; do
20596 ac_var_match_word="no"
20597 for word1 in $CFLAGS; do
20598 for word2 in -Wno-$warning -W$warning; do
20599 if test "$word1" = "$word2"; then
20600 ac_var_match_word="yes"
20605 if test "$ac_var_match_word" = "no"; then
20606 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20609 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20612 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
20614 ac_var_added_warnings=""
20615 for warning in null-dereference; do
20617 ac_var_match_word="no"
20618 for word1 in $CFLAGS; do
20619 for word2 in -Wno-$warning -W$warning; do
20620 if test "$word1" = "$word2"; then
20621 ac_var_match_word="yes"
20626 if test "$ac_var_match_word" = "no"; then
20627 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20630 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20633 tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
20635 ac_var_added_warnings=""
20636 for warning in duplicated-cond; do
20638 ac_var_match_word="no"
20639 for word1 in $CFLAGS; do
20640 for word2 in -Wno-$warning -W$warning; do
20641 if test "$word1" = "$word2"; then
20642 ac_var_match_word="yes"
20647 if test "$ac_var_match_word" = "no"; then
20648 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20651 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20655 ac_var_added_warnings=""
20656 for warning in unused-const-variable; do
20658 ac_var_match_word="no"
20659 for word1 in $CFLAGS; do
20660 for word2 in -Wno-$warning -W$warning; do
20661 if test "$word1" = "$word2"; then
20662 ac_var_match_word="yes"
20667 if test "$ac_var_match_word" = "no"; then
20668 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20671 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20676 if test "$compiler_num" -ge "700"; then
20678 ac_var_added_warnings=""
20679 for warning in duplicated-branches; do
20681 ac_var_match_word="no"
20682 for word1 in $CFLAGS; do
20683 for word2 in -Wno-$warning -W$warning; do
20684 if test "$word1" = "$word2"; then
20685 ac_var_match_word="yes"
20690 if test "$ac_var_match_word" = "no"; then
20691 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20694 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20698 ac_var_added_warnings=""
20699 for warning in restrict; do
20701 ac_var_match_word="no"
20702 for word1 in $CFLAGS; do
20703 for word2 in -Wno-$warning -W$warning; do
20704 if test "$word1" = "$word2"; then
20705 ac_var_match_word="yes"
20710 if test "$ac_var_match_word" = "no"; then
20711 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20714 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20718 ac_var_added_warnings=""
20719 for warning in alloc-zero; do
20721 ac_var_match_word="no"
20722 for word1 in $CFLAGS; do
20723 for word2 in -Wno-$warning -W$warning; do
20724 if test "$word1" = "$word2"; then
20725 ac_var_match_word="yes"
20730 if test "$ac_var_match_word" = "no"; then
20731 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20734 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20737 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
20738 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
20739 if test "$compiler_num" -lt "1200"; then
20740 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
20744 if test "$compiler_num" -ge "1000"; then
20746 ac_var_added_warnings=""
20747 for warning in arith-conversion; do
20749 ac_var_match_word="no"
20750 for word1 in $CFLAGS; do
20751 for word2 in -Wno-$warning -W$warning; do
20752 if test "$word1" = "$word2"; then
20753 ac_var_match_word="yes"
20758 if test "$ac_var_match_word" = "no"; then
20759 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20762 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20766 ac_var_added_warnings=""
20767 for warning in enum-conversion; do
20769 ac_var_match_word="no"
20770 for word1 in $CFLAGS; do
20771 for word2 in -Wno-$warning -W$warning; do
20772 if test "$word1" = "$word2"; then
20773 ac_var_match_word="yes"
20778 if test "$ac_var_match_word" = "no"; then
20779 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20782 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20789 if test "$compiler_num" -ge "300"; then
20790 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
20792 if test "x$cross_compiling" = "xyes"; then
20793 if test "$compiler_num" -ge "104"; then
20794 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
20796 if test "$compiler_num" -ge "207"; then
20797 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
20798 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
20806 if test "$want_warnings" = "yes"; then
20807 tmp_CFLAGS="$tmp_CFLAGS +w1"
20813 tmp_CFLAGS="$tmp_CFLAGS"
20818 if test "$want_warnings" = "yes"; then
20819 if test "$compiler_num" -gt "600"; then
20820 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
20821 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
20822 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
20823 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
20824 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
20825 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
20826 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
20827 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
20828 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
20829 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
20830 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
20833 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
20834 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
20835 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
20840 tmp_CFLAGS="$tmp_CFLAGS"
20845 if test "$want_warnings" = "yes"; then
20846 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20852 if test "$want_warnings" = "yes"; then
20853 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
20854 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
20860 if test "$want_warnings" = "yes"; then
20861 tmp_CFLAGS="$tmp_CFLAGS -v"
20867 if test "$want_warnings" = "yes"; then
20869 ac_var_added_warnings=""
20870 for warning in all; do
20872 ac_var_match_word="no"
20873 for word1 in $CFLAGS; do
20874 for word2 in -Wno-$warning -W$warning; do
20875 if test "$word1" = "$word2"; then
20876 ac_var_match_word="yes"
20881 if test "$ac_var_match_word" = "no"; then
20882 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20885 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20889 ac_var_added_warnings=""
20890 for warning in write-strings; do
20892 ac_var_match_word="no"
20893 for word1 in $CFLAGS; do
20894 for word2 in -Wno-$warning -W$warning; do
20895 if test "$word1" = "$word2"; then
20896 ac_var_match_word="yes"
20901 if test "$ac_var_match_word" = "no"; then
20902 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20905 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20909 ac_var_added_warnings=""
20910 for warning in unsupported; do
20912 ac_var_match_word="no"
20913 for word1 in $CFLAGS; do
20914 for word2 in -Wno-$warning -W$warning; do
20915 if test "$word1" = "$word2"; then
20916 ac_var_match_word="yes"
20921 if test "$ac_var_match_word" = "no"; then
20922 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
20925 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
20933 squeeze tmp_CPPFLAGS
20936 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
20937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
20938 printf %s "checking if compiler accepts strict warning options... " >&6; }
20939 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
20940 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20944 tmp_compiler_works="unknown"
20945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20946 /* end confdefs.h. */
20961 if ac_fn_c_try_compile "$LINENO"
20964 tmp_compiler_works="yes"
20968 tmp_compiler_works="no"
20970 sed 's/^/cc-fail: /' conftest.err >&6
20974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20975 if test "$tmp_compiler_works" = "yes"; then
20976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h. */
20992 if ac_fn_c_try_link "$LINENO"
20995 tmp_compiler_works="yes"
20999 tmp_compiler_works="no"
21001 sed 's/^/link-fail: /' conftest.err >&6
21005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21006 conftest$ac_exeext conftest.$ac_ext
21008 if test "x$cross_compiling" != "xyes" &&
21009 test "$tmp_compiler_works" = "yes"; then
21013 if test "$cross_compiling" = yes
21015 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21016 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21017 as_fn_error $? "cannot run test program while cross compiling
21018 See \`config.log' for more details" "$LINENO" 5; }
21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h. */
21025 # include <stdlib.h>
21039 if ac_fn_c_try_run "$LINENO"
21041 tmp_compiler_works="yes"
21044 tmp_compiler_works="no"
21046 echo "run-fail: test program exited with status $ac_status" >&6
21050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21051 conftest.$ac_objext conftest.beam conftest.$ac_ext
21057 old=$LD_LIBRARY_PATH
21058 CC="sh ./run-compiler"
21059 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21060 export LD_LIBRARY_PATH
21061 if test "$cross_compiling" = yes
21063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21064 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21065 as_fn_error $? "cannot run test program while cross compiling
21066 See \`config.log' for more details" "$LINENO" 5; }
21068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21069 /* end confdefs.h. */
21073 # include <stdlib.h>
21087 if ac_fn_c_try_run "$LINENO"
21089 tmp_compiler_works="yes"
21092 tmp_compiler_works="no"
21094 echo "run-fail: test program exited with status $ac_status" >&6
21098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21099 conftest.$ac_objext conftest.beam conftest.$ac_ext
21102 LD_LIBRARY_PATH=$old # restore
21108 if test "$tmp_compiler_works" = "yes"; then
21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21111 printf "%s\n" "yes" >&6; }
21112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21113 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
21117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21118 printf "%s\n" "no" >&6; }
21119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
21120 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
21121 CPPFLAGS="$tmp_save_CPPFLAGS"
21122 CFLAGS="$tmp_save_CFLAGS"
21131 if test "$compiler_id" = "INTEL_UNIX_C"; then
21133 if test "$compiler_num" -ge "1000"; then
21134 CFLAGS="$CFLAGS -shared-intel"
21135 elif test "$compiler_num" -ge "900"; then
21136 CFLAGS="$CFLAGS -i-dynamic"
21141 CURL_CFLAG_EXTRAS=""
21142 if test X"$want_werror" = Xyes; then
21143 CURL_CFLAG_EXTRAS="-Werror"
21144 if test "$compiler_id" = "GNU_C"; then
21145 if test "$compiler_num" -ge "500"; then
21146 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
21153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
21154 printf %s "checking if compiler halts on compilation errors... " >&6; }
21155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21156 /* end confdefs.h. */
21163 force compilation error
21170 if ac_fn_c_try_compile "$LINENO"
21173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21174 printf "%s\n" "no" >&6; }
21175 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
21179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21180 printf "%s\n" "yes" >&6; }
21183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
21187 printf %s "checking if compiler halts on negative sized arrays... " >&6; }
21188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21189 /* end confdefs.h. */
21192 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
21204 if ac_fn_c_try_compile "$LINENO"
21207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21208 printf "%s\n" "no" >&6; }
21209 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
21213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21214 printf "%s\n" "yes" >&6; }
21217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
21221 printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
21222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21226 # include <stdlib.h>
21240 int j = rand(i[0]);
21249 if ac_fn_c_try_compile "$LINENO"
21252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21253 printf "%s\n" "no" >&6; }
21254 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
21258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21259 printf "%s\n" "yes" >&6; }
21262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
21266 printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
21267 supports_symbol_hiding="no"
21268 symbol_hiding_CFLAGS=""
21269 symbol_hiding_EXTERN=""
21272 case "$compiler_id" in
21274 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21275 tmp_CFLAGS="-fvisibility=hidden"
21276 supports_symbol_hiding="yes"
21279 if test "$compiler_num" -ge "304"; then
21280 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
21281 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21282 tmp_CFLAGS="-fvisibility=hidden"
21283 supports_symbol_hiding="yes"
21288 if test "$compiler_num" -ge "900"; then
21289 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
21290 tmp_save_CFLAGS="$CFLAGS"
21291 CFLAGS="$CFLAGS -fvisibility=hidden"
21292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h. */
21296 # include <stdio.h>
21301 printf("icc fvisibility bug test");
21308 if ac_fn_c_try_link "$LINENO"
21311 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
21312 tmp_CFLAGS="-fvisibility=hidden"
21313 supports_symbol_hiding="yes"
21316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21317 conftest$ac_exeext conftest.$ac_ext
21318 CFLAGS="$tmp_save_CFLAGS"
21323 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
21324 tmp_EXTERN="__global"
21325 tmp_CFLAGS="-xldscope=hidden"
21326 supports_symbol_hiding="yes"
21330 if test "$supports_symbol_hiding" = "yes"; then
21331 tmp_save_CFLAGS="$CFLAGS"
21332 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
21334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21335 /* end confdefs.h. */
21338 $tmp_EXTERN char *dummy(char *buff);
21339 char *dummy(char *buff)
21351 char *r = dummy(&b[0]);
21360 if ac_fn_c_try_compile "$LINENO"
21363 supports_symbol_hiding="yes"
21364 if test -f conftest.err; then
21365 grep 'visibility' conftest.err >/dev/null
21366 if test "$?" -eq "0"; then
21367 supports_symbol_hiding="no"
21373 supports_symbol_hiding="no"
21375 sed 's/^/cc-src: /' conftest.$ac_ext >&6
21376 sed 's/^/cc-err: /' conftest.err >&6
21380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21381 CFLAGS="$tmp_save_CFLAGS"
21383 if test "$supports_symbol_hiding" = "yes"; then
21384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21385 printf "%s\n" "yes" >&6; }
21386 symbol_hiding_CFLAGS="$tmp_CFLAGS"
21387 symbol_hiding_EXTERN="$tmp_EXTERN"
21389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21390 printf "%s\n" "no" >&6; }
21395 supports_curldebug="unknown"
21396 if test "$want_curldebug" = "yes"; then
21397 if test "x$enable_shared" != "xno" &&
21398 test "x$enable_shared" != "xyes"; then
21399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
21400 printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
21401 supports_curldebug="no"
21403 if test "x$enable_static" != "xno" &&
21404 test "x$enable_static" != "xyes"; then
21405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
21406 printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
21407 supports_curldebug="no"
21409 if test "$supports_curldebug" != "no"; then
21410 if test "$enable_shared" = "yes" &&
21411 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
21412 supports_curldebug="no"
21413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
21414 printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
21419 if test "$want_curldebug" = "yes"; then
21420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
21421 printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
21422 test "$supports_curldebug" = "no" || supports_curldebug="yes"
21423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
21424 printf "%s\n" "$supports_curldebug" >&6; }
21425 if test "$supports_curldebug" = "no"; then
21426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
21427 printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
21428 want_curldebug="no"
21432 if test x$want_curldebug = xyes; then
21434 CURLDEBUG_FALSE='#'
21441 supports_unittests=yes
21442 # cross-compilation of unit tests static library/programs fails when
21443 # libcurl shared library is built. This might be due to a libtool or
21444 # automake issue. In this case we disable unit tests.
21445 if test "x$cross_compiling" != "xno" &&
21446 test "x$enable_shared" != "xno"; then
21447 supports_unittests=no
21450 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
21451 # a problem related with OpenSSL headers and library versions not matching.
21452 # Disable unit tests while time to further investigate this is found.
21455 if test "$compiler_id" = "GNU_C"; then
21456 supports_unittests=no
21461 # All AIX autobuilds fails unit tests linking against unittests library
21462 # due to unittests library being built with no symbols or members. Libtool ?
21463 # Disable unit tests while time to further investigate this is found.
21466 supports_unittests=no
21470 if test "x$want_debug" = "xyes" &&
21471 test "x$supports_unittests" = "xyes"; then
21476 if test x$want_unittests = xyes; then
21477 BUILD_UNITTESTS_TRUE=
21478 BUILD_UNITTESTS_FALSE='#'
21480 BUILD_UNITTESTS_TRUE='#'
21481 BUILD_UNITTESTS_FALSE=
21488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21489 printf %s "checking for windows.h... " >&6; }
21490 if test ${curl_cv_header_windows_h+y}
21492 printf %s "(cached) " >&6
21495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21496 /* end confdefs.h. */
21500 #ifndef WIN32_LEAN_AND_MEAN
21501 #define WIN32_LEAN_AND_MEAN
21503 #include <windows.h>
21508 #if defined(__CYGWIN__) || defined(__CEGCC__)
21509 HAVE_WINDOWS_H shall not be defined.
21511 int dummy=2*WINVER;
21519 if ac_fn_c_try_compile "$LINENO"
21522 curl_cv_header_windows_h="yes"
21526 curl_cv_header_windows_h="no"
21529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
21533 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
21534 case "$curl_cv_header_windows_h" in
21537 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
21543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
21544 printf %s "checking whether build target is a native Windows one... " >&6; }
21545 if test ${curl_cv_native_windows+y}
21547 printf %s "(cached) " >&6
21550 if test "$curl_cv_header_windows_h" = "no"; then
21551 curl_cv_native_windows="no"
21553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21554 /* end confdefs.h. */
21561 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
21562 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
21565 Not a native Windows build target.
21573 if ac_fn_c_try_compile "$LINENO"
21576 curl_cv_native_windows="yes"
21580 curl_cv_native_windows="no"
21583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
21588 printf "%s\n" "$curl_cv_native_windows" >&6; }
21589 if test "x$curl_cv_native_windows" = xyes; then
21590 DOING_NATIVE_WINDOWS_TRUE=
21591 DOING_NATIVE_WINDOWS_FALSE='#'
21593 DOING_NATIVE_WINDOWS_TRUE='#'
21594 DOING_NATIVE_WINDOWS_FALSE=
21598 case X-"$curl_cv_native_windows" in
21601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
21602 printf %s "checking for winsock2.h... " >&6; }
21603 if test ${curl_cv_header_winsock2_h+y}
21605 printf %s "(cached) " >&6
21608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21609 /* end confdefs.h. */
21613 #ifndef WIN32_LEAN_AND_MEAN
21614 #define WIN32_LEAN_AND_MEAN
21616 #include <windows.h>
21617 #include <winsock2.h>
21622 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21623 HAVE_WINSOCK2_H shall not be defined.
21625 int dummy=2*IPPROTO_ESP;
21633 if ac_fn_c_try_compile "$LINENO"
21636 curl_cv_header_winsock2_h="yes"
21640 curl_cv_header_winsock2_h="no"
21643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
21647 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
21648 case "$curl_cv_header_winsock2_h" in
21651 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
21657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
21658 printf %s "checking for ws2tcpip.h... " >&6; }
21659 if test ${curl_cv_header_ws2tcpip_h+y}
21661 printf %s "(cached) " >&6
21664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21665 /* end confdefs.h. */
21669 #ifndef WIN32_LEAN_AND_MEAN
21670 #define WIN32_LEAN_AND_MEAN
21672 #include <windows.h>
21673 #include <winsock2.h>
21674 #include <ws2tcpip.h>
21679 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21680 HAVE_WS2TCPIP_H shall not be defined.
21682 int dummy=2*IP_PKTINFO;
21690 if ac_fn_c_try_compile "$LINENO"
21693 curl_cv_header_ws2tcpip_h="yes"
21697 curl_cv_header_ws2tcpip_h="no"
21700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
21704 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
21705 case "$curl_cv_header_ws2tcpip_h" in
21708 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
21715 curl_cv_header_winsock2_h="no"
21716 curl_cv_header_ws2tcpip_h="no"
21720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
21721 printf %s "checking whether build target supports WIN32 file API... " >&6; }
21722 curl_win32_file_api="no"
21723 if test "$curl_cv_header_windows_h" = "yes"; then
21724 if test x"$enable_largefile" != "xno"; then
21725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21726 /* end confdefs.h. */
21733 #if !defined(_WIN32_WCE) && \
21734 (defined(__MINGW32__) || \
21735 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
21738 WIN32 large file API not supported.
21746 if ac_fn_c_try_compile "$LINENO"
21749 curl_win32_file_api="win32_large_files"
21752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21754 if test "$curl_win32_file_api" = "no"; then
21755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h. */
21763 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
21766 WIN32 small file API not supported.
21774 if ac_fn_c_try_compile "$LINENO"
21777 curl_win32_file_api="win32_small_files"
21780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21783 case "$curl_win32_file_api" in
21785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
21786 printf "%s\n" "yes (large file enabled)" >&6; }
21788 printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
21790 USE_WIN32_LARGE_FILES=1
21794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
21795 printf "%s\n" "yes (large file disabled)" >&6; }
21797 printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
21799 USE_WIN32_SMALL_FILES=1
21803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21804 printf "%s\n" "no" >&6; }
21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
21810 printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
21811 curl_win32_crypto_api="no"
21812 if test "$curl_cv_header_windows_h" = "yes"; then
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h. */
21818 #ifndef WIN32_LEAN_AND_MEAN
21819 #define WIN32_LEAN_AND_MEAN
21821 #include <windows.h>
21822 #include <wincrypt.h>
21827 HCRYPTPROV hCryptProv;
21828 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
21829 CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
21830 CryptReleaseContext(hCryptProv, 0);
21838 if ac_fn_c_try_compile "$LINENO"
21841 curl_win32_crypto_api="yes"
21844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21846 case "$curl_win32_crypto_api" in
21848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21849 printf "%s\n" "yes" >&6; }
21851 printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
21857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21858 printf "%s\n" "no" >&6; }
21872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
21873 printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
21874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
21875 printf "%s\n" "$tst_cflags" >&6; };
21877 if test "$tst_cflags" = "yes"; then
21879 CFLAGS="$CFLAGS -Werror=partial-availability"
21880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
21881 printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
21882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883 /* end confdefs.h. */
21892 if ac_fn_c_try_compile "$LINENO"
21894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21895 printf "%s\n" "yes" >&6; }
21897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 printf "%s\n" "no" >&6; }
21901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks" >&5
21907 printf %s "checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks... " >&6; }
21910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21911 /* end confdefs.h. */
21914 #include <TargetConditionals.h>
21919 #if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
21930 if ac_fn_c_try_compile "$LINENO"
21933 build_for_macos="yes"
21937 build_for_macos="no"
21940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21941 if test "x$build_for_macos" != xno; then
21942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21943 printf "%s\n" "yes" >&6; }
21944 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework SystemConfiguration"
21946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21947 printf "%s\n" "no" >&6; }
21951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21952 printf "%s\n" "no" >&6; }
21956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
21957 printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
21958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21959 /* end confdefs.h. */
21962 #include <stdlib.h>
21967 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
21974 if ac_fn_c_try_compile "$LINENO"
21977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21978 printf "%s\n" "yes" >&6; }
21980 printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
21985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21986 printf "%s\n" "no" >&6; }
21989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21992 if test "$curl_cv_native_windows" = "yes" && test -n "${RC}"; then
21994 HAVE_WINDRES_FALSE='#'
21996 HAVE_WINDRES_TRUE='#'
21997 HAVE_WINDRES_FALSE=
22001 if test "$curl_cv_native_windows" = "yes"; then
22002 if test -z "$HAVE_WINDRES_TRUE"; then :
22004 as_fn_error $? "windres not found in PATH. Windows builds require windres. Cannot continue." "$LINENO" 5
22008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
22009 printf %s "checking whether to support http... " >&6; }
22010 # Check whether --enable-http was given.
22011 if test ${enable_http+y}
22013 enableval=$enable_http; case "$enableval" in
22015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22016 printf "%s\n" "no" >&6; }
22018 printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
22021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
22022 printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
22023 CURL_DISABLE_HTTP=1
22026 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22028 CURL_DISABLE_RTSP=1
22031 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
22034 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
22036 curl_h1_msg="no (--enable-http, --with-hyper)"
22037 curl_altsvc_msg="no";
22038 curl_hsts_msg="no (--enable-hsts)";
22042 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22043 printf "%s\n" "yes" >&6; }
22047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22048 printf "%s\n" "yes" >&6; }
22052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
22053 printf %s "checking whether to support ftp... " >&6; }
22054 # Check whether --enable-ftp was given.
22055 if test ${enable_ftp+y}
22057 enableval=$enable_ftp; case "$enableval" in
22059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22060 printf "%s\n" "no" >&6; }
22062 printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
22067 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22068 printf "%s\n" "yes" >&6; }
22072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22073 printf "%s\n" "yes" >&6; }
22077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
22078 printf %s "checking whether to support file... " >&6; }
22079 # Check whether --enable-file was given.
22080 if test ${enable_file+y}
22082 enableval=$enable_file; case "$enableval" in
22084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22085 printf "%s\n" "no" >&6; }
22087 printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
22089 CURL_DISABLE_FILE=1
22092 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22093 printf "%s\n" "yes" >&6; }
22097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22098 printf "%s\n" "yes" >&6; }
22102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
22103 printf %s "checking whether to support ldap... " >&6; }
22104 # Check whether --enable-ldap was given.
22105 if test ${enable_ldap+y}
22107 enableval=$enable_ldap; case "$enableval" in
22109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22110 printf "%s\n" "no" >&6; }
22112 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
22114 CURL_DISABLE_LDAP=1
22118 ldap_askedfor="yes"
22119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22120 printf "%s\n" "yes" >&6; }
22123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22124 printf "%s\n" "yes" >&6; }
22129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22130 printf "%s\n" "yes" >&6; }
22134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
22135 printf %s "checking whether to support ldaps... " >&6; }
22136 # Check whether --enable-ldaps was given.
22137 if test ${enable_ldaps+y}
22139 enableval=$enable_ldaps; case "$enableval" in
22141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22142 printf "%s\n" "no" >&6; }
22144 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22146 CURL_DISABLE_LDAPS=1
22149 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
22150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
22151 printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
22153 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22155 CURL_DISABLE_LDAPS=1
22158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22159 printf "%s\n" "yes" >&6; }
22161 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
22170 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
22171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22172 printf "%s\n" "no" >&6; }
22174 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22176 CURL_DISABLE_LDAPS=1
22179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22180 printf "%s\n" "yes" >&6; }
22182 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
22195 # Check whether --with-hyper was given.
22196 if test ${with_hyper+y}
22198 withval=$with_hyper; OPT_HYPER=$withval
22201 case "$OPT_HYPER" in
22206 want_hyper="default"
22211 want_hyper_path="$withval"
22215 if test X"$want_hyper" != Xno; then
22216 if test "x$disable_http" = "xyes"; then
22217 as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
22220 CLEANLDFLAGS="$LDFLAGS"
22221 CLEANCPPFLAGS="$CPPFLAGS"
22225 if test -n "$PKG_CONFIG"; then
22226 PKGCONFIG="$PKG_CONFIG"
22228 if test -n "$ac_tool_prefix"; then
22229 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22230 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22232 printf %s "checking for $ac_word... " >&6; }
22233 if test ${ac_cv_path_PKGCONFIG+y}
22235 printf %s "(cached) " >&6
22239 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22243 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22244 for as_dir in $as_dummy
22247 case $as_dir in #(((
22250 *) as_dir=$as_dir/ ;;
22252 for ac_exec_ext in '' $ac_executable_extensions; do
22253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22254 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22265 PKGCONFIG=$ac_cv_path_PKGCONFIG
22266 if test -n "$PKGCONFIG"; then
22267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22268 printf "%s\n" "$PKGCONFIG" >&6; }
22270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22271 printf "%s\n" "no" >&6; }
22276 if test -z "$ac_cv_path_PKGCONFIG"; then
22277 ac_pt_PKGCONFIG=$PKGCONFIG
22278 # Extract the first word of "pkg-config", so it can be a program name with args.
22279 set dummy pkg-config; ac_word=$2
22280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22281 printf %s "checking for $ac_word... " >&6; }
22282 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
22284 printf %s "(cached) " >&6
22286 case $ac_pt_PKGCONFIG in
22288 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22292 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22293 for as_dir in $as_dummy
22296 case $as_dir in #(((
22299 *) as_dir=$as_dir/ ;;
22301 for ac_exec_ext in '' $ac_executable_extensions; do
22302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22303 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22314 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22315 if test -n "$ac_pt_PKGCONFIG"; then
22316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22317 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
22319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22320 printf "%s\n" "no" >&6; }
22323 if test "x$ac_pt_PKGCONFIG" = x; then
22326 case $cross_compiling:$ac_tool_warned in
22328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22329 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22330 ac_tool_warned=yes ;;
22332 PKGCONFIG=$ac_pt_PKGCONFIG
22335 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22340 if test "x$PKGCONFIG" != "xno"; then
22341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
22342 printf %s "checking for hyper options with pkg-config... " >&6; }
22344 if test -n "$want_hyper_path"; then
22345 PKG_CONFIG_LIBDIR="$want_hyper_path"
22346 export PKG_CONFIG_LIBDIR
22348 $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
22350 if test -z "$itexists"; then
22352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22353 printf "%s\n" "no" >&6; }
22355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
22356 printf "%s\n" "found" >&6; }
22361 if test "$PKGCONFIG" != "no" ; then
22363 if test -n "$want_hyper_path"; then
22364 PKG_CONFIG_LIBDIR="$want_hyper_path"
22365 export PKG_CONFIG_LIBDIR
22368 $PKGCONFIG --libs-only-l hyper`
22370 if test -n "$want_hyper_path"; then
22371 PKG_CONFIG_LIBDIR="$want_hyper_path"
22372 export PKG_CONFIG_LIBDIR
22374 $PKGCONFIG --cflags-only-I hyper`
22376 if test -n "$want_hyper_path"; then
22377 PKG_CONFIG_LIBDIR="$want_hyper_path"
22378 export PKG_CONFIG_LIBDIR
22381 $PKGCONFIG --libs-only-L hyper`
22383 LIB_HYPER="-lhyper -ldl -lpthread -lm"
22384 if test X"$want_hyper" != Xdefault; then
22385 CPP_HYPER=-I"$want_hyper_path/capi/include"
22386 LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
22389 if test -n "$LIB_HYPER"; then
22390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
22391 printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
22392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
22393 printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
22394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
22395 printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
22397 LDFLAGS="$LDFLAGS $LD_HYPER"
22398 CPPFLAGS="$CPPFLAGS $CPP_HYPER"
22399 LIBS="$LIB_HYPER $LIBS"
22401 if test "x$cross_compiling" != "xyes"; then
22402 DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
22405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
22406 printf %s "checking for hyper_io_new in -lhyper... " >&6; }
22407 if test ${ac_cv_lib_hyper_hyper_io_new+y}
22409 printf %s "(cached) " >&6
22411 ac_check_lib_save_LIBS=$LIBS
22412 LIBS="-lhyper $LIBS"
22413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22414 /* end confdefs.h. */
22420 char hyper_io_new ();
22423 return hyper_io_new ();
22428 if ac_fn_c_try_link "$LINENO"
22430 ac_cv_lib_hyper_hyper_io_new=yes
22432 ac_cv_lib_hyper_hyper_io_new=no
22434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22435 conftest$ac_exeext conftest.$ac_ext
22436 LIBS=$ac_check_lib_save_LIBS
22438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
22439 printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
22440 if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
22443 for ac_header in hyper.h
22445 ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
22446 if test "x$ac_cv_header_hyper_h" = xyes
22448 printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
22449 experimental="$experimental Hyper"
22450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
22451 printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
22452 curl_h1_msg="enabled (Hyper)"
22455 printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
22459 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
22460 export CURL_LIBRARY_PATH
22461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
22462 printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
22468 for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do
22469 if test -f "$d/libhyper.a"; then
22470 as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
22473 as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
22480 if test X"$want_hyper" != Xno; then
22481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
22482 printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
22484 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22486 CURL_DISABLE_RTSP=1
22489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
22490 printf %s "checking whether to support rtsp... " >&6; }
22491 # Check whether --enable-rtsp was given.
22492 if test ${enable_rtsp+y}
22494 enableval=$enable_rtsp; case "$enableval" in
22496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22497 printf "%s\n" "no" >&6; }
22499 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
22501 CURL_DISABLE_RTSP=1
22505 if test x$CURL_DISABLE_HTTP = x1 ; then
22506 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
22508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22509 printf "%s\n" "yes" >&6; }
22510 curl_rtsp_msg="enabled"
22515 if test "x$CURL_DISABLE_HTTP" != "x1"; then
22516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22517 printf "%s\n" "yes" >&6; }
22518 curl_rtsp_msg="enabled"
22520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22521 printf "%s\n" "no" >&6; }
22528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
22529 printf %s "checking whether to support proxies... " >&6; }
22530 # Check whether --enable-proxy was given.
22531 if test ${enable_proxy+y}
22533 enableval=$enable_proxy; case "$enableval" in
22535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22536 printf "%s\n" "no" >&6; }
22538 printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
22540 CURL_DISABLE_PROXY=1
22544 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22545 printf "%s\n" "yes" >&6; }
22549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22550 printf "%s\n" "yes" >&6; }
22555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
22556 printf %s "checking whether to support dict... " >&6; }
22557 # Check whether --enable-dict was given.
22558 if test ${enable_dict+y}
22560 enableval=$enable_dict; case "$enableval" in
22562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22563 printf "%s\n" "no" >&6; }
22565 printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
22567 CURL_DISABLE_DICT=1
22570 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22571 printf "%s\n" "yes" >&6; }
22575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22576 printf "%s\n" "yes" >&6; }
22580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
22581 printf %s "checking whether to support telnet... " >&6; }
22582 # Check whether --enable-telnet was given.
22583 if test ${enable_telnet+y}
22585 enableval=$enable_telnet; case "$enableval" in
22587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22588 printf "%s\n" "no" >&6; }
22590 printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
22592 CURL_DISABLE_TELNET=1
22595 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22596 printf "%s\n" "yes" >&6; }
22600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22601 printf "%s\n" "yes" >&6; }
22605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
22606 printf %s "checking whether to support tftp... " >&6; }
22607 # Check whether --enable-tftp was given.
22608 if test ${enable_tftp+y}
22610 enableval=$enable_tftp; case "$enableval" in
22612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22613 printf "%s\n" "no" >&6; }
22615 printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
22617 CURL_DISABLE_TFTP=1
22620 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22621 printf "%s\n" "yes" >&6; }
22625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22626 printf "%s\n" "yes" >&6; }
22631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
22632 printf %s "checking whether to support pop3... " >&6; }
22633 # Check whether --enable-pop3 was given.
22634 if test ${enable_pop3+y}
22636 enableval=$enable_pop3; case "$enableval" in
22638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22639 printf "%s\n" "no" >&6; }
22641 printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
22643 CURL_DISABLE_POP3=1
22646 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22647 printf "%s\n" "yes" >&6; }
22651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22652 printf "%s\n" "yes" >&6; }
22658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
22659 printf %s "checking whether to support imap... " >&6; }
22660 # Check whether --enable-imap was given.
22661 if test ${enable_imap+y}
22663 enableval=$enable_imap; case "$enableval" in
22665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22666 printf "%s\n" "no" >&6; }
22668 printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
22670 CURL_DISABLE_IMAP=1
22673 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22674 printf "%s\n" "yes" >&6; }
22678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22679 printf "%s\n" "yes" >&6; }
22685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
22686 printf %s "checking whether to support smb... " >&6; }
22687 # Check whether --enable-smb was given.
22688 if test ${enable_smb+y}
22690 enableval=$enable_smb; case "$enableval" in
22692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22693 printf "%s\n" "no" >&6; }
22695 printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
22700 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22701 printf "%s\n" "yes" >&6; }
22705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22706 printf "%s\n" "yes" >&6; }
22711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
22712 printf %s "checking whether to support smtp... " >&6; }
22713 # Check whether --enable-smtp was given.
22714 if test ${enable_smtp+y}
22716 enableval=$enable_smtp; case "$enableval" in
22718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22719 printf "%s\n" "no" >&6; }
22721 printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
22723 CURL_DISABLE_SMTP=1
22726 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22727 printf "%s\n" "yes" >&6; }
22731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22732 printf "%s\n" "yes" >&6; }
22737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
22738 printf %s "checking whether to support gopher... " >&6; }
22739 # Check whether --enable-gopher was given.
22740 if test ${enable_gopher+y}
22742 enableval=$enable_gopher; case "$enableval" in
22744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22745 printf "%s\n" "no" >&6; }
22747 printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
22749 CURL_DISABLE_GOPHER=1
22752 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22753 printf "%s\n" "yes" >&6; }
22757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22758 printf "%s\n" "yes" >&6; }
22763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
22764 printf %s "checking whether to support mqtt... " >&6; }
22765 # Check whether --enable-mqtt was given.
22766 if test ${enable_mqtt+y}
22768 enableval=$enable_mqtt; case "$enableval" in
22770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22771 printf "%s\n" "no" >&6; }
22773 printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
22775 CURL_DISABLE_MQTT=1
22778 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22779 printf "%s\n" "yes" >&6; }
22783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22784 printf "%s\n" "no" >&6; }
22790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
22791 printf %s "checking whether to provide built-in manual... " >&6; }
22792 # Check whether --enable-manual was given.
22793 if test ${enable_manual+y}
22795 enableval=$enable_manual; case "$enableval" in
22797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22798 printf "%s\n" "no" >&6; }
22800 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22801 printf "%s\n" "yes" >&6; }
22806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22807 printf "%s\n" "yes" >&6; }
22813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
22814 printf %s "checking whether to enable generation of C code... " >&6; }
22815 # Check whether --enable-libcurl_option was given.
22816 if test ${enable_libcurl_option+y}
22818 enableval=$enable_libcurl_option; case "$enableval" in
22820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22821 printf "%s\n" "no" >&6; }
22823 printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
22825 curl_libcurl_msg="no"
22827 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22828 printf "%s\n" "yes" >&6; }
22832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22833 printf "%s\n" "yes" >&6; }
22839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
22840 printf %s "checking whether to use libgcc... " >&6; }
22841 # Check whether --enable-libgcc was given.
22842 if test ${enable_libgcc+y}
22844 enableval=$enable_libgcc; case "$enableval" in
22847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22848 printf "%s\n" "yes" >&6; }
22850 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22851 printf "%s\n" "no" >&6; }
22855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22856 printf "%s\n" "no" >&6; }
22862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22863 printf %s "checking if X/Open network library is required... " >&6; }
22864 tst_lib_xnet_required="no"
22865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22866 /* end confdefs.h. */
22871 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22873 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22876 force compilation error
22882 if ac_fn_c_try_compile "$LINENO"
22885 tst_lib_xnet_required="yes"
22886 LIBS="-lxnet $LIBS"
22889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22891 printf "%s\n" "$tst_lib_xnet_required" >&6; }
22894 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22895 if test "x$ac_cv_func_gethostbyname" = xyes
22897 HAVE_GETHOSTBYNAME="1"
22900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22901 printf %s "checking for gethostbyname in -lnsl... " >&6; }
22902 if test ${ac_cv_lib_nsl_gethostbyname+y}
22904 printf %s "(cached) " >&6
22906 ac_check_lib_save_LIBS=$LIBS
22908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909 /* end confdefs.h. */
22915 char gethostbyname ();
22918 return gethostbyname ();
22923 if ac_fn_c_try_link "$LINENO"
22925 ac_cv_lib_nsl_gethostbyname=yes
22927 ac_cv_lib_nsl_gethostbyname=no
22929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22930 conftest$ac_exeext conftest.$ac_ext
22931 LIBS=$ac_check_lib_save_LIBS
22933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22934 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
22935 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
22937 HAVE_GETHOSTBYNAME="1"
22946 if test "$HAVE_GETHOSTBYNAME" != "1"
22948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22949 printf %s "checking for gethostbyname in -lsocket... " >&6; }
22950 if test ${ac_cv_lib_socket_gethostbyname+y}
22952 printf %s "(cached) " >&6
22954 ac_check_lib_save_LIBS=$LIBS
22955 LIBS="-lsocket $LIBS"
22956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957 /* end confdefs.h. */
22963 char gethostbyname ();
22966 return gethostbyname ();
22971 if ac_fn_c_try_link "$LINENO"
22973 ac_cv_lib_socket_gethostbyname=yes
22975 ac_cv_lib_socket_gethostbyname=no
22977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22978 conftest$ac_exeext conftest.$ac_ext
22979 LIBS=$ac_check_lib_save_LIBS
22981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22982 printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
22983 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
22985 HAVE_GETHOSTBYNAME="1"
22986 LIBS="-lsocket $LIBS"
22992 if test "$HAVE_GETHOSTBYNAME" != "1"
22994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
22995 printf %s "checking for gethostbyname in -lwatt... " >&6; }
22996 if test ${ac_cv_lib_watt_gethostbyname+y}
22998 printf %s "(cached) " >&6
23000 ac_check_lib_save_LIBS=$LIBS
23001 LIBS="-lwatt $LIBS"
23002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23003 /* end confdefs.h. */
23009 char gethostbyname ();
23012 return gethostbyname ();
23017 if ac_fn_c_try_link "$LINENO"
23019 ac_cv_lib_watt_gethostbyname=yes
23021 ac_cv_lib_watt_gethostbyname=no
23023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23024 conftest$ac_exeext conftest.$ac_ext
23025 LIBS=$ac_check_lib_save_LIBS
23027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
23028 printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
23029 if test "x$ac_cv_lib_watt_gethostbyname" = xyes
23031 HAVE_GETHOSTBYNAME="1"
23032 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
23033 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
23034 LIBS="-lwatt $LIBS"
23040 if test "$HAVE_GETHOSTBYNAME" != "1"
23042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
23043 printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
23044 my_ac_save_LIBS=$LIBS
23045 LIBS="-lnsl -lsocket $LIBS"
23046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23047 /* end confdefs.h. */
23061 if ac_fn_c_try_link "$LINENO"
23064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23065 printf "%s\n" "yes" >&6; }
23066 HAVE_GETHOSTBYNAME="1"
23070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23071 printf "%s\n" "no" >&6; }
23072 LIBS=$my_ac_save_LIBS
23075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23076 conftest$ac_exeext conftest.$ac_ext
23079 if test "$HAVE_GETHOSTBYNAME" != "1"
23081 if test "$curl_cv_header_windows_h" = "yes"; then
23082 if test "$curl_cv_header_winsock2_h" = "yes"; then
23083 winsock_LIB="-lws2_32"
23085 if test ! -z "$winsock_LIB"; then
23086 my_ac_save_LIBS=$LIBS
23087 LIBS="$winsock_LIB $LIBS"
23088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
23089 printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
23090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23091 /* end confdefs.h. */
23094 #ifdef HAVE_WINDOWS_H
23095 #ifndef WIN32_LEAN_AND_MEAN
23096 #define WIN32_LEAN_AND_MEAN
23098 #ifdef HAVE_WINSOCK2_H
23099 #include <winsock2.h>
23101 #include <windows.h>
23107 gethostbyname("localhost");
23114 if ac_fn_c_try_link "$LINENO"
23117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23118 printf "%s\n" "yes" >&6; }
23119 HAVE_GETHOSTBYNAME="1"
23123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23124 printf "%s\n" "no" >&6; }
23126 LIBS=$my_ac_save_LIBS
23129 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23130 conftest$ac_exeext conftest.$ac_ext
23135 if test "$HAVE_GETHOSTBYNAME" != "1"
23137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
23138 printf %s "checking for gethostbyname for Minix 3... " >&6; }
23139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23140 /* end confdefs.h. */
23143 /* Older Minix versions may need <net/gen/netdb.h> here instead */
23149 gethostbyname("localhost");
23156 if ac_fn_c_try_link "$LINENO"
23159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23160 printf "%s\n" "yes" >&6; }
23161 HAVE_GETHOSTBYNAME="1"
23165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23166 printf "%s\n" "no" >&6; }
23169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23170 conftest$ac_exeext conftest.$ac_ext
23173 if test "$HAVE_GETHOSTBYNAME" != "1"
23175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
23176 printf %s "checking for gethostbyname for eCos... " >&6; }
23177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23178 /* end confdefs.h. */
23187 gethostbyname("localhost");
23194 if ac_fn_c_try_link "$LINENO"
23197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23198 printf "%s\n" "yes" >&6; }
23199 HAVE_GETHOSTBYNAME="1"
23203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204 printf "%s\n" "no" >&6; }
23207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23208 conftest$ac_exeext conftest.$ac_ext
23211 if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
23213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
23214 printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
23215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216 /* end confdefs.h. */
23219 #define __USE_INLINE__
23220 #include <proto/bsdsocket.h>
23221 #ifdef __amigaos4__
23222 struct SocketIFace *ISocket = NULL;
23224 struct Library *SocketBase = NULL;
23230 gethostbyname("localhost");
23237 if ac_fn_c_try_link "$LINENO"
23240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23241 printf "%s\n" "yes" >&6; }
23242 HAVE_GETHOSTBYNAME="1"
23243 HAVE_PROTO_BSDSOCKET_H="1"
23245 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
23247 HAVE_PROTO_BSDSOCKET_H=1
23252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23253 printf "%s\n" "no" >&6; }
23256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23257 conftest$ac_exeext conftest.$ac_ext
23260 if test "$HAVE_GETHOSTBYNAME" != "1"
23262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
23263 printf %s "checking for gethostbyname in -lnetwork... " >&6; }
23264 if test ${ac_cv_lib_network_gethostbyname+y}
23266 printf %s "(cached) " >&6
23268 ac_check_lib_save_LIBS=$LIBS
23269 LIBS="-lnetwork $LIBS"
23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23271 /* end confdefs.h. */
23277 char gethostbyname ();
23280 return gethostbyname ();
23285 if ac_fn_c_try_link "$LINENO"
23287 ac_cv_lib_network_gethostbyname=yes
23289 ac_cv_lib_network_gethostbyname=no
23291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23292 conftest$ac_exeext conftest.$ac_ext
23293 LIBS=$ac_check_lib_save_LIBS
23295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
23296 printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
23297 if test "x$ac_cv_lib_network_gethostbyname" = xyes
23299 HAVE_GETHOSTBYNAME="1"
23300 LIBS="-lnetwork $LIBS"
23306 if test "$HAVE_GETHOSTBYNAME" != "1"; then
23307 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
23311 curl_includes_winsock2="\
23312 /* includes start */
23313 #ifdef HAVE_WINDOWS_H
23314 # ifndef WIN32_LEAN_AND_MEAN
23315 # define WIN32_LEAN_AND_MEAN
23317 # ifdef HAVE_WINSOCK2_H
23318 # include <winsock2.h>
23320 # include <windows.h>
23322 /* includes end */"
23324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
23325 printf %s "checking for windows.h... " >&6; }
23326 if test ${curl_cv_header_windows_h+y}
23328 printf %s "(cached) " >&6
23331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23332 /* end confdefs.h. */
23336 #ifndef WIN32_LEAN_AND_MEAN
23337 #define WIN32_LEAN_AND_MEAN
23339 #include <windows.h>
23344 #if defined(__CYGWIN__) || defined(__CEGCC__)
23345 HAVE_WINDOWS_H shall not be defined.
23347 int dummy=2*WINVER;
23355 if ac_fn_c_try_compile "$LINENO"
23358 curl_cv_header_windows_h="yes"
23362 curl_cv_header_windows_h="no"
23365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
23369 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
23370 case "$curl_cv_header_windows_h" in
23373 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
23379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
23380 printf %s "checking for winsock2.h... " >&6; }
23381 if test ${curl_cv_header_winsock2_h+y}
23383 printf %s "(cached) " >&6
23386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23387 /* end confdefs.h. */
23391 #ifndef WIN32_LEAN_AND_MEAN
23392 #define WIN32_LEAN_AND_MEAN
23394 #include <windows.h>
23395 #include <winsock2.h>
23400 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23401 HAVE_WINSOCK2_H shall not be defined.
23403 int dummy=2*IPPROTO_ESP;
23411 if ac_fn_c_try_compile "$LINENO"
23414 curl_cv_header_winsock2_h="yes"
23418 curl_cv_header_winsock2_h="no"
23421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
23425 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
23426 case "$curl_cv_header_winsock2_h" in
23429 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
23436 curl_includes_bsdsocket="\
23437 /* includes start */
23438 #if defined(HAVE_PROTO_BSDSOCKET_H)
23439 # define __NO_NET_API
23440 # define __USE_INLINE__
23441 # include <proto/bsdsocket.h>
23442 # ifdef HAVE_SYS_IOCTL_H
23443 # include <sys/ioctl.h>
23445 # ifdef __amigaos4__
23446 struct SocketIFace *ISocket = NULL;
23448 struct Library *SocketBase = NULL;
23450 # define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
23452 /* includes end */"
23453 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket
23455 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
23457 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
23463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
23464 printf %s "checking for connect in libraries... " >&6; }
23465 tst_connect_save_LIBS="$LIBS"
23466 tst_connect_need_LIBS="unknown"
23467 for tst_lib in '' '-lsocket' ; do
23468 if test "$tst_connect_need_LIBS" = "unknown"; then
23469 LIBS="$tst_lib $tst_connect_save_LIBS"
23470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471 /* end confdefs.h. */
23474 $curl_includes_winsock2
23475 $curl_includes_bsdsocket
23476 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
23477 int connect(int, void*, int);
23483 if(0 != connect(0, 0, 0))
23491 if ac_fn_c_try_link "$LINENO"
23494 tst_connect_need_LIBS="$tst_lib"
23497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23498 conftest$ac_exeext conftest.$ac_ext
23501 LIBS="$tst_connect_save_LIBS"
23503 case X-"$tst_connect_need_LIBS" in
23505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
23506 printf "%s\n" "cannot find connect" >&6; }
23507 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
23510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23511 printf "%s\n" "yes" >&6; }
23514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
23515 printf "%s\n" "$tst_connect_need_LIBS" >&6; }
23516 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
23521 CURL_NETWORK_LIBS=$LIBS
23524 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23525 if test "x$ac_cv_header_sys_types_h" = xyes
23527 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23530 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23531 if test "x$ac_cv_header_sys_time_h" = xyes
23533 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
23538 printf %s "checking for monotonic clock_gettime... " >&6; }
23540 if test "x$dontwant_rt" = "xno" ; then
23541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542 /* end confdefs.h. */
23545 #ifdef HAVE_SYS_TYPES_H
23546 #include <sys/types.h>
23548 #ifdef HAVE_SYS_TIME_H
23549 #include <sys/time.h>
23556 struct timespec ts;
23557 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23564 if ac_fn_c_try_compile "$LINENO"
23567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23568 printf "%s\n" "yes" >&6; }
23569 curl_func_clock_gettime="yes"
23573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23574 printf "%s\n" "no" >&6; }
23575 curl_func_clock_gettime="no"
23578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23583 if test "$curl_func_clock_gettime" = "yes"; then
23585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
23586 printf %s "checking for clock_gettime in libraries... " >&6; }
23588 curl_cv_save_LIBS="$LIBS"
23589 curl_cv_gclk_LIBS="unknown"
23591 for x_xlibs in '' '-lrt' '-lposix4' ; do
23592 if test "$curl_cv_gclk_LIBS" = "unknown"; then
23593 if test -z "$x_xlibs"; then
23594 LIBS="$curl_cv_save_LIBS"
23596 LIBS="$x_xlibs $curl_cv_save_LIBS"
23598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23599 /* end confdefs.h. */
23602 #ifdef HAVE_SYS_TYPES_H
23603 #include <sys/types.h>
23605 #ifdef HAVE_SYS_TIME_H
23606 #include <sys/time.h>
23613 struct timespec ts;
23614 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
23621 if ac_fn_c_try_link "$LINENO"
23624 curl_cv_gclk_LIBS="$x_xlibs"
23627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23628 conftest$ac_exeext conftest.$ac_ext
23632 LIBS="$curl_cv_save_LIBS"
23634 case X-"$curl_cv_gclk_LIBS" in
23636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
23637 printf "%s\n" "cannot find clock_gettime" >&6; }
23638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23639 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23640 curl_func_clock_gettime="no"
23643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23644 printf "%s\n" "no additional lib required" >&6; }
23645 curl_func_clock_gettime="yes"
23648 if test -z "$curl_cv_save_LIBS"; then
23649 LIBS="$curl_cv_gclk_LIBS"
23651 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
23653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
23654 printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
23655 curl_func_clock_gettime="yes"
23659 if test "x$cross_compiling" != "xyes" &&
23660 test "$curl_func_clock_gettime" = "yes"; then
23661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
23662 printf %s "checking if monotonic clock_gettime works... " >&6; }
23666 if test "$cross_compiling" = yes
23668 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23669 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23670 as_fn_error $? "cannot run test program while cross compiling
23671 See \`config.log' for more details" "$LINENO" 5; }
23673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23674 /* end confdefs.h. */
23677 #include <stdlib.h>
23678 #ifdef HAVE_SYS_TYPES_H
23679 #include <sys/types.h>
23681 #ifdef HAVE_SYS_TIME_H
23682 #include <sys/time.h>
23689 struct timespec ts;
23690 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23700 if ac_fn_c_try_run "$LINENO"
23702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23703 printf "%s\n" "yes" >&6; }
23706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23707 printf "%s\n" "no" >&6; }
23708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23709 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23710 curl_func_clock_gettime="no"
23711 LIBS="$curl_cv_save_LIBS"
23714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23715 conftest.$ac_objext conftest.beam conftest.$ac_ext
23721 old=$LD_LIBRARY_PATH
23722 CC="sh ./run-compiler"
23723 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
23724 export LD_LIBRARY_PATH
23725 if test "$cross_compiling" = yes
23727 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23728 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23729 as_fn_error $? "cannot run test program while cross compiling
23730 See \`config.log' for more details" "$LINENO" 5; }
23732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23733 /* end confdefs.h. */
23736 #include <stdlib.h>
23737 #ifdef HAVE_SYS_TYPES_H
23738 #include <sys/types.h>
23740 #ifdef HAVE_SYS_TIME_H
23741 #include <sys/time.h>
23748 struct timespec ts;
23749 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
23759 if ac_fn_c_try_run "$LINENO"
23761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23762 printf "%s\n" "yes" >&6; }
23765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23766 printf "%s\n" "no" >&6; }
23767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
23768 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
23769 curl_func_clock_gettime="no"
23770 LIBS="$curl_cv_save_LIBS"
23773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23774 conftest.$ac_objext conftest.beam conftest.$ac_ext
23777 LD_LIBRARY_PATH=$old # restore
23784 case "$curl_func_clock_gettime" in
23787 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
23797 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
23798 if test "x$ac_cv_header_sys_types_h" = xyes
23800 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
23803 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
23804 if test "x$ac_cv_header_sys_time_h" = xyes
23806 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
23810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for raw monotonic clock_gettime" >&5
23811 printf %s "checking for raw monotonic clock_gettime... " >&6; }
23813 if test "x$dontwant_rt" = "xno" ; then
23814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23815 /* end confdefs.h. */
23818 #ifdef HAVE_SYS_TYPES_H
23819 #include <sys/types.h>
23821 #ifdef HAVE_SYS_TIME_H
23822 #include <sys/time.h>
23829 struct timespec ts;
23830 (void)clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
23837 if ac_fn_c_try_compile "$LINENO"
23840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23841 printf "%s\n" "yes" >&6; }
23843 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC_RAW 1" >>confdefs.h
23848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23849 printf "%s\n" "no" >&6; }
23852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23856 CURL_NETWORK_AND_TIME_LIBS=$LIBS
23860 clean_CPPFLAGS=$CPPFLAGS
23861 clean_LDFLAGS=$LDFLAGS
23865 # Check whether --with-zlib was given.
23866 if test ${with_zlib+y}
23868 withval=$with_zlib; OPT_ZLIB="$withval"
23872 if test "$OPT_ZLIB" = "no" ; then
23873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
23874 printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
23876 if test "$OPT_ZLIB" = "yes" ; then
23880 if test -z "$OPT_ZLIB" ; then
23882 if test -n "$PKG_CONFIG"; then
23883 PKGCONFIG="$PKG_CONFIG"
23885 if test -n "$ac_tool_prefix"; then
23886 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23887 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23889 printf %s "checking for $ac_word... " >&6; }
23890 if test ${ac_cv_path_PKGCONFIG+y}
23892 printf %s "(cached) " >&6
23896 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23900 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23901 for as_dir in $as_dummy
23904 case $as_dir in #(((
23907 *) as_dir=$as_dir/ ;;
23909 for ac_exec_ext in '' $ac_executable_extensions; do
23910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23911 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23922 PKGCONFIG=$ac_cv_path_PKGCONFIG
23923 if test -n "$PKGCONFIG"; then
23924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23925 printf "%s\n" "$PKGCONFIG" >&6; }
23927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23928 printf "%s\n" "no" >&6; }
23933 if test -z "$ac_cv_path_PKGCONFIG"; then
23934 ac_pt_PKGCONFIG=$PKGCONFIG
23935 # Extract the first word of "pkg-config", so it can be a program name with args.
23936 set dummy pkg-config; ac_word=$2
23937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23938 printf %s "checking for $ac_word... " >&6; }
23939 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23941 printf %s "(cached) " >&6
23943 case $ac_pt_PKGCONFIG in
23945 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23949 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23950 for as_dir in $as_dummy
23953 case $as_dir in #(((
23956 *) as_dir=$as_dir/ ;;
23958 for ac_exec_ext in '' $ac_executable_extensions; do
23959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23960 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23971 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23972 if test -n "$ac_pt_PKGCONFIG"; then
23973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23974 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23977 printf "%s\n" "no" >&6; }
23980 if test "x$ac_pt_PKGCONFIG" = x; then
23983 case $cross_compiling:$ac_tool_warned in
23985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23986 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23987 ac_tool_warned=yes ;;
23989 PKGCONFIG=$ac_pt_PKGCONFIG
23992 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23997 if test "x$PKGCONFIG" != "xno"; then
23998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
23999 printf %s "checking for zlib options with pkg-config... " >&6; }
24001 if test -n ""; then
24002 PKG_CONFIG_LIBDIR=""
24003 export PKG_CONFIG_LIBDIR
24005 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
24007 if test -z "$itexists"; then
24009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24010 printf "%s\n" "no" >&6; }
24012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24013 printf "%s\n" "found" >&6; }
24018 if test "$PKGCONFIG" != "no" ; then
24019 ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`"
24020 if test -n "$ZLIB_LIBS"; then
24021 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
24023 ZLIB_LIBS="`$PKGCONFIG --libs zlib`"
24025 LIBS="$ZLIB_LIBS $LIBS"
24026 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags zlib`"
24031 if test -z "$HAVE_LIBZ"; then
24034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
24035 printf %s "checking for inflateEnd in -lz... " >&6; }
24036 if test ${ac_cv_lib_z_inflateEnd+y}
24038 printf %s "(cached) " >&6
24040 ac_check_lib_save_LIBS=$LIBS
24042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h. */
24049 char inflateEnd ();
24052 return inflateEnd ();
24057 if ac_fn_c_try_link "$LINENO"
24059 ac_cv_lib_z_inflateEnd=yes
24061 ac_cv_lib_z_inflateEnd=no
24063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24064 conftest$ac_exeext conftest.$ac_ext
24065 LIBS=$ac_check_lib_save_LIBS
24067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
24068 printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
24069 if test "x$ac_cv_lib_z_inflateEnd" = xyes
24073 LIBS="$ZLIB_LIBS $LIBS"
24075 OPT_ZLIB="/usr/local"
24081 if test -n "$OPT_ZLIB"; then
24082 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
24083 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
24086 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24087 if test "x$ac_cv_header_zlib_h" = xyes
24091 if test "$HAVE_LIBZ" != "1"; then
24092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
24093 printf %s "checking for gzread in -lz... " >&6; }
24094 if test ${ac_cv_lib_z_gzread+y}
24096 printf %s "(cached) " >&6
24098 ac_check_lib_save_LIBS=$LIBS
24100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24101 /* end confdefs.h. */
24115 if ac_fn_c_try_link "$LINENO"
24117 ac_cv_lib_z_gzread=yes
24119 ac_cv_lib_z_gzread=no
24121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24122 conftest$ac_exeext conftest.$ac_ext
24123 LIBS=$ac_check_lib_save_LIBS
24125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
24126 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
24127 if test "x$ac_cv_lib_z_gzread" = xyes
24132 LIBS="$ZLIB_LIBS $LIBS"
24135 CPPFLAGS=$clean_CPPFLAGS
24136 LDFLAGS=$clean_LDFLAGS
24143 CPPFLAGS=$clean_CPPFLAGS
24144 LDFLAGS=$clean_LDFLAGS
24149 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
24151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
24152 printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
24154 CPPFLAGS=$clean_CPPFLAGS
24155 LDFLAGS=$clean_LDFLAGS
24158 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
24160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
24161 printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
24162 CPPFLAGS=$clean_CPPFLAGS
24163 LDFLAGS=$clean_LDFLAGS
24166 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
24170 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
24172 LIBS="$ZLIB_LIBS $clean_LIBS"
24175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
24176 printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
24177 curl_zlib_msg="enabled"
24181 if test x"$AMFIXLIB" = x1; then
24183 HAVE_LIBZ_FALSE='#'
24195 # Check whether --with-brotli was given.
24196 if test ${with_brotli+y}
24198 withval=$with_brotli; OPT_BROTLI=$withval
24202 if test X"$OPT_BROTLI" != Xno; then
24203 CLEANLDFLAGS="$LDFLAGS"
24204 CLEANCPPFLAGS="$CPPFLAGS"
24207 case "$OPT_BROTLI" in
24210 if test -n "$PKG_CONFIG"; then
24211 PKGCONFIG="$PKG_CONFIG"
24213 if test -n "$ac_tool_prefix"; then
24214 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24215 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24217 printf %s "checking for $ac_word... " >&6; }
24218 if test ${ac_cv_path_PKGCONFIG+y}
24220 printf %s "(cached) " >&6
24224 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24228 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24229 for as_dir in $as_dummy
24232 case $as_dir in #(((
24235 *) as_dir=$as_dir/ ;;
24237 for ac_exec_ext in '' $ac_executable_extensions; do
24238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24239 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24250 PKGCONFIG=$ac_cv_path_PKGCONFIG
24251 if test -n "$PKGCONFIG"; then
24252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24253 printf "%s\n" "$PKGCONFIG" >&6; }
24255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24256 printf "%s\n" "no" >&6; }
24261 if test -z "$ac_cv_path_PKGCONFIG"; then
24262 ac_pt_PKGCONFIG=$PKGCONFIG
24263 # Extract the first word of "pkg-config", so it can be a program name with args.
24264 set dummy pkg-config; ac_word=$2
24265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24266 printf %s "checking for $ac_word... " >&6; }
24267 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24269 printf %s "(cached) " >&6
24271 case $ac_pt_PKGCONFIG in
24273 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24277 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24278 for as_dir in $as_dummy
24281 case $as_dir in #(((
24284 *) as_dir=$as_dir/ ;;
24286 for ac_exec_ext in '' $ac_executable_extensions; do
24287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24288 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24299 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24300 if test -n "$ac_pt_PKGCONFIG"; then
24301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24302 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24305 printf "%s\n" "no" >&6; }
24308 if test "x$ac_pt_PKGCONFIG" = x; then
24311 case $cross_compiling:$ac_tool_warned in
24313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24315 ac_tool_warned=yes ;;
24317 PKGCONFIG=$ac_pt_PKGCONFIG
24320 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24325 if test "x$PKGCONFIG" != "xno"; then
24326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
24327 printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
24329 if test -n ""; then
24330 PKG_CONFIG_LIBDIR=""
24331 export PKG_CONFIG_LIBDIR
24333 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
24335 if test -z "$itexists"; then
24337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24338 printf "%s\n" "no" >&6; }
24340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24341 printf "%s\n" "found" >&6; }
24346 if test "$PKGCONFIG" != "no" ; then
24347 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
24348 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
24349 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
24350 version=`$PKGCONFIG --modversion libbrotlidec`
24351 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
24358 PREFIX_BROTLI=$OPT_BROTLI
24362 if test -n "$PREFIX_BROTLI"; then
24363 LIB_BROTLI="-lbrotlidec"
24364 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
24365 CPP_BROTLI=-I${PREFIX_BROTLI}/include
24366 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
24369 LDFLAGS="$LDFLAGS $LD_BROTLI"
24370 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
24371 LIBS="$LIB_BROTLI $LIBS"
24373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
24374 printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
24375 if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
24377 printf %s "(cached) " >&6
24379 ac_check_lib_save_LIBS=$LIBS
24380 LIBS="-lbrotlidec $LIBS"
24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24382 /* end confdefs.h. */
24388 char BrotliDecoderDecompress ();
24391 return BrotliDecoderDecompress ();
24396 if ac_fn_c_try_link "$LINENO"
24398 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
24400 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
24402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24403 conftest$ac_exeext conftest.$ac_ext
24404 LIBS=$ac_check_lib_save_LIBS
24406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
24407 printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
24408 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
24410 printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
24412 LIBS="-lbrotlidec $LIBS"
24417 for ac_header in brotli/decode.h
24419 ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
24420 if test "x$ac_cv_header_brotli_decode_h" = xyes
24422 printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
24423 curl_brotli_msg="enabled (libbrotlidec)"
24426 printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
24435 if test X"$OPT_BROTLI" != Xoff &&
24436 test "$HAVE_BROTLI" != "1"; then
24437 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
24440 if test "$HAVE_BROTLI" = "1"; then
24441 if test -n "$DIR_BROTLI"; then
24443 if test "x$cross_compiling" != "xyes"; then
24444 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
24445 export CURL_LIBRARY_PATH
24446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
24447 printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
24451 LDFLAGS=$CLEANLDFLAGS
24452 CPPFLAGS=$CLEANCPPFLAGS
24460 # Check whether --with-zstd was given.
24461 if test ${with_zstd+y}
24463 withval=$with_zstd; OPT_ZSTD=$withval
24467 if test X"$OPT_ZSTD" != Xno; then
24468 CLEANLDFLAGS="$LDFLAGS"
24469 CLEANCPPFLAGS="$CPPFLAGS"
24472 case "$OPT_ZSTD" in
24475 if test -n "$PKG_CONFIG"; then
24476 PKGCONFIG="$PKG_CONFIG"
24478 if test -n "$ac_tool_prefix"; then
24479 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24480 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24482 printf %s "checking for $ac_word... " >&6; }
24483 if test ${ac_cv_path_PKGCONFIG+y}
24485 printf %s "(cached) " >&6
24489 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24493 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24494 for as_dir in $as_dummy
24497 case $as_dir in #(((
24500 *) as_dir=$as_dir/ ;;
24502 for ac_exec_ext in '' $ac_executable_extensions; do
24503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24504 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24515 PKGCONFIG=$ac_cv_path_PKGCONFIG
24516 if test -n "$PKGCONFIG"; then
24517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24518 printf "%s\n" "$PKGCONFIG" >&6; }
24520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24521 printf "%s\n" "no" >&6; }
24526 if test -z "$ac_cv_path_PKGCONFIG"; then
24527 ac_pt_PKGCONFIG=$PKGCONFIG
24528 # Extract the first word of "pkg-config", so it can be a program name with args.
24529 set dummy pkg-config; ac_word=$2
24530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24531 printf %s "checking for $ac_word... " >&6; }
24532 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24534 printf %s "(cached) " >&6
24536 case $ac_pt_PKGCONFIG in
24538 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24542 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24543 for as_dir in $as_dummy
24546 case $as_dir in #(((
24549 *) as_dir=$as_dir/ ;;
24551 for ac_exec_ext in '' $ac_executable_extensions; do
24552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24553 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24564 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24565 if test -n "$ac_pt_PKGCONFIG"; then
24566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24567 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24570 printf "%s\n" "no" >&6; }
24573 if test "x$ac_pt_PKGCONFIG" = x; then
24576 case $cross_compiling:$ac_tool_warned in
24578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24579 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24580 ac_tool_warned=yes ;;
24582 PKGCONFIG=$ac_pt_PKGCONFIG
24585 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24590 if test "x$PKGCONFIG" != "xno"; then
24591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
24592 printf %s "checking for libzstd options with pkg-config... " >&6; }
24594 if test -n ""; then
24595 PKG_CONFIG_LIBDIR=""
24596 export PKG_CONFIG_LIBDIR
24598 $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
24600 if test -z "$itexists"; then
24602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24603 printf "%s\n" "no" >&6; }
24605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24606 printf "%s\n" "found" >&6; }
24611 if test "$PKGCONFIG" != "no" ; then
24612 LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
24613 LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
24614 CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
24615 version=`$PKGCONFIG --modversion libzstd`
24616 DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
24623 PREFIX_ZSTD=$OPT_ZSTD
24627 if test -n "$PREFIX_ZSTD"; then
24629 LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
24630 CPP_ZSTD=-I${PREFIX_ZSTD}/include
24631 DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
24634 LDFLAGS="$LDFLAGS $LD_ZSTD"
24635 CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
24636 LIBS="$LIB_ZSTD $LIBS"
24638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
24639 printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
24640 if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
24642 printf %s "(cached) " >&6
24644 ac_check_lib_save_LIBS=$LIBS
24645 LIBS="-lzstd $LIBS"
24646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647 /* end confdefs.h. */
24653 char ZSTD_createDStream ();
24656 return ZSTD_createDStream ();
24661 if ac_fn_c_try_link "$LINENO"
24663 ac_cv_lib_zstd_ZSTD_createDStream=yes
24665 ac_cv_lib_zstd_ZSTD_createDStream=no
24667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24668 conftest$ac_exeext conftest.$ac_ext
24669 LIBS=$ac_check_lib_save_LIBS
24671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
24672 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
24673 if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
24675 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
24677 LIBS="-lzstd $LIBS"
24682 for ac_header in zstd.h
24684 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
24685 if test "x$ac_cv_header_zstd_h" = xyes
24687 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
24688 curl_zstd_msg="enabled (libzstd)"
24691 printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
24700 if test X"$OPT_ZSTD" != Xoff &&
24701 test "$HAVE_ZSTD" != "1"; then
24702 as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
24705 if test "$HAVE_ZSTD" = "1"; then
24706 if test -n "$DIR_ZSTD"; then
24708 if test "x$cross_compiling" != "xyes"; then
24709 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
24710 export CURL_LIBRARY_PATH
24711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
24712 printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
24716 LDFLAGS=$CLEANLDFLAGS
24717 CPPFLAGS=$CLEANCPPFLAGS
24725 # Check whether --with-ldap-lib was given.
24726 if test ${with_ldap_lib+y}
24728 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
24734 # Check whether --with-lber-lib was given.
24735 if test ${with_lber_lib+y}
24737 withval=$with_lber_lib; LBERLIBNAME="$withval"
24741 if test x$CURL_DISABLE_LDAP != x1 ; then
24744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
24745 printf %s "checking for lber.h... " >&6; }
24746 if test ${curl_cv_header_lber_h+y}
24748 printf %s "(cached) " >&6
24751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24752 /* end confdefs.h. */
24756 #ifdef HAVE_WINDOWS_H
24757 #ifndef WIN32_LEAN_AND_MEAN
24758 #define WIN32_LEAN_AND_MEAN
24760 #include <windows.h>
24762 #ifdef HAVE_SYS_TYPES_H
24763 #include <sys/types.h>
24767 #define NULL (void *)0
24774 BerValue *bvp = NULL;
24775 BerElement *bep = ber_init(bvp);
24783 if ac_fn_c_try_compile "$LINENO"
24786 curl_cv_header_lber_h="yes"
24790 curl_cv_header_lber_h="no"
24793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
24797 printf "%s\n" "$curl_cv_header_lber_h" >&6; }
24798 if test "$curl_cv_header_lber_h" = "yes"; then
24800 printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
24803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24804 /* end confdefs.h. */
24808 #ifdef HAVE_WINDOWS_H
24809 #ifndef WIN32_LEAN_AND_MEAN
24810 #define WIN32_LEAN_AND_MEAN
24812 #include <windows.h>
24814 #ifdef HAVE_SYS_TYPES_H
24815 #include <sys/types.h>
24819 #define NULL (void *)0
24821 #ifndef LDAP_DEPRECATED
24822 #define LDAP_DEPRECATED 1
24829 BerValue *bvp = NULL;
24830 BerElement *bep = ber_init(bvp);
24838 if ac_fn_c_try_compile "$LINENO"
24841 curl_cv_need_header_lber_h="no"
24845 curl_cv_need_header_lber_h="yes"
24848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24850 case "$curl_cv_need_header_lber_h" in
24853 printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
24860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
24861 printf %s "checking for ldap.h... " >&6; }
24862 if test ${curl_cv_header_ldap_h+y}
24864 printf %s "(cached) " >&6
24867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24868 /* end confdefs.h. */
24872 #ifdef HAVE_WINDOWS_H
24873 #ifndef WIN32_LEAN_AND_MEAN
24874 #define WIN32_LEAN_AND_MEAN
24876 #include <windows.h>
24878 #ifdef HAVE_SYS_TYPES_H
24879 #include <sys/types.h>
24882 #ifndef LDAP_DEPRECATED
24883 #define LDAP_DEPRECATED 1
24893 LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
24894 int res = ldap_unbind(ldp);
24901 if ac_fn_c_try_compile "$LINENO"
24904 curl_cv_header_ldap_h="yes"
24908 curl_cv_header_ldap_h="no"
24911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
24915 printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
24916 case "$curl_cv_header_ldap_h" in
24919 printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
24925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
24926 printf %s "checking for ldap_ssl.h... " >&6; }
24927 if test ${curl_cv_header_ldap_ssl_h+y}
24929 printf %s "(cached) " >&6
24932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24933 /* end confdefs.h. */
24937 #ifdef HAVE_WINDOWS_H
24938 #ifndef WIN32_LEAN_AND_MEAN
24939 #define WIN32_LEAN_AND_MEAN
24941 #include <windows.h>
24943 #ifdef HAVE_SYS_TYPES_H
24944 #include <sys/types.h>
24947 #ifndef LDAP_DEPRECATED
24948 #define LDAP_DEPRECATED 1
24956 #include <ldap_ssl.h>
24961 LDAP *ldp = ldapssl_init("0.0.0.0", LDAPS_PORT, 1);
24968 if ac_fn_c_try_compile "$LINENO"
24971 curl_cv_header_ldap_ssl_h="yes"
24975 curl_cv_header_ldap_ssl_h="no"
24978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
24982 printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
24983 case "$curl_cv_header_ldap_ssl_h" in
24986 printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
24992 if test -z "$LDAPLIBNAME" ; then
24993 if test "$curl_cv_native_windows" = "yes"; then
24994 LDAPLIBNAME="wldap32"
24999 if test "$LDAPLIBNAME" ; then
25000 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
25001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
25002 printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
25003 if eval test \${$as_ac_Lib+y}
25005 printf %s "(cached) " >&6
25007 ac_check_lib_save_LIBS=$LIBS
25008 LIBS="-l"$LDAPLIBNAME" $LIBS"
25009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25010 /* end confdefs.h. */
25019 return ldap_init ();
25024 if ac_fn_c_try_link "$LINENO"
25026 eval "$as_ac_Lib=yes"
25028 eval "$as_ac_Lib=no"
25030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25031 conftest$ac_exeext conftest.$ac_ext
25032 LIBS=$ac_check_lib_save_LIBS
25034 eval ac_res=\$$as_ac_Lib
25035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25036 printf "%s\n" "$ac_res" >&6; }
25037 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
25039 cat >>confdefs.h <<_ACEOF
25040 #define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
25043 LIBS="-l"$LDAPLIBNAME" $LIBS"
25047 if test -n "$ldap_askedfor"; then
25048 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
25050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
25051 printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
25053 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
25055 CURL_DISABLE_LDAP=1
25058 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
25060 CURL_DISABLE_LDAPS=1
25067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
25068 printf %s "checking for LDAP libraries... " >&6; }
25074 curl_cv_save_LIBS="$LIBS"
25075 curl_cv_ldap_LIBS="unknown"
25077 for x_nlibs in '' "$u_libs" \
25081 '-lldapssl -lldapx -lldapsdk' \
25082 '-lldapsdk -lldapx -lldapssl' \
25083 '-lldap -llber -lssl -lcrypto' ; do
25085 if test "$curl_cv_ldap_LIBS" = "unknown"; then
25086 if test -z "$x_nlibs"; then
25087 LIBS="$curl_cv_save_LIBS"
25089 LIBS="$x_nlibs $curl_cv_save_LIBS"
25091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25092 /* end confdefs.h. */
25096 #ifdef HAVE_WINDOWS_H
25097 #ifndef WIN32_LEAN_AND_MEAN
25098 #define WIN32_LEAN_AND_MEAN
25100 #include <windows.h>
25102 #ifdef HAVE_SYS_TYPES_H
25103 #include <sys/types.h>
25107 #define NULL (void *)0
25109 #ifndef LDAP_DEPRECATED
25110 #define LDAP_DEPRECATED 1
25122 BerValue *bvp = NULL;
25123 BerElement *bep = ber_init(bvp);
25124 LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT);
25125 int res = ldap_unbind(ldp);
25133 if ac_fn_c_try_link "$LINENO"
25136 curl_cv_ldap_LIBS="$x_nlibs"
25139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25140 conftest$ac_exeext conftest.$ac_ext
25144 LIBS="$curl_cv_save_LIBS"
25146 case X-"$curl_cv_ldap_LIBS" in
25148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
25149 printf "%s\n" "cannot find LDAP libraries" >&6; }
25152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
25153 printf "%s\n" "no additional lib required" >&6; }
25156 if test -z "$curl_cv_save_LIBS"; then
25157 LIBS="$curl_cv_ldap_LIBS"
25159 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
25161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
25162 printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
25167 case X-"$curl_cv_ldap_LIBS" in
25169 if test -n "$ldap_askedfor"; then
25170 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
25172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
25173 printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
25175 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
25177 CURL_DISABLE_LDAP=1
25180 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
25182 CURL_DISABLE_LDAPS=1
25189 if test x$CURL_DISABLE_LDAP != x1 ; then
25191 if test "$LBERLIBNAME" ; then
25192 if test "$LBERLIBNAME" != "no" ; then
25193 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
25194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
25195 printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
25196 if eval test \${$as_ac_Lib+y}
25198 printf %s "(cached) " >&6
25200 ac_check_lib_save_LIBS=$LIBS
25201 LIBS="-l"$LBERLIBNAME" $LIBS"
25202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25203 /* end confdefs.h. */
25212 return ber_free ();
25217 if ac_fn_c_try_link "$LINENO"
25219 eval "$as_ac_Lib=yes"
25221 eval "$as_ac_Lib=no"
25223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25224 conftest$ac_exeext conftest.$ac_ext
25225 LIBS=$ac_check_lib_save_LIBS
25227 eval ac_res=\$$as_ac_Lib
25228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25229 printf "%s\n" "$ac_res" >&6; }
25230 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
25232 cat >>confdefs.h <<_ACEOF
25233 #define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
25236 LIBS="-l"$LBERLIBNAME" $LIBS"
25240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
25241 printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
25243 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
25245 CURL_DISABLE_LDAP=1
25248 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
25250 CURL_DISABLE_LDAPS=1
25258 if test x$CURL_DISABLE_LDAP != x1 ; then
25259 ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
25260 if test "x$ac_cv_func_ldap_url_parse" = xyes
25262 printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
25265 ac_fn_c_check_func "$LINENO" "ldap_init_fd" "ac_cv_func_ldap_init_fd"
25266 if test "x$ac_cv_func_ldap_init_fd" = xyes
25268 printf "%s\n" "#define HAVE_LDAP_INIT_FD 1" >>confdefs.h
25273 if test "$LDAPLIBNAME" = "wldap32"; then
25274 curl_ldap_msg="enabled (winldap)"
25276 printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
25279 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
25280 curl_ldap_msg="enabled (OpenLDAP)"
25282 printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
25287 curl_ldap_msg="enabled (ancient OpenLDAP)"
25292 if test x$CURL_DISABLE_LDAPS != x1 ; then
25293 curl_ldaps_msg="enabled"
25297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
25298 printf %s "checking whether to enable IPv6... " >&6; }
25299 # Check whether --enable-ipv6 was given.
25300 if test ${enable_ipv6+y}
25302 enableval=$enable_ipv6; case "$enableval" in
25304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25305 printf "%s\n" "no" >&6; }
25308 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25309 printf "%s\n" "yes" >&6; }
25314 if test "$cross_compiling" = yes
25316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25317 printf "%s\n" "yes" >&6; }
25321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25322 /* end confdefs.h. */
25324 /* are AF_INET6 and sockaddr_in6 available? */
25325 #include <sys/types.h>
25326 #ifdef HAVE_WINSOCK2_H
25327 #include <winsock2.h>
25328 #include <ws2tcpip.h>
25330 #include <sys/socket.h>
25331 #include <netinet/in.h>
25332 #if defined (__TANDEM)
25333 # include <netinet/in6.h>
25336 #include <stdlib.h> /* for exit() */
25339 struct sockaddr_in6 s;
25341 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
25349 if ac_fn_c_try_run "$LINENO"
25351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25352 printf "%s\n" "yes" >&6; }
25355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25356 printf "%s\n" "no" >&6; }
25359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25360 conftest.$ac_objext conftest.beam conftest.$ac_ext
25366 if test "$ipv6" = yes; then
25367 curl_ipv6_msg="enabled"
25369 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
25374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
25375 printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
25376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25377 /* end confdefs.h. */
25379 #include <sys/types.h>
25380 #ifdef HAVE_WINSOCK2_H
25381 #include <winsock2.h>
25382 #include <ws2tcpip.h>
25384 #include <netinet/in.h>
25385 #if defined (__TANDEM)
25386 # include <netinet/in6.h>
25393 struct sockaddr_in6 s;
25394 s.sin6_scope_id = 0;
25400 if ac_fn_c_try_compile "$LINENO"
25403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25404 printf "%s\n" "yes" >&6; }
25406 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
25411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25412 printf "%s\n" "no" >&6; }
25415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
25420 printf %s "checking if argv can be written to... " >&6; }
25424 if test "$cross_compiling" = yes
25426 curl_cv_writable_argv=cross
25429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25430 /* end confdefs.h. */
25432 int main(int argc, char **argv)
25435 /* on Windows, writing to the argv does not hide the argument in
25436 process lists so it can just be skipped */
25443 return (argv[0][0] == ' ')?0:1;
25448 if ac_fn_c_try_run "$LINENO"
25450 curl_cv_writable_argv=yes
25453 curl_cv_writable_argv=no
25456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25457 conftest.$ac_objext conftest.beam conftest.$ac_ext
25463 old=$LD_LIBRARY_PATH
25464 CC="sh ./run-compiler"
25465 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
25466 export LD_LIBRARY_PATH
25467 if test "$cross_compiling" = yes
25469 curl_cv_writable_argv=cross
25472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473 /* end confdefs.h. */
25475 int main(int argc, char **argv)
25478 /* on Windows, writing to the argv does not hide the argument in
25479 process lists so it can just be skipped */
25486 return (argv[0][0] == ' ')?0:1;
25491 if ac_fn_c_try_run "$LINENO"
25493 curl_cv_writable_argv=yes
25496 curl_cv_writable_argv=no
25499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25500 conftest.$ac_objext conftest.beam conftest.$ac_ext
25503 LD_LIBRARY_PATH=$old # restore
25508 case $curl_cv_writable_argv in
25511 printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
25513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25514 printf "%s\n" "yes" >&6; }
25517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25518 printf "%s\n" "no" >&6; }
25521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25522 printf "%s\n" "no" >&6; }
25523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
25524 printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
25532 # Check whether --with-gssapi-includes was given.
25533 if test ${with_gssapi_includes+y}
25535 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
25542 # Check whether --with-gssapi-libs was given.
25543 if test ${with_gssapi_libs+y}
25545 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
25552 # Check whether --with-gssapi was given.
25553 if test ${with_gssapi+y}
25555 withval=$with_gssapi;
25556 GSSAPI_ROOT="$withval"
25557 if test x"$GSSAPI_ROOT" != xno; then
25559 if test x"$GSSAPI_ROOT" = xyes; then
25567 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
25569 save_CPPFLAGS="$CPPFLAGS"
25570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
25571 printf %s "checking if GSS-API support is requested... " >&6; }
25572 if test x"$want_gss" = xyes; then
25573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25574 printf "%s\n" "yes" >&6; }
25576 if test $GSSAPI_ROOT != "/usr"; then
25578 if test -n "$PKG_CONFIG"; then
25579 PKGCONFIG="$PKG_CONFIG"
25581 if test -n "$ac_tool_prefix"; then
25582 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25583 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25585 printf %s "checking for $ac_word... " >&6; }
25586 if test ${ac_cv_path_PKGCONFIG+y}
25588 printf %s "(cached) " >&6
25592 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25596 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25597 for as_dir in $as_dummy
25600 case $as_dir in #(((
25603 *) as_dir=$as_dir/ ;;
25605 for ac_exec_ext in '' $ac_executable_extensions; do
25606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25607 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25618 PKGCONFIG=$ac_cv_path_PKGCONFIG
25619 if test -n "$PKGCONFIG"; then
25620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25621 printf "%s\n" "$PKGCONFIG" >&6; }
25623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25624 printf "%s\n" "no" >&6; }
25629 if test -z "$ac_cv_path_PKGCONFIG"; then
25630 ac_pt_PKGCONFIG=$PKGCONFIG
25631 # Extract the first word of "pkg-config", so it can be a program name with args.
25632 set dummy pkg-config; ac_word=$2
25633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25634 printf %s "checking for $ac_word... " >&6; }
25635 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25637 printf %s "(cached) " >&6
25639 case $ac_pt_PKGCONFIG in
25641 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25645 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25646 for as_dir in $as_dummy
25649 case $as_dir in #(((
25652 *) as_dir=$as_dir/ ;;
25654 for ac_exec_ext in '' $ac_executable_extensions; do
25655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25656 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25667 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25668 if test -n "$ac_pt_PKGCONFIG"; then
25669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25670 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25673 printf "%s\n" "no" >&6; }
25676 if test "x$ac_pt_PKGCONFIG" = x; then
25679 case $cross_compiling:$ac_tool_warned in
25681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25683 ac_tool_warned=yes ;;
25685 PKGCONFIG=$ac_pt_PKGCONFIG
25688 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25693 if test "x$PKGCONFIG" != "xno"; then
25694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25695 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25697 if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25698 PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25699 export PKG_CONFIG_LIBDIR
25701 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25703 if test -z "$itexists"; then
25705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25706 printf "%s\n" "no" >&6; }
25708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25709 printf "%s\n" "found" >&6; }
25715 if test -n "$PKG_CONFIG"; then
25716 PKGCONFIG="$PKG_CONFIG"
25718 if test -n "$ac_tool_prefix"; then
25719 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25720 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25722 printf %s "checking for $ac_word... " >&6; }
25723 if test ${ac_cv_path_PKGCONFIG+y}
25725 printf %s "(cached) " >&6
25729 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25733 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25734 for as_dir in $as_dummy
25737 case $as_dir in #(((
25740 *) as_dir=$as_dir/ ;;
25742 for ac_exec_ext in '' $ac_executable_extensions; do
25743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25744 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25755 PKGCONFIG=$ac_cv_path_PKGCONFIG
25756 if test -n "$PKGCONFIG"; then
25757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25758 printf "%s\n" "$PKGCONFIG" >&6; }
25760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25761 printf "%s\n" "no" >&6; }
25766 if test -z "$ac_cv_path_PKGCONFIG"; then
25767 ac_pt_PKGCONFIG=$PKGCONFIG
25768 # Extract the first word of "pkg-config", so it can be a program name with args.
25769 set dummy pkg-config; ac_word=$2
25770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25771 printf %s "checking for $ac_word... " >&6; }
25772 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25774 printf %s "(cached) " >&6
25776 case $ac_pt_PKGCONFIG in
25778 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25782 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25783 for as_dir in $as_dummy
25786 case $as_dir in #(((
25789 *) as_dir=$as_dir/ ;;
25791 for ac_exec_ext in '' $ac_executable_extensions; do
25792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25793 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25804 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25805 if test -n "$ac_pt_PKGCONFIG"; then
25806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25807 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25810 printf "%s\n" "no" >&6; }
25813 if test "x$ac_pt_PKGCONFIG" = x; then
25816 case $cross_compiling:$ac_tool_warned in
25818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25819 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25820 ac_tool_warned=yes ;;
25822 PKGCONFIG=$ac_pt_PKGCONFIG
25825 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25830 if test "x$PKGCONFIG" != "xno"; then
25831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25832 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25834 if test -n ""; then
25835 PKG_CONFIG_LIBDIR=""
25836 export PKG_CONFIG_LIBDIR
25838 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25840 if test -z "$itexists"; then
25842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25843 printf "%s\n" "no" >&6; }
25845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25846 printf "%s\n" "found" >&6; }
25851 if test -z "$GSSAPI_INCS"; then
25852 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25853 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
25854 elif test "$PKGCONFIG" != "no" ; then
25855 GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
25856 elif test -f "$KRB5CONFIG"; then
25857 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
25858 elif test "$GSSAPI_ROOT" != "yes"; then
25859 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
25863 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
25865 ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
25866 if test "x$ac_cv_header_gss_h" = xyes
25870 printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
25876 for ac_header in gssapi/gssapi.h
25878 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
25879 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
25881 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
25888 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
25890 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25891 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
25892 $ac_includes_default
25893 #ifdef HAVE_GSSAPI_GSSAPI_H
25894 #include <gssapi/gssapi.h>
25898 if eval test \"x\$"$as_ac_Header"\" = x"yes"
25900 cat >>confdefs.h <<_ACEOF
25901 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25909 if test "x$not_mit" = "x1"; then
25910 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
25911 if test "x$ac_cv_header_gssapi_h" = xyes
25915 printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
25921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
25922 printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
25929 printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
25931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
25932 printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
25933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25934 /* end confdefs.h. */
25937 #include <gssapi/gssapi.h>
25938 #include <gssapi/gssapi_generic.h>
25939 #include <gssapi/gssapi_krb5.h>
25947 GSS_C_NT_HOSTBASED_SERVICE,
25955 if ac_fn_c_try_compile "$LINENO"
25958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25959 printf "%s\n" "yes" >&6; }
25963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25964 printf "%s\n" "no" >&6; }
25966 printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
25970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25978 printf "%s\n" "no" >&6; }
25980 if test x"$want_gss" = xyes; then
25982 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
25985 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
25987 if test -n "$gnu_gss"; then
25988 curl_gss_msg="enabled (GNU GSS)"
25989 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25991 elif test -z "$GSSAPI_LIB_DIR"; then
25994 LIBS="-lgssapi_krb5 -lresolv $LIBS"
25997 if test $GSSAPI_ROOT != "/usr"; then
25999 if test -n "$PKG_CONFIG"; then
26000 PKGCONFIG="$PKG_CONFIG"
26002 if test -n "$ac_tool_prefix"; then
26003 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26004 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26006 printf %s "checking for $ac_word... " >&6; }
26007 if test ${ac_cv_path_PKGCONFIG+y}
26009 printf %s "(cached) " >&6
26013 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26017 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26018 for as_dir in $as_dummy
26021 case $as_dir in #(((
26024 *) as_dir=$as_dir/ ;;
26026 for ac_exec_ext in '' $ac_executable_extensions; do
26027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26028 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26039 PKGCONFIG=$ac_cv_path_PKGCONFIG
26040 if test -n "$PKGCONFIG"; then
26041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26042 printf "%s\n" "$PKGCONFIG" >&6; }
26044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26045 printf "%s\n" "no" >&6; }
26050 if test -z "$ac_cv_path_PKGCONFIG"; then
26051 ac_pt_PKGCONFIG=$PKGCONFIG
26052 # Extract the first word of "pkg-config", so it can be a program name with args.
26053 set dummy pkg-config; ac_word=$2
26054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26055 printf %s "checking for $ac_word... " >&6; }
26056 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26058 printf %s "(cached) " >&6
26060 case $ac_pt_PKGCONFIG in
26062 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26066 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26067 for as_dir in $as_dummy
26070 case $as_dir in #(((
26073 *) as_dir=$as_dir/ ;;
26075 for ac_exec_ext in '' $ac_executable_extensions; do
26076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26077 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26088 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26089 if test -n "$ac_pt_PKGCONFIG"; then
26090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26091 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26094 printf "%s\n" "no" >&6; }
26097 if test "x$ac_pt_PKGCONFIG" = x; then
26100 case $cross_compiling:$ac_tool_warned in
26102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26104 ac_tool_warned=yes ;;
26106 PKGCONFIG=$ac_pt_PKGCONFIG
26109 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26114 if test "x$PKGCONFIG" != "xno"; then
26115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
26116 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
26118 if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
26119 PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
26120 export PKG_CONFIG_LIBDIR
26122 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
26124 if test -z "$itexists"; then
26126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26127 printf "%s\n" "no" >&6; }
26129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26130 printf "%s\n" "found" >&6; }
26136 if test -n "$PKG_CONFIG"; then
26137 PKGCONFIG="$PKG_CONFIG"
26139 if test -n "$ac_tool_prefix"; then
26140 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26141 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26143 printf %s "checking for $ac_word... " >&6; }
26144 if test ${ac_cv_path_PKGCONFIG+y}
26146 printf %s "(cached) " >&6
26150 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26154 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26155 for as_dir in $as_dummy
26158 case $as_dir in #(((
26161 *) as_dir=$as_dir/ ;;
26163 for ac_exec_ext in '' $ac_executable_extensions; do
26164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26165 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26176 PKGCONFIG=$ac_cv_path_PKGCONFIG
26177 if test -n "$PKGCONFIG"; then
26178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26179 printf "%s\n" "$PKGCONFIG" >&6; }
26181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26182 printf "%s\n" "no" >&6; }
26187 if test -z "$ac_cv_path_PKGCONFIG"; then
26188 ac_pt_PKGCONFIG=$PKGCONFIG
26189 # Extract the first word of "pkg-config", so it can be a program name with args.
26190 set dummy pkg-config; ac_word=$2
26191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26192 printf %s "checking for $ac_word... " >&6; }
26193 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26195 printf %s "(cached) " >&6
26197 case $ac_pt_PKGCONFIG in
26199 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26203 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26204 for as_dir in $as_dummy
26207 case $as_dir in #(((
26210 *) as_dir=$as_dir/ ;;
26212 for ac_exec_ext in '' $ac_executable_extensions; do
26213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26214 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26225 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26226 if test -n "$ac_pt_PKGCONFIG"; then
26227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26228 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26231 printf "%s\n" "no" >&6; }
26234 if test "x$ac_pt_PKGCONFIG" = x; then
26237 case $cross_compiling:$ac_tool_warned in
26239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26240 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26241 ac_tool_warned=yes ;;
26243 PKGCONFIG=$ac_pt_PKGCONFIG
26246 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26251 if test "x$PKGCONFIG" != "xno"; then
26252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
26253 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
26255 if test -n ""; then
26256 PKG_CONFIG_LIBDIR=""
26257 export PKG_CONFIG_LIBDIR
26259 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
26261 if test -z "$itexists"; then
26263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26264 printf "%s\n" "no" >&6; }
26266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26267 printf "%s\n" "found" >&6; }
26272 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
26273 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
26274 LIBS="$gss_libs $LIBS"
26275 elif test "$PKGCONFIG" != "no" ; then
26276 gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
26277 LIBS="$gss_libs $LIBS"
26278 elif test -f "$KRB5CONFIG"; then
26279 gss_libs=`$KRB5CONFIG --libs gssapi`
26280 LIBS="$gss_libs $LIBS"
26287 gss_libname="gssapi"
26291 if test "$GSSAPI_ROOT" != "yes"; then
26292 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
26293 LIBS="-l$gss_libname $LIBS"
26295 LIBS="-l$gss_libname $LIBS"
26301 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
26307 LIBS="-lgssapi $LIBS"
26312 CPPFLAGS="$save_CPPFLAGS"
26315 if test x"$want_gss" = xyes; then
26316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5
26317 printf %s "checking if we can link against GSS-API library... " >&6; }
26318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26319 /* end confdefs.h. */
26322 #define gss_init_sec_context innocuous_gss_init_sec_context
26324 # include <limits.h>
26326 # include <assert.h>
26328 #undef gss_init_sec_context
26332 char gss_init_sec_context ();
26333 #if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context
26339 return gss_init_sec_context ();
26345 if ac_fn_c_try_link "$LINENO"
26348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26349 printf "%s\n" "yes" >&6; }
26353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26354 printf "%s\n" "no" >&6; }
26355 as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5
26358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26359 conftest$ac_exeext conftest.$ac_ext
26362 build_libstubgss=no
26363 if test x"$want_gss" = "xyes"; then
26364 build_libstubgss=yes
26367 if test "x$build_libstubgss" = "xyes"; then
26368 BUILD_STUB_GSS_TRUE=
26369 BUILD_STUB_GSS_FALSE='#'
26371 BUILD_STUB_GSS_TRUE='#'
26372 BUILD_STUB_GSS_FALSE=
26377 DEFAULT_SSL_BACKEND=no
26378 VALID_DEFAULT_SSL_BACKEND=
26380 # Check whether --with-default-ssl-backend was given.
26381 if test ${with_default_ssl_backend+y}
26383 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
26386 case "$DEFAULT_SSL_BACKEND" in
26390 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
26394 VALID_DEFAULT_SSL_BACKEND=no
26399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
26400 printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
26401 if test "x$OPT_SCHANNEL" != xno; then
26403 if test "x$OPT_SCHANNEL" != "xno" &&
26404 test "x$curl_cv_native_windows" = "xyes"; then
26405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26406 printf "%s\n" "yes" >&6; }
26408 printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
26413 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26415 # --with-schannel implies --enable-sspi
26417 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
26421 curl_sspi_msg="enabled"
26423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26424 printf "%s\n" "no" >&6; }
26426 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26429 printf "%s\n" "no" >&6; }
26433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
26434 printf %s "checking whether to enable Secure Transport... " >&6; }
26435 if test "x$OPT_SECURETRANSPORT" != xno; then
26436 if test "x$OPT_SECURETRANSPORT" != "xno" &&
26437 (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
26438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26439 printf "%s\n" "yes" >&6; }
26441 printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
26445 ssl_msg="Secure Transport"
26446 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26447 SECURETRANSPORT_ENABLED=1
26448 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework Security"
26450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26451 printf "%s\n" "no" >&6; }
26453 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26456 printf "%s\n" "no" >&6; }
26461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5
26462 printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; }
26463 if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
26464 if test "x$OPT_AMISSL" != xno; then
26466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26467 /* end confdefs.h. */
26470 #include <libraries/amisslmaster.h>
26471 #include <openssl/opensslv.h>
26476 #if defined(AMISSL_CURRENT_VERSION) && defined(AMISSL_V3xx) && \
26477 (OPENSSL_VERSION_NUMBER >= 0x30000000L) && \
26478 defined(PROTO_AMISSL_H)
26481 #error not AmiSSL v5 / OpenSSL 3
26489 if ac_fn_c_try_compile "$LINENO"
26492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26493 printf "%s\n" "yes" >&6; }
26495 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26498 # Use AmiSSL's built-in ca bundle
26499 check_for_ca_bundle=1
26500 with_ca_fallback=yes
26501 LIBS="-lamisslstubs -lamisslauto $LIBS"
26503 printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
26506 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26509 printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26511 ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
26512 if test "x$ac_cv_header_openssl_x509_h" = xyes
26514 printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h
26517 ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
26518 if test "x$ac_cv_header_openssl_rsa_h" = xyes
26520 printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
26523 ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
26524 if test "x$ac_cv_header_openssl_crypto_h" = xyes
26526 printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
26529 ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
26530 if test "x$ac_cv_header_openssl_pem_h" = xyes
26532 printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h
26535 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
26536 if test "x$ac_cv_header_openssl_ssl_h" = xyes
26538 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
26541 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
26542 if test "x$ac_cv_header_openssl_err_h" = xyes
26544 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
26551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26552 printf "%s\n" "no" >&6; }
26555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26556 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26559 printf "%s\n" "no" >&6; }
26562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26563 printf "%s\n" "no" >&6; }
26568 if test "x$OPT_OPENSSL" != xno; then
26571 CLEANLDFLAGS="$LDFLAGS"
26572 CLEANCPPFLAGS="$CPPFLAGS"
26576 *-*-msys* | *-*-mingw*)
26577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
26578 printf %s "checking for gdi32... " >&6; }
26579 my_ac_save_LIBS=$LIBS
26580 LIBS="-lgdi32 $LIBS"
26581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26582 /* end confdefs.h. */
26584 #include <windef.h>
26585 #include <wingdi.h>
26596 if ac_fn_c_try_link "$LINENO"
26598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26599 printf "%s\n" "yes" >&6; }
26601 LIBS=$my_ac_save_LIBS
26602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26603 printf "%s\n" "no" >&6; }
26606 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26607 conftest$ac_exeext conftest.$ac_ext
26611 case "$OPT_OPENSSL" in
26618 PREFIX_OPENSSL=$OPT_OPENSSL
26620 OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
26621 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26623 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26627 if test "$PKGTEST" != "yes"; then
26628 # try lib64 instead
26629 OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
26630 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
26631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
26632 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
26637 if test "$PKGTEST" != "yes"; then
26638 if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
26639 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
26643 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
26644 if test "$PREFIX_OPENSSL" != "/usr" ; then
26645 SSL_LDFLAGS="-L$LIB_OPENSSL"
26646 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
26651 if test "$PKGTEST" = "yes"; then
26654 if test -n "$PKG_CONFIG"; then
26655 PKGCONFIG="$PKG_CONFIG"
26657 if test -n "$ac_tool_prefix"; then
26658 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26659 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26661 printf %s "checking for $ac_word... " >&6; }
26662 if test ${ac_cv_path_PKGCONFIG+y}
26664 printf %s "(cached) " >&6
26668 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26672 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26673 for as_dir in $as_dummy
26676 case $as_dir in #(((
26679 *) as_dir=$as_dir/ ;;
26681 for ac_exec_ext in '' $ac_executable_extensions; do
26682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26683 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26694 PKGCONFIG=$ac_cv_path_PKGCONFIG
26695 if test -n "$PKGCONFIG"; then
26696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26697 printf "%s\n" "$PKGCONFIG" >&6; }
26699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26700 printf "%s\n" "no" >&6; }
26705 if test -z "$ac_cv_path_PKGCONFIG"; then
26706 ac_pt_PKGCONFIG=$PKGCONFIG
26707 # Extract the first word of "pkg-config", so it can be a program name with args.
26708 set dummy pkg-config; ac_word=$2
26709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26710 printf %s "checking for $ac_word... " >&6; }
26711 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26713 printf %s "(cached) " >&6
26715 case $ac_pt_PKGCONFIG in
26717 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26721 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26722 for as_dir in $as_dummy
26725 case $as_dir in #(((
26728 *) as_dir=$as_dir/ ;;
26730 for ac_exec_ext in '' $ac_executable_extensions; do
26731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26732 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26743 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26744 if test -n "$ac_pt_PKGCONFIG"; then
26745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26746 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26749 printf "%s\n" "no" >&6; }
26752 if test "x$ac_pt_PKGCONFIG" = x; then
26755 case $cross_compiling:$ac_tool_warned in
26757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26759 ac_tool_warned=yes ;;
26761 PKGCONFIG=$ac_pt_PKGCONFIG
26764 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26769 if test "x$PKGCONFIG" != "xno"; then
26770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
26771 printf %s "checking for openssl options with pkg-config... " >&6; }
26773 if test -n "$OPENSSL_PCDIR"; then
26774 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26775 export PKG_CONFIG_LIBDIR
26777 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
26779 if test -z "$itexists"; then
26781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26782 printf "%s\n" "no" >&6; }
26784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26785 printf "%s\n" "found" >&6; }
26790 if test "$PKGCONFIG" != "no" ; then
26792 if test -n "$OPENSSL_PCDIR"; then
26793 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26794 export PKG_CONFIG_LIBDIR
26796 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
26799 if test -n "$OPENSSL_PCDIR"; then
26800 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26801 export PKG_CONFIG_LIBDIR
26803 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
26806 if test -n "$OPENSSL_PCDIR"; then
26807 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
26808 export PKG_CONFIG_LIBDIR
26810 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
26813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
26814 printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
26815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
26816 printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
26817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
26818 printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
26820 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
26822 LIBS="$SSL_LIBS $LIBS"
26826 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
26827 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
26829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
26830 printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
26831 if test ${ac_cv_lib_crypto_HMAC_Update+y}
26833 printf %s "(cached) " >&6
26835 ac_check_lib_save_LIBS=$LIBS
26836 LIBS="-lcrypto $LIBS"
26837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26838 /* end confdefs.h. */
26844 char HMAC_Update ();
26847 return HMAC_Update ();
26852 if ac_fn_c_try_link "$LINENO"
26854 ac_cv_lib_crypto_HMAC_Update=yes
26856 ac_cv_lib_crypto_HMAC_Update=no
26858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26859 conftest$ac_exeext conftest.$ac_ext
26860 LIBS=$ac_check_lib_save_LIBS
26862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
26863 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
26864 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
26868 LIBS="-lcrypto $LIBS"
26872 if test -n "$LIB_OPENSSL" ; then
26873 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
26875 if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
26876 # only set this if pkg-config wasn't used
26877 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include"
26879 # Linking previously failed, try extra paths from --with-openssl or
26880 # pkg-config. Use a different function name to avoid reusing the earlier
26882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
26883 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
26884 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
26886 printf %s "(cached) " >&6
26888 ac_check_lib_save_LIBS=$LIBS
26889 LIBS="-lcrypto $LIBS"
26890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26891 /* end confdefs.h. */
26897 char HMAC_Init_ex ();
26900 return HMAC_Init_ex ();
26905 if ac_fn_c_try_link "$LINENO"
26907 ac_cv_lib_crypto_HMAC_Init_ex=yes
26909 ac_cv_lib_crypto_HMAC_Init_ex=no
26911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26912 conftest$ac_exeext conftest.$ac_ext
26913 LIBS=$ac_check_lib_save_LIBS
26915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
26916 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
26917 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
26921 LIBS="-lcrypto $LIBS"
26925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
26926 printf %s "checking OpenSSL linking with -ldl... " >&6; }
26927 LIBS="-lcrypto $CLEANLIBS -ldl"
26928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929 /* end confdefs.h. */
26931 #include <openssl/err.h>
26942 if ac_fn_c_try_link "$LINENO"
26945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26946 printf "%s\n" "yes" >&6; }
26951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26952 printf "%s\n" "no" >&6; }
26954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
26955 printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
26956 LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
26957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26958 /* end confdefs.h. */
26961 #include <openssl/err.h>
26972 if ac_fn_c_try_link "$LINENO"
26975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26976 printf "%s\n" "yes" >&6; }
26981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26982 printf "%s\n" "no" >&6; }
26983 LDFLAGS="$CLEANLDFLAGS"
26984 CPPFLAGS="$CLEANCPPFLAGS"
26989 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26990 conftest$ac_exeext conftest.$ac_ext
26994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26995 conftest$ac_exeext conftest.$ac_ext
27004 if test X"$HAVECRYPTO" = X"yes"; then
27006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
27007 printf %s "checking for SSL_connect in -lssl... " >&6; }
27008 if test ${ac_cv_lib_ssl_SSL_connect+y}
27010 printf %s "(cached) " >&6
27012 ac_check_lib_save_LIBS=$LIBS
27014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27015 /* end confdefs.h. */
27021 char SSL_connect ();
27024 return SSL_connect ();
27029 if ac_fn_c_try_link "$LINENO"
27031 ac_cv_lib_ssl_SSL_connect=yes
27033 ac_cv_lib_ssl_SSL_connect=no
27035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27036 conftest$ac_exeext conftest.$ac_ext
27037 LIBS=$ac_check_lib_save_LIBS
27039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
27040 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
27041 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
27043 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
27050 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
27051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
27052 printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
27054 LIBS="-lRSAglue -lrsaref $LIBS"
27055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
27056 printf %s "checking for SSL_connect in -lssl... " >&6; }
27057 if test ${ac_cv_lib_ssl_SSL_connect+y}
27059 printf %s "(cached) " >&6
27061 ac_check_lib_save_LIBS=$LIBS
27063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27064 /* end confdefs.h. */
27070 char SSL_connect ();
27073 return SSL_connect ();
27078 if ac_fn_c_try_link "$LINENO"
27080 ac_cv_lib_ssl_SSL_connect=yes
27082 ac_cv_lib_ssl_SSL_connect=no
27084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27085 conftest$ac_exeext conftest.$ac_ext
27086 LIBS=$ac_check_lib_save_LIBS
27088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
27089 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
27090 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
27092 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
27098 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
27099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27100 printf "%s\n" "no" >&6; }
27103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27104 printf "%s\n" "yes" >&6; }
27109 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
27111 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
27112 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27113 if eval test \"x\$"$as_ac_Header"\" = x"yes"
27115 cat >>confdefs.h <<_ACEOF
27116 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
27119 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27122 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
27128 if test $ac_cv_header_openssl_x509_h = no; then
27129 ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
27130 if test "x$ac_cv_header_x509_h" = xyes
27132 printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
27135 ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
27136 if test "x$ac_cv_header_rsa_h" = xyes
27138 printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
27141 ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
27142 if test "x$ac_cv_header_crypto_h" = xyes
27144 printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
27147 ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
27148 if test "x$ac_cv_header_pem_h" = xyes
27150 printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
27153 ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
27154 if test "x$ac_cv_header_ssl_h" = xyes
27156 printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
27159 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
27160 if test "x$ac_cv_header_err_h" = xyes
27162 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
27167 if test $ac_cv_header_x509_h = yes &&
27168 test $ac_cv_header_crypto_h = yes &&
27169 test $ac_cv_header_ssl_h = yes; then
27176 if test X"$OPENSSL_ENABLED" != X"1"; then
27180 if test X"$OPT_OPENSSL" != Xoff &&
27181 test "$OPENSSL_ENABLED" != "1"; then
27182 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
27186 if test X"$OPENSSL_ENABLED" = X"1"; then
27188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
27189 printf %s "checking for BoringSSL... " >&6; }
27190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27191 /* end confdefs.h. */
27194 #include <openssl/base.h>
27199 #ifndef OPENSSL_IS_BORINGSSL
27200 #error not boringssl
27208 if ac_fn_c_try_compile "$LINENO"
27211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27212 printf "%s\n" "yes" >&6; }
27213 ssl_msg="BoringSSL"
27217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27218 printf "%s\n" "no" >&6; }
27221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AWS-LC" >&5
27224 printf %s "checking for AWS-LC... " >&6; }
27225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27226 /* end confdefs.h. */
27229 #include <openssl/base.h>
27234 #ifndef OPENSSL_IS_AWSLC
27243 if ac_fn_c_try_compile "$LINENO"
27246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27247 printf "%s\n" "yes" >&6; }
27252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27253 printf "%s\n" "no" >&6; }
27256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
27259 printf %s "checking for libressl... " >&6; }
27260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261 /* end confdefs.h. */
27264 #include <openssl/opensslv.h>
27269 int dummy = LIBRESSL_VERSION_NUMBER;
27276 if ac_fn_c_try_compile "$LINENO"
27279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27280 printf "%s\n" "yes" >&6; }
27282 printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
27288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27289 printf "%s\n" "no" >&6; }
27292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
27295 printf %s "checking for OpenSSL >= v3... " >&6; }
27296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27297 /* end confdefs.h. */
27300 #include <openssl/opensslv.h>
27305 #if (OPENSSL_VERSION_NUMBER >= 0x30000000L)
27308 #error older than 3
27316 if ac_fn_c_try_compile "$LINENO"
27319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27320 printf "%s\n" "yes" >&6; }
27322 printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
27324 ssl_msg="OpenSSL v3+"
27328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27329 printf "%s\n" "no" >&6; }
27332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27335 if test "$OPENSSL_ENABLED" = "1"; then
27336 if test -n "$LIB_OPENSSL"; then
27337 if test "x$cross_compiling" != "xyes"; then
27338 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
27339 export CURL_LIBRARY_PATH
27340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
27341 printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
27344 check_for_ca_bundle=1
27347 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27350 if test X"$OPT_OPENSSL" != Xno &&
27351 test "$OPENSSL_ENABLED" != "1"; then
27352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
27353 printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
27354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
27355 printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
27356 as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
27360 if test X"$OPENSSL_ENABLED" = X"1"; then
27362 # Check whether --with-random was given.
27363 if test ${with_random+y}
27365 withval=$with_random; RANDOM_FILE="$withval"
27368 if test x$cross_compiling != xyes; then
27369 as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
27370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
27371 printf %s "checking for \"/dev/urandom\"... " >&6; }
27372 if eval test \${$as_ac_File+y}
27374 printf %s "(cached) " >&6
27376 test "$cross_compiling" = yes &&
27377 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
27378 if test -r ""/dev/urandom""; then
27379 eval "$as_ac_File=yes"
27381 eval "$as_ac_File=no"
27384 eval ac_res=\$$as_ac_File
27385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27386 printf "%s\n" "$ac_res" >&6; }
27387 if eval test \"x\$"$as_ac_File"\" = x"yes"
27389 RANDOM_FILE="/dev/urandom"
27393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
27394 printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
27400 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
27403 printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
27408 if test "$OPENSSL_ENABLED" = "1"; then
27409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5
27410 printf %s "checking for SRP support in OpenSSL... " >&6; }
27411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27412 /* end confdefs.h. */
27415 #include <openssl/ssl.h>
27420 SSL_CTX_set_srp_username(NULL, "");
27421 SSL_CTX_set_srp_password(NULL, "");
27428 if ac_fn_c_try_link "$LINENO"
27431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27432 printf "%s\n" "yes" >&6; }
27434 printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
27441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27442 printf "%s\n" "no" >&6; }
27445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27446 conftest$ac_exeext conftest.$ac_ext
27449 if test X"$OPENSSL_ENABLED" = X"1"; then
27450 # Check whether --enable-openssl-auto-load-config was given.
27451 if test ${enable_openssl_auto_load_config+y}
27453 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
27454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
27455 printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
27457 printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
27467 if test "x$OPT_GNUTLS" != xno; then
27470 if test X"$OPT_GNUTLS" != Xno; then
27478 if test "x$OPT_GNUTLS" = "xyes"; then
27480 if test -n "$PKG_CONFIG"; then
27481 PKGCONFIG="$PKG_CONFIG"
27483 if test -n "$ac_tool_prefix"; then
27484 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27485 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27487 printf %s "checking for $ac_word... " >&6; }
27488 if test ${ac_cv_path_PKGCONFIG+y}
27490 printf %s "(cached) " >&6
27494 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27498 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27499 for as_dir in $as_dummy
27502 case $as_dir in #(((
27505 *) as_dir=$as_dir/ ;;
27507 for ac_exec_ext in '' $ac_executable_extensions; do
27508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27509 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27520 PKGCONFIG=$ac_cv_path_PKGCONFIG
27521 if test -n "$PKGCONFIG"; then
27522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27523 printf "%s\n" "$PKGCONFIG" >&6; }
27525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27526 printf "%s\n" "no" >&6; }
27531 if test -z "$ac_cv_path_PKGCONFIG"; then
27532 ac_pt_PKGCONFIG=$PKGCONFIG
27533 # Extract the first word of "pkg-config", so it can be a program name with args.
27534 set dummy pkg-config; ac_word=$2
27535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27536 printf %s "checking for $ac_word... " >&6; }
27537 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27539 printf %s "(cached) " >&6
27541 case $ac_pt_PKGCONFIG in
27543 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27547 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27548 for as_dir in $as_dummy
27551 case $as_dir in #(((
27554 *) as_dir=$as_dir/ ;;
27556 for ac_exec_ext in '' $ac_executable_extensions; do
27557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27558 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27569 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27570 if test -n "$ac_pt_PKGCONFIG"; then
27571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27572 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27575 printf "%s\n" "no" >&6; }
27578 if test "x$ac_pt_PKGCONFIG" = x; then
27581 case $cross_compiling:$ac_tool_warned in
27583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27585 ac_tool_warned=yes ;;
27587 PKGCONFIG=$ac_pt_PKGCONFIG
27590 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27595 if test "x$PKGCONFIG" != "xno"; then
27596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
27597 printf %s "checking for gnutls options with pkg-config... " >&6; }
27599 if test -n ""; then
27600 PKG_CONFIG_LIBDIR=""
27601 export PKG_CONFIG_LIBDIR
27603 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
27605 if test -z "$itexists"; then
27607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27608 printf "%s\n" "no" >&6; }
27610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27611 printf "%s\n" "found" >&6; }
27616 if test "$PKGCONFIG" != "no" ; then
27617 addlib=`$PKGCONFIG --libs-only-l gnutls`
27618 addld=`$PKGCONFIG --libs-only-L gnutls`
27619 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
27620 version=`$PKGCONFIG --modversion gnutls`
27621 gtlslib=`echo $addld | $SED -e 's/^-L//'`
27623 check=`libgnutls-config --version 2>/dev/null`
27624 if test -n "$check"; then
27625 addlib=`libgnutls-config --libs`
27626 addcflags=`libgnutls-config --cflags`
27627 version=`libgnutls-config --version`
27628 gtlslib=`libgnutls-config --prefix`/lib$libsuff
27632 cfg=$OPT_GNUTLS/bin/libgnutls-config
27633 check=`$cfg --version 2>/dev/null`
27634 if test -n "$check"; then
27635 addlib=`$cfg --libs`
27636 addcflags=`$cfg --cflags`
27637 version=`$cfg --version`
27638 gtlslib=`$cfg --prefix`/lib$libsuff
27641 addld=-L$OPT_GNUTLS/lib$libsuff
27642 addcflags=-I$OPT_GNUTLS/include
27643 version="" # we just don't know
27644 gtlslib=$OPT_GNUTLS/lib$libsuff
27648 if test -z "$version"; then
27652 if test -n "$addlib"; then
27655 CLEANCPPFLAGS="$CPPFLAGS"
27656 CLEANLDFLAGS="$LDFLAGS"
27658 LIBS="$addlib $LIBS"
27659 LDFLAGS="$LDFLAGS $addld"
27660 if test "$addcflags" != "-I/usr/include"; then
27661 CPPFLAGS="$CPPFLAGS $addcflags"
27664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
27665 printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
27666 if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
27668 printf %s "(cached) " >&6
27670 ac_check_lib_save_LIBS=$LIBS
27671 LIBS="-lgnutls $LIBS"
27672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27673 /* end confdefs.h. */
27679 char gnutls_x509_crt_get_dn2 ();
27682 return gnutls_x509_crt_get_dn2 ();
27687 if ac_fn_c_try_link "$LINENO"
27689 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
27691 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
27693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27694 conftest$ac_exeext conftest.$ac_ext
27695 LIBS=$ac_check_lib_save_LIBS
27697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
27698 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
27699 if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
27703 printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
27710 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27715 CPPFLAGS="$CLEANCPPFLAGS"
27720 if test "x$USE_GNUTLS" = "xyes"; then
27721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
27722 printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
27723 check_for_ca_bundle=1
27724 if test -n "$gtlslib"; then
27725 if test "x$cross_compiling" != "xyes"; then
27726 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
27727 export CURL_LIBRARY_PATH
27728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
27729 printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
27737 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27741 if test "$GNUTLS_ENABLED" = "1"; then
27743 # First check if we can detect either crypto library via transitive linking
27744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
27745 printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
27746 if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
27748 printf %s "(cached) " >&6
27750 ac_check_lib_save_LIBS=$LIBS
27751 LIBS="-lgnutls $LIBS"
27752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27753 /* end confdefs.h. */
27759 char nettle_MD5Init ();
27762 return nettle_MD5Init ();
27767 if ac_fn_c_try_link "$LINENO"
27769 ac_cv_lib_gnutls_nettle_MD5Init=yes
27771 ac_cv_lib_gnutls_nettle_MD5Init=no
27773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27774 conftest$ac_exeext conftest.$ac_ext
27775 LIBS=$ac_check_lib_save_LIBS
27777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
27778 printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
27779 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
27781 USE_GNUTLS_NETTLE=1
27785 # If not, try linking directly to both of them to see if they are available
27786 if test "$USE_GNUTLS_NETTLE" = ""; then
27787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
27788 printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
27789 if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
27791 printf %s "(cached) " >&6
27793 ac_check_lib_save_LIBS=$LIBS
27794 LIBS="-lnettle $LIBS"
27795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27796 /* end confdefs.h. */
27802 char nettle_MD5Init ();
27805 return nettle_MD5Init ();
27810 if ac_fn_c_try_link "$LINENO"
27812 ac_cv_lib_nettle_nettle_MD5Init=yes
27814 ac_cv_lib_nettle_nettle_MD5Init=no
27816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27817 conftest$ac_exeext conftest.$ac_ext
27818 LIBS=$ac_check_lib_save_LIBS
27820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
27821 printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
27822 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
27824 USE_GNUTLS_NETTLE=1
27828 if test "$USE_GNUTLS_NETTLE" = ""; then
27829 as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
27831 LIBS="-lnettle $LIBS"
27834 if test "$GNUTLS_ENABLED" = "1"; then
27835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
27836 printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
27837 if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
27839 printf %s "(cached) " >&6
27841 ac_check_lib_save_LIBS=$LIBS
27842 LIBS="-lgnutls $LIBS"
27843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27844 /* end confdefs.h. */
27850 char gnutls_srp_verifier ();
27853 return gnutls_srp_verifier ();
27858 if ac_fn_c_try_link "$LINENO"
27860 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
27862 ac_cv_lib_gnutls_gnutls_srp_verifier=no
27864 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27865 conftest$ac_exeext conftest.$ac_ext
27866 LIBS=$ac_check_lib_save_LIBS
27868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
27869 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
27870 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
27874 printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
27886 if test "x$OPT_MBEDTLS" != xno; then
27887 _cppflags=$CPPFLAGS
27891 if test X"$OPT_MBEDTLS" != Xno; then
27893 if test "$OPT_MBEDTLS" = "yes"; then
27897 if test -z "$OPT_MBEDTLS" ; then
27899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27900 printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27901 if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27903 printf %s "(cached) " >&6
27905 ac_check_lib_save_LIBS=$LIBS
27906 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27908 /* end confdefs.h. */
27914 char mbedtls_havege_init ();
27917 return mbedtls_havege_init ();
27922 if ac_fn_c_try_link "$LINENO"
27924 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27926 ac_cv_lib_mbedtls_mbedtls_havege_init=no
27928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27929 conftest$ac_exeext conftest.$ac_ext
27930 LIBS=$ac_check_lib_save_LIBS
27932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27933 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27934 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27938 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27945 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27956 if test "x$USE_MBEDTLS" != "xyes"; then
27957 addld=-L$OPT_MBEDTLS/lib$libsuff
27958 addcflags=-I$OPT_MBEDTLS/include
27959 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27961 LDFLAGS="$LDFLAGS $addld"
27962 if test "$addcflags" != "-I/usr/include"; then
27963 CPPFLAGS="$CPPFLAGS $addcflags"
27966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27967 printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27968 if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27970 printf %s "(cached) " >&6
27972 ac_check_lib_save_LIBS=$LIBS
27973 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h. */
27981 char mbedtls_ssl_init ();
27984 return mbedtls_ssl_init ();
27989 if ac_fn_c_try_link "$LINENO"
27991 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27993 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27996 conftest$ac_exeext conftest.$ac_ext
27997 LIBS=$ac_check_lib_save_LIBS
27999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
28000 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
28001 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
28005 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
28012 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28016 CPPFLAGS=$_cppflags
28023 if test "x$USE_MBEDTLS" = "xyes"; then
28024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
28025 printf "%s\n" "$as_me: detected mbedTLS" >&6;}
28026 check_for_ca_bundle=1
28028 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
28030 if test -n "$mbedtlslib"; then
28031 if test "x$cross_compiling" != "xyes"; then
28032 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
28033 export CURL_LIBRARY_PATH
28034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
28035 printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
28041 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28047 case "$OPT_WOLFSSL" in
28052 wolfpkg="$withval/lib/pkgconfig"
28056 if test "x$OPT_WOLFSSL" != xno; then
28057 _cppflags=$CPPFLAGS
28062 if test X"$OPT_WOLFSSL" != Xno; then
28064 if test "$OPT_WOLFSSL" = "yes"; then
28069 if test -n "$PKG_CONFIG"; then
28070 PKGCONFIG="$PKG_CONFIG"
28072 if test -n "$ac_tool_prefix"; then
28073 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28074 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28076 printf %s "checking for $ac_word... " >&6; }
28077 if test ${ac_cv_path_PKGCONFIG+y}
28079 printf %s "(cached) " >&6
28083 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28087 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28088 for as_dir in $as_dummy
28091 case $as_dir in #(((
28094 *) as_dir=$as_dir/ ;;
28096 for ac_exec_ext in '' $ac_executable_extensions; do
28097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28098 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28109 PKGCONFIG=$ac_cv_path_PKGCONFIG
28110 if test -n "$PKGCONFIG"; then
28111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28112 printf "%s\n" "$PKGCONFIG" >&6; }
28114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28115 printf "%s\n" "no" >&6; }
28120 if test -z "$ac_cv_path_PKGCONFIG"; then
28121 ac_pt_PKGCONFIG=$PKGCONFIG
28122 # Extract the first word of "pkg-config", so it can be a program name with args.
28123 set dummy pkg-config; ac_word=$2
28124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28125 printf %s "checking for $ac_word... " >&6; }
28126 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28128 printf %s "(cached) " >&6
28130 case $ac_pt_PKGCONFIG in
28132 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28136 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28137 for as_dir in $as_dummy
28140 case $as_dir in #(((
28143 *) as_dir=$as_dir/ ;;
28145 for ac_exec_ext in '' $ac_executable_extensions; do
28146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28147 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28158 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28159 if test -n "$ac_pt_PKGCONFIG"; then
28160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28161 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28164 printf "%s\n" "no" >&6; }
28167 if test "x$ac_pt_PKGCONFIG" = x; then
28170 case $cross_compiling:$ac_tool_warned in
28172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28174 ac_tool_warned=yes ;;
28176 PKGCONFIG=$ac_pt_PKGCONFIG
28179 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28184 if test "x$PKGCONFIG" != "xno"; then
28185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
28186 printf %s "checking for wolfssl options with pkg-config... " >&6; }
28188 if test -n "$wolfpkg"; then
28189 PKG_CONFIG_LIBDIR="$wolfpkg"
28190 export PKG_CONFIG_LIBDIR
28192 $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
28194 if test -z "$itexists"; then
28196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28197 printf "%s\n" "no" >&6; }
28199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28200 printf "%s\n" "found" >&6; }
28204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
28205 printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
28210 if test "$PKGCONFIG" != "no" ; then
28212 if test -n "$wolfpkg"; then
28213 PKG_CONFIG_LIBDIR="$wolfpkg"
28214 export PKG_CONFIG_LIBDIR
28217 $PKGCONFIG --libs-only-l wolfssl`
28219 if test -n "$wolfpkg"; then
28220 PKG_CONFIG_LIBDIR="$wolfpkg"
28221 export PKG_CONFIG_LIBDIR
28224 $PKGCONFIG --libs-only-L wolfssl`
28226 if test -n "$wolfpkg"; then
28227 PKG_CONFIG_LIBDIR="$wolfpkg"
28228 export PKG_CONFIG_LIBDIR
28231 $PKGCONFIG --cflags-only-I wolfssl`
28233 if test -n "$wolfpkg"; then
28234 PKG_CONFIG_LIBDIR="$wolfpkg"
28235 export PKG_CONFIG_LIBDIR
28238 $PKGCONFIG --modversion wolfssl`
28239 wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
28242 if test -n "$OPT_WOLFSSL"; then
28243 addld=-L$OPT_WOLFSSL/lib$libsuff
28244 addcflags=-I$OPT_WOLFSSL/include
28245 wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
28249 if test "x$USE_WOLFSSL" != "xyes"; then
28251 LDFLAGS="$LDFLAGS $addld"
28252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
28253 printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
28254 if test "$addcflags" != "-I/usr/include"; then
28255 CPPFLAGS="$CPPFLAGS $addcflags"
28256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
28257 printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
28260 my_ac_save_LIBS="$LIBS"
28261 LIBS="$addlib $LIBS"
28262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
28263 printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
28265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
28266 printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
28267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28268 /* end confdefs.h. */
28271 /* These aren't needed for detection and confuse WolfSSL.
28272 They are set up properly later if it is detected. */
28274 #undef SIZEOF_LONG_LONG
28275 #include <wolfssl/options.h>
28276 #include <wolfssl/ssl.h>
28281 return wolfSSL_Init();
28288 if ac_fn_c_try_link "$LINENO"
28291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28292 printf "%s\n" "yes" >&6; }
28294 printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
28301 test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28306 printf "%s\n" "no" >&6; }
28307 CPPFLAGS=$_cppflags
28312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28313 conftest$ac_exeext conftest.$ac_ext
28314 LIBS="$my_ac_save_LIBS"
28317 if test "x$USE_WOLFSSL" = "xyes"; then
28318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
28319 printf "%s\n" "$as_me: detected wolfSSL" >&6;}
28320 check_for_ca_bundle=1
28324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
28325 printf %s "checking size of long long... " >&6; }
28327 for typesize in 8 4 2 16 1; do
28328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28329 /* end confdefs.h. */
28331 #include <sys/types.h>
28338 case (sizeof(long long) == $typesize):;
28345 if ac_fn_c_try_compile "$LINENO"
28353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28354 if test $r -gt 0; then
28358 if test $r -eq 0; then
28359 as_fn_error $? "Failed to find size of long long" "$LINENO" 5
28361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
28362 printf "%s\n" "$r" >&6; }
28363 tname=$(echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_")
28367 printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h
28372 LIBS="$addlib -lm $LIBS"
28374 ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
28375 if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
28377 printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
28380 ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
28381 if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
28383 printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
28388 ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
28389 if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
28393 printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
28401 ac_fn_c_check_func "$LINENO" "wolfSSL_BIO_set_shutdown" "ac_cv_func_wolfSSL_BIO_set_shutdown"
28402 if test "x$ac_cv_func_wolfSSL_BIO_set_shutdown" = xyes
28406 printf "%s\n" "#define HAVE_WOLFSSL_FULL_BIO 1" >>confdefs.h
28414 if test -n "$wolfssllibpath"; then
28415 if test "x$cross_compiling" != "xyes"; then
28416 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
28417 export CURL_LIBRARY_PATH
28418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
28419 printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
28423 as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5
28427 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28433 if test "x$OPT_BEARSSL" != xno; then
28434 _cppflags=$CPPFLAGS
28438 if test X"$OPT_BEARSSL" != Xno; then
28440 if test "$OPT_BEARSSL" = "yes"; then
28444 if test -z "$OPT_BEARSSL" ; then
28446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28447 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28448 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28450 printf %s "(cached) " >&6
28452 ac_check_lib_save_LIBS=$LIBS
28453 LIBS="-lbearssl -lbearssl $LIBS"
28454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28455 /* end confdefs.h. */
28461 char br_ssl_client_init_full ();
28464 return br_ssl_client_init_full ();
28469 if ac_fn_c_try_link "$LINENO"
28471 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28473 ac_cv_lib_bearssl_br_ssl_client_init_full=no
28475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28476 conftest$ac_exeext conftest.$ac_ext
28477 LIBS=$ac_check_lib_save_LIBS
28479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28480 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28481 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28485 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28492 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28503 if test "x$USE_BEARSSL" != "xyes"; then
28504 addld=-L$OPT_BEARSSL/lib$libsuff
28505 addcflags=-I$OPT_BEARSSL/include
28506 bearssllib=$OPT_BEARSSL/lib$libsuff
28508 LDFLAGS="$LDFLAGS $addld"
28509 if test "$addcflags" != "-I/usr/include"; then
28510 CPPFLAGS="$CPPFLAGS $addcflags"
28513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
28514 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
28515 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
28517 printf %s "(cached) " >&6
28519 ac_check_lib_save_LIBS=$LIBS
28520 LIBS="-lbearssl -lbearssl $LIBS"
28521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28522 /* end confdefs.h. */
28528 char br_ssl_client_init_full ();
28531 return br_ssl_client_init_full ();
28536 if ac_fn_c_try_link "$LINENO"
28538 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
28540 ac_cv_lib_bearssl_br_ssl_client_init_full=no
28542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28543 conftest$ac_exeext conftest.$ac_ext
28544 LIBS=$ac_check_lib_save_LIBS
28546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
28547 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
28548 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
28552 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
28559 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28563 CPPFLAGS=$_cppflags
28570 if test "x$USE_BEARSSL" = "xyes"; then
28571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
28572 printf "%s\n" "$as_me: detected BearSSL" >&6;}
28573 check_for_ca_bundle=1
28575 LIBS="-lbearssl $LIBS"
28577 if test -n "$bearssllib"; then
28578 if test "x$cross_compiling" != "xyes"; then
28579 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
28580 export CURL_LIBRARY_PATH
28581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
28582 printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
28588 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28593 if test "x$OPT_RUSTLS" != xno; then
28594 _cppflags=$CPPFLAGS
28598 if test X"$OPT_RUSTLS" != Xno; then
28600 if test "$OPT_RUSTLS" = "yes"; then
28606 LDFLAGS="$LDFLAGS -framework Security"
28612 if test -z "$OPT_RUSTLS" ; then
28614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
28615 printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
28616 if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
28618 printf %s "(cached) " >&6
28620 ac_check_lib_save_LIBS=$LIBS
28621 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28623 /* end confdefs.h. */
28629 char rustls_client_session_read ();
28632 return rustls_client_session_read ();
28637 if ac_fn_c_try_link "$LINENO"
28639 ac_cv_lib_rustls_rustls_client_session_read=yes
28641 ac_cv_lib_rustls_rustls_client_session_read=no
28643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28644 conftest$ac_exeext conftest.$ac_ext
28645 LIBS=$ac_check_lib_save_LIBS
28647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
28648 printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
28649 if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
28653 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28660 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28666 if test "x$USE_RUSTLS" != "xyes"; then
28667 addld=-L$OPT_RUSTLS/lib$libsuff
28668 addcflags=-I$OPT_RUSTLS/include
28669 rustlslib=$OPT_RUSTLS/lib$libsuff
28671 LDFLAGS="$LDFLAGS $addld"
28672 if test "$addcflags" != "-I/usr/include"; then
28673 CPPFLAGS="$CPPFLAGS $addcflags"
28676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
28677 printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
28678 if test ${ac_cv_lib_rustls_rustls_connection_read+y}
28680 printf %s "(cached) " >&6
28682 ac_check_lib_save_LIBS=$LIBS
28683 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28685 /* end confdefs.h. */
28691 char rustls_connection_read ();
28694 return rustls_connection_read ();
28699 if ac_fn_c_try_link "$LINENO"
28701 ac_cv_lib_rustls_rustls_connection_read=yes
28703 ac_cv_lib_rustls_rustls_connection_read=no
28705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28706 conftest$ac_exeext conftest.$ac_ext
28707 LIBS=$ac_check_lib_save_LIBS
28709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
28710 printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
28711 if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
28715 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
28722 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28725 as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
28730 if test "x$USE_RUSTLS" = "xyes"; then
28731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
28732 printf "%s\n" "$as_me: detected rustls" >&6;}
28733 check_for_ca_bundle=1
28735 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28737 if test -n "$rustlslib"; then
28738 if test "x$cross_compiling" != "xyes"; then
28739 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
28740 export CURL_LIBRARY_PATH
28741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
28742 printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
28748 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28752 if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28753 LIBS="-ladvapi32 -lcrypt32 $LIBS"
28756 if test "x$curl_cv_native_windows" = "xyes"; then
28757 LIBS="-lbcrypt $LIBS"
28760 case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED"
28763 as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more.
28764 Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this." "$LINENO" 5
28767 # one SSL backend is enabled
28770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28771 printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28774 # explicitly built without TLS
28777 as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library
28778 (e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls).
28779 Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5
28782 # more than one SSL backend is enabled
28786 CURL_WITH_MULTI_SSL="1"
28788 printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28791 printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28795 if test -n "$ssl_backends"; then
28796 curl_ssl_msg="enabled ($ssl_backends)"
28799 if test no = "$VALID_DEFAULT_SSL_BACKEND"
28801 if test -n "$SSL_ENABLED"
28803 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28805 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28807 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28810 printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28815 if test -n "$check_for_ca_bundle"; then
28818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28819 printf %s "checking default CA cert bundle/path... " >&6; }
28822 # Check whether --with-ca-bundle was given.
28823 if test ${with_ca_bundle+y}
28825 withval=$with_ca_bundle;
28827 if test "x$want_ca" = "xyes"; then
28828 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28836 # Check whether --with-ca-path was given.
28837 if test ${with_ca_path+y}
28839 withval=$with_ca_path;
28840 want_capath="$withval"
28841 if test "x$want_capath" = "xyes"; then
28842 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28846 want_capath="unset"
28850 ca_warning=" (warning: certs not found)"
28851 capath_warning=" (warning: certs not found)"
28854 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28855 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28857 capath="$want_capath"
28858 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28861 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28862 if test "x$OPENSSL_ENABLED" != "x1" -a \
28863 "x$GNUTLS_ENABLED" != "x1" -a \
28864 "x$MBEDTLS_ENABLED" != "x1" -a \
28865 "x$WOLFSSL_ENABLED" != "x1"; then
28866 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS, mbedTLS or wolfSSL" "$LINENO" 5
28868 capath="$want_capath"
28873 if test "x$cross_compiling" != "xyes"; then
28874 if test "x$want_ca" = "xunset"; then
28875 if test "x$prefix" != xNONE; then
28876 cac="${prefix}/share/curl/curl-ca-bundle.crt"
28878 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28881 for a in /etc/ssl/certs/ca-certificates.crt \
28882 /etc/pki/tls/certs/ca-bundle.crt \
28883 /usr/share/ssl/certs/ca-bundle.crt \
28884 /usr/local/share/certs/ca-root-nss.crt \
28885 /etc/ssl/cert.pem \
28887 if test -f "$a"; then
28893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: want $want_capath ca $ca" >&5
28894 printf "%s\n" "$as_me: want $want_capath ca $ca" >&6;}
28895 if test "x$want_capath" = "xunset"; then
28896 if test "x$OPENSSL_ENABLED" = "x1" -o \
28897 "x$GNUTLS_ENABLED" = "x1" -o \
28898 "x$MBEDTLS_ENABLED" = "x1" -o \
28899 "x$WOLFSSL_ENABLED" = "x1"; then
28900 check_capath="/etc/ssl/certs"
28904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28905 printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28909 if test "x$ca" = "xno" || test -f "$ca"; then
28913 if test "x$capath" != "xno"; then
28914 check_capath="$capath"
28917 if test ! -z "$check_capath"; then
28918 for a in "$check_capath"; do
28919 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
28920 if test "x$capath" = "xno"; then
28929 if test "x$capath" = "xno"; then
28933 if test "x$ca" != "xno"; then
28934 CURL_CA_BUNDLE='"'$ca'"'
28936 printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28940 printf "%s\n" "$ca" >&6; }
28942 if test "x$capath" != "xno"; then
28943 CURL_CA_PATH="\"$capath\""
28945 printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28948 printf "%s\n" "$capath (capath)" >&6; }
28950 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28952 printf "%s\n" "no" >&6; }
28955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28956 printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28958 # Check whether --with-ca-fallback was given.
28959 if test ${with_ca_fallback+y}
28961 withval=$with_ca_fallback;
28962 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28963 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28967 with_ca_fallback="no"
28970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28971 printf "%s\n" "$with_ca_fallback" >&6; }
28972 if test "x$with_ca_fallback" = "xyes"; then
28973 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28974 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
28977 printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
28985 # Check whether --with-libpsl was given.
28986 if test ${with_libpsl+y}
28988 withval=$with_libpsl; with_libpsl=$withval
28993 if test $with_libpsl != "no"; then
28994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
28995 printf %s "checking for library containing psl_builtin... " >&6; }
28996 if test ${ac_cv_search_psl_builtin+y}
28998 printf %s "(cached) " >&6
29000 ac_func_search_save_LIBS=$LIBS
29001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29002 /* end confdefs.h. */
29008 char psl_builtin ();
29011 return psl_builtin ();
29016 for ac_lib in '' psl
29018 if test -z "$ac_lib"; then
29019 ac_res="none required"
29022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29024 if ac_fn_c_try_link "$LINENO"
29026 ac_cv_search_psl_builtin=$ac_res
29028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29030 if test ${ac_cv_search_psl_builtin+y}
29035 if test ${ac_cv_search_psl_builtin+y}
29039 ac_cv_search_psl_builtin=no
29041 rm conftest.$ac_ext
29042 LIBS=$ac_func_search_save_LIBS
29044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
29045 printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
29046 ac_res=$ac_cv_search_psl_builtin
29047 if test "$ac_res" != no
29049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29050 curl_psl_msg="enabled";
29052 printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
29056 curl_psl_msg="no (libpsl not found)";
29057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
29058 printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
29064 if test "$curl_psl_msg" = "enabled"; then
29066 USE_LIBPSL_FALSE='#'
29068 USE_LIBPSL_TRUE='#'
29076 # Check whether --with-libgsasl was given.
29077 if test ${with_libgsasl+y}
29079 withval=$with_libgsasl; with_libgsasl=$withval
29084 if test $with_libgsasl != "no"; then
29085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
29086 printf %s "checking for library containing gsasl_init... " >&6; }
29087 if test ${ac_cv_search_gsasl_init+y}
29089 printf %s "(cached) " >&6
29091 ac_func_search_save_LIBS=$LIBS
29092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h. */
29099 char gsasl_init ();
29102 return gsasl_init ();
29107 for ac_lib in '' gsasl
29109 if test -z "$ac_lib"; then
29110 ac_res="none required"
29113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29115 if ac_fn_c_try_link "$LINENO"
29117 ac_cv_search_gsasl_init=$ac_res
29119 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29121 if test ${ac_cv_search_gsasl_init+y}
29126 if test ${ac_cv_search_gsasl_init+y}
29130 ac_cv_search_gsasl_init=no
29132 rm conftest.$ac_ext
29133 LIBS=$ac_func_search_save_LIBS
29135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
29136 printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
29137 ac_res=$ac_cv_search_gsasl_init
29138 if test "$ac_res" != no
29140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29141 curl_gsasl_msg="enabled";
29143 printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
29147 curl_gsasl_msg="no (libgsasl not found)";
29148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
29149 printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
29155 if test "$curl_gsasl_msg" = "enabled"; then
29157 USE_GSASL_FALSE='#'
29165 # Check whether --with-libmetalink was given.
29166 if test ${with_libmetalink+y}
29168 withval=$with_libmetalink; as_fn_error $? "--with-libmetalink and --without-libmetalink no longer work!" "$LINENO" 5
29175 # Check whether --with-libssh2 was given.
29176 if test ${with_libssh2+y}
29178 withval=$with_libssh2; OPT_LIBSSH2=$withval
29187 # Check whether --with-libssh was given.
29188 if test ${with_libssh+y}
29190 withval=$with_libssh; OPT_LIBSSH=$withval
29198 # Check whether --with-wolfssh was given.
29199 if test ${with_wolfssh+y}
29201 withval=$with_wolfssh; OPT_WOLFSSH=$withval
29207 if test X"$OPT_LIBSSH2" != Xno; then
29208 CLEANLDFLAGS="$LDFLAGS"
29209 CLEANCPPFLAGS="$CPPFLAGS"
29212 case "$OPT_LIBSSH2" in
29215 if test -n "$PKG_CONFIG"; then
29216 PKGCONFIG="$PKG_CONFIG"
29218 if test -n "$ac_tool_prefix"; then
29219 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29220 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29222 printf %s "checking for $ac_word... " >&6; }
29223 if test ${ac_cv_path_PKGCONFIG+y}
29225 printf %s "(cached) " >&6
29229 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29233 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29234 for as_dir in $as_dummy
29237 case $as_dir in #(((
29240 *) as_dir=$as_dir/ ;;
29242 for ac_exec_ext in '' $ac_executable_extensions; do
29243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29244 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29255 PKGCONFIG=$ac_cv_path_PKGCONFIG
29256 if test -n "$PKGCONFIG"; then
29257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29258 printf "%s\n" "$PKGCONFIG" >&6; }
29260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29261 printf "%s\n" "no" >&6; }
29266 if test -z "$ac_cv_path_PKGCONFIG"; then
29267 ac_pt_PKGCONFIG=$PKGCONFIG
29268 # Extract the first word of "pkg-config", so it can be a program name with args.
29269 set dummy pkg-config; ac_word=$2
29270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29271 printf %s "checking for $ac_word... " >&6; }
29272 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29274 printf %s "(cached) " >&6
29276 case $ac_pt_PKGCONFIG in
29278 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29282 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29283 for as_dir in $as_dummy
29286 case $as_dir in #(((
29289 *) as_dir=$as_dir/ ;;
29291 for ac_exec_ext in '' $ac_executable_extensions; do
29292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29293 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29304 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29305 if test -n "$ac_pt_PKGCONFIG"; then
29306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29307 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29310 printf "%s\n" "no" >&6; }
29313 if test "x$ac_pt_PKGCONFIG" = x; then
29316 case $cross_compiling:$ac_tool_warned in
29318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29319 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29320 ac_tool_warned=yes ;;
29322 PKGCONFIG=$ac_pt_PKGCONFIG
29325 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29330 if test "x$PKGCONFIG" != "xno"; then
29331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
29332 printf %s "checking for libssh2 options with pkg-config... " >&6; }
29334 if test -n ""; then
29335 PKG_CONFIG_LIBDIR=""
29336 export PKG_CONFIG_LIBDIR
29338 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
29340 if test -z "$itexists"; then
29342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29343 printf "%s\n" "no" >&6; }
29345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29346 printf "%s\n" "found" >&6; }
29351 if test "$PKGCONFIG" != "no" ; then
29352 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
29353 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
29354 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
29355 version=`$PKGCONFIG --modversion libssh2`
29356 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
29363 PREFIX_SSH2=$OPT_LIBSSH2
29367 if test -n "$PREFIX_SSH2"; then
29369 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
29370 CPP_SSH2=-I${PREFIX_SSH2}/include
29371 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
29374 LDFLAGS="$LDFLAGS $LD_SSH2"
29375 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
29376 LIBS="$LIB_SSH2 $LIBS"
29378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
29379 printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
29380 if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
29382 printf %s "(cached) " >&6
29384 ac_check_lib_save_LIBS=$LIBS
29385 LIBS="-lssh2 $LIBS"
29386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29387 /* end confdefs.h. */
29393 char libssh2_session_block_directions ();
29396 return libssh2_session_block_directions ();
29401 if ac_fn_c_try_link "$LINENO"
29403 ac_cv_lib_ssh2_libssh2_session_block_directions=yes
29405 ac_cv_lib_ssh2_libssh2_session_block_directions=no
29407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29408 conftest$ac_exeext conftest.$ac_ext
29409 LIBS=$ac_check_lib_save_LIBS
29411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
29412 printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
29413 if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
29415 printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
29417 LIBS="-lssh2 $LIBS"
29422 ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
29423 if test "x$ac_cv_header_libssh2_h" = xyes
29425 curl_ssh_msg="enabled (libSSH2)"
29428 printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
29436 if test X"$OPT_LIBSSH2" != Xoff &&
29437 test "$LIBSSH2_ENABLED" != "1"; then
29438 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
29441 if test "$LIBSSH2_ENABLED" = "1"; then
29442 if test -n "$DIR_SSH2"; then
29444 if test "x$cross_compiling" != "xyes"; then
29445 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
29446 export CURL_LIBRARY_PATH
29447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
29448 printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
29452 LDFLAGS=$CLEANLDFLAGS
29453 CPPFLAGS=$CLEANCPPFLAGS
29456 elif test X"$OPT_LIBSSH" != Xno; then
29457 CLEANLDFLAGS="$LDFLAGS"
29458 CLEANCPPFLAGS="$CPPFLAGS"
29461 case "$OPT_LIBSSH" in
29464 if test -n "$PKG_CONFIG"; then
29465 PKGCONFIG="$PKG_CONFIG"
29467 if test -n "$ac_tool_prefix"; then
29468 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29469 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29471 printf %s "checking for $ac_word... " >&6; }
29472 if test ${ac_cv_path_PKGCONFIG+y}
29474 printf %s "(cached) " >&6
29478 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29482 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29483 for as_dir in $as_dummy
29486 case $as_dir in #(((
29489 *) as_dir=$as_dir/ ;;
29491 for ac_exec_ext in '' $ac_executable_extensions; do
29492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29493 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29504 PKGCONFIG=$ac_cv_path_PKGCONFIG
29505 if test -n "$PKGCONFIG"; then
29506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29507 printf "%s\n" "$PKGCONFIG" >&6; }
29509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29510 printf "%s\n" "no" >&6; }
29515 if test -z "$ac_cv_path_PKGCONFIG"; then
29516 ac_pt_PKGCONFIG=$PKGCONFIG
29517 # Extract the first word of "pkg-config", so it can be a program name with args.
29518 set dummy pkg-config; ac_word=$2
29519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29520 printf %s "checking for $ac_word... " >&6; }
29521 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29523 printf %s "(cached) " >&6
29525 case $ac_pt_PKGCONFIG in
29527 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29531 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29532 for as_dir in $as_dummy
29535 case $as_dir in #(((
29538 *) as_dir=$as_dir/ ;;
29540 for ac_exec_ext in '' $ac_executable_extensions; do
29541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29542 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29553 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29554 if test -n "$ac_pt_PKGCONFIG"; then
29555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29556 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29559 printf "%s\n" "no" >&6; }
29562 if test "x$ac_pt_PKGCONFIG" = x; then
29565 case $cross_compiling:$ac_tool_warned in
29567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29568 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29569 ac_tool_warned=yes ;;
29571 PKGCONFIG=$ac_pt_PKGCONFIG
29574 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29579 if test "x$PKGCONFIG" != "xno"; then
29580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29581 printf %s "checking for libssh options with pkg-config... " >&6; }
29583 if test -n ""; then
29584 PKG_CONFIG_LIBDIR=""
29585 export PKG_CONFIG_LIBDIR
29587 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29589 if test -z "$itexists"; then
29591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29592 printf "%s\n" "no" >&6; }
29594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29595 printf "%s\n" "found" >&6; }
29600 if test "$PKGCONFIG" != "no" ; then
29601 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29602 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29603 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29604 version=`$PKGCONFIG --modversion libssh`
29605 DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29612 PREFIX_SSH=$OPT_LIBSSH
29616 if test -n "$PREFIX_SSH"; then
29618 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29619 CPP_SSH=-I${PREFIX_SSH}/include
29620 DIR_SSH=${PREFIX_SSH}/lib$libsuff
29623 LDFLAGS="$LDFLAGS $LD_SSH"
29624 CPPFLAGS="$CPPFLAGS $CPP_SSH"
29625 LIBS="$LIB_SSH $LIBS"
29627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29628 printf %s "checking for ssh_new in -lssh... " >&6; }
29629 if test ${ac_cv_lib_ssh_ssh_new+y}
29631 printf %s "(cached) " >&6
29633 ac_check_lib_save_LIBS=$LIBS
29635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29636 /* end confdefs.h. */
29650 if ac_fn_c_try_link "$LINENO"
29652 ac_cv_lib_ssh_ssh_new=yes
29654 ac_cv_lib_ssh_ssh_new=no
29656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29657 conftest$ac_exeext conftest.$ac_ext
29658 LIBS=$ac_check_lib_save_LIBS
29660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29661 printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29662 if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29664 printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29671 ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29672 if test "x$ac_cv_header_libssh_libssh_h" = xyes
29674 curl_ssh_msg="enabled (libSSH)"
29677 printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29685 if test X"$OPT_LIBSSH" != Xoff &&
29686 test "$LIBSSH_ENABLED" != "1"; then
29687 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29690 if test "$LIBSSH_ENABLED" = "1"; then
29691 if test -n "$DIR_SSH"; then
29693 if test "x$cross_compiling" != "xyes"; then
29694 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29695 export CURL_LIBRARY_PATH
29696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29697 printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29701 LDFLAGS=$CLEANLDFLAGS
29702 CPPFLAGS=$CLEANCPPFLAGS
29705 elif test X"$OPT_WOLFSSH" != Xno; then
29706 CLEANLDFLAGS="$LDFLAGS"
29707 CLEANCPPFLAGS="$CPPFLAGS"
29711 if test "$OPT_WOLFSSH" != yes; then
29712 WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29713 LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29714 CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29718 printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29719 if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29721 printf %s "(cached) " >&6
29723 ac_check_lib_save_LIBS=$LIBS
29724 LIBS="-lwolfssh $LIBS"
29725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29726 /* end confdefs.h. */
29732 char wolfSSH_Init ();
29735 return wolfSSH_Init ();
29740 if ac_fn_c_try_link "$LINENO"
29742 ac_cv_lib_wolfssh_wolfSSH_Init=yes
29744 ac_cv_lib_wolfssh_wolfSSH_Init=no
29746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29747 conftest$ac_exeext conftest.$ac_ext
29748 LIBS=$ac_check_lib_save_LIBS
29750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29751 printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29752 if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29754 printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29756 LIBS="-lwolfssh $LIBS"
29761 for ac_header in wolfssh/ssh.h
29763 ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29764 if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29766 printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29767 curl_ssh_msg="enabled (wolfSSH)"
29770 printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29784 # Check whether --with-librtmp was given.
29785 if test ${with_librtmp+y}
29787 withval=$with_librtmp; OPT_LIBRTMP=$withval
29791 if test X"$OPT_LIBRTMP" != Xno; then
29792 CLEANLDFLAGS="$LDFLAGS"
29793 CLEANCPPFLAGS="$CPPFLAGS"
29796 case "$OPT_LIBRTMP" in
29799 if test -n "$PKG_CONFIG"; then
29800 PKGCONFIG="$PKG_CONFIG"
29802 if test -n "$ac_tool_prefix"; then
29803 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29804 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29806 printf %s "checking for $ac_word... " >&6; }
29807 if test ${ac_cv_path_PKGCONFIG+y}
29809 printf %s "(cached) " >&6
29813 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29817 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29818 for as_dir in $as_dummy
29821 case $as_dir in #(((
29824 *) as_dir=$as_dir/ ;;
29826 for ac_exec_ext in '' $ac_executable_extensions; do
29827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29828 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29839 PKGCONFIG=$ac_cv_path_PKGCONFIG
29840 if test -n "$PKGCONFIG"; then
29841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29842 printf "%s\n" "$PKGCONFIG" >&6; }
29844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29845 printf "%s\n" "no" >&6; }
29850 if test -z "$ac_cv_path_PKGCONFIG"; then
29851 ac_pt_PKGCONFIG=$PKGCONFIG
29852 # Extract the first word of "pkg-config", so it can be a program name with args.
29853 set dummy pkg-config; ac_word=$2
29854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29855 printf %s "checking for $ac_word... " >&6; }
29856 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29858 printf %s "(cached) " >&6
29860 case $ac_pt_PKGCONFIG in
29862 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29866 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29867 for as_dir in $as_dummy
29870 case $as_dir in #(((
29873 *) as_dir=$as_dir/ ;;
29875 for ac_exec_ext in '' $ac_executable_extensions; do
29876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29877 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29888 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29889 if test -n "$ac_pt_PKGCONFIG"; then
29890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29891 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894 printf "%s\n" "no" >&6; }
29897 if test "x$ac_pt_PKGCONFIG" = x; then
29900 case $cross_compiling:$ac_tool_warned in
29902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29904 ac_tool_warned=yes ;;
29906 PKGCONFIG=$ac_pt_PKGCONFIG
29909 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29914 if test "x$PKGCONFIG" != "xno"; then
29915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
29916 printf %s "checking for librtmp options with pkg-config... " >&6; }
29918 if test -n ""; then
29919 PKG_CONFIG_LIBDIR=""
29920 export PKG_CONFIG_LIBDIR
29922 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
29924 if test -z "$itexists"; then
29926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29927 printf "%s\n" "no" >&6; }
29929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29930 printf "%s\n" "found" >&6; }
29935 if test "$PKGCONFIG" != "no" ; then
29936 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
29937 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
29938 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
29939 version=`$PKGCONFIG --modversion librtmp`
29940 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
29942 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
29951 PREFIX_RTMP=$OPT_LIBRTMP
29955 if test -n "$PREFIX_RTMP"; then
29956 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
29957 CPP_RTMP=-I${PREFIX_RTMP}/include
29958 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
29961 LDFLAGS="$LDFLAGS $LD_RTMP"
29962 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
29963 LIBS="$LIB_RTMP $LIBS"
29965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
29966 printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
29967 if test ${ac_cv_lib_rtmp_RTMP_Init+y}
29969 printf %s "(cached) " >&6
29971 ac_check_lib_save_LIBS=$LIBS
29972 LIBS="-lrtmp $LIBS"
29973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29974 /* end confdefs.h. */
29983 return RTMP_Init ();
29988 if ac_fn_c_try_link "$LINENO"
29990 ac_cv_lib_rtmp_RTMP_Init=yes
29992 ac_cv_lib_rtmp_RTMP_Init=no
29994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29995 conftest$ac_exeext conftest.$ac_ext
29996 LIBS=$ac_check_lib_save_LIBS
29998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
29999 printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
30000 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
30003 for ac_header in librtmp/rtmp.h
30005 ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
30006 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
30008 printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
30009 curl_rtmp_msg="enabled (librtmp)"
30012 printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
30022 LDFLAGS=$CLEANLDFLAGS
30023 CPPFLAGS=$CLEANCPPFLAGS
30029 if test X"$OPT_LIBRTMP" != Xoff &&
30030 test "$LIBRTMP_ENABLED" != "1"; then
30031 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
30037 versioned_symbols_flavour=
30038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
30039 printf %s "checking whether versioned symbols are wanted... " >&6; }
30040 # Check whether --enable-versioned-symbols was given.
30041 if test ${enable_versioned_symbols+y}
30043 enableval=$enable_versioned_symbols; case "$enableval" in
30044 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30045 printf "%s\n" "yes" >&6; }
30046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
30047 printf %s "checking if libraries can be versioned... " >&6; }
30048 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
30049 if test -z "$GLD"; then
30050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30051 printf "%s\n" "no" >&6; }
30052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
30053 printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
30055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30056 printf "%s\n" "yes" >&6; }
30057 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
30058 versioned_symbols_flavour="MULTISSL_"
30059 elif test "x$OPENSSL_ENABLED" = "x1"; then
30060 versioned_symbols_flavour="OPENSSL_"
30061 elif test "x$GNUTLS_ENABLED" = "x1"; then
30062 versioned_symbols_flavour="GNUTLS_"
30063 elif test "x$WOLFSSL_ENABLED" = "x1"; then
30064 versioned_symbols_flavour="WOLFSSL_"
30065 elif test "x$SCHANNEL_ENABLED" = "x1"; then
30066 versioned_symbols_flavour="SCHANNEL_"
30067 elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
30068 versioned_symbols_flavour="SECURE_TRANSPORT_"
30070 versioned_symbols_flavour=""
30072 versioned_symbols="yes"
30076 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30077 printf "%s\n" "no" >&6; }
30083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30084 printf "%s\n" "no" >&6; }
30090 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
30092 if test "x$versioned_symbols" = 'xyes'; then
30093 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
30094 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
30096 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
30097 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
30101 CURL_PLIST_VERSION="$CURLVERSION"
30105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
30106 printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
30107 OPT_WINIDN="default"
30109 # Check whether --with-winidn was given.
30110 if test ${with_winidn+y}
30112 withval=$with_winidn; OPT_WINIDN=$withval
30115 case "$OPT_WINIDN" in
30118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30119 printf "%s\n" "no" >&6; }
30123 want_winidn_path="default"
30124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30125 printf "%s\n" "yes" >&6; }
30129 want_winidn_path="$withval"
30130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
30131 printf "%s\n" "yes ($withval)" >&6; }
30135 if test "$want_winidn" = "yes"; then
30136 clean_CFLAGS="$CFLAGS"
30137 clean_CPPFLAGS="$CPPFLAGS"
30138 clean_LDFLAGS="$LDFLAGS"
30140 WINIDN_LIBS="-lnormaliz"
30143 if test "$want_winidn_path" != "default"; then
30144 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
30145 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
30146 WINIDN_DIR="$want_winidn_path/lib$libsuff"
30149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30150 /* end confdefs.h. */
30153 #include <windows.h>
30158 #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
30167 if ac_fn_c_try_compile "$LINENO"
30173 CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
30174 CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
30175 CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
30176 CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
30177 WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
30180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30182 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
30183 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
30184 LIBS="$WINIDN_LIBS $LIBS"
30186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
30187 printf %s "checking if IdnToUnicode can be linked... " >&6; }
30188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30189 /* end confdefs.h. */
30192 #include <windows.h>
30197 IdnToUnicode(0, NULL, 0, NULL, 0);
30204 if ac_fn_c_try_link "$LINENO"
30207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30208 printf "%s\n" "yes" >&6; }
30209 tst_links_winidn="yes"
30213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30214 printf "%s\n" "no" >&6; }
30215 tst_links_winidn="no"
30218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30219 conftest$ac_exeext conftest.$ac_ext
30221 if test "$tst_links_winidn" = "yes"; then
30223 printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
30227 curl_idn_msg="enabled (Windows-native)"
30229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30230 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30231 CFLAGS="$clean_CFLAGS"
30232 CPPFLAGS="$clean_CPPFLAGS"
30233 LDFLAGS="$clean_LDFLAGS"
30239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
30240 printf %s "checking whether to build with libidn2... " >&6; }
30243 # Check whether --with-libidn2 was given.
30244 if test ${with_libidn2+y}
30246 withval=$with_libidn2; OPT_IDN=$withval
30249 if test "x$tst_links_winidn" = "xyes"; then
30251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using winidn instead)" >&5
30252 printf "%s\n" "no (using winidn instead)" >&6; }
30257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30258 printf "%s\n" "no" >&6; }
30262 want_idn_path="default"
30263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
30264 printf "%s\n" "(assumed) yes" >&6; }
30268 want_idn_path="default"
30269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30270 printf "%s\n" "yes" >&6; }
30274 want_idn_path="$withval"
30275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
30276 printf "%s\n" "yes ($withval)" >&6; }
30281 if test "$want_idn" = "yes"; then
30282 clean_CPPFLAGS="$CPPFLAGS"
30283 clean_LDFLAGS="$LDFLAGS"
30287 if test "$want_idn_path" != "default"; then
30288 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
30290 if test -n "$PKG_CONFIG"; then
30291 PKGCONFIG="$PKG_CONFIG"
30293 if test -n "$ac_tool_prefix"; then
30294 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30295 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30297 printf %s "checking for $ac_word... " >&6; }
30298 if test ${ac_cv_path_PKGCONFIG+y}
30300 printf %s "(cached) " >&6
30304 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30308 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30309 for as_dir in $as_dummy
30312 case $as_dir in #(((
30315 *) as_dir=$as_dir/ ;;
30317 for ac_exec_ext in '' $ac_executable_extensions; do
30318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30319 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30330 PKGCONFIG=$ac_cv_path_PKGCONFIG
30331 if test -n "$PKGCONFIG"; then
30332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30333 printf "%s\n" "$PKGCONFIG" >&6; }
30335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30336 printf "%s\n" "no" >&6; }
30341 if test -z "$ac_cv_path_PKGCONFIG"; then
30342 ac_pt_PKGCONFIG=$PKGCONFIG
30343 # Extract the first word of "pkg-config", so it can be a program name with args.
30344 set dummy pkg-config; ac_word=$2
30345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30346 printf %s "checking for $ac_word... " >&6; }
30347 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30349 printf %s "(cached) " >&6
30351 case $ac_pt_PKGCONFIG in
30353 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30357 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30358 for as_dir in $as_dummy
30361 case $as_dir in #(((
30364 *) as_dir=$as_dir/ ;;
30366 for ac_exec_ext in '' $ac_executable_extensions; do
30367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30368 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30379 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30380 if test -n "$ac_pt_PKGCONFIG"; then
30381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30382 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30385 printf "%s\n" "no" >&6; }
30388 if test "x$ac_pt_PKGCONFIG" = x; then
30391 case $cross_compiling:$ac_tool_warned in
30393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30395 ac_tool_warned=yes ;;
30397 PKGCONFIG=$ac_pt_PKGCONFIG
30400 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30405 if test "x$PKGCONFIG" != "xno"; then
30406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30407 printf %s "checking for libidn2 options with pkg-config... " >&6; }
30409 if test -n "$IDN_PCDIR"; then
30410 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30411 export PKG_CONFIG_LIBDIR
30413 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30415 if test -z "$itexists"; then
30417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30418 printf "%s\n" "no" >&6; }
30420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30421 printf "%s\n" "found" >&6; }
30425 if test "$PKGCONFIG" != "no"; then
30427 if test -n "$IDN_PCDIR"; then
30428 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30429 export PKG_CONFIG_LIBDIR
30431 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30433 if test -n "$IDN_PCDIR"; then
30434 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30435 export PKG_CONFIG_LIBDIR
30437 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30439 if test -n "$IDN_PCDIR"; then
30440 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30441 export PKG_CONFIG_LIBDIR
30443 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30444 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30447 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
30448 IDN_CPPFLAGS="-I$want_idn_path/include"
30449 IDN_DIR="$want_idn_path/lib$libsuff"
30453 if test -n "$PKG_CONFIG"; then
30454 PKGCONFIG="$PKG_CONFIG"
30456 if test -n "$ac_tool_prefix"; then
30457 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30458 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30460 printf %s "checking for $ac_word... " >&6; }
30461 if test ${ac_cv_path_PKGCONFIG+y}
30463 printf %s "(cached) " >&6
30467 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30471 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30472 for as_dir in $as_dummy
30475 case $as_dir in #(((
30478 *) as_dir=$as_dir/ ;;
30480 for ac_exec_ext in '' $ac_executable_extensions; do
30481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30482 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30493 PKGCONFIG=$ac_cv_path_PKGCONFIG
30494 if test -n "$PKGCONFIG"; then
30495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30496 printf "%s\n" "$PKGCONFIG" >&6; }
30498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30499 printf "%s\n" "no" >&6; }
30504 if test -z "$ac_cv_path_PKGCONFIG"; then
30505 ac_pt_PKGCONFIG=$PKGCONFIG
30506 # Extract the first word of "pkg-config", so it can be a program name with args.
30507 set dummy pkg-config; ac_word=$2
30508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30509 printf %s "checking for $ac_word... " >&6; }
30510 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30512 printf %s "(cached) " >&6
30514 case $ac_pt_PKGCONFIG in
30516 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30520 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30521 for as_dir in $as_dummy
30524 case $as_dir in #(((
30527 *) as_dir=$as_dir/ ;;
30529 for ac_exec_ext in '' $ac_executable_extensions; do
30530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30531 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30542 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30543 if test -n "$ac_pt_PKGCONFIG"; then
30544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30545 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30548 printf "%s\n" "no" >&6; }
30551 if test "x$ac_pt_PKGCONFIG" = x; then
30554 case $cross_compiling:$ac_tool_warned in
30556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30557 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30558 ac_tool_warned=yes ;;
30560 PKGCONFIG=$ac_pt_PKGCONFIG
30563 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30568 if test "x$PKGCONFIG" != "xno"; then
30569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30570 printf %s "checking for libidn2 options with pkg-config... " >&6; }
30572 if test -n ""; then
30573 PKG_CONFIG_LIBDIR=""
30574 export PKG_CONFIG_LIBDIR
30576 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30578 if test -z "$itexists"; then
30580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30581 printf "%s\n" "no" >&6; }
30583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30584 printf "%s\n" "found" >&6; }
30588 if test "$PKGCONFIG" != "no"; then
30589 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30590 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30591 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30592 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30598 if test "$PKGCONFIG" != "no"; then
30599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30600 printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30602 printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30604 printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30606 printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30609 printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30611 printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30613 printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30615 printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30618 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30619 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30620 LIBS="$IDN_LIBS $LIBS"
30622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30623 printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30625 /* end confdefs.h. */
30628 #define idn2_lookup_ul innocuous_idn2_lookup_ul
30630 # include <limits.h>
30632 # include <assert.h>
30634 #undef idn2_lookup_ul
30638 char idn2_lookup_ul ();
30639 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30645 return idn2_lookup_ul ();
30651 if ac_fn_c_try_link "$LINENO"
30654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30655 printf "%s\n" "yes" >&6; }
30656 tst_links_libidn="yes"
30660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30661 printf "%s\n" "no" >&6; }
30662 tst_links_libidn="no"
30665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30666 conftest$ac_exeext conftest.$ac_ext
30668 ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30669 if test "x$ac_cv_header_idn2_h" = xyes
30671 printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30676 if test "$tst_links_libidn" = "yes"; then
30678 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30683 curl_idn_msg="enabled (libidn2)"
30684 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30685 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30686 export CURL_LIBRARY_PATH
30687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30688 printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30692 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30693 CPPFLAGS="$clean_CPPFLAGS"
30694 LDFLAGS="$clean_LDFLAGS"
30702 if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30703 # without HTTP or with Hyper, nghttp2 is no use
30708 # Check whether --with-nghttp2 was given.
30709 if test ${with_nghttp2+y}
30711 withval=$with_nghttp2; OPT_H2=$withval
30719 want_nghttp2="default"
30720 want_nghttp2_path=""
30721 want_nghttp2_pkg_config_path=""
30725 want_nghttp2_path="$withval"
30726 want_nghttp2_pkg_config_path="$withval/lib/pkgconfig"
30730 if test X"$want_nghttp2" != Xno; then
30731 CLEANLDFLAGS="$LDFLAGS"
30732 CLEANCPPFLAGS="$CPPFLAGS"
30736 if test -n "$PKG_CONFIG"; then
30737 PKGCONFIG="$PKG_CONFIG"
30739 if test -n "$ac_tool_prefix"; then
30740 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30741 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30743 printf %s "checking for $ac_word... " >&6; }
30744 if test ${ac_cv_path_PKGCONFIG+y}
30746 printf %s "(cached) " >&6
30750 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30754 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30755 for as_dir in $as_dummy
30758 case $as_dir in #(((
30761 *) as_dir=$as_dir/ ;;
30763 for ac_exec_ext in '' $ac_executable_extensions; do
30764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30765 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30776 PKGCONFIG=$ac_cv_path_PKGCONFIG
30777 if test -n "$PKGCONFIG"; then
30778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30779 printf "%s\n" "$PKGCONFIG" >&6; }
30781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30782 printf "%s\n" "no" >&6; }
30787 if test -z "$ac_cv_path_PKGCONFIG"; then
30788 ac_pt_PKGCONFIG=$PKGCONFIG
30789 # Extract the first word of "pkg-config", so it can be a program name with args.
30790 set dummy pkg-config; ac_word=$2
30791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30792 printf %s "checking for $ac_word... " >&6; }
30793 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30795 printf %s "(cached) " >&6
30797 case $ac_pt_PKGCONFIG in
30799 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30803 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30804 for as_dir in $as_dummy
30807 case $as_dir in #(((
30810 *) as_dir=$as_dir/ ;;
30812 for ac_exec_ext in '' $ac_executable_extensions; do
30813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30814 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30825 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30826 if test -n "$ac_pt_PKGCONFIG"; then
30827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30828 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30831 printf "%s\n" "no" >&6; }
30834 if test "x$ac_pt_PKGCONFIG" = x; then
30837 case $cross_compiling:$ac_tool_warned in
30839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30840 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30841 ac_tool_warned=yes ;;
30843 PKGCONFIG=$ac_pt_PKGCONFIG
30846 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30851 if test "x$PKGCONFIG" != "xno"; then
30852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
30853 printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
30855 if test -n "$want_nghttp2_pkg_config_path"; then
30856 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30857 export PKG_CONFIG_LIBDIR
30859 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
30861 if test -z "$itexists"; then
30863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30864 printf "%s\n" "no" >&6; }
30866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30867 printf "%s\n" "found" >&6; }
30872 if test "$PKGCONFIG" != "no" ; then
30874 if test -n "$want_nghttp2_pkg_config_path"; then
30875 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30876 export PKG_CONFIG_LIBDIR
30879 $PKGCONFIG --libs-only-l libnghttp2`
30880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
30881 printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
30884 if test -n "$want_nghttp2_pkg_config_path"; then
30885 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30886 export PKG_CONFIG_LIBDIR
30888 $PKGCONFIG --cflags-only-I libnghttp2`
30889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
30890 printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
30893 if test -n "$want_nghttp2_pkg_config_path"; then
30894 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30895 export PKG_CONFIG_LIBDIR
30898 $PKGCONFIG --libs-only-L libnghttp2`
30899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
30900 printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
30902 DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
30903 elif test x"$want_nghttp2_path" != x; then
30905 LD_H2=-L${want_nghttp2_path}/lib$libsuff
30906 CPP_H2=-I${want_nghttp2_path}/include
30907 DIR_H2=${want_nghttp2_path}/lib$libsuff
30908 elif test X"$want_nghttp2" != Xdefault; then
30909 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
30914 LDFLAGS="$LDFLAGS $LD_H2"
30915 CPPFLAGS="$CPPFLAGS $CPP_H2"
30916 LIBS="$LIB_H2 $LIBS"
30918 # use nghttp2_session_get_stream_local_window_size to require nghttp2
30920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_get_stream_local_window_size in -lnghttp2" >&5
30921 printf %s "checking for nghttp2_session_get_stream_local_window_size in -lnghttp2... " >&6; }
30922 if test ${ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size+y}
30924 printf %s "(cached) " >&6
30926 ac_check_lib_save_LIBS=$LIBS
30927 LIBS="-lnghttp2 $LIBS"
30928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30929 /* end confdefs.h. */
30935 char nghttp2_session_get_stream_local_window_size ();
30938 return nghttp2_session_get_stream_local_window_size ();
30943 if ac_fn_c_try_link "$LINENO"
30945 ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=yes
30947 ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=no
30949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30950 conftest$ac_exeext conftest.$ac_ext
30951 LIBS=$ac_check_lib_save_LIBS
30953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&5
30954 printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&6; }
30955 if test "x$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" = xyes
30958 for ac_header in nghttp2/nghttp2.h
30960 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
30961 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
30963 printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
30964 curl_h2_msg="enabled (nghttp2)"
30967 printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
30976 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
30977 export CURL_LIBRARY_PATH
30978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5
30979 printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;}
30982 LDFLAGS=$CLEANLDFLAGS
30983 CPPFLAGS=$CLEANCPPFLAGS
30993 if test "x$disable_http" = "xyes"; then
30994 # without HTTP, ngtcp2 is no use
30999 # Check whether --with-ngtcp2 was given.
31000 if test ${with_ngtcp2+y}
31002 withval=$with_ngtcp2; OPT_TCP2=$withval
31005 case "$OPT_TCP2" in
31010 want_tcp2="default"
31015 want_tcp2_path="$withval/lib/pkgconfig"
31019 curl_tcp2_msg="no (--with-ngtcp2)"
31020 if test X"$want_tcp2" != Xno; then
31021 CLEANLDFLAGS="$LDFLAGS"
31022 CLEANCPPFLAGS="$CPPFLAGS"
31026 if test -n "$PKG_CONFIG"; then
31027 PKGCONFIG="$PKG_CONFIG"
31029 if test -n "$ac_tool_prefix"; then
31030 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31031 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31033 printf %s "checking for $ac_word... " >&6; }
31034 if test ${ac_cv_path_PKGCONFIG+y}
31036 printf %s "(cached) " >&6
31040 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31044 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31045 for as_dir in $as_dummy
31048 case $as_dir in #(((
31051 *) as_dir=$as_dir/ ;;
31053 for ac_exec_ext in '' $ac_executable_extensions; do
31054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31055 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31066 PKGCONFIG=$ac_cv_path_PKGCONFIG
31067 if test -n "$PKGCONFIG"; then
31068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31069 printf "%s\n" "$PKGCONFIG" >&6; }
31071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31072 printf "%s\n" "no" >&6; }
31077 if test -z "$ac_cv_path_PKGCONFIG"; then
31078 ac_pt_PKGCONFIG=$PKGCONFIG
31079 # Extract the first word of "pkg-config", so it can be a program name with args.
31080 set dummy pkg-config; ac_word=$2
31081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31082 printf %s "checking for $ac_word... " >&6; }
31083 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31085 printf %s "(cached) " >&6
31087 case $ac_pt_PKGCONFIG in
31089 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31093 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31094 for as_dir in $as_dummy
31097 case $as_dir in #(((
31100 *) as_dir=$as_dir/ ;;
31102 for ac_exec_ext in '' $ac_executable_extensions; do
31103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31104 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31115 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31116 if test -n "$ac_pt_PKGCONFIG"; then
31117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31118 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31121 printf "%s\n" "no" >&6; }
31124 if test "x$ac_pt_PKGCONFIG" = x; then
31127 case $cross_compiling:$ac_tool_warned in
31129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31131 ac_tool_warned=yes ;;
31133 PKGCONFIG=$ac_pt_PKGCONFIG
31136 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31141 if test "x$PKGCONFIG" != "xno"; then
31142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
31143 printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
31145 if test -n "$want_tcp2_path"; then
31146 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31147 export PKG_CONFIG_LIBDIR
31149 $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
31151 if test -z "$itexists"; then
31153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31154 printf "%s\n" "no" >&6; }
31156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31157 printf "%s\n" "found" >&6; }
31162 if test "$PKGCONFIG" != "no" ; then
31164 if test -n "$want_tcp2_path"; then
31165 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31166 export PKG_CONFIG_LIBDIR
31169 $PKGCONFIG --libs-only-l libngtcp2`
31170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
31171 printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
31174 if test -n "$want_tcp2_path"; then
31175 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31176 export PKG_CONFIG_LIBDIR
31178 $PKGCONFIG --cflags-only-I libngtcp2`
31179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
31180 printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
31183 if test -n "$want_tcp2_path"; then
31184 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31185 export PKG_CONFIG_LIBDIR
31188 $PKGCONFIG --libs-only-L libngtcp2`
31189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
31190 printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
31192 LDFLAGS="$LDFLAGS $LD_TCP2"
31193 CPPFLAGS="$CPPFLAGS $CPP_TCP2"
31194 LIBS="$LIB_TCP2 $LIBS"
31196 if test "x$cross_compiling" != "xyes"; then
31197 DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
31199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
31200 printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
31201 if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
31203 printf %s "(cached) " >&6
31205 ac_check_lib_save_LIBS=$LIBS
31206 LIBS="-lngtcp2 $LIBS"
31207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31208 /* end confdefs.h. */
31214 char ngtcp2_conn_client_new_versioned ();
31217 return ngtcp2_conn_client_new_versioned ();
31222 if ac_fn_c_try_link "$LINENO"
31224 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
31226 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
31228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31229 conftest$ac_exeext conftest.$ac_ext
31230 LIBS=$ac_check_lib_save_LIBS
31232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
31233 printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
31234 if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
31237 for ac_header in ngtcp2/ngtcp2.h
31239 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
31240 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
31242 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
31245 printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
31249 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
31250 export CURL_LIBRARY_PATH
31251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
31252 printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
31259 LDFLAGS=$CLEANLDFLAGS
31260 CPPFLAGS=$CLEANCPPFLAGS
31267 if test X"$want_tcp2" != Xdefault; then
31268 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
31274 if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
31275 CLEANLDFLAGS="$LDFLAGS"
31276 CLEANCPPFLAGS="$CPPFLAGS"
31280 if test -n "$PKG_CONFIG"; then
31281 PKGCONFIG="$PKG_CONFIG"
31283 if test -n "$ac_tool_prefix"; then
31284 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31285 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31287 printf %s "checking for $ac_word... " >&6; }
31288 if test ${ac_cv_path_PKGCONFIG+y}
31290 printf %s "(cached) " >&6
31294 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31298 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31299 for as_dir in $as_dummy
31302 case $as_dir in #(((
31305 *) as_dir=$as_dir/ ;;
31307 for ac_exec_ext in '' $ac_executable_extensions; do
31308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31309 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31320 PKGCONFIG=$ac_cv_path_PKGCONFIG
31321 if test -n "$PKGCONFIG"; then
31322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31323 printf "%s\n" "$PKGCONFIG" >&6; }
31325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31326 printf "%s\n" "no" >&6; }
31331 if test -z "$ac_cv_path_PKGCONFIG"; then
31332 ac_pt_PKGCONFIG=$PKGCONFIG
31333 # Extract the first word of "pkg-config", so it can be a program name with args.
31334 set dummy pkg-config; ac_word=$2
31335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31336 printf %s "checking for $ac_word... " >&6; }
31337 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31339 printf %s "(cached) " >&6
31341 case $ac_pt_PKGCONFIG in
31343 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31347 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31348 for as_dir in $as_dummy
31351 case $as_dir in #(((
31354 *) as_dir=$as_dir/ ;;
31356 for ac_exec_ext in '' $ac_executable_extensions; do
31357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31358 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31369 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31370 if test -n "$ac_pt_PKGCONFIG"; then
31371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31372 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31375 printf "%s\n" "no" >&6; }
31378 if test "x$ac_pt_PKGCONFIG" = x; then
31381 case $cross_compiling:$ac_tool_warned in
31383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31384 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31385 ac_tool_warned=yes ;;
31387 PKGCONFIG=$ac_pt_PKGCONFIG
31390 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31395 if test "x$PKGCONFIG" != "xno"; then
31396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_quictls options with pkg-config" >&5
31397 printf %s "checking for libngtcp2_crypto_quictls options with pkg-config... " >&6; }
31399 if test -n "$want_tcp2_path"; then
31400 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31401 export PKG_CONFIG_LIBDIR
31403 $PKGCONFIG --exists libngtcp2_crypto_quictls >/dev/null 2>&1 && echo 1`
31405 if test -z "$itexists"; then
31407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31408 printf "%s\n" "no" >&6; }
31410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31411 printf "%s\n" "found" >&6; }
31416 if test "$PKGCONFIG" != "no" ; then
31417 LIB_NGTCP2_CRYPTO_QUICTLS=`
31418 if test -n "$want_tcp2_path"; then
31419 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31420 export PKG_CONFIG_LIBDIR
31423 $PKGCONFIG --libs-only-l libngtcp2_crypto_quictls`
31424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&5
31425 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&6;}
31427 CPP_NGTCP2_CRYPTO_QUICTLS=`
31428 if test -n "$want_tcp2_path"; then
31429 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31430 export PKG_CONFIG_LIBDIR
31432 $PKGCONFIG --cflags-only-I libngtcp2_crypto_quictls`
31433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&5
31434 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&6;}
31436 LD_NGTCP2_CRYPTO_QUICTLS=`
31437 if test -n "$want_tcp2_path"; then
31438 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31439 export PKG_CONFIG_LIBDIR
31442 $PKGCONFIG --libs-only-L libngtcp2_crypto_quictls`
31443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&5
31444 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&6;}
31446 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_QUICTLS"
31447 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_QUICTLS"
31448 LIBS="$LIB_NGTCP2_CRYPTO_QUICTLS $LIBS"
31450 if test "x$cross_compiling" != "xyes"; then
31451 DIR_NGTCP2_CRYPTO_QUICTLS=`echo $LD_NGTCP2_CRYPTO_QUICTLS | $SED -e 's/^-L//'`
31453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls" >&5
31454 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls... " >&6; }
31455 if test ${ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb+y}
31457 printf %s "(cached) " >&6
31459 ac_check_lib_save_LIBS=$LIBS
31460 LIBS="-lngtcp2_crypto_quictls $LIBS"
31461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31462 /* end confdefs.h. */
31468 char ngtcp2_crypto_recv_client_initial_cb ();
31471 return ngtcp2_crypto_recv_client_initial_cb ();
31476 if ac_fn_c_try_link "$LINENO"
31478 ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=yes
31480 ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=no
31482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31483 conftest$ac_exeext conftest.$ac_ext
31484 LIBS=$ac_check_lib_save_LIBS
31486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&5
31487 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31488 if test "x$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31491 for ac_header in ngtcp2/ngtcp2_crypto.h
31493 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31494 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31496 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31499 printf "%s\n" "#define USE_NGTCP2_CRYPTO_QUICTLS 1" >>confdefs.h
31501 USE_NGTCP2_CRYPTO_QUICTLS=1
31503 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_QUICTLS"
31504 export CURL_LIBRARY_PATH
31505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&5
31506 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&6;}
31513 LDFLAGS=$CLEANLDFLAGS
31514 CPPFLAGS=$CLEANCPPFLAGS
31521 if test X"$want_tcp2" != Xdefault; then
31522 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_quictls pkg-config file." "$LINENO" 5
31527 if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31528 CLEANLDFLAGS="$LDFLAGS"
31529 CLEANCPPFLAGS="$CPPFLAGS"
31533 if test -n "$PKG_CONFIG"; then
31534 PKGCONFIG="$PKG_CONFIG"
31536 if test -n "$ac_tool_prefix"; then
31537 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31538 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31540 printf %s "checking for $ac_word... " >&6; }
31541 if test ${ac_cv_path_PKGCONFIG+y}
31543 printf %s "(cached) " >&6
31547 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31551 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31552 for as_dir in $as_dummy
31555 case $as_dir in #(((
31558 *) as_dir=$as_dir/ ;;
31560 for ac_exec_ext in '' $ac_executable_extensions; do
31561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31562 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31573 PKGCONFIG=$ac_cv_path_PKGCONFIG
31574 if test -n "$PKGCONFIG"; then
31575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31576 printf "%s\n" "$PKGCONFIG" >&6; }
31578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31579 printf "%s\n" "no" >&6; }
31584 if test -z "$ac_cv_path_PKGCONFIG"; then
31585 ac_pt_PKGCONFIG=$PKGCONFIG
31586 # Extract the first word of "pkg-config", so it can be a program name with args.
31587 set dummy pkg-config; ac_word=$2
31588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31589 printf %s "checking for $ac_word... " >&6; }
31590 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31592 printf %s "(cached) " >&6
31594 case $ac_pt_PKGCONFIG in
31596 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31600 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31601 for as_dir in $as_dummy
31604 case $as_dir in #(((
31607 *) as_dir=$as_dir/ ;;
31609 for ac_exec_ext in '' $ac_executable_extensions; do
31610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31611 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31622 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31623 if test -n "$ac_pt_PKGCONFIG"; then
31624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31625 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31628 printf "%s\n" "no" >&6; }
31631 if test "x$ac_pt_PKGCONFIG" = x; then
31634 case $cross_compiling:$ac_tool_warned in
31636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31638 ac_tool_warned=yes ;;
31640 PKGCONFIG=$ac_pt_PKGCONFIG
31643 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31648 if test "x$PKGCONFIG" != "xno"; then
31649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
31650 printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
31652 if test -n "$want_tcp2_path"; then
31653 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31654 export PKG_CONFIG_LIBDIR
31656 $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
31658 if test -z "$itexists"; then
31660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31661 printf "%s\n" "no" >&6; }
31663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31664 printf "%s\n" "found" >&6; }
31669 if test "$PKGCONFIG" != "no" ; then
31670 LIB_NGTCP2_CRYPTO_GNUTLS=`
31671 if test -n "$want_tcp2_path"; then
31672 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31673 export PKG_CONFIG_LIBDIR
31676 $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
31677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
31678 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
31680 CPP_NGTCP2_CRYPTO_GNUTLS=`
31681 if test -n "$want_tcp2_path"; then
31682 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31683 export PKG_CONFIG_LIBDIR
31685 $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
31686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
31687 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
31689 LD_NGTCP2_CRYPTO_GNUTLS=`
31690 if test -n "$want_tcp2_path"; then
31691 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31692 export PKG_CONFIG_LIBDIR
31695 $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
31696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
31697 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
31699 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
31700 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
31701 LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
31703 if test "x$cross_compiling" != "xyes"; then
31704 DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
31706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5
31707 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; }
31708 if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y}
31710 printf %s "(cached) " >&6
31712 ac_check_lib_save_LIBS=$LIBS
31713 LIBS="-lngtcp2_crypto_gnutls $LIBS"
31714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31715 /* end confdefs.h. */
31721 char ngtcp2_crypto_recv_client_initial_cb ();
31724 return ngtcp2_crypto_recv_client_initial_cb ();
31729 if ac_fn_c_try_link "$LINENO"
31731 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes
31733 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no
31735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31736 conftest$ac_exeext conftest.$ac_ext
31737 LIBS=$ac_check_lib_save_LIBS
31739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5
31740 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31741 if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31744 for ac_header in ngtcp2/ngtcp2_crypto.h
31746 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31747 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31749 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31752 printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
31754 USE_NGTCP2_CRYPTO_GNUTLS=1
31756 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
31757 export CURL_LIBRARY_PATH
31758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
31759 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
31766 LDFLAGS=$CLEANLDFLAGS
31767 CPPFLAGS=$CLEANCPPFLAGS
31774 if test X"$want_tcp2" != Xdefault; then
31775 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
31780 if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
31781 CLEANLDFLAGS="$LDFLAGS"
31782 CLEANCPPFLAGS="$CPPFLAGS"
31786 if test -n "$PKG_CONFIG"; then
31787 PKGCONFIG="$PKG_CONFIG"
31789 if test -n "$ac_tool_prefix"; then
31790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31791 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31793 printf %s "checking for $ac_word... " >&6; }
31794 if test ${ac_cv_path_PKGCONFIG+y}
31796 printf %s "(cached) " >&6
31800 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31804 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31805 for as_dir in $as_dummy
31808 case $as_dir in #(((
31811 *) as_dir=$as_dir/ ;;
31813 for ac_exec_ext in '' $ac_executable_extensions; do
31814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31815 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31826 PKGCONFIG=$ac_cv_path_PKGCONFIG
31827 if test -n "$PKGCONFIG"; then
31828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31829 printf "%s\n" "$PKGCONFIG" >&6; }
31831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31832 printf "%s\n" "no" >&6; }
31837 if test -z "$ac_cv_path_PKGCONFIG"; then
31838 ac_pt_PKGCONFIG=$PKGCONFIG
31839 # Extract the first word of "pkg-config", so it can be a program name with args.
31840 set dummy pkg-config; ac_word=$2
31841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31842 printf %s "checking for $ac_word... " >&6; }
31843 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31845 printf %s "(cached) " >&6
31847 case $ac_pt_PKGCONFIG in
31849 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31853 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31854 for as_dir in $as_dummy
31857 case $as_dir in #(((
31860 *) as_dir=$as_dir/ ;;
31862 for ac_exec_ext in '' $ac_executable_extensions; do
31863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31864 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31875 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31876 if test -n "$ac_pt_PKGCONFIG"; then
31877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31878 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31881 printf "%s\n" "no" >&6; }
31884 if test "x$ac_pt_PKGCONFIG" = x; then
31887 case $cross_compiling:$ac_tool_warned in
31889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31891 ac_tool_warned=yes ;;
31893 PKGCONFIG=$ac_pt_PKGCONFIG
31896 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31901 if test "x$PKGCONFIG" != "xno"; then
31902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5
31903 printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; }
31905 if test -n "$want_tcp2_path"; then
31906 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31907 export PKG_CONFIG_LIBDIR
31909 $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1`
31911 if test -z "$itexists"; then
31913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31914 printf "%s\n" "no" >&6; }
31916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31917 printf "%s\n" "found" >&6; }
31922 if test "$PKGCONFIG" != "no" ; then
31923 LIB_NGTCP2_CRYPTO_WOLFSSL=`
31924 if test -n "$want_tcp2_path"; then
31925 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31926 export PKG_CONFIG_LIBDIR
31929 $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
31930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5
31931 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31933 CPP_NGTCP2_CRYPTO_WOLFSSL=`
31934 if test -n "$want_tcp2_path"; then
31935 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31936 export PKG_CONFIG_LIBDIR
31938 $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
31939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5
31940 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31942 LD_NGTCP2_CRYPTO_WOLFSSL=`
31943 if test -n "$want_tcp2_path"; then
31944 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31945 export PKG_CONFIG_LIBDIR
31948 $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
31949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5
31950 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31952 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL"
31953 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
31954 LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
31956 if test "x$cross_compiling" != "xyes"; then
31957 DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
31959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5
31960 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; }
31961 if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y}
31963 printf %s "(cached) " >&6
31965 ac_check_lib_save_LIBS=$LIBS
31966 LIBS="-lngtcp2_crypto_wolfssl $LIBS"
31967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31968 /* end confdefs.h. */
31974 char ngtcp2_crypto_recv_client_initial_cb ();
31977 return ngtcp2_crypto_recv_client_initial_cb ();
31982 if ac_fn_c_try_link "$LINENO"
31984 ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes
31986 ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no
31988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31989 conftest$ac_exeext conftest.$ac_ext
31990 LIBS=$ac_check_lib_save_LIBS
31992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31993 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31994 if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31997 for ac_header in ngtcp2/ngtcp2_crypto.h
31999 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
32000 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
32002 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
32005 printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h
32007 USE_NGTCP2_CRYPTO_WOLFSSL=1
32009 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
32010 export CURL_LIBRARY_PATH
32011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5
32012 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;}
32019 LDFLAGS=$CLEANLDFLAGS
32020 CPPFLAGS=$CLEANCPPFLAGS
32027 if test X"$want_tcp2" != Xdefault; then
32028 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5
32036 if test "x$NGTCP2_ENABLED" = "x"; then
32037 # without ngtcp2, nghttp3 is of no use for us
32042 # Check whether --with-nghttp3 was given.
32043 if test ${with_nghttp3+y}
32045 withval=$with_nghttp3; OPT_NGHTTP3=$withval
32048 case "$OPT_NGHTTP3" in
32053 want_nghttp3="default"
32054 want_nghttp3_path=""
32058 want_nghttp3_path="$withval/lib/pkgconfig"
32062 curl_http3_msg="no (--with-nghttp3)"
32063 if test X"$want_nghttp3" != Xno; then
32064 CLEANLDFLAGS="$LDFLAGS"
32065 CLEANCPPFLAGS="$CPPFLAGS"
32069 if test -n "$PKG_CONFIG"; then
32070 PKGCONFIG="$PKG_CONFIG"
32072 if test -n "$ac_tool_prefix"; then
32073 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32074 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32076 printf %s "checking for $ac_word... " >&6; }
32077 if test ${ac_cv_path_PKGCONFIG+y}
32079 printf %s "(cached) " >&6
32083 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32087 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32088 for as_dir in $as_dummy
32091 case $as_dir in #(((
32094 *) as_dir=$as_dir/ ;;
32096 for ac_exec_ext in '' $ac_executable_extensions; do
32097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32098 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32109 PKGCONFIG=$ac_cv_path_PKGCONFIG
32110 if test -n "$PKGCONFIG"; then
32111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32112 printf "%s\n" "$PKGCONFIG" >&6; }
32114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32115 printf "%s\n" "no" >&6; }
32120 if test -z "$ac_cv_path_PKGCONFIG"; then
32121 ac_pt_PKGCONFIG=$PKGCONFIG
32122 # Extract the first word of "pkg-config", so it can be a program name with args.
32123 set dummy pkg-config; ac_word=$2
32124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32125 printf %s "checking for $ac_word... " >&6; }
32126 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32128 printf %s "(cached) " >&6
32130 case $ac_pt_PKGCONFIG in
32132 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32136 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32137 for as_dir in $as_dummy
32140 case $as_dir in #(((
32143 *) as_dir=$as_dir/ ;;
32145 for ac_exec_ext in '' $ac_executable_extensions; do
32146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32147 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32158 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32159 if test -n "$ac_pt_PKGCONFIG"; then
32160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32161 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32164 printf "%s\n" "no" >&6; }
32167 if test "x$ac_pt_PKGCONFIG" = x; then
32170 case $cross_compiling:$ac_tool_warned in
32172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32174 ac_tool_warned=yes ;;
32176 PKGCONFIG=$ac_pt_PKGCONFIG
32179 PKGCONFIG="$ac_cv_path_PKGCONFIG"
32184 if test "x$PKGCONFIG" != "xno"; then
32185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
32186 printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
32188 if test -n "$want_nghttp3_path"; then
32189 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32190 export PKG_CONFIG_LIBDIR
32192 $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
32194 if test -z "$itexists"; then
32196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32197 printf "%s\n" "no" >&6; }
32199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32200 printf "%s\n" "found" >&6; }
32205 if test "$PKGCONFIG" != "no" ; then
32207 if test -n "$want_nghttp3_path"; then
32208 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32209 export PKG_CONFIG_LIBDIR
32212 $PKGCONFIG --libs-only-l libnghttp3`
32213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
32214 printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
32217 if test -n "$want_nghttp3_path"; then
32218 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32219 export PKG_CONFIG_LIBDIR
32221 $PKGCONFIG --cflags-only-I libnghttp3`
32222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
32223 printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
32226 if test -n "$want_nghttp3_path"; then
32227 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
32228 export PKG_CONFIG_LIBDIR
32231 $PKGCONFIG --libs-only-L libnghttp3`
32232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
32233 printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
32235 LDFLAGS="$LDFLAGS $LD_NGHTTP3"
32236 CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
32237 LIBS="$LIB_NGHTTP3 $LIBS"
32239 if test "x$cross_compiling" != "xyes"; then
32240 DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
32242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
32243 printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
32244 if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
32246 printf %s "(cached) " >&6
32248 ac_check_lib_save_LIBS=$LIBS
32249 LIBS="-lnghttp3 $LIBS"
32250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32251 /* end confdefs.h. */
32257 char nghttp3_conn_client_new_versioned ();
32260 return nghttp3_conn_client_new_versioned ();
32265 if ac_fn_c_try_link "$LINENO"
32267 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
32269 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
32271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32272 conftest$ac_exeext conftest.$ac_ext
32273 LIBS=$ac_check_lib_save_LIBS
32275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
32276 printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
32277 if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
32280 for ac_header in nghttp3/nghttp3.h
32282 ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
32283 if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
32285 printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
32286 curl_h3_msg="enabled (ngtcp2 + nghttp3)"
32289 printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
32293 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
32294 export CURL_LIBRARY_PATH
32295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
32296 printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
32303 LDFLAGS=$CLEANLDFLAGS
32304 CPPFLAGS=$CLEANCPPFLAGS
32311 if test X"$want_nghttp3" != Xdefault; then
32312 as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
32321 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32322 # without HTTP or with ngtcp2, quiche is no use
32327 # Check whether --with-quiche was given.
32328 if test ${with_quiche+y}
32330 withval=$with_quiche; OPT_QUICHE=$withval
32333 case "$OPT_QUICHE" in
32338 want_quiche="default"
32339 want_quiche_path=""
32343 want_quiche_path="$withval"
32347 if test X"$want_quiche" != Xno; then
32349 if test "$NGHTTP3_ENABLED" = 1; then
32350 as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32353 CLEANLDFLAGS="$LDFLAGS"
32354 CLEANCPPFLAGS="$CPPFLAGS"
32358 if test -n "$PKG_CONFIG"; then
32359 PKGCONFIG="$PKG_CONFIG"
32361 if test -n "$ac_tool_prefix"; then
32362 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32363 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32365 printf %s "checking for $ac_word... " >&6; }
32366 if test ${ac_cv_path_PKGCONFIG+y}
32368 printf %s "(cached) " >&6
32372 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32376 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32377 for as_dir in $as_dummy
32380 case $as_dir in #(((
32383 *) as_dir=$as_dir/ ;;
32385 for ac_exec_ext in '' $ac_executable_extensions; do
32386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32387 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32398 PKGCONFIG=$ac_cv_path_PKGCONFIG
32399 if test -n "$PKGCONFIG"; then
32400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32401 printf "%s\n" "$PKGCONFIG" >&6; }
32403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32404 printf "%s\n" "no" >&6; }
32409 if test -z "$ac_cv_path_PKGCONFIG"; then
32410 ac_pt_PKGCONFIG=$PKGCONFIG
32411 # Extract the first word of "pkg-config", so it can be a program name with args.
32412 set dummy pkg-config; ac_word=$2
32413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32414 printf %s "checking for $ac_word... " >&6; }
32415 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32417 printf %s "(cached) " >&6
32419 case $ac_pt_PKGCONFIG in
32421 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32425 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32426 for as_dir in $as_dummy
32429 case $as_dir in #(((
32432 *) as_dir=$as_dir/ ;;
32434 for ac_exec_ext in '' $ac_executable_extensions; do
32435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32436 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32447 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32448 if test -n "$ac_pt_PKGCONFIG"; then
32449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32450 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32453 printf "%s\n" "no" >&6; }
32456 if test "x$ac_pt_PKGCONFIG" = x; then
32459 case $cross_compiling:$ac_tool_warned in
32461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32463 ac_tool_warned=yes ;;
32465 PKGCONFIG=$ac_pt_PKGCONFIG
32468 PKGCONFIG="$ac_cv_path_PKGCONFIG"
32473 if test "x$PKGCONFIG" != "xno"; then
32474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
32475 printf %s "checking for quiche options with pkg-config... " >&6; }
32477 if test -n "$want_quiche_path"; then
32478 PKG_CONFIG_LIBDIR="$want_quiche_path"
32479 export PKG_CONFIG_LIBDIR
32481 $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
32483 if test -z "$itexists"; then
32485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32486 printf "%s\n" "no" >&6; }
32488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32489 printf "%s\n" "found" >&6; }
32494 if test "$PKGCONFIG" != "no" ; then
32496 if test -n "$want_quiche_path"; then
32497 PKG_CONFIG_LIBDIR="$want_quiche_path"
32498 export PKG_CONFIG_LIBDIR
32501 $PKGCONFIG --libs-only-l quiche`
32502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
32503 printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
32506 if test -n "$want_quiche_path"; then
32507 PKG_CONFIG_LIBDIR="$want_quiche_path"
32508 export PKG_CONFIG_LIBDIR
32510 $PKGCONFIG --cflags-only-I quiche`
32511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
32512 printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
32515 if test -n "$want_quiche_path"; then
32516 PKG_CONFIG_LIBDIR="$want_quiche_path"
32517 export PKG_CONFIG_LIBDIR
32520 $PKGCONFIG --libs-only-L quiche`
32521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
32522 printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
32524 LDFLAGS="$LDFLAGS $LD_QUICHE"
32525 CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
32526 LIBS="$LIB_QUICHE $LIBS"
32528 if test "x$cross_compiling" != "xyes"; then
32529 DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
32531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_conn_send_ack_eliciting in -lquiche" >&5
32532 printf %s "checking for quiche_conn_send_ack_eliciting in -lquiche... " >&6; }
32533 if test ${ac_cv_lib_quiche_quiche_conn_send_ack_eliciting+y}
32535 printf %s "(cached) " >&6
32537 ac_check_lib_save_LIBS=$LIBS
32538 LIBS="-lquiche $LIBS"
32539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32540 /* end confdefs.h. */
32546 char quiche_conn_send_ack_eliciting ();
32549 return quiche_conn_send_ack_eliciting ();
32554 if ac_fn_c_try_link "$LINENO"
32556 ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=yes
32558 ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=no
32560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32561 conftest$ac_exeext conftest.$ac_ext
32562 LIBS=$ac_check_lib_save_LIBS
32564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&5
32565 printf "%s\n" "$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&6; }
32566 if test "x$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" = xyes
32569 for ac_header in quiche.h
32571 ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
32572 $ac_includes_default
32573 #include <sys/socket.h>
32577 if test "x$ac_cv_header_quiche_h" = xyes
32579 printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
32580 experimental="$experimental HTTP3"
32581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32582 printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32583 curl_h3_msg="enabled (quiche)"
32586 printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
32590 ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
32591 if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
32593 printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
32597 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
32598 export CURL_LIBRARY_PATH
32599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
32600 printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
32606 as_fn_error $? "couldn't use quiche" "$LINENO" 5
32611 if test X"$want_quiche" != Xdefault; then
32612 as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
32620 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32621 # without HTTP or with ngtcp2, msh3 is no use
32626 # Check whether --with-msh3 was given.
32627 if test ${with_msh3+y}
32629 withval=$with_msh3; OPT_MSH3=$withval
32632 case "$OPT_MSH3" in
32637 want_msh3="default"
32642 want_msh3_path="$withval"
32646 if test X"$want_msh3" != Xno; then
32648 if test "$NGHTTP3_ENABLED" = 1; then
32649 as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32652 CLEANLDFLAGS="$LDFLAGS"
32653 CLEANCPPFLAGS="$CPPFLAGS"
32656 if test -n "$want_msh3_path"; then
32657 LD_MSH3="-L$want_msh3_path/lib"
32658 CPP_MSH3="-I$want_msh3_path/include"
32659 DIR_MSH3="$want_msh3_path/lib"
32660 LDFLAGS="$LDFLAGS $LD_MSH3"
32661 CPPFLAGS="$CPPFLAGS $CPP_MSH3"
32663 LIBS="-lmsh3 $LIBS"
32665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5
32666 printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; }
32667 if test ${ac_cv_lib_msh3_MsH3ApiOpen+y}
32669 printf %s "(cached) " >&6
32671 ac_check_lib_save_LIBS=$LIBS
32672 LIBS="-lmsh3 $LIBS"
32673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32674 /* end confdefs.h. */
32680 char MsH3ApiOpen ();
32683 return MsH3ApiOpen ();
32688 if ac_fn_c_try_link "$LINENO"
32690 ac_cv_lib_msh3_MsH3ApiOpen=yes
32692 ac_cv_lib_msh3_MsH3ApiOpen=no
32694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32695 conftest$ac_exeext conftest.$ac_ext
32696 LIBS=$ac_check_lib_save_LIBS
32698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5
32699 printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; }
32700 if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes
32703 for ac_header in msh3.h
32705 ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default"
32706 if test "x$ac_cv_header_msh3_h" = xyes
32708 printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h
32709 curl_h3_msg="enabled (msh3)"
32712 printf "%s\n" "#define USE_MSH3 1" >>confdefs.h
32716 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
32717 export CURL_LIBRARY_PATH
32718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5
32719 printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;}
32721 experimental="$experimental HTTP3"
32728 LDFLAGS=$CLEANLDFLAGS
32729 CPPFLAGS=$CLEANCPPFLAGS
32737 OPT_ZSH_FPATH=default
32739 # Check whether --with-zsh-functions-dir was given.
32740 if test ${with_zsh_functions_dir+y}
32742 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
32745 case "$OPT_ZSH_FPATH" in
32749 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
32753 ZSH_FUNCTIONS_DIR="$withval"
32759 OPT_FISH_FPATH=default
32761 # Check whether --with-fish-functions-dir was given.
32762 if test ${with_fish_functions_dir+y}
32764 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
32767 case "$OPT_FISH_FPATH" in
32772 if test -n "$PKG_CONFIG"; then
32773 PKGCONFIG="$PKG_CONFIG"
32775 if test -n "$ac_tool_prefix"; then
32776 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32777 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32779 printf %s "checking for $ac_word... " >&6; }
32780 if test ${ac_cv_path_PKGCONFIG+y}
32782 printf %s "(cached) " >&6
32786 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32790 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32791 for as_dir in $as_dummy
32794 case $as_dir in #(((
32797 *) as_dir=$as_dir/ ;;
32799 for ac_exec_ext in '' $ac_executable_extensions; do
32800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32801 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32812 PKGCONFIG=$ac_cv_path_PKGCONFIG
32813 if test -n "$PKGCONFIG"; then
32814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32815 printf "%s\n" "$PKGCONFIG" >&6; }
32817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32818 printf "%s\n" "no" >&6; }
32823 if test -z "$ac_cv_path_PKGCONFIG"; then
32824 ac_pt_PKGCONFIG=$PKGCONFIG
32825 # Extract the first word of "pkg-config", so it can be a program name with args.
32826 set dummy pkg-config; ac_word=$2
32827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32828 printf %s "checking for $ac_word... " >&6; }
32829 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32831 printf %s "(cached) " >&6
32833 case $ac_pt_PKGCONFIG in
32835 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32839 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32840 for as_dir in $as_dummy
32843 case $as_dir in #(((
32846 *) as_dir=$as_dir/ ;;
32848 for ac_exec_ext in '' $ac_executable_extensions; do
32849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32850 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32861 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32862 if test -n "$ac_pt_PKGCONFIG"; then
32863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32864 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32867 printf "%s\n" "no" >&6; }
32870 if test "x$ac_pt_PKGCONFIG" = x; then
32873 case $cross_compiling:$ac_tool_warned in
32875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32877 ac_tool_warned=yes ;;
32879 PKGCONFIG=$ac_pt_PKGCONFIG
32882 PKGCONFIG="$ac_cv_path_PKGCONFIG"
32887 if test "x$PKGCONFIG" != "xno"; then
32888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
32889 printf %s "checking for fish options with pkg-config... " >&6; }
32891 if test -n ""; then
32892 PKG_CONFIG_LIBDIR=""
32893 export PKG_CONFIG_LIBDIR
32895 $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
32897 if test -z "$itexists"; then
32899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32900 printf "%s\n" "no" >&6; }
32902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32903 printf "%s\n" "found" >&6; }
32907 if test "$PKGCONFIG" != "no" ; then
32908 FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
32910 FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
32915 FISH_FUNCTIONS_DIR="$withval"
32920 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
32921 #ifdef HAVE_SYS_TYPES_H
32922 #include <sys/types.h>
32924 #ifdef HAVE_SYS_TIME_H
32925 #include <sys/time.h>
32927 #ifdef HAVE_SYS_SELECT_H
32928 #include <sys/select.h>
32929 #elif defined(HAVE_UNISTD_H)
32930 #include <unistd.h>
32932 #ifdef HAVE_SYS_SOCKET_H
32933 #include <sys/socket.h>
32935 #ifdef HAVE_NETINET_IN_H
32936 #include <netinet/in.h>
32938 #ifdef HAVE_NETINET_IN6_H
32939 #include <netinet/in6.h>
32941 #ifdef HAVE_SYS_UN_H
32942 #include <sys/un.h>
32947 if test "x$ac_cv_header_sys_types_h" = xyes
32949 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32952 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
32953 #ifdef HAVE_SYS_TYPES_H
32954 #include <sys/types.h>
32956 #ifdef HAVE_SYS_TIME_H
32957 #include <sys/time.h>
32959 #ifdef HAVE_SYS_SELECT_H
32960 #include <sys/select.h>
32961 #elif defined(HAVE_UNISTD_H)
32962 #include <unistd.h>
32964 #ifdef HAVE_SYS_SOCKET_H
32965 #include <sys/socket.h>
32967 #ifdef HAVE_NETINET_IN_H
32968 #include <netinet/in.h>
32970 #ifdef HAVE_NETINET_IN6_H
32971 #include <netinet/in6.h>
32973 #ifdef HAVE_SYS_UN_H
32974 #include <sys/un.h>
32979 if test "x$ac_cv_header_sys_time_h" = xyes
32981 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
32984 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
32985 #ifdef HAVE_SYS_TYPES_H
32986 #include <sys/types.h>
32988 #ifdef HAVE_SYS_TIME_H
32989 #include <sys/time.h>
32991 #ifdef HAVE_SYS_SELECT_H
32992 #include <sys/select.h>
32993 #elif defined(HAVE_UNISTD_H)
32994 #include <unistd.h>
32996 #ifdef HAVE_SYS_SOCKET_H
32997 #include <sys/socket.h>
32999 #ifdef HAVE_NETINET_IN_H
33000 #include <netinet/in.h>
33002 #ifdef HAVE_NETINET_IN6_H
33003 #include <netinet/in6.h>
33005 #ifdef HAVE_SYS_UN_H
33006 #include <sys/un.h>
33011 if test "x$ac_cv_header_sys_select_h" = xyes
33013 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
33016 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
33017 #ifdef HAVE_SYS_TYPES_H
33018 #include <sys/types.h>
33020 #ifdef HAVE_SYS_TIME_H
33021 #include <sys/time.h>
33023 #ifdef HAVE_SYS_SELECT_H
33024 #include <sys/select.h>
33025 #elif defined(HAVE_UNISTD_H)
33026 #include <unistd.h>
33028 #ifdef HAVE_SYS_SOCKET_H
33029 #include <sys/socket.h>
33031 #ifdef HAVE_NETINET_IN_H
33032 #include <netinet/in.h>
33034 #ifdef HAVE_NETINET_IN6_H
33035 #include <netinet/in6.h>
33037 #ifdef HAVE_SYS_UN_H
33038 #include <sys/un.h>
33043 if test "x$ac_cv_header_sys_socket_h" = xyes
33045 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33048 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
33049 #ifdef HAVE_SYS_TYPES_H
33050 #include <sys/types.h>
33052 #ifdef HAVE_SYS_TIME_H
33053 #include <sys/time.h>
33055 #ifdef HAVE_SYS_SELECT_H
33056 #include <sys/select.h>
33057 #elif defined(HAVE_UNISTD_H)
33058 #include <unistd.h>
33060 #ifdef HAVE_SYS_SOCKET_H
33061 #include <sys/socket.h>
33063 #ifdef HAVE_NETINET_IN_H
33064 #include <netinet/in.h>
33066 #ifdef HAVE_NETINET_IN6_H
33067 #include <netinet/in6.h>
33069 #ifdef HAVE_SYS_UN_H
33070 #include <sys/un.h>
33075 if test "x$ac_cv_header_sys_ioctl_h" = xyes
33077 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
33080 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
33081 #ifdef HAVE_SYS_TYPES_H
33082 #include <sys/types.h>
33084 #ifdef HAVE_SYS_TIME_H
33085 #include <sys/time.h>
33087 #ifdef HAVE_SYS_SELECT_H
33088 #include <sys/select.h>
33089 #elif defined(HAVE_UNISTD_H)
33090 #include <unistd.h>
33092 #ifdef HAVE_SYS_SOCKET_H
33093 #include <sys/socket.h>
33095 #ifdef HAVE_NETINET_IN_H
33096 #include <netinet/in.h>
33098 #ifdef HAVE_NETINET_IN6_H
33099 #include <netinet/in6.h>
33101 #ifdef HAVE_SYS_UN_H
33102 #include <sys/un.h>
33107 if test "x$ac_cv_header_unistd_h" = xyes
33109 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
33112 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
33113 #ifdef HAVE_SYS_TYPES_H
33114 #include <sys/types.h>
33116 #ifdef HAVE_SYS_TIME_H
33117 #include <sys/time.h>
33119 #ifdef HAVE_SYS_SELECT_H
33120 #include <sys/select.h>
33121 #elif defined(HAVE_UNISTD_H)
33122 #include <unistd.h>
33124 #ifdef HAVE_SYS_SOCKET_H
33125 #include <sys/socket.h>
33127 #ifdef HAVE_NETINET_IN_H
33128 #include <netinet/in.h>
33130 #ifdef HAVE_NETINET_IN6_H
33131 #include <netinet/in6.h>
33133 #ifdef HAVE_SYS_UN_H
33134 #include <sys/un.h>
33139 if test "x$ac_cv_header_stdlib_h" = xyes
33141 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
33144 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
33145 #ifdef HAVE_SYS_TYPES_H
33146 #include <sys/types.h>
33148 #ifdef HAVE_SYS_TIME_H
33149 #include <sys/time.h>
33151 #ifdef HAVE_SYS_SELECT_H
33152 #include <sys/select.h>
33153 #elif defined(HAVE_UNISTD_H)
33154 #include <unistd.h>
33156 #ifdef HAVE_SYS_SOCKET_H
33157 #include <sys/socket.h>
33159 #ifdef HAVE_NETINET_IN_H
33160 #include <netinet/in.h>
33162 #ifdef HAVE_NETINET_IN6_H
33163 #include <netinet/in6.h>
33165 #ifdef HAVE_SYS_UN_H
33166 #include <sys/un.h>
33171 if test "x$ac_cv_header_arpa_inet_h" = xyes
33173 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
33176 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
33177 #ifdef HAVE_SYS_TYPES_H
33178 #include <sys/types.h>
33180 #ifdef HAVE_SYS_TIME_H
33181 #include <sys/time.h>
33183 #ifdef HAVE_SYS_SELECT_H
33184 #include <sys/select.h>
33185 #elif defined(HAVE_UNISTD_H)
33186 #include <unistd.h>
33188 #ifdef HAVE_SYS_SOCKET_H
33189 #include <sys/socket.h>
33191 #ifdef HAVE_NETINET_IN_H
33192 #include <netinet/in.h>
33194 #ifdef HAVE_NETINET_IN6_H
33195 #include <netinet/in6.h>
33197 #ifdef HAVE_SYS_UN_H
33198 #include <sys/un.h>
33203 if test "x$ac_cv_header_net_if_h" = xyes
33205 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
33208 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
33209 #ifdef HAVE_SYS_TYPES_H
33210 #include <sys/types.h>
33212 #ifdef HAVE_SYS_TIME_H
33213 #include <sys/time.h>
33215 #ifdef HAVE_SYS_SELECT_H
33216 #include <sys/select.h>
33217 #elif defined(HAVE_UNISTD_H)
33218 #include <unistd.h>
33220 #ifdef HAVE_SYS_SOCKET_H
33221 #include <sys/socket.h>
33223 #ifdef HAVE_NETINET_IN_H
33224 #include <netinet/in.h>
33226 #ifdef HAVE_NETINET_IN6_H
33227 #include <netinet/in6.h>
33229 #ifdef HAVE_SYS_UN_H
33230 #include <sys/un.h>
33235 if test "x$ac_cv_header_netinet_in_h" = xyes
33237 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
33240 ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
33241 #ifdef HAVE_SYS_TYPES_H
33242 #include <sys/types.h>
33244 #ifdef HAVE_SYS_TIME_H
33245 #include <sys/time.h>
33247 #ifdef HAVE_SYS_SELECT_H
33248 #include <sys/select.h>
33249 #elif defined(HAVE_UNISTD_H)
33250 #include <unistd.h>
33252 #ifdef HAVE_SYS_SOCKET_H
33253 #include <sys/socket.h>
33255 #ifdef HAVE_NETINET_IN_H
33256 #include <netinet/in.h>
33258 #ifdef HAVE_NETINET_IN6_H
33259 #include <netinet/in6.h>
33261 #ifdef HAVE_SYS_UN_H
33262 #include <sys/un.h>
33267 if test "x$ac_cv_header_netinet_in6_h" = xyes
33269 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
33272 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
33273 #ifdef HAVE_SYS_TYPES_H
33274 #include <sys/types.h>
33276 #ifdef HAVE_SYS_TIME_H
33277 #include <sys/time.h>
33279 #ifdef HAVE_SYS_SELECT_H
33280 #include <sys/select.h>
33281 #elif defined(HAVE_UNISTD_H)
33282 #include <unistd.h>
33284 #ifdef HAVE_SYS_SOCKET_H
33285 #include <sys/socket.h>
33287 #ifdef HAVE_NETINET_IN_H
33288 #include <netinet/in.h>
33290 #ifdef HAVE_NETINET_IN6_H
33291 #include <netinet/in6.h>
33293 #ifdef HAVE_SYS_UN_H
33294 #include <sys/un.h>
33299 if test "x$ac_cv_header_sys_un_h" = xyes
33301 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
33304 ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
33305 #ifdef HAVE_SYS_TYPES_H
33306 #include <sys/types.h>
33308 #ifdef HAVE_SYS_TIME_H
33309 #include <sys/time.h>
33311 #ifdef HAVE_SYS_SELECT_H
33312 #include <sys/select.h>
33313 #elif defined(HAVE_UNISTD_H)
33314 #include <unistd.h>
33316 #ifdef HAVE_SYS_SOCKET_H
33317 #include <sys/socket.h>
33319 #ifdef HAVE_NETINET_IN_H
33320 #include <netinet/in.h>
33322 #ifdef HAVE_NETINET_IN6_H
33323 #include <netinet/in6.h>
33325 #ifdef HAVE_SYS_UN_H
33326 #include <sys/un.h>
33331 if test "x$ac_cv_header_linux_tcp_h" = xyes
33333 printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
33336 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
33337 #ifdef HAVE_SYS_TYPES_H
33338 #include <sys/types.h>
33340 #ifdef HAVE_SYS_TIME_H
33341 #include <sys/time.h>
33343 #ifdef HAVE_SYS_SELECT_H
33344 #include <sys/select.h>
33345 #elif defined(HAVE_UNISTD_H)
33346 #include <unistd.h>
33348 #ifdef HAVE_SYS_SOCKET_H
33349 #include <sys/socket.h>
33351 #ifdef HAVE_NETINET_IN_H
33352 #include <netinet/in.h>
33354 #ifdef HAVE_NETINET_IN6_H
33355 #include <netinet/in6.h>
33357 #ifdef HAVE_SYS_UN_H
33358 #include <sys/un.h>
33363 if test "x$ac_cv_header_netinet_tcp_h" = xyes
33365 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
33368 ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
33369 #ifdef HAVE_SYS_TYPES_H
33370 #include <sys/types.h>
33372 #ifdef HAVE_SYS_TIME_H
33373 #include <sys/time.h>
33375 #ifdef HAVE_SYS_SELECT_H
33376 #include <sys/select.h>
33377 #elif defined(HAVE_UNISTD_H)
33378 #include <unistd.h>
33380 #ifdef HAVE_SYS_SOCKET_H
33381 #include <sys/socket.h>
33383 #ifdef HAVE_NETINET_IN_H
33384 #include <netinet/in.h>
33386 #ifdef HAVE_NETINET_IN6_H
33387 #include <netinet/in6.h>
33389 #ifdef HAVE_SYS_UN_H
33390 #include <sys/un.h>
33395 if test "x$ac_cv_header_netinet_udp_h" = xyes
33397 printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
33400 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
33401 #ifdef HAVE_SYS_TYPES_H
33402 #include <sys/types.h>
33404 #ifdef HAVE_SYS_TIME_H
33405 #include <sys/time.h>
33407 #ifdef HAVE_SYS_SELECT_H
33408 #include <sys/select.h>
33409 #elif defined(HAVE_UNISTD_H)
33410 #include <unistd.h>
33412 #ifdef HAVE_SYS_SOCKET_H
33413 #include <sys/socket.h>
33415 #ifdef HAVE_NETINET_IN_H
33416 #include <netinet/in.h>
33418 #ifdef HAVE_NETINET_IN6_H
33419 #include <netinet/in6.h>
33421 #ifdef HAVE_SYS_UN_H
33422 #include <sys/un.h>
33427 if test "x$ac_cv_header_netdb_h" = xyes
33429 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33432 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
33433 #ifdef HAVE_SYS_TYPES_H
33434 #include <sys/types.h>
33436 #ifdef HAVE_SYS_TIME_H
33437 #include <sys/time.h>
33439 #ifdef HAVE_SYS_SELECT_H
33440 #include <sys/select.h>
33441 #elif defined(HAVE_UNISTD_H)
33442 #include <unistd.h>
33444 #ifdef HAVE_SYS_SOCKET_H
33445 #include <sys/socket.h>
33447 #ifdef HAVE_NETINET_IN_H
33448 #include <netinet/in.h>
33450 #ifdef HAVE_NETINET_IN6_H
33451 #include <netinet/in6.h>
33453 #ifdef HAVE_SYS_UN_H
33454 #include <sys/un.h>
33459 if test "x$ac_cv_header_sys_sockio_h" = xyes
33461 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
33464 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
33465 #ifdef HAVE_SYS_TYPES_H
33466 #include <sys/types.h>
33468 #ifdef HAVE_SYS_TIME_H
33469 #include <sys/time.h>
33471 #ifdef HAVE_SYS_SELECT_H
33472 #include <sys/select.h>
33473 #elif defined(HAVE_UNISTD_H)
33474 #include <unistd.h>
33476 #ifdef HAVE_SYS_SOCKET_H
33477 #include <sys/socket.h>
33479 #ifdef HAVE_NETINET_IN_H
33480 #include <netinet/in.h>
33482 #ifdef HAVE_NETINET_IN6_H
33483 #include <netinet/in6.h>
33485 #ifdef HAVE_SYS_UN_H
33486 #include <sys/un.h>
33491 if test "x$ac_cv_header_sys_stat_h" = xyes
33493 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
33496 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
33497 #ifdef HAVE_SYS_TYPES_H
33498 #include <sys/types.h>
33500 #ifdef HAVE_SYS_TIME_H
33501 #include <sys/time.h>
33503 #ifdef HAVE_SYS_SELECT_H
33504 #include <sys/select.h>
33505 #elif defined(HAVE_UNISTD_H)
33506 #include <unistd.h>
33508 #ifdef HAVE_SYS_SOCKET_H
33509 #include <sys/socket.h>
33511 #ifdef HAVE_NETINET_IN_H
33512 #include <netinet/in.h>
33514 #ifdef HAVE_NETINET_IN6_H
33515 #include <netinet/in6.h>
33517 #ifdef HAVE_SYS_UN_H
33518 #include <sys/un.h>
33523 if test "x$ac_cv_header_sys_param_h" = xyes
33525 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
33528 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
33529 #ifdef HAVE_SYS_TYPES_H
33530 #include <sys/types.h>
33532 #ifdef HAVE_SYS_TIME_H
33533 #include <sys/time.h>
33535 #ifdef HAVE_SYS_SELECT_H
33536 #include <sys/select.h>
33537 #elif defined(HAVE_UNISTD_H)
33538 #include <unistd.h>
33540 #ifdef HAVE_SYS_SOCKET_H
33541 #include <sys/socket.h>
33543 #ifdef HAVE_NETINET_IN_H
33544 #include <netinet/in.h>
33546 #ifdef HAVE_NETINET_IN6_H
33547 #include <netinet/in6.h>
33549 #ifdef HAVE_SYS_UN_H
33550 #include <sys/un.h>
33555 if test "x$ac_cv_header_termios_h" = xyes
33557 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
33560 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
33561 #ifdef HAVE_SYS_TYPES_H
33562 #include <sys/types.h>
33564 #ifdef HAVE_SYS_TIME_H
33565 #include <sys/time.h>
33567 #ifdef HAVE_SYS_SELECT_H
33568 #include <sys/select.h>
33569 #elif defined(HAVE_UNISTD_H)
33570 #include <unistd.h>
33572 #ifdef HAVE_SYS_SOCKET_H
33573 #include <sys/socket.h>
33575 #ifdef HAVE_NETINET_IN_H
33576 #include <netinet/in.h>
33578 #ifdef HAVE_NETINET_IN6_H
33579 #include <netinet/in6.h>
33581 #ifdef HAVE_SYS_UN_H
33582 #include <sys/un.h>
33587 if test "x$ac_cv_header_termio_h" = xyes
33589 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
33592 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
33593 #ifdef HAVE_SYS_TYPES_H
33594 #include <sys/types.h>
33596 #ifdef HAVE_SYS_TIME_H
33597 #include <sys/time.h>
33599 #ifdef HAVE_SYS_SELECT_H
33600 #include <sys/select.h>
33601 #elif defined(HAVE_UNISTD_H)
33602 #include <unistd.h>
33604 #ifdef HAVE_SYS_SOCKET_H
33605 #include <sys/socket.h>
33607 #ifdef HAVE_NETINET_IN_H
33608 #include <netinet/in.h>
33610 #ifdef HAVE_NETINET_IN6_H
33611 #include <netinet/in6.h>
33613 #ifdef HAVE_SYS_UN_H
33614 #include <sys/un.h>
33619 if test "x$ac_cv_header_fcntl_h" = xyes
33621 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
33624 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
33625 #ifdef HAVE_SYS_TYPES_H
33626 #include <sys/types.h>
33628 #ifdef HAVE_SYS_TIME_H
33629 #include <sys/time.h>
33631 #ifdef HAVE_SYS_SELECT_H
33632 #include <sys/select.h>
33633 #elif defined(HAVE_UNISTD_H)
33634 #include <unistd.h>
33636 #ifdef HAVE_SYS_SOCKET_H
33637 #include <sys/socket.h>
33639 #ifdef HAVE_NETINET_IN_H
33640 #include <netinet/in.h>
33642 #ifdef HAVE_NETINET_IN6_H
33643 #include <netinet/in6.h>
33645 #ifdef HAVE_SYS_UN_H
33646 #include <sys/un.h>
33651 if test "x$ac_cv_header_io_h" = xyes
33653 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
33656 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
33657 #ifdef HAVE_SYS_TYPES_H
33658 #include <sys/types.h>
33660 #ifdef HAVE_SYS_TIME_H
33661 #include <sys/time.h>
33663 #ifdef HAVE_SYS_SELECT_H
33664 #include <sys/select.h>
33665 #elif defined(HAVE_UNISTD_H)
33666 #include <unistd.h>
33668 #ifdef HAVE_SYS_SOCKET_H
33669 #include <sys/socket.h>
33671 #ifdef HAVE_NETINET_IN_H
33672 #include <netinet/in.h>
33674 #ifdef HAVE_NETINET_IN6_H
33675 #include <netinet/in6.h>
33677 #ifdef HAVE_SYS_UN_H
33678 #include <sys/un.h>
33683 if test "x$ac_cv_header_pwd_h" = xyes
33685 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
33688 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
33689 #ifdef HAVE_SYS_TYPES_H
33690 #include <sys/types.h>
33692 #ifdef HAVE_SYS_TIME_H
33693 #include <sys/time.h>
33695 #ifdef HAVE_SYS_SELECT_H
33696 #include <sys/select.h>
33697 #elif defined(HAVE_UNISTD_H)
33698 #include <unistd.h>
33700 #ifdef HAVE_SYS_SOCKET_H
33701 #include <sys/socket.h>
33703 #ifdef HAVE_NETINET_IN_H
33704 #include <netinet/in.h>
33706 #ifdef HAVE_NETINET_IN6_H
33707 #include <netinet/in6.h>
33709 #ifdef HAVE_SYS_UN_H
33710 #include <sys/un.h>
33715 if test "x$ac_cv_header_utime_h" = xyes
33717 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
33720 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
33721 #ifdef HAVE_SYS_TYPES_H
33722 #include <sys/types.h>
33724 #ifdef HAVE_SYS_TIME_H
33725 #include <sys/time.h>
33727 #ifdef HAVE_SYS_SELECT_H
33728 #include <sys/select.h>
33729 #elif defined(HAVE_UNISTD_H)
33730 #include <unistd.h>
33732 #ifdef HAVE_SYS_SOCKET_H
33733 #include <sys/socket.h>
33735 #ifdef HAVE_NETINET_IN_H
33736 #include <netinet/in.h>
33738 #ifdef HAVE_NETINET_IN6_H
33739 #include <netinet/in6.h>
33741 #ifdef HAVE_SYS_UN_H
33742 #include <sys/un.h>
33747 if test "x$ac_cv_header_sys_utime_h" = xyes
33749 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
33752 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
33753 #ifdef HAVE_SYS_TYPES_H
33754 #include <sys/types.h>
33756 #ifdef HAVE_SYS_TIME_H
33757 #include <sys/time.h>
33759 #ifdef HAVE_SYS_SELECT_H
33760 #include <sys/select.h>
33761 #elif defined(HAVE_UNISTD_H)
33762 #include <unistd.h>
33764 #ifdef HAVE_SYS_SOCKET_H
33765 #include <sys/socket.h>
33767 #ifdef HAVE_NETINET_IN_H
33768 #include <netinet/in.h>
33770 #ifdef HAVE_NETINET_IN6_H
33771 #include <netinet/in6.h>
33773 #ifdef HAVE_SYS_UN_H
33774 #include <sys/un.h>
33779 if test "x$ac_cv_header_sys_poll_h" = xyes
33781 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
33784 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
33785 #ifdef HAVE_SYS_TYPES_H
33786 #include <sys/types.h>
33788 #ifdef HAVE_SYS_TIME_H
33789 #include <sys/time.h>
33791 #ifdef HAVE_SYS_SELECT_H
33792 #include <sys/select.h>
33793 #elif defined(HAVE_UNISTD_H)
33794 #include <unistd.h>
33796 #ifdef HAVE_SYS_SOCKET_H
33797 #include <sys/socket.h>
33799 #ifdef HAVE_NETINET_IN_H
33800 #include <netinet/in.h>
33802 #ifdef HAVE_NETINET_IN6_H
33803 #include <netinet/in6.h>
33805 #ifdef HAVE_SYS_UN_H
33806 #include <sys/un.h>
33811 if test "x$ac_cv_header_poll_h" = xyes
33813 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
33816 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
33817 #ifdef HAVE_SYS_TYPES_H
33818 #include <sys/types.h>
33820 #ifdef HAVE_SYS_TIME_H
33821 #include <sys/time.h>
33823 #ifdef HAVE_SYS_SELECT_H
33824 #include <sys/select.h>
33825 #elif defined(HAVE_UNISTD_H)
33826 #include <unistd.h>
33828 #ifdef HAVE_SYS_SOCKET_H
33829 #include <sys/socket.h>
33831 #ifdef HAVE_NETINET_IN_H
33832 #include <netinet/in.h>
33834 #ifdef HAVE_NETINET_IN6_H
33835 #include <netinet/in6.h>
33837 #ifdef HAVE_SYS_UN_H
33838 #include <sys/un.h>
33843 if test "x$ac_cv_header_socket_h" = xyes
33845 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
33848 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
33849 #ifdef HAVE_SYS_TYPES_H
33850 #include <sys/types.h>
33852 #ifdef HAVE_SYS_TIME_H
33853 #include <sys/time.h>
33855 #ifdef HAVE_SYS_SELECT_H
33856 #include <sys/select.h>
33857 #elif defined(HAVE_UNISTD_H)
33858 #include <unistd.h>
33860 #ifdef HAVE_SYS_SOCKET_H
33861 #include <sys/socket.h>
33863 #ifdef HAVE_NETINET_IN_H
33864 #include <netinet/in.h>
33866 #ifdef HAVE_NETINET_IN6_H
33867 #include <netinet/in6.h>
33869 #ifdef HAVE_SYS_UN_H
33870 #include <sys/un.h>
33875 if test "x$ac_cv_header_sys_resource_h" = xyes
33877 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
33880 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
33881 #ifdef HAVE_SYS_TYPES_H
33882 #include <sys/types.h>
33884 #ifdef HAVE_SYS_TIME_H
33885 #include <sys/time.h>
33887 #ifdef HAVE_SYS_SELECT_H
33888 #include <sys/select.h>
33889 #elif defined(HAVE_UNISTD_H)
33890 #include <unistd.h>
33892 #ifdef HAVE_SYS_SOCKET_H
33893 #include <sys/socket.h>
33895 #ifdef HAVE_NETINET_IN_H
33896 #include <netinet/in.h>
33898 #ifdef HAVE_NETINET_IN6_H
33899 #include <netinet/in6.h>
33901 #ifdef HAVE_SYS_UN_H
33902 #include <sys/un.h>
33907 if test "x$ac_cv_header_libgen_h" = xyes
33909 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
33912 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
33913 #ifdef HAVE_SYS_TYPES_H
33914 #include <sys/types.h>
33916 #ifdef HAVE_SYS_TIME_H
33917 #include <sys/time.h>
33919 #ifdef HAVE_SYS_SELECT_H
33920 #include <sys/select.h>
33921 #elif defined(HAVE_UNISTD_H)
33922 #include <unistd.h>
33924 #ifdef HAVE_SYS_SOCKET_H
33925 #include <sys/socket.h>
33927 #ifdef HAVE_NETINET_IN_H
33928 #include <netinet/in.h>
33930 #ifdef HAVE_NETINET_IN6_H
33931 #include <netinet/in6.h>
33933 #ifdef HAVE_SYS_UN_H
33934 #include <sys/un.h>
33939 if test "x$ac_cv_header_locale_h" = xyes
33941 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
33944 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
33945 #ifdef HAVE_SYS_TYPES_H
33946 #include <sys/types.h>
33948 #ifdef HAVE_SYS_TIME_H
33949 #include <sys/time.h>
33951 #ifdef HAVE_SYS_SELECT_H
33952 #include <sys/select.h>
33953 #elif defined(HAVE_UNISTD_H)
33954 #include <unistd.h>
33956 #ifdef HAVE_SYS_SOCKET_H
33957 #include <sys/socket.h>
33959 #ifdef HAVE_NETINET_IN_H
33960 #include <netinet/in.h>
33962 #ifdef HAVE_NETINET_IN6_H
33963 #include <netinet/in6.h>
33965 #ifdef HAVE_SYS_UN_H
33966 #include <sys/un.h>
33971 if test "x$ac_cv_header_stdbool_h" = xyes
33973 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
33976 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
33977 #ifdef HAVE_SYS_TYPES_H
33978 #include <sys/types.h>
33980 #ifdef HAVE_SYS_TIME_H
33981 #include <sys/time.h>
33983 #ifdef HAVE_SYS_SELECT_H
33984 #include <sys/select.h>
33985 #elif defined(HAVE_UNISTD_H)
33986 #include <unistd.h>
33988 #ifdef HAVE_SYS_SOCKET_H
33989 #include <sys/socket.h>
33991 #ifdef HAVE_NETINET_IN_H
33992 #include <netinet/in.h>
33994 #ifdef HAVE_NETINET_IN6_H
33995 #include <netinet/in6.h>
33997 #ifdef HAVE_SYS_UN_H
33998 #include <sys/un.h>
34003 if test "x$ac_cv_header_sys_filio_h" = xyes
34005 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
34008 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
34009 #ifdef HAVE_SYS_TYPES_H
34010 #include <sys/types.h>
34012 #ifdef HAVE_SYS_TIME_H
34013 #include <sys/time.h>
34015 #ifdef HAVE_SYS_SELECT_H
34016 #include <sys/select.h>
34017 #elif defined(HAVE_UNISTD_H)
34018 #include <unistd.h>
34020 #ifdef HAVE_SYS_SOCKET_H
34021 #include <sys/socket.h>
34023 #ifdef HAVE_NETINET_IN_H
34024 #include <netinet/in.h>
34026 #ifdef HAVE_NETINET_IN6_H
34027 #include <netinet/in6.h>
34029 #ifdef HAVE_SYS_UN_H
34030 #include <sys/un.h>
34035 if test "x$ac_cv_header_sys_wait_h" = xyes
34037 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
34040 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
34041 #ifdef HAVE_SYS_TYPES_H
34042 #include <sys/types.h>
34044 #ifdef HAVE_SYS_TIME_H
34045 #include <sys/time.h>
34047 #ifdef HAVE_SYS_SELECT_H
34048 #include <sys/select.h>
34049 #elif defined(HAVE_UNISTD_H)
34050 #include <unistd.h>
34052 #ifdef HAVE_SYS_SOCKET_H
34053 #include <sys/socket.h>
34055 #ifdef HAVE_NETINET_IN_H
34056 #include <netinet/in.h>
34058 #ifdef HAVE_NETINET_IN6_H
34059 #include <netinet/in6.h>
34061 #ifdef HAVE_SYS_UN_H
34062 #include <sys/un.h>
34067 if test "x$ac_cv_header_setjmp_h" = xyes
34069 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
34075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
34076 printf %s "checking for an ANSI C-conforming const... " >&6; }
34077 if test ${ac_cv_c_const+y}
34079 printf %s "(cached) " >&6
34081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34082 /* end confdefs.h. */
34087 #ifndef __cplusplus
34088 /* Ultrix mips cc rejects this sort of thing. */
34089 typedef int charset[2];
34090 const charset cs = { 0, 0 };
34091 /* SunOS 4.1.1 cc rejects this. */
34092 char const *const *pcpcc;
34094 /* NEC SVR4.0.2 mips cc rejects this. */
34095 struct point {int x, y;};
34096 static struct point const zero = {0,0};
34097 /* IBM XL C 1.02.0.0 rejects this.
34098 It does not let you subtract one const X* pointer from another in
34099 an arm of an if-expression whose if-part is not a constant
34101 const char *g = "string";
34102 pcpcc = &g + (g ? g-g : 0);
34103 /* HPUX 7.0 cc rejects these. */
34105 ppc = (char**) pcpcc;
34106 pcpcc = (char const *const *) ppc;
34107 { /* SCO 3.2v4 cc rejects this sort of thing. */
34110 char const *s = 0 ? (char *) 0 : (char const *) 0;
34115 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34116 int x[] = {25, 17};
34117 const int *foo = &x[0];
34120 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34121 typedef const int *iptr;
34125 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
34126 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34127 struct s { int j; const int *ap[3]; } bx;
34128 struct s *b = &bx; b->j = 5;
34130 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34131 const int foo = 10;
34132 if (!foo) return 0;
34134 return !cs[0] && !zero.x;
34141 if ac_fn_c_try_compile "$LINENO"
34147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
34150 printf "%s\n" "$ac_cv_c_const" >&6; }
34151 if test $ac_cv_c_const = no; then
34153 printf "%s\n" "#define const /**/" >>confdefs.h
34157 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
34158 if test "x$ac_cv_type_size_t" = xyes
34163 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
34169 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34170 if test "x$ac_cv_header_sys_types_h" = xyes
34172 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34175 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
34176 if test "x$ac_cv_header_sys_time_h" = xyes
34178 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
34181 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34182 if test "x$ac_cv_header_sys_socket_h" = xyes
34184 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
34189 printf %s "checking for struct timeval... " >&6; }
34190 if test ${curl_cv_struct_timeval+y}
34192 printf %s "(cached) " >&6
34195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34196 /* end confdefs.h. */
34200 #ifdef HAVE_WINDOWS_H
34201 #ifndef WIN32_LEAN_AND_MEAN
34202 #define WIN32_LEAN_AND_MEAN
34204 #ifdef HAVE_WINSOCK2_H
34205 #include <winsock2.h>
34207 #include <windows.h>
34209 #ifdef HAVE_SYS_TYPES_H
34210 #include <sys/types.h>
34212 #ifdef HAVE_SYS_TIME_H
34213 #include <sys/time.h>
34216 #ifdef HAVE_SYS_SOCKET_H
34217 #include <sys/socket.h>
34232 if ac_fn_c_try_compile "$LINENO"
34235 curl_cv_struct_timeval="yes"
34239 curl_cv_struct_timeval="no"
34242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
34246 printf "%s\n" "$curl_cv_struct_timeval" >&6; }
34247 case "$curl_cv_struct_timeval" in
34250 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
34257 if test "x$cross_compiling" != xyes; then
34259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
34260 printf %s "checking run-time libs availability... " >&6; }
34264 if test "$cross_compiling" = yes
34266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34267 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34268 as_fn_error $? "cannot run test program while cross compiling
34269 See \`config.log' for more details" "$LINENO" 5; }
34271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34272 /* end confdefs.h. */
34280 if ac_fn_c_try_run "$LINENO"
34282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34283 printf "%s\n" "fine" >&6; }
34285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34286 printf "%s\n" "failed" >&6; }
34287 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34291 conftest.$ac_objext conftest.beam conftest.$ac_ext
34297 old=$LD_LIBRARY_PATH
34298 CC="sh ./run-compiler"
34299 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34300 export LD_LIBRARY_PATH
34301 if test "$cross_compiling" = yes
34303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34304 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34305 as_fn_error $? "cannot run test program while cross compiling
34306 See \`config.log' for more details" "$LINENO" 5; }
34308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34309 /* end confdefs.h. */
34317 if ac_fn_c_try_run "$LINENO"
34319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34320 printf "%s\n" "fine" >&6; }
34322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34323 printf "%s\n" "failed" >&6; }
34324 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34328 conftest.$ac_objext conftest.beam conftest.$ac_ext
34331 LD_LIBRARY_PATH=$old # restore
34342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34343 printf %s "checking size of size_t... " >&6; }
34345 for typesize in 8 4 2 16 1; do
34346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34347 /* end confdefs.h. */
34349 #include <sys/types.h>
34356 case (sizeof(size_t) == $typesize):;
34363 if ac_fn_c_try_compile "$LINENO"
34371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34372 if test $r -gt 0; then
34376 if test $r -eq 0; then
34377 as_fn_error $? "Failed to find size of size_t" "$LINENO" 5
34379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34380 printf "%s\n" "$r" >&6; }
34381 tname=$(echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_")
34385 printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h
34391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34392 printf %s "checking size of long... " >&6; }
34394 for typesize in 8 4 2 16 1; do
34395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34396 /* end confdefs.h. */
34398 #include <sys/types.h>
34405 case (sizeof(long) == $typesize):;
34412 if ac_fn_c_try_compile "$LINENO"
34420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34421 if test $r -gt 0; then
34425 if test $r -eq 0; then
34426 as_fn_error $? "Failed to find size of long" "$LINENO" 5
34428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34429 printf "%s\n" "$r" >&6; }
34430 tname=$(echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_")
34434 printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h
34440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34441 printf %s "checking size of int... " >&6; }
34443 for typesize in 8 4 2 16 1; do
34444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34445 /* end confdefs.h. */
34447 #include <sys/types.h>
34454 case (sizeof(int) == $typesize):;
34461 if ac_fn_c_try_compile "$LINENO"
34469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34470 if test $r -gt 0; then
34474 if test $r -eq 0; then
34475 as_fn_error $? "Failed to find size of int" "$LINENO" 5
34477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34478 printf "%s\n" "$r" >&6; }
34479 tname=$(echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_")
34483 printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h
34489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
34490 printf %s "checking size of time_t... " >&6; }
34492 for typesize in 8 4 2 16 1; do
34493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34494 /* end confdefs.h. */
34496 #include <sys/types.h>
34503 case (sizeof(time_t) == $typesize):;
34510 if ac_fn_c_try_compile "$LINENO"
34518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34519 if test $r -gt 0; then
34523 if test $r -eq 0; then
34524 as_fn_error $? "Failed to find size of time_t" "$LINENO" 5
34526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34527 printf "%s\n" "$r" >&6; }
34528 tname=$(echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_")
34532 printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h
34538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
34539 printf %s "checking size of off_t... " >&6; }
34541 for typesize in 8 4 2 16 1; do
34542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34543 /* end confdefs.h. */
34545 #include <sys/types.h>
34552 case (sizeof(off_t) == $typesize):;
34559 if ac_fn_c_try_compile "$LINENO"
34567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34568 if test $r -gt 0; then
34572 if test $r -eq 0; then
34573 as_fn_error $? "Failed to find size of off_t" "$LINENO" 5
34575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34576 printf "%s\n" "$r" >&6; }
34577 tname=$(echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_")
34581 printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h
34587 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
34590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
34591 printf %s "checking size of curl_off_t... " >&6; }
34593 for typesize in 8 4 2 16 1; do
34594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34595 /* end confdefs.h. */
34597 #include <sys/types.h>
34599 #include <curl/system.h>
34606 case (sizeof(curl_off_t) == $typesize):;
34613 if ac_fn_c_try_compile "$LINENO"
34621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34622 if test $r -gt 0; then
34626 if test $r -eq 0; then
34627 as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5
34629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34630 printf "%s\n" "$r" >&6; }
34631 tname=$(echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_")
34635 printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h
34641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_socket_t" >&5
34642 printf %s "checking size of curl_socket_t... " >&6; }
34644 for typesize in 8 4 2 16 1; do
34645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34646 /* end confdefs.h. */
34648 #include <sys/types.h>
34650 #include <curl/curl.h>
34657 case (sizeof(curl_socket_t) == $typesize):;
34664 if ac_fn_c_try_compile "$LINENO"
34672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34673 if test $r -gt 0; then
34677 if test $r -eq 0; then
34678 as_fn_error $? "Failed to find size of curl_socket_t" "$LINENO" 5
34680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34681 printf "%s\n" "$r" >&6; }
34682 tname=$(echo "ac_cv_sizeof_curl_socket_t" | tr A-Z a-z | tr " " "_")
34686 printf "%s\n" "#define SIZEOF_CURL_SOCKET_T $r" >>confdefs.h
34692 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
34693 if test "x$ac_cv_type_long_long" = xyes
34696 printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
34703 if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
34704 as_fn_error $? "64 bit curl_off_t is required" "$LINENO" 5
34707 # check for ssize_t
34708 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
34709 if test "x$ac_cv_type_ssize_t" = xyes
34714 printf "%s\n" "#define ssize_t int" >>confdefs.h
34719 # check for bool type
34720 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
34721 #ifdef HAVE_SYS_TYPES_H
34722 #include <sys/types.h>
34724 #ifdef HAVE_STDBOOL_H
34725 #include <stdbool.h>
34729 if test "x$ac_cv_type_bool" = xyes
34733 printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
34739 # check for sa_family_t
34740 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
34741 #ifdef HAVE_SYS_SOCKET_H
34742 #include <sys/socket.h>
34746 if test "x$ac_cv_type_sa_family_t" = xyes
34749 printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
34753 # The windows name?
34754 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
34755 #ifdef HAVE_SYS_SOCKET_H
34756 #include <sys/socket.h>
34760 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
34763 printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
34767 printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
34775 # check for suseconds_t
34776 ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
34777 #ifdef HAVE_SYS_TYPES_H
34778 #include <sys/types.h>
34780 #ifdef HAVE_SYS_TIME_H
34781 #include <sys/time.h>
34785 if test "x$ac_cv_type_suseconds_t" = xyes
34789 printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
34795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
34796 printf %s "checking if time_t is unsigned... " >&6; }
34800 if test "$cross_compiling" = yes
34802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34803 printf "%s\n" "no" >&6; }
34806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34807 /* end confdefs.h. */
34810 #include <limits.h>
34817 if ac_fn_c_try_run "$LINENO"
34819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34820 printf "%s\n" "yes" >&6; }
34822 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34827 printf "%s\n" "no" >&6; }
34830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34831 conftest.$ac_objext conftest.beam conftest.$ac_ext
34837 old=$LD_LIBRARY_PATH
34838 CC="sh ./run-compiler"
34839 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34840 export LD_LIBRARY_PATH
34841 if test "$cross_compiling" = yes
34843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34844 printf "%s\n" "no" >&6; }
34847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34848 /* end confdefs.h. */
34851 #include <limits.h>
34858 if ac_fn_c_try_run "$LINENO"
34860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34861 printf "%s\n" "yes" >&6; }
34863 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34868 printf "%s\n" "no" >&6; }
34871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34872 conftest.$ac_objext conftest.beam conftest.$ac_ext
34875 LD_LIBRARY_PATH=$old # restore
34882 curl_includes_poll="\
34883 /* includes start */
34884 #ifdef HAVE_SYS_TYPES_H
34885 # include <sys/types.h>
34890 #ifdef HAVE_SYS_POLL_H
34891 # include <sys/poll.h>
34893 /* includes end */"
34894 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
34896 if test "x$ac_cv_header_sys_types_h" = xyes
34898 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34901 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
34903 if test "x$ac_cv_header_poll_h" = xyes
34905 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
34908 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
34910 if test "x$ac_cv_header_sys_poll_h" = xyes
34912 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
34919 tst_poll_events_macro_defined="unknown"
34921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34922 /* end confdefs.h. */
34925 $curl_includes_poll
34930 #if defined(events) || defined(revents)
34933 force compilation error
34941 if ac_fn_c_try_compile "$LINENO"
34944 tst_poll_events_macro_defined="yes"
34948 tst_poll_events_macro_defined="no"
34951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34953 if test "$tst_poll_events_macro_defined" = "yes"; then
34954 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
34956 cat >>confdefs.h <<_EOF
34957 #define CURL_PULL_SYS_POLL_H 1
34966 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
34968 #ifdef HAVE_WINDOWS_H
34969 #ifndef WIN32_LEAN_AND_MEAN
34970 #define WIN32_LEAN_AND_MEAN
34972 #ifdef HAVE_WINSOCK2_H
34973 #include <winsock2.h>
34975 #include <windows.h>
34977 #ifdef HAVE_SYS_TYPES_H
34978 #include <sys/types.h>
34980 #ifdef HAVE_SYS_SOCKET_H
34981 #include <sys/socket.h>
34983 #ifdef HAVE_NETINET_IN_H
34984 #include <netinet/in.h>
34986 #ifdef HAVE_ARPA_INET_H
34987 #include <arpa/inet.h>
34992 if test "x$ac_cv_type_in_addr_t" = xyes
34997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
34998 printf %s "checking for in_addr_t equivalent... " >&6; }
34999 if test ${curl_cv_in_addr_t_equiv+y}
35001 printf %s "(cached) " >&6
35004 curl_cv_in_addr_t_equiv="unknown"
35005 for t in "unsigned long" int size_t unsigned long; do
35006 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
35007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35008 /* end confdefs.h. */
35012 #ifdef HAVE_WINDOWS_H
35013 #ifndef WIN32_LEAN_AND_MEAN
35014 #define WIN32_LEAN_AND_MEAN
35016 #ifdef HAVE_WINSOCK2_H
35017 #include <winsock2.h>
35019 #include <windows.h>
35021 #ifdef HAVE_SYS_TYPES_H
35022 #include <sys/types.h>
35024 #ifdef HAVE_SYS_SOCKET_H
35025 #include <sys/socket.h>
35027 #ifdef HAVE_NETINET_IN_H
35028 #include <netinet/in.h>
35030 #ifdef HAVE_ARPA_INET_H
35031 #include <arpa/inet.h>
35038 $t data = inet_addr ("1.2.3.4");
35045 if ac_fn_c_try_link "$LINENO"
35048 curl_cv_in_addr_t_equiv="$t"
35051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35052 conftest$ac_exeext conftest.$ac_ext
35057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
35058 printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
35059 case "$curl_cv_in_addr_t_equiv" in
35061 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
35065 printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
35075 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
35077 #ifdef HAVE_WINDOWS_H
35078 #ifndef WIN32_LEAN_AND_MEAN
35079 #define WIN32_LEAN_AND_MEAN
35081 #ifdef HAVE_WINSOCK2_H
35082 #include <winsock2.h>
35084 #include <windows.h>
35086 #ifdef HAVE_SYS_TYPES_H
35087 #include <sys/types.h>
35089 #ifdef HAVE_SYS_SOCKET_H
35090 #include <sys/socket.h>
35092 #ifdef HAVE_NETINET_IN_H
35093 #include <netinet/in.h>
35095 #ifdef HAVE_ARPA_INET_H
35096 #include <arpa/inet.h>
35101 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
35104 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
35111 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
35112 if test "x$ac_cv_header_sys_select_h" = xyes
35114 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
35117 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35118 if test "x$ac_cv_header_sys_socket_h" = xyes
35120 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
35126 printf %s "checking for select... " >&6; }
35127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35128 /* end confdefs.h. */
35132 #ifdef HAVE_WINDOWS_H
35133 #ifndef WIN32_LEAN_AND_MEAN
35134 #define WIN32_LEAN_AND_MEAN
35136 #ifdef HAVE_WINSOCK2_H
35137 #include <winsock2.h>
35139 #include <windows.h>
35141 #ifdef HAVE_SYS_TYPES_H
35142 #include <sys/types.h>
35144 #ifdef HAVE_SYS_TIME_H
35145 #include <sys/time.h>
35148 #ifndef HAVE_WINDOWS_H
35149 #ifdef HAVE_SYS_SELECT_H
35150 #include <sys/select.h>
35151 #elif defined(HAVE_UNISTD_H)
35152 #include <unistd.h>
35154 #ifdef HAVE_SYS_SOCKET_H
35155 #include <sys/socket.h>
35157 $curl_includes_bsdsocket
35163 select(0, 0, 0, 0, 0);
35170 if ac_fn_c_try_link "$LINENO"
35173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35174 printf "%s\n" "yes" >&6; }
35175 curl_cv_select="yes"
35179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35180 printf "%s\n" "no" >&6; }
35181 curl_cv_select="no"
35184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35185 conftest$ac_exeext conftest.$ac_ext
35187 if test "$curl_cv_select" = "yes"; then
35189 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
35191 curl_cv_func_select="yes"
35196 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35197 if test "x$ac_cv_header_sys_types_h" = xyes
35199 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35202 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35203 if test "x$ac_cv_header_sys_socket_h" = xyes
35205 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
35211 printf %s "checking for recv... " >&6; }
35212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35213 /* end confdefs.h. */
35217 #ifdef HAVE_WINDOWS_H
35218 #ifndef WIN32_LEAN_AND_MEAN
35219 #define WIN32_LEAN_AND_MEAN
35221 #ifdef HAVE_WINSOCK2_H
35222 #include <winsock2.h>
35224 #include <windows.h>
35226 $curl_includes_bsdsocket
35227 #ifdef HAVE_SYS_TYPES_H
35228 #include <sys/types.h>
35230 #ifdef HAVE_SYS_SOCKET_H
35231 #include <sys/socket.h>
35245 if ac_fn_c_try_link "$LINENO"
35248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35249 printf "%s\n" "yes" >&6; }
35254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35255 printf "%s\n" "no" >&6; }
35259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35260 conftest$ac_exeext conftest.$ac_ext
35262 if test "$curl_cv_recv" = "yes"; then
35264 printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
35266 curl_cv_func_recv="yes"
35268 as_fn_error $? "Unable to link function recv" "$LINENO" 5
35272 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35273 if test "x$ac_cv_header_sys_types_h" = xyes
35275 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35278 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35279 if test "x$ac_cv_header_sys_socket_h" = xyes
35281 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35287 printf %s "checking for send... " >&6; }
35288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35289 /* end confdefs.h. */
35293 #ifdef HAVE_WINDOWS_H
35294 #ifndef WIN32_LEAN_AND_MEAN
35295 #define WIN32_LEAN_AND_MEAN
35297 #ifdef HAVE_WINSOCK2_H
35298 #include <winsock2.h>
35300 #include <windows.h>
35302 $curl_includes_bsdsocket
35303 #ifdef HAVE_SYS_TYPES_H
35304 #include <sys/types.h>
35306 #ifdef HAVE_SYS_SOCKET_H
35307 #include <sys/socket.h>
35321 if ac_fn_c_try_link "$LINENO"
35324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35325 printf "%s\n" "yes" >&6; }
35330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35331 printf "%s\n" "no" >&6; }
35335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35336 conftest$ac_exeext conftest.$ac_ext
35338 if test "$curl_cv_send" = "yes"; then
35340 printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35342 curl_cv_func_send="yes"
35344 as_fn_error $? "Unable to link function send" "$LINENO" 5
35348 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35349 if test "x$ac_cv_header_sys_types_h" = xyes
35351 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35354 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35355 if test "x$ac_cv_header_sys_socket_h" = xyes
35357 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35362 printf %s "checking for MSG_NOSIGNAL... " >&6; }
35363 if test ${curl_cv_msg_nosignal+y}
35365 printf %s "(cached) " >&6
35368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35369 /* end confdefs.h. */
35373 #ifdef HAVE_WINDOWS_H
35374 #ifndef WIN32_LEAN_AND_MEAN
35375 #define WIN32_LEAN_AND_MEAN
35377 #ifdef HAVE_WINSOCK2_H
35378 #include <winsock2.h>
35380 #include <windows.h>
35382 #ifdef HAVE_SYS_TYPES_H
35383 #include <sys/types.h>
35385 #ifdef HAVE_SYS_SOCKET_H
35386 #include <sys/socket.h>
35393 int flag=MSG_NOSIGNAL;
35400 if ac_fn_c_try_compile "$LINENO"
35403 curl_cv_msg_nosignal="yes"
35407 curl_cv_msg_nosignal="no"
35410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35414 printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35415 case "$curl_cv_msg_nosignal" in
35418 printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35425 curl_includes_unistd="\
35426 /* includes start */
35427 #ifdef HAVE_SYS_TYPES_H
35428 # include <sys/types.h>
35430 #ifdef HAVE_UNISTD_H
35431 # include <unistd.h>
35433 /* includes end */"
35434 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
35436 if test "x$ac_cv_header_sys_types_h" = xyes
35438 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35441 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35443 if test "x$ac_cv_header_unistd_h" = xyes
35445 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35452 tst_links_alarm="unknown"
35453 tst_proto_alarm="unknown"
35454 tst_compi_alarm="unknown"
35455 tst_allow_alarm="unknown"
35457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35458 printf %s "checking if alarm can be linked... " >&6; }
35459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35460 /* end confdefs.h. */
35463 #define alarm innocuous_alarm
35465 # include <limits.h>
35467 # include <assert.h>
35474 #if defined __stub_alarm || defined __stub___alarm
35486 if ac_fn_c_try_link "$LINENO"
35489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35490 printf "%s\n" "yes" >&6; }
35491 tst_links_alarm="yes"
35495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35496 printf "%s\n" "no" >&6; }
35497 tst_links_alarm="no"
35500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35501 conftest$ac_exeext conftest.$ac_ext
35503 if test "$tst_links_alarm" = "yes"; then
35504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35505 printf %s "checking if alarm is prototyped... " >&6; }
35506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35507 /* end confdefs.h. */
35509 $curl_includes_unistd
35512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35513 $EGREP "alarm" >/dev/null 2>&1
35516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35517 printf "%s\n" "yes" >&6; }
35518 tst_proto_alarm="yes"
35522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35523 printf "%s\n" "no" >&6; }
35524 tst_proto_alarm="no"
35531 if test "$tst_proto_alarm" = "yes"; then
35532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35533 printf %s "checking if alarm is compilable... " >&6; }
35534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35535 /* end confdefs.h. */
35538 $curl_includes_unistd
35551 if ac_fn_c_try_compile "$LINENO"
35554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35555 printf "%s\n" "yes" >&6; }
35556 tst_compi_alarm="yes"
35560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35561 printf "%s\n" "no" >&6; }
35562 tst_compi_alarm="no"
35565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35568 if test "$tst_compi_alarm" = "yes"; then
35569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
35570 printf %s "checking if alarm usage allowed... " >&6; }
35571 if test "x$curl_disallow_alarm" != "xyes"; then
35572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35573 printf "%s\n" "yes" >&6; }
35574 tst_allow_alarm="yes"
35576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35577 printf "%s\n" "no" >&6; }
35578 tst_allow_alarm="no"
35582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
35583 printf %s "checking if alarm might be used... " >&6; }
35584 if test "$tst_links_alarm" = "yes" &&
35585 test "$tst_proto_alarm" = "yes" &&
35586 test "$tst_compi_alarm" = "yes" &&
35587 test "$tst_allow_alarm" = "yes"; then
35588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35589 printf "%s\n" "yes" >&6; }
35591 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
35593 curl_cv_func_alarm="yes"
35595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35596 printf "%s\n" "no" >&6; }
35597 curl_cv_func_alarm="no"
35601 curl_includes_string="\
35602 /* includes start */
35603 #ifdef HAVE_SYS_TYPES_H
35604 # include <sys/types.h>
35606 #include <string.h>
35607 #ifdef HAVE_STRINGS_H
35608 # include <strings.h>
35610 /* includes end */"
35611 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
35613 if test "x$ac_cv_header_sys_types_h" = xyes
35615 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35618 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
35620 if test "x$ac_cv_header_strings_h" = xyes
35622 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
35628 curl_includes_libgen="\
35629 /* includes start */
35630 #ifdef HAVE_SYS_TYPES_H
35631 # include <sys/types.h>
35633 #ifdef HAVE_LIBGEN_H
35634 # include <libgen.h>
35636 /* includes end */"
35637 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
35639 if test "x$ac_cv_header_sys_types_h" = xyes
35641 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35644 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
35646 if test "x$ac_cv_header_libgen_h" = xyes
35648 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
35655 tst_links_basename="unknown"
35656 tst_proto_basename="unknown"
35657 tst_compi_basename="unknown"
35658 tst_allow_basename="unknown"
35660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
35661 printf %s "checking if basename can be linked... " >&6; }
35662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35663 /* end confdefs.h. */
35666 #define basename innocuous_basename
35668 # include <limits.h>
35670 # include <assert.h>
35677 #if defined __stub_basename || defined __stub___basename
35683 return basename ();
35689 if ac_fn_c_try_link "$LINENO"
35692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35693 printf "%s\n" "yes" >&6; }
35694 tst_links_basename="yes"
35698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35699 printf "%s\n" "no" >&6; }
35700 tst_links_basename="no"
35703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35704 conftest$ac_exeext conftest.$ac_ext
35706 if test "$tst_links_basename" = "yes"; then
35707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
35708 printf %s "checking if basename is prototyped... " >&6; }
35709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35710 /* end confdefs.h. */
35712 $curl_includes_string
35713 $curl_includes_libgen
35714 $curl_includes_unistd
35717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35718 $EGREP "basename" >/dev/null 2>&1
35721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35722 printf "%s\n" "yes" >&6; }
35723 tst_proto_basename="yes"
35727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35728 printf "%s\n" "no" >&6; }
35729 tst_proto_basename="no"
35736 if test "$tst_proto_basename" = "yes"; then
35737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
35738 printf %s "checking if basename is compilable... " >&6; }
35739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35740 /* end confdefs.h. */
35743 $curl_includes_string
35744 $curl_includes_libgen
35745 $curl_includes_unistd
35750 if(0 != basename(0))
35758 if ac_fn_c_try_compile "$LINENO"
35761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35762 printf "%s\n" "yes" >&6; }
35763 tst_compi_basename="yes"
35767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35768 printf "%s\n" "no" >&6; }
35769 tst_compi_basename="no"
35772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35775 if test "$tst_compi_basename" = "yes"; then
35776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
35777 printf %s "checking if basename usage allowed... " >&6; }
35778 if test "x$curl_disallow_basename" != "xyes"; then
35779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35780 printf "%s\n" "yes" >&6; }
35781 tst_allow_basename="yes"
35783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35784 printf "%s\n" "no" >&6; }
35785 tst_allow_basename="no"
35789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
35790 printf %s "checking if basename might be used... " >&6; }
35791 if test "$tst_links_basename" = "yes" &&
35792 test "$tst_proto_basename" = "yes" &&
35793 test "$tst_compi_basename" = "yes" &&
35794 test "$tst_allow_basename" = "yes"; then
35795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35796 printf "%s\n" "yes" >&6; }
35798 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
35800 curl_cv_func_basename="yes"
35802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35803 printf "%s\n" "no" >&6; }
35804 curl_cv_func_basename="no"
35808 curl_includes_socket="\
35809 /* includes start */
35810 #ifdef HAVE_SYS_TYPES_H
35811 # include <sys/types.h>
35813 #ifdef HAVE_SOCKET_H
35814 # include <socket.h>
35816 /* includes end */"
35817 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
35819 if test "x$ac_cv_header_sys_types_h" = xyes
35821 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35824 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
35826 if test "x$ac_cv_header_socket_h" = xyes
35828 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
35835 tst_links_closesocket="unknown"
35836 tst_proto_closesocket="unknown"
35837 tst_compi_closesocket="unknown"
35838 tst_allow_closesocket="unknown"
35840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
35841 printf %s "checking if closesocket can be linked... " >&6; }
35842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35843 /* end confdefs.h. */
35846 $curl_includes_winsock2
35847 $curl_includes_socket
35852 if(0 != closesocket(0))
35860 if ac_fn_c_try_link "$LINENO"
35863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35864 printf "%s\n" "yes" >&6; }
35865 tst_links_closesocket="yes"
35869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35870 printf "%s\n" "no" >&6; }
35871 tst_links_closesocket="no"
35874 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35875 conftest$ac_exeext conftest.$ac_ext
35877 if test "$tst_links_closesocket" = "yes"; then
35878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
35879 printf %s "checking if closesocket is prototyped... " >&6; }
35880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35881 /* end confdefs.h. */
35883 $curl_includes_winsock2
35884 $curl_includes_socket
35887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35888 $EGREP "closesocket" >/dev/null 2>&1
35891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35892 printf "%s\n" "yes" >&6; }
35893 tst_proto_closesocket="yes"
35897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35898 printf "%s\n" "no" >&6; }
35899 tst_proto_closesocket="no"
35906 if test "$tst_proto_closesocket" = "yes"; then
35907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
35908 printf %s "checking if closesocket is compilable... " >&6; }
35909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35910 /* end confdefs.h. */
35913 $curl_includes_winsock2
35914 $curl_includes_socket
35919 if(0 != closesocket(0))
35927 if ac_fn_c_try_compile "$LINENO"
35930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35931 printf "%s\n" "yes" >&6; }
35932 tst_compi_closesocket="yes"
35936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35937 printf "%s\n" "no" >&6; }
35938 tst_compi_closesocket="no"
35941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35944 if test "$tst_compi_closesocket" = "yes"; then
35945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
35946 printf %s "checking if closesocket usage allowed... " >&6; }
35947 if test "x$curl_disallow_closesocket" != "xyes"; then
35948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35949 printf "%s\n" "yes" >&6; }
35950 tst_allow_closesocket="yes"
35952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35953 printf "%s\n" "no" >&6; }
35954 tst_allow_closesocket="no"
35958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
35959 printf %s "checking if closesocket might be used... " >&6; }
35960 if test "$tst_links_closesocket" = "yes" &&
35961 test "$tst_proto_closesocket" = "yes" &&
35962 test "$tst_compi_closesocket" = "yes" &&
35963 test "$tst_allow_closesocket" = "yes"; then
35964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35965 printf "%s\n" "yes" >&6; }
35967 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
35969 curl_cv_func_closesocket="yes"
35971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35972 printf "%s\n" "no" >&6; }
35973 curl_cv_func_closesocket="no"
35977 curl_includes_sys_socket="\
35978 /* includes start */
35979 #ifdef HAVE_SYS_TYPES_H
35980 # include <sys/types.h>
35982 #ifdef HAVE_SYS_SOCKET_H
35983 # include <sys/socket.h>
35985 /* includes end */"
35986 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
35988 if test "x$ac_cv_header_sys_types_h" = xyes
35990 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35993 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
35995 if test "x$ac_cv_header_sys_socket_h" = xyes
35997 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
36004 tst_links_closesocket_camel="unknown"
36005 tst_proto_closesocket_camel="unknown"
36006 tst_compi_closesocket_camel="unknown"
36007 tst_allow_closesocket_camel="unknown"
36009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
36010 printf %s "checking if CloseSocket can be linked... " >&6; }
36011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36012 /* end confdefs.h. */
36015 $curl_includes_bsdsocket
36016 $curl_includes_sys_socket
36021 if(0 != CloseSocket(0))
36029 if ac_fn_c_try_link "$LINENO"
36032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36033 printf "%s\n" "yes" >&6; }
36034 tst_links_closesocket_camel="yes"
36038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36039 printf "%s\n" "no" >&6; }
36040 tst_links_closesocket_camel="no"
36043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36044 conftest$ac_exeext conftest.$ac_ext
36046 if test "$tst_links_closesocket_camel" = "yes"; then
36047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
36048 printf %s "checking if CloseSocket is prototyped... " >&6; }
36049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36050 /* end confdefs.h. */
36052 $curl_includes_bsdsocket
36053 $curl_includes_sys_socket
36056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36057 $EGREP "CloseSocket" >/dev/null 2>&1
36060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36061 printf "%s\n" "yes" >&6; }
36062 tst_proto_closesocket_camel="yes"
36066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36067 printf "%s\n" "no" >&6; }
36068 tst_proto_closesocket_camel="no"
36075 if test "$tst_proto_closesocket_camel" = "yes"; then
36076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
36077 printf %s "checking if CloseSocket is compilable... " >&6; }
36078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36079 /* end confdefs.h. */
36082 $curl_includes_bsdsocket
36083 $curl_includes_sys_socket
36088 if(0 != CloseSocket(0))
36096 if ac_fn_c_try_compile "$LINENO"
36099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36100 printf "%s\n" "yes" >&6; }
36101 tst_compi_closesocket_camel="yes"
36105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36106 printf "%s\n" "no" >&6; }
36107 tst_compi_closesocket_camel="no"
36110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36113 if test "$tst_compi_closesocket_camel" = "yes"; then
36114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
36115 printf %s "checking if CloseSocket usage allowed... " >&6; }
36116 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
36117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36118 printf "%s\n" "yes" >&6; }
36119 tst_allow_closesocket_camel="yes"
36121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36122 printf "%s\n" "no" >&6; }
36123 tst_allow_closesocket_camel="no"
36127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
36128 printf %s "checking if CloseSocket might be used... " >&6; }
36129 if test "$tst_links_closesocket_camel" = "yes" &&
36130 test "$tst_proto_closesocket_camel" = "yes" &&
36131 test "$tst_compi_closesocket_camel" = "yes" &&
36132 test "$tst_allow_closesocket_camel" = "yes"; then
36133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36134 printf "%s\n" "yes" >&6; }
36136 printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
36138 curl_cv_func_closesocket_camel="yes"
36140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36141 printf "%s\n" "no" >&6; }
36142 curl_cv_func_closesocket_camel="no"
36146 curl_includes_fcntl="\
36147 /* includes start */
36148 #ifdef HAVE_SYS_TYPES_H
36149 # include <sys/types.h>
36151 #ifdef HAVE_UNISTD_H
36152 # include <unistd.h>
36154 #ifdef HAVE_FCNTL_H
36155 # include <fcntl.h>
36157 /* includes end */"
36158 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
36160 if test "x$ac_cv_header_sys_types_h" = xyes
36162 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36165 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
36167 if test "x$ac_cv_header_unistd_h" = xyes
36169 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
36172 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
36174 if test "x$ac_cv_header_fcntl_h" = xyes
36176 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
36183 tst_links_fcntl="unknown"
36184 tst_proto_fcntl="unknown"
36185 tst_compi_fcntl="unknown"
36186 tst_allow_fcntl="unknown"
36188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
36189 printf %s "checking if fcntl can be linked... " >&6; }
36190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36191 /* end confdefs.h. */
36194 #define fcntl innocuous_fcntl
36196 # include <limits.h>
36198 # include <assert.h>
36205 #if defined __stub_fcntl || defined __stub___fcntl
36217 if ac_fn_c_try_link "$LINENO"
36220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36221 printf "%s\n" "yes" >&6; }
36222 tst_links_fcntl="yes"
36226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36227 printf "%s\n" "no" >&6; }
36228 tst_links_fcntl="no"
36231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36232 conftest$ac_exeext conftest.$ac_ext
36234 if test "$tst_links_fcntl" = "yes"; then
36235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
36236 printf %s "checking if fcntl is prototyped... " >&6; }
36237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36238 /* end confdefs.h. */
36240 $curl_includes_fcntl
36243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36244 $EGREP "fcntl" >/dev/null 2>&1
36247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36248 printf "%s\n" "yes" >&6; }
36249 tst_proto_fcntl="yes"
36253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36254 printf "%s\n" "no" >&6; }
36255 tst_proto_fcntl="no"
36262 if test "$tst_proto_fcntl" = "yes"; then
36263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
36264 printf %s "checking if fcntl is compilable... " >&6; }
36265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36266 /* end confdefs.h. */
36269 $curl_includes_fcntl
36274 if(0 != fcntl(0, 0, 0))
36282 if ac_fn_c_try_compile "$LINENO"
36285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36286 printf "%s\n" "yes" >&6; }
36287 tst_compi_fcntl="yes"
36291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36292 printf "%s\n" "no" >&6; }
36293 tst_compi_fcntl="no"
36296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36299 if test "$tst_compi_fcntl" = "yes"; then
36300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36301 printf %s "checking if fcntl usage allowed... " >&6; }
36302 if test "x$curl_disallow_fcntl" != "xyes"; then
36303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36304 printf "%s\n" "yes" >&6; }
36305 tst_allow_fcntl="yes"
36307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36308 printf "%s\n" "no" >&6; }
36309 tst_allow_fcntl="no"
36313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36314 printf %s "checking if fcntl might be used... " >&6; }
36315 if test "$tst_links_fcntl" = "yes" &&
36316 test "$tst_proto_fcntl" = "yes" &&
36317 test "$tst_compi_fcntl" = "yes" &&
36318 test "$tst_allow_fcntl" = "yes"; then
36319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36320 printf "%s\n" "yes" >&6; }
36322 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36324 curl_cv_func_fcntl="yes"
36327 tst_compi_fcntl_o_nonblock="unknown"
36328 tst_allow_fcntl_o_nonblock="unknown"
36332 curl_disallow_fcntl_o_nonblock="yes"
36336 if test "$curl_cv_func_fcntl" = "yes"; then
36337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36338 printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36340 /* end confdefs.h. */
36343 $curl_includes_fcntl
36349 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36357 if ac_fn_c_try_compile "$LINENO"
36360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36361 printf "%s\n" "yes" >&6; }
36362 tst_compi_fcntl_o_nonblock="yes"
36366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36367 printf "%s\n" "no" >&6; }
36368 tst_compi_fcntl_o_nonblock="no"
36371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36374 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36376 printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36377 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36379 printf "%s\n" "yes" >&6; }
36380 tst_allow_fcntl_o_nonblock="yes"
36382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36383 printf "%s\n" "no" >&6; }
36384 tst_allow_fcntl_o_nonblock="no"
36388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36389 printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36390 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36391 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36393 printf "%s\n" "yes" >&6; }
36395 printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36397 curl_cv_func_fcntl_o_nonblock="yes"
36399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36400 printf "%s\n" "no" >&6; }
36401 curl_cv_func_fcntl_o_nonblock="no"
36405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36406 printf "%s\n" "no" >&6; }
36407 curl_cv_func_fcntl="no"
36411 curl_includes_ws2tcpip="\
36412 /* includes start */
36413 #ifdef HAVE_WINDOWS_H
36414 # ifndef WIN32_LEAN_AND_MEAN
36415 # define WIN32_LEAN_AND_MEAN
36417 # ifdef HAVE_WINSOCK2_H
36418 # include <winsock2.h>
36419 # ifdef HAVE_WS2TCPIP_H
36420 # include <ws2tcpip.h>
36423 # include <windows.h>
36425 /* includes end */"
36427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
36428 printf %s "checking for windows.h... " >&6; }
36429 if test ${curl_cv_header_windows_h+y}
36431 printf %s "(cached) " >&6
36434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36435 /* end confdefs.h. */
36439 #ifndef WIN32_LEAN_AND_MEAN
36440 #define WIN32_LEAN_AND_MEAN
36442 #include <windows.h>
36447 #if defined(__CYGWIN__) || defined(__CEGCC__)
36448 HAVE_WINDOWS_H shall not be defined.
36450 int dummy=2*WINVER;
36458 if ac_fn_c_try_compile "$LINENO"
36461 curl_cv_header_windows_h="yes"
36465 curl_cv_header_windows_h="no"
36468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
36472 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
36473 case "$curl_cv_header_windows_h" in
36476 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
36482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
36483 printf %s "checking for winsock2.h... " >&6; }
36484 if test ${curl_cv_header_winsock2_h+y}
36486 printf %s "(cached) " >&6
36489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36490 /* end confdefs.h. */
36494 #ifndef WIN32_LEAN_AND_MEAN
36495 #define WIN32_LEAN_AND_MEAN
36497 #include <windows.h>
36498 #include <winsock2.h>
36503 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36504 HAVE_WINSOCK2_H shall not be defined.
36506 int dummy=2*IPPROTO_ESP;
36514 if ac_fn_c_try_compile "$LINENO"
36517 curl_cv_header_winsock2_h="yes"
36521 curl_cv_header_winsock2_h="no"
36524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
36528 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
36529 case "$curl_cv_header_winsock2_h" in
36532 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
36538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
36539 printf %s "checking for ws2tcpip.h... " >&6; }
36540 if test ${curl_cv_header_ws2tcpip_h+y}
36542 printf %s "(cached) " >&6
36545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36546 /* end confdefs.h. */
36550 #ifndef WIN32_LEAN_AND_MEAN
36551 #define WIN32_LEAN_AND_MEAN
36553 #include <windows.h>
36554 #include <winsock2.h>
36555 #include <ws2tcpip.h>
36560 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36561 HAVE_WS2TCPIP_H shall not be defined.
36563 int dummy=2*IP_PKTINFO;
36571 if ac_fn_c_try_compile "$LINENO"
36574 curl_cv_header_ws2tcpip_h="yes"
36578 curl_cv_header_ws2tcpip_h="no"
36581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
36585 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
36586 case "$curl_cv_header_ws2tcpip_h" in
36589 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
36596 curl_includes_netdb="\
36597 /* includes start */
36598 #ifdef HAVE_SYS_TYPES_H
36599 # include <sys/types.h>
36601 #ifdef HAVE_NETDB_H
36602 # include <netdb.h>
36604 /* includes end */"
36605 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36607 if test "x$ac_cv_header_sys_types_h" = xyes
36609 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36612 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36614 if test "x$ac_cv_header_netdb_h" = xyes
36616 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36623 tst_links_freeaddrinfo="unknown"
36624 tst_proto_freeaddrinfo="unknown"
36625 tst_compi_freeaddrinfo="unknown"
36626 tst_allow_freeaddrinfo="unknown"
36628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36629 printf %s "checking if freeaddrinfo can be linked... " >&6; }
36630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36631 /* end confdefs.h. */
36634 $curl_includes_ws2tcpip
36635 $curl_includes_sys_socket
36636 $curl_includes_netdb
36648 if ac_fn_c_try_link "$LINENO"
36651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36652 printf "%s\n" "yes" >&6; }
36653 tst_links_freeaddrinfo="yes"
36657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36658 printf "%s\n" "no" >&6; }
36659 tst_links_freeaddrinfo="no"
36662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36663 conftest$ac_exeext conftest.$ac_ext
36665 if test "$tst_links_freeaddrinfo" = "yes"; then
36666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36667 printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36669 /* end confdefs.h. */
36671 $curl_includes_ws2tcpip
36672 $curl_includes_sys_socket
36673 $curl_includes_netdb
36676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36677 $EGREP "freeaddrinfo" >/dev/null 2>&1
36680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36681 printf "%s\n" "yes" >&6; }
36682 tst_proto_freeaddrinfo="yes"
36686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36687 printf "%s\n" "no" >&6; }
36688 tst_proto_freeaddrinfo="no"
36695 if test "$tst_proto_freeaddrinfo" = "yes"; then
36696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
36697 printf %s "checking if freeaddrinfo is compilable... " >&6; }
36698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36699 /* end confdefs.h. */
36702 $curl_includes_ws2tcpip
36703 $curl_includes_sys_socket
36704 $curl_includes_netdb
36716 if ac_fn_c_try_compile "$LINENO"
36719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36720 printf "%s\n" "yes" >&6; }
36721 tst_compi_freeaddrinfo="yes"
36725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36726 printf "%s\n" "no" >&6; }
36727 tst_compi_freeaddrinfo="no"
36730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36733 if test "$tst_compi_freeaddrinfo" = "yes"; then
36734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
36735 printf %s "checking if freeaddrinfo usage allowed... " >&6; }
36736 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
36737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36738 printf "%s\n" "yes" >&6; }
36739 tst_allow_freeaddrinfo="yes"
36741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36742 printf "%s\n" "no" >&6; }
36743 tst_allow_freeaddrinfo="no"
36747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
36748 printf %s "checking if freeaddrinfo might be used... " >&6; }
36749 if test "$tst_links_freeaddrinfo" = "yes" &&
36750 test "$tst_proto_freeaddrinfo" = "yes" &&
36751 test "$tst_compi_freeaddrinfo" = "yes" &&
36752 test "$tst_allow_freeaddrinfo" = "yes"; then
36753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36754 printf "%s\n" "yes" >&6; }
36756 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
36758 curl_cv_func_freeaddrinfo="yes"
36760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36761 printf "%s\n" "no" >&6; }
36762 curl_cv_func_freeaddrinfo="no"
36766 curl_includes_sys_xattr="\
36767 /* includes start */
36768 #ifdef HAVE_SYS_TYPES_H
36769 # include <sys/types.h>
36771 #ifdef HAVE_SYS_XATTR_H
36772 # include <sys/xattr.h>
36774 /* includes end */"
36775 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
36777 if test "x$ac_cv_header_sys_types_h" = xyes
36779 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36782 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
36784 if test "x$ac_cv_header_sys_xattr_h" = xyes
36786 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
36793 tst_links_fsetxattr="unknown"
36794 tst_proto_fsetxattr="unknown"
36795 tst_compi_fsetxattr="unknown"
36796 tst_allow_fsetxattr="unknown"
36797 tst_nargs_fsetxattr="unknown"
36799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
36800 printf %s "checking if fsetxattr can be linked... " >&6; }
36801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36802 /* end confdefs.h. */
36805 #define fsetxattr innocuous_fsetxattr
36807 # include <limits.h>
36809 # include <assert.h>
36816 #if defined __stub_fsetxattr || defined __stub___fsetxattr
36822 return fsetxattr ();
36828 if ac_fn_c_try_link "$LINENO"
36831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36832 printf "%s\n" "yes" >&6; }
36833 tst_links_fsetxattr="yes"
36837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36838 printf "%s\n" "no" >&6; }
36839 tst_links_fsetxattr="no"
36842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36843 conftest$ac_exeext conftest.$ac_ext
36845 if test "$tst_links_fsetxattr" = "yes"; then
36846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
36847 printf %s "checking if fsetxattr is prototyped... " >&6; }
36848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36849 /* end confdefs.h. */
36851 $curl_includes_sys_xattr
36854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36855 $EGREP "fsetxattr" >/dev/null 2>&1
36858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36859 printf "%s\n" "yes" >&6; }
36860 tst_proto_fsetxattr="yes"
36864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36865 printf "%s\n" "no" >&6; }
36866 tst_proto_fsetxattr="no"
36873 if test "$tst_proto_fsetxattr" = "yes"; then
36874 if test "$tst_nargs_fsetxattr" = "unknown"; then
36875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
36876 printf %s "checking if fsetxattr takes 5 args.... " >&6; }
36877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36878 /* end confdefs.h. */
36881 $curl_includes_sys_xattr
36886 if(0 != fsetxattr(0, 0, 0, 0, 0))
36894 if ac_fn_c_try_compile "$LINENO"
36897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36898 printf "%s\n" "yes" >&6; }
36899 tst_compi_fsetxattr="yes"
36900 tst_nargs_fsetxattr="5"
36904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36905 printf "%s\n" "no" >&6; }
36906 tst_compi_fsetxattr="no"
36909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36911 if test "$tst_nargs_fsetxattr" = "unknown"; then
36912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
36913 printf %s "checking if fsetxattr takes 6 args.... " >&6; }
36914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36915 /* end confdefs.h. */
36918 $curl_includes_sys_xattr
36923 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
36931 if ac_fn_c_try_compile "$LINENO"
36934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36935 printf "%s\n" "yes" >&6; }
36936 tst_compi_fsetxattr="yes"
36937 tst_nargs_fsetxattr="6"
36941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36942 printf "%s\n" "no" >&6; }
36943 tst_compi_fsetxattr="no"
36946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
36949 printf %s "checking if fsetxattr is compilable... " >&6; }
36950 if test "$tst_compi_fsetxattr" = "yes"; then
36951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952 printf "%s\n" "yes" >&6; }
36954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36955 printf "%s\n" "no" >&6; }
36959 if test "$tst_compi_fsetxattr" = "yes"; then
36960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
36961 printf %s "checking if fsetxattr usage allowed... " >&6; }
36962 if test "x$curl_disallow_fsetxattr" != "xyes"; then
36963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36964 printf "%s\n" "yes" >&6; }
36965 tst_allow_fsetxattr="yes"
36967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36968 printf "%s\n" "no" >&6; }
36969 tst_allow_fsetxattr="no"
36973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
36974 printf %s "checking if fsetxattr might be used... " >&6; }
36975 if test "$tst_links_fsetxattr" = "yes" &&
36976 test "$tst_proto_fsetxattr" = "yes" &&
36977 test "$tst_compi_fsetxattr" = "yes" &&
36978 test "$tst_allow_fsetxattr" = "yes"; then
36979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36980 printf "%s\n" "yes" >&6; }
36982 printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
36985 if test "$tst_nargs_fsetxattr" -eq "5"; then
36987 printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
36989 elif test "$tst_nargs_fsetxattr" -eq "6"; then
36991 printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
36995 curl_cv_func_fsetxattr="yes"
36997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36998 printf "%s\n" "no" >&6; }
36999 curl_cv_func_fsetxattr="no"
37004 tst_links_ftruncate="unknown"
37005 tst_proto_ftruncate="unknown"
37006 tst_compi_ftruncate="unknown"
37007 tst_allow_ftruncate="unknown"
37009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
37010 printf %s "checking if ftruncate can be linked... " >&6; }
37011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37012 /* end confdefs.h. */
37015 #define ftruncate innocuous_ftruncate
37017 # include <limits.h>
37019 # include <assert.h>
37026 #if defined __stub_ftruncate || defined __stub___ftruncate
37032 return ftruncate ();
37038 if ac_fn_c_try_link "$LINENO"
37041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37042 printf "%s\n" "yes" >&6; }
37043 tst_links_ftruncate="yes"
37047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37048 printf "%s\n" "no" >&6; }
37049 tst_links_ftruncate="no"
37052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37053 conftest$ac_exeext conftest.$ac_ext
37055 if test "$tst_links_ftruncate" = "yes"; then
37056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
37057 printf %s "checking if ftruncate is prototyped... " >&6; }
37058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37059 /* end confdefs.h. */
37061 $curl_includes_unistd
37064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37065 $EGREP "ftruncate" >/dev/null 2>&1
37068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37069 printf "%s\n" "yes" >&6; }
37070 tst_proto_ftruncate="yes"
37074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37075 printf "%s\n" "no" >&6; }
37076 tst_proto_ftruncate="no"
37083 if test "$tst_proto_ftruncate" = "yes"; then
37084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
37085 printf %s "checking if ftruncate is compilable... " >&6; }
37086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37087 /* end confdefs.h. */
37090 $curl_includes_unistd
37095 if(0 != ftruncate(0, 0))
37103 if ac_fn_c_try_compile "$LINENO"
37106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37107 printf "%s\n" "yes" >&6; }
37108 tst_compi_ftruncate="yes"
37112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37113 printf "%s\n" "no" >&6; }
37114 tst_compi_ftruncate="no"
37117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37120 if test "$tst_compi_ftruncate" = "yes"; then
37121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
37122 printf %s "checking if ftruncate usage allowed... " >&6; }
37123 if test "x$curl_disallow_ftruncate" != "xyes"; then
37124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37125 printf "%s\n" "yes" >&6; }
37126 tst_allow_ftruncate="yes"
37128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37129 printf "%s\n" "no" >&6; }
37130 tst_allow_ftruncate="no"
37134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
37135 printf %s "checking if ftruncate might be used... " >&6; }
37136 if test "$tst_links_ftruncate" = "yes" &&
37137 test "$tst_proto_ftruncate" = "yes" &&
37138 test "$tst_compi_ftruncate" = "yes" &&
37139 test "$tst_allow_ftruncate" = "yes"; then
37140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37141 printf "%s\n" "yes" >&6; }
37143 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
37145 curl_cv_func_ftruncate="yes"
37147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37148 printf "%s\n" "no" >&6; }
37149 curl_cv_func_ftruncate="no"
37153 curl_includes_stdlib="\
37154 /* includes start */
37155 #ifdef HAVE_SYS_TYPES_H
37156 # include <sys/types.h>
37158 #include <stdlib.h>
37159 /* includes end */"
37160 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
37162 if test "x$ac_cv_header_sys_types_h" = xyes
37164 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37171 tst_links_getaddrinfo="unknown"
37172 tst_proto_getaddrinfo="unknown"
37173 tst_compi_getaddrinfo="unknown"
37174 tst_works_getaddrinfo="unknown"
37175 tst_allow_getaddrinfo="unknown"
37176 tst_tsafe_getaddrinfo="unknown"
37178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
37179 printf %s "checking if getaddrinfo can be linked... " >&6; }
37180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37181 /* end confdefs.h. */
37184 $curl_includes_ws2tcpip
37185 $curl_includes_sys_socket
37186 $curl_includes_netdb
37191 if(0 != getaddrinfo(0, 0, 0, 0))
37199 if ac_fn_c_try_link "$LINENO"
37202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37203 printf "%s\n" "yes" >&6; }
37204 tst_links_getaddrinfo="yes"
37208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37209 printf "%s\n" "no" >&6; }
37210 tst_links_getaddrinfo="no"
37213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37214 conftest$ac_exeext conftest.$ac_ext
37216 if test "$tst_links_getaddrinfo" = "yes"; then
37217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
37218 printf %s "checking if getaddrinfo is prototyped... " >&6; }
37219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37220 /* end confdefs.h. */
37222 $curl_includes_ws2tcpip
37223 $curl_includes_sys_socket
37224 $curl_includes_netdb
37227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37228 $EGREP "getaddrinfo" >/dev/null 2>&1
37231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37232 printf "%s\n" "yes" >&6; }
37233 tst_proto_getaddrinfo="yes"
37237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37238 printf "%s\n" "no" >&6; }
37239 tst_proto_getaddrinfo="no"
37246 if test "$tst_proto_getaddrinfo" = "yes"; then
37247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
37248 printf %s "checking if getaddrinfo is compilable... " >&6; }
37249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37250 /* end confdefs.h. */
37253 $curl_includes_ws2tcpip
37254 $curl_includes_sys_socket
37255 $curl_includes_netdb
37260 if(0 != getaddrinfo(0, 0, 0, 0))
37268 if ac_fn_c_try_compile "$LINENO"
37271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37272 printf "%s\n" "yes" >&6; }
37273 tst_compi_getaddrinfo="yes"
37277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37278 printf "%s\n" "no" >&6; }
37279 tst_compi_getaddrinfo="no"
37282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37285 if test "x$cross_compiling" != "xyes" &&
37286 test "$tst_compi_getaddrinfo" = "yes"; then
37287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37288 printf %s "checking if getaddrinfo seems to work... " >&6; }
37292 if test "$cross_compiling" = yes
37294 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37295 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37296 as_fn_error $? "cannot run test program while cross compiling
37297 See \`config.log' for more details" "$LINENO" 5; }
37299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37300 /* end confdefs.h. */
37303 $curl_includes_ws2tcpip
37304 $curl_includes_stdlib
37305 $curl_includes_string
37306 $curl_includes_sys_socket
37307 $curl_includes_netdb
37312 struct addrinfo hints;
37313 struct addrinfo *ai = 0;
37316 #ifdef HAVE_WINSOCK2_H
37318 if (WSAStartup(MAKEWORD(2,2), &wsa))
37322 memset(&hints, 0, sizeof(hints));
37323 hints.ai_flags = AI_NUMERICHOST;
37324 hints.ai_family = AF_UNSPEC;
37325 hints.ai_socktype = SOCK_STREAM;
37326 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37328 exit(1); /* fail */
37337 if ac_fn_c_try_run "$LINENO"
37339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37340 printf "%s\n" "yes" >&6; }
37341 tst_works_getaddrinfo="yes"
37344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37345 printf "%s\n" "no" >&6; }
37346 tst_works_getaddrinfo="no"
37349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37350 conftest.$ac_objext conftest.beam conftest.$ac_ext
37356 old=$LD_LIBRARY_PATH
37357 CC="sh ./run-compiler"
37358 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37359 export LD_LIBRARY_PATH
37360 if test "$cross_compiling" = yes
37362 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37363 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37364 as_fn_error $? "cannot run test program while cross compiling
37365 See \`config.log' for more details" "$LINENO" 5; }
37367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37368 /* end confdefs.h. */
37371 $curl_includes_ws2tcpip
37372 $curl_includes_stdlib
37373 $curl_includes_string
37374 $curl_includes_sys_socket
37375 $curl_includes_netdb
37380 struct addrinfo hints;
37381 struct addrinfo *ai = 0;
37384 #ifdef HAVE_WINSOCK2_H
37386 if (WSAStartup(MAKEWORD(2,2), &wsa))
37390 memset(&hints, 0, sizeof(hints));
37391 hints.ai_flags = AI_NUMERICHOST;
37392 hints.ai_family = AF_UNSPEC;
37393 hints.ai_socktype = SOCK_STREAM;
37394 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37396 exit(1); /* fail */
37405 if ac_fn_c_try_run "$LINENO"
37407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37408 printf "%s\n" "yes" >&6; }
37409 tst_works_getaddrinfo="yes"
37412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37413 printf "%s\n" "no" >&6; }
37414 tst_works_getaddrinfo="no"
37417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37418 conftest.$ac_objext conftest.beam conftest.$ac_ext
37421 LD_LIBRARY_PATH=$old # restore
37428 if test "$tst_compi_getaddrinfo" = "yes" &&
37429 test "$tst_works_getaddrinfo" != "no"; then
37430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37431 printf %s "checking if getaddrinfo usage allowed... " >&6; }
37432 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37434 printf "%s\n" "yes" >&6; }
37435 tst_allow_getaddrinfo="yes"
37437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37438 printf "%s\n" "no" >&6; }
37439 tst_allow_getaddrinfo="no"
37443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37444 printf %s "checking if getaddrinfo might be used... " >&6; }
37445 if test "$tst_links_getaddrinfo" = "yes" &&
37446 test "$tst_proto_getaddrinfo" = "yes" &&
37447 test "$tst_compi_getaddrinfo" = "yes" &&
37448 test "$tst_allow_getaddrinfo" = "yes" &&
37449 test "$tst_works_getaddrinfo" != "no"; then
37450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37451 printf "%s\n" "yes" >&6; }
37453 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37455 curl_cv_func_getaddrinfo="yes"
37457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37458 printf "%s\n" "no" >&6; }
37459 curl_cv_func_getaddrinfo="no"
37460 curl_cv_func_getaddrinfo_threadsafe="no"
37463 if test "$curl_cv_func_getaddrinfo" = "yes"; then
37464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37465 printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37467 aix[1234].* | aix5.[01].*)
37468 tst_tsafe_getaddrinfo="no"
37471 tst_tsafe_getaddrinfo="yes"
37474 tst_tsafe_getaddrinfo="no"
37477 tst_tsafe_getaddrinfo="yes"
37479 freebsd[1234].* | freebsd5.[1234]*)
37480 tst_tsafe_getaddrinfo="no"
37483 tst_tsafe_getaddrinfo="yes"
37485 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37486 tst_tsafe_getaddrinfo="no"
37489 tst_tsafe_getaddrinfo="yes"
37492 tst_tsafe_getaddrinfo="yes"
37495 tst_tsafe_getaddrinfo="no"
37498 tst_tsafe_getaddrinfo="yes"
37501 tst_tsafe_getaddrinfo="no"
37504 tst_tsafe_getaddrinfo="yes"
37507 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37508 test "$curl_cv_native_windows" = "yes"; then
37509 tst_tsafe_getaddrinfo="yes"
37511 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37515 /* end confdefs.h. */
37518 $curl_includes_sys_socket
37519 $curl_includes_netdb
37526 force compilation error
37532 if ac_fn_c_try_compile "$LINENO"
37535 tst_symbol_defined="yes"
37539 tst_symbol_defined="no"
37542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37543 if test "$tst_symbol_defined" = "yes"; then
37544 curl_cv_have_def_h_errno=yes
37547 curl_cv_have_def_h_errno=no
37551 if test "$curl_cv_have_def_h_errno" = "yes"; then
37552 tst_h_errno_macro="yes"
37554 tst_h_errno_macro="no"
37556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37557 /* end confdefs.h. */
37560 $curl_includes_sys_socket
37561 $curl_includes_netdb
37575 if ac_fn_c_try_compile "$LINENO"
37578 tst_h_errno_modifiable_lvalue="yes"
37582 tst_h_errno_modifiable_lvalue="no"
37585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37587 /* end confdefs.h. */
37594 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37596 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37599 force compilation error
37607 if ac_fn_c_try_compile "$LINENO"
37610 tst_h_errno_sbs_issue_7="yes"
37614 tst_h_errno_sbs_issue_7="no"
37617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37618 if test "$tst_h_errno_macro" = "no" &&
37619 test "$tst_h_errno_modifiable_lvalue" = "no" &&
37620 test "$tst_h_errno_sbs_issue_7" = "no"; then
37621 tst_tsafe_getaddrinfo="no"
37623 tst_tsafe_getaddrinfo="yes"
37626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37627 printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37628 if test "$tst_tsafe_getaddrinfo" = "yes"; then
37630 printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37632 curl_cv_func_getaddrinfo_threadsafe="yes"
37634 curl_cv_func_getaddrinfo_threadsafe="no"
37640 tst_links_gethostbyname="unknown"
37641 tst_proto_gethostbyname="unknown"
37642 tst_compi_gethostbyname="unknown"
37643 tst_allow_gethostbyname="unknown"
37645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37646 printf %s "checking if gethostbyname can be linked... " >&6; }
37647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37648 /* end confdefs.h. */
37651 $curl_includes_winsock2
37652 $curl_includes_bsdsocket
37653 $curl_includes_netdb
37658 if(0 != gethostbyname(0))
37666 if ac_fn_c_try_link "$LINENO"
37669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37670 printf "%s\n" "yes" >&6; }
37671 tst_links_gethostbyname="yes"
37675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37676 printf "%s\n" "no" >&6; }
37677 tst_links_gethostbyname="no"
37680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37681 conftest$ac_exeext conftest.$ac_ext
37683 if test "$tst_links_gethostbyname" = "yes"; then
37684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
37685 printf %s "checking if gethostbyname is prototyped... " >&6; }
37686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37687 /* end confdefs.h. */
37689 $curl_includes_winsock2
37690 $curl_includes_bsdsocket
37691 $curl_includes_netdb
37694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37695 $EGREP "gethostbyname" >/dev/null 2>&1
37698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37699 printf "%s\n" "yes" >&6; }
37700 tst_proto_gethostbyname="yes"
37704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37705 printf "%s\n" "no" >&6; }
37706 tst_proto_gethostbyname="no"
37713 if test "$tst_proto_gethostbyname" = "yes"; then
37714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
37715 printf %s "checking if gethostbyname is compilable... " >&6; }
37716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37717 /* end confdefs.h. */
37720 $curl_includes_winsock2
37721 $curl_includes_bsdsocket
37722 $curl_includes_netdb
37727 if(0 != gethostbyname(0))
37735 if ac_fn_c_try_compile "$LINENO"
37738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37739 printf "%s\n" "yes" >&6; }
37740 tst_compi_gethostbyname="yes"
37744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37745 printf "%s\n" "no" >&6; }
37746 tst_compi_gethostbyname="no"
37749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37752 if test "$tst_compi_gethostbyname" = "yes"; then
37753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
37754 printf %s "checking if gethostbyname usage allowed... " >&6; }
37755 if test "x$curl_disallow_gethostbyname" != "xyes"; then
37756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37757 printf "%s\n" "yes" >&6; }
37758 tst_allow_gethostbyname="yes"
37760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37761 printf "%s\n" "no" >&6; }
37762 tst_allow_gethostbyname="no"
37766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
37767 printf %s "checking if gethostbyname might be used... " >&6; }
37768 if test "$tst_links_gethostbyname" = "yes" &&
37769 test "$tst_proto_gethostbyname" = "yes" &&
37770 test "$tst_compi_gethostbyname" = "yes" &&
37771 test "$tst_allow_gethostbyname" = "yes"; then
37772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37773 printf "%s\n" "yes" >&6; }
37775 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
37777 curl_cv_func_gethostbyname="yes"
37779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37780 printf "%s\n" "no" >&6; }
37781 curl_cv_func_gethostbyname="no"
37786 tst_links_gethostbyname_r="unknown"
37787 tst_proto_gethostbyname_r="unknown"
37788 tst_compi_gethostbyname_r="unknown"
37789 tst_allow_gethostbyname_r="unknown"
37790 tst_nargs_gethostbyname_r="unknown"
37792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
37793 printf %s "checking if gethostbyname_r can be linked... " >&6; }
37794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37795 /* end confdefs.h. */
37798 #define gethostbyname_r innocuous_gethostbyname_r
37800 # include <limits.h>
37802 # include <assert.h>
37804 #undef gethostbyname_r
37808 char gethostbyname_r ();
37809 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
37815 return gethostbyname_r ();
37821 if ac_fn_c_try_link "$LINENO"
37824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37825 printf "%s\n" "yes" >&6; }
37826 tst_links_gethostbyname_r="yes"
37830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37831 printf "%s\n" "no" >&6; }
37832 tst_links_gethostbyname_r="no"
37835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37836 conftest$ac_exeext conftest.$ac_ext
37838 if test "$tst_links_gethostbyname_r" = "yes"; then
37839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
37840 printf %s "checking if gethostbyname_r is prototyped... " >&6; }
37841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37842 /* end confdefs.h. */
37844 $curl_includes_netdb
37847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37848 $EGREP "gethostbyname_r" >/dev/null 2>&1
37851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37852 printf "%s\n" "yes" >&6; }
37853 tst_proto_gethostbyname_r="yes"
37857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37858 printf "%s\n" "no" >&6; }
37859 tst_proto_gethostbyname_r="no"
37866 if test "$tst_proto_gethostbyname_r" = "yes"; then
37867 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
37869 printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
37870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37871 /* end confdefs.h. */
37874 $curl_includes_netdb
37875 $curl_includes_bsdsocket
37880 if(0 != gethostbyname_r(0, 0, 0))
37888 if ac_fn_c_try_compile "$LINENO"
37891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37892 printf "%s\n" "yes" >&6; }
37893 tst_compi_gethostbyname_r="yes"
37894 tst_nargs_gethostbyname_r="3"
37898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37899 printf "%s\n" "no" >&6; }
37900 tst_compi_gethostbyname_r="no"
37903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37905 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
37907 printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
37908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37909 /* end confdefs.h. */
37912 $curl_includes_netdb
37913 $curl_includes_bsdsocket
37918 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
37926 if ac_fn_c_try_compile "$LINENO"
37929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37930 printf "%s\n" "yes" >&6; }
37931 tst_compi_gethostbyname_r="yes"
37932 tst_nargs_gethostbyname_r="5"
37936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37937 printf "%s\n" "no" >&6; }
37938 tst_compi_gethostbyname_r="no"
37941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37943 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
37945 printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
37946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37947 /* end confdefs.h. */
37950 $curl_includes_netdb
37951 $curl_includes_bsdsocket
37956 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
37964 if ac_fn_c_try_compile "$LINENO"
37967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37968 printf "%s\n" "yes" >&6; }
37969 tst_compi_gethostbyname_r="yes"
37970 tst_nargs_gethostbyname_r="6"
37974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37975 printf "%s\n" "no" >&6; }
37976 tst_compi_gethostbyname_r="no"
37979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
37982 printf %s "checking if gethostbyname_r is compilable... " >&6; }
37983 if test "$tst_compi_gethostbyname_r" = "yes"; then
37984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37985 printf "%s\n" "yes" >&6; }
37987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37988 printf "%s\n" "no" >&6; }
37992 if test "$tst_compi_gethostbyname_r" = "yes"; then
37993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
37994 printf %s "checking if gethostbyname_r usage allowed... " >&6; }
37995 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
37996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37997 printf "%s\n" "yes" >&6; }
37998 tst_allow_gethostbyname_r="yes"
38000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38001 printf "%s\n" "no" >&6; }
38002 tst_allow_gethostbyname_r="no"
38006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
38007 printf %s "checking if gethostbyname_r might be used... " >&6; }
38008 if test "$tst_links_gethostbyname_r" = "yes" &&
38009 test "$tst_proto_gethostbyname_r" = "yes" &&
38010 test "$tst_compi_gethostbyname_r" = "yes" &&
38011 test "$tst_allow_gethostbyname_r" = "yes"; then
38012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38013 printf "%s\n" "yes" >&6; }
38015 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
38018 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
38020 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
38022 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
38024 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
38026 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
38028 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
38032 curl_cv_func_gethostbyname_r="yes"
38034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38035 printf "%s\n" "no" >&6; }
38036 curl_cv_func_gethostbyname_r="no"
38040 curl_preprocess_callconv="\
38041 /* preprocess start */
38042 #ifdef HAVE_WINDOWS_H
38043 # define FUNCALLCONV __stdcall
38045 # define FUNCALLCONV
38047 /* preprocess end */"
38051 tst_links_gethostname="unknown"
38052 tst_proto_gethostname="unknown"
38053 tst_compi_gethostname="unknown"
38054 tst_allow_gethostname="unknown"
38056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
38057 printf %s "checking if gethostname can be linked... " >&6; }
38058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38059 /* end confdefs.h. */
38062 $curl_includes_winsock2
38063 $curl_includes_unistd
38064 $curl_includes_bsdsocket
38069 if(0 != gethostname(0, 0))
38077 if ac_fn_c_try_link "$LINENO"
38080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38081 printf "%s\n" "yes" >&6; }
38082 tst_links_gethostname="yes"
38086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38087 printf "%s\n" "no" >&6; }
38088 tst_links_gethostname="no"
38091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38092 conftest$ac_exeext conftest.$ac_ext
38094 if test "$tst_links_gethostname" = "yes"; then
38095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
38096 printf %s "checking if gethostname is prototyped... " >&6; }
38097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38098 /* end confdefs.h. */
38100 $curl_includes_winsock2
38101 $curl_includes_unistd
38102 $curl_includes_bsdsocket
38105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38106 $EGREP "gethostname" >/dev/null 2>&1
38109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38110 printf "%s\n" "yes" >&6; }
38111 tst_proto_gethostname="yes"
38115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38116 printf "%s\n" "no" >&6; }
38117 tst_proto_gethostname="no"
38124 if test "$tst_proto_gethostname" = "yes"; then
38125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
38126 printf %s "checking if gethostname is compilable... " >&6; }
38127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38128 /* end confdefs.h. */
38131 $curl_includes_winsock2
38132 $curl_includes_unistd
38133 $curl_includes_bsdsocket
38138 if(0 != gethostname(0, 0))
38146 if ac_fn_c_try_compile "$LINENO"
38149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38150 printf "%s\n" "yes" >&6; }
38151 tst_compi_gethostname="yes"
38155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38156 printf "%s\n" "no" >&6; }
38157 tst_compi_gethostname="no"
38160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38163 if test "$tst_compi_gethostname" = "yes"; then
38164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
38165 printf %s "checking for gethostname arg 2 data type... " >&6; }
38166 tst_gethostname_type_arg2="unknown"
38167 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
38168 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
38169 if test "$tst_gethostname_type_arg2" = "unknown"; then
38170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38171 /* end confdefs.h. */
38174 $curl_includes_winsock2
38175 $curl_includes_unistd
38176 $curl_includes_bsdsocket
38177 $curl_preprocess_callconv
38178 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
38183 if(0 != gethostname(0, 0))
38191 if ac_fn_c_try_compile "$LINENO"
38194 tst_gethostname_type_arg2="$tst_arg2"
38197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
38202 printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
38203 if test "$tst_gethostname_type_arg2" != "unknown"; then
38205 printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
38210 if test "$tst_compi_gethostname" = "yes"; then
38211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
38212 printf %s "checking if gethostname usage allowed... " >&6; }
38213 if test "x$curl_disallow_gethostname" != "xyes"; then
38214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38215 printf "%s\n" "yes" >&6; }
38216 tst_allow_gethostname="yes"
38218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38219 printf "%s\n" "no" >&6; }
38220 tst_allow_gethostname="no"
38224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
38225 printf %s "checking if gethostname might be used... " >&6; }
38226 if test "$tst_links_gethostname" = "yes" &&
38227 test "$tst_proto_gethostname" = "yes" &&
38228 test "$tst_compi_gethostname" = "yes" &&
38229 test "$tst_allow_gethostname" = "yes"; then
38230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38231 printf "%s\n" "yes" >&6; }
38233 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
38235 curl_cv_func_gethostname="yes"
38237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38238 printf "%s\n" "no" >&6; }
38239 curl_cv_func_gethostname="no"
38244 tst_links_getpeername="unknown"
38245 tst_proto_getpeername="unknown"
38246 tst_compi_getpeername="unknown"
38247 tst_allow_getpeername="unknown"
38249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
38250 printf %s "checking if getpeername can be linked... " >&6; }
38251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38252 /* end confdefs.h. */
38255 $curl_includes_winsock2
38256 $curl_includes_bsdsocket
38257 $curl_includes_sys_socket
38262 if(0 != getpeername(0, (void *)0, (void *)0))
38270 if ac_fn_c_try_link "$LINENO"
38273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38274 printf "%s\n" "yes" >&6; }
38275 tst_links_getpeername="yes"
38279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38280 printf "%s\n" "no" >&6; }
38281 tst_links_getpeername="no"
38284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38285 conftest$ac_exeext conftest.$ac_ext
38287 if test "$tst_links_getpeername" = "yes"; then
38288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38289 printf %s "checking if getpeername is prototyped... " >&6; }
38290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38291 /* end confdefs.h. */
38293 $curl_includes_winsock2
38294 $curl_includes_bsdsocket
38295 $curl_includes_sys_socket
38298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38299 $EGREP "getpeername" >/dev/null 2>&1
38302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38303 printf "%s\n" "yes" >&6; }
38304 tst_proto_getpeername="yes"
38308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38309 printf "%s\n" "no" >&6; }
38310 tst_proto_getpeername="no"
38317 if test "$tst_proto_getpeername" = "yes"; then
38318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38319 printf %s "checking if getpeername is compilable... " >&6; }
38320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38321 /* end confdefs.h. */
38324 $curl_includes_winsock2
38325 $curl_includes_bsdsocket
38326 $curl_includes_sys_socket
38331 if(0 != getpeername(0, (void *)0, (void *)0))
38339 if ac_fn_c_try_compile "$LINENO"
38342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38343 printf "%s\n" "yes" >&6; }
38344 tst_compi_getpeername="yes"
38348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38349 printf "%s\n" "no" >&6; }
38350 tst_compi_getpeername="no"
38353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38356 if test "$tst_compi_getpeername" = "yes"; then
38357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38358 printf %s "checking if getpeername usage allowed... " >&6; }
38359 if test "x$curl_disallow_getpeername" != "xyes"; then
38360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38361 printf "%s\n" "yes" >&6; }
38362 tst_allow_getpeername="yes"
38364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38365 printf "%s\n" "no" >&6; }
38366 tst_allow_getpeername="no"
38370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38371 printf %s "checking if getpeername might be used... " >&6; }
38372 if test "$tst_links_getpeername" = "yes" &&
38373 test "$tst_proto_getpeername" = "yes" &&
38374 test "$tst_compi_getpeername" = "yes" &&
38375 test "$tst_allow_getpeername" = "yes"; then
38376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38377 printf "%s\n" "yes" >&6; }
38379 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38381 curl_cv_func_getpeername="yes"
38383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38384 printf "%s\n" "no" >&6; }
38385 curl_cv_func_getpeername="no"
38390 tst_links_getsockname="unknown"
38391 tst_proto_getsockname="unknown"
38392 tst_compi_getsockname="unknown"
38393 tst_allow_getsockname="unknown"
38395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38396 printf %s "checking if getsockname can be linked... " >&6; }
38397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38398 /* end confdefs.h. */
38401 $curl_includes_winsock2
38402 $curl_includes_bsdsocket
38403 $curl_includes_sys_socket
38408 if(0 != getsockname(0, (void *)0, (void *)0))
38416 if ac_fn_c_try_link "$LINENO"
38419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38420 printf "%s\n" "yes" >&6; }
38421 tst_links_getsockname="yes"
38425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38426 printf "%s\n" "no" >&6; }
38427 tst_links_getsockname="no"
38430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38431 conftest$ac_exeext conftest.$ac_ext
38433 if test "$tst_links_getsockname" = "yes"; then
38434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38435 printf %s "checking if getsockname is prototyped... " >&6; }
38436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38437 /* end confdefs.h. */
38439 $curl_includes_winsock2
38440 $curl_includes_bsdsocket
38441 $curl_includes_sys_socket
38444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38445 $EGREP "getsockname" >/dev/null 2>&1
38448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38449 printf "%s\n" "yes" >&6; }
38450 tst_proto_getsockname="yes"
38454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38455 printf "%s\n" "no" >&6; }
38456 tst_proto_getsockname="no"
38463 if test "$tst_proto_getsockname" = "yes"; then
38464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38465 printf %s "checking if getsockname is compilable... " >&6; }
38466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38467 /* end confdefs.h. */
38470 $curl_includes_winsock2
38471 $curl_includes_bsdsocket
38472 $curl_includes_sys_socket
38477 if(0 != getsockname(0, (void *)0, (void *)0))
38485 if ac_fn_c_try_compile "$LINENO"
38488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38489 printf "%s\n" "yes" >&6; }
38490 tst_compi_getsockname="yes"
38494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38495 printf "%s\n" "no" >&6; }
38496 tst_compi_getsockname="no"
38499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38502 if test "$tst_compi_getsockname" = "yes"; then
38503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38504 printf %s "checking if getsockname usage allowed... " >&6; }
38505 if test "x$curl_disallow_getsockname" != "xyes"; then
38506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38507 printf "%s\n" "yes" >&6; }
38508 tst_allow_getsockname="yes"
38510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38511 printf "%s\n" "no" >&6; }
38512 tst_allow_getsockname="no"
38516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38517 printf %s "checking if getsockname might be used... " >&6; }
38518 if test "$tst_links_getsockname" = "yes" &&
38519 test "$tst_proto_getsockname" = "yes" &&
38520 test "$tst_compi_getsockname" = "yes" &&
38521 test "$tst_allow_getsockname" = "yes"; then
38522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38523 printf "%s\n" "yes" >&6; }
38525 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38527 curl_cv_func_getsockname="yes"
38529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38530 printf "%s\n" "no" >&6; }
38531 curl_cv_func_getsockname="no"
38535 curl_includes_netif="\
38536 /* includes start */
38537 #ifdef HAVE_NET_IF_H
38538 # include <net/if.h>
38540 /* includes end */"
38541 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38543 if test "x$ac_cv_header_net_if_h" = xyes
38545 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38552 tst_links_if_nametoindex="unknown"
38553 tst_proto_if_nametoindex="unknown"
38554 tst_compi_if_nametoindex="unknown"
38555 tst_allow_if_nametoindex="unknown"
38557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38558 printf %s "checking if if_nametoindex can be linked... " >&6; }
38559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38560 /* end confdefs.h. */
38563 $curl_includes_winsock2
38564 $curl_includes_bsdsocket
38565 #include <net/if.h>
38570 if(0 != if_nametoindex(""))
38578 if ac_fn_c_try_link "$LINENO"
38581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38582 printf "%s\n" "yes" >&6; }
38583 tst_links_if_nametoindex="yes"
38587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38588 printf "%s\n" "no" >&6; }
38589 tst_links_if_nametoindex="no"
38592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38593 conftest$ac_exeext conftest.$ac_ext
38595 if test "$tst_links_if_nametoindex" = "yes"; then
38596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38597 printf %s "checking if if_nametoindex is prototyped... " >&6; }
38598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38599 /* end confdefs.h. */
38601 $curl_includes_winsock2
38602 $curl_includes_netif
38605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38606 $EGREP "if_nametoindex" >/dev/null 2>&1
38609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38610 printf "%s\n" "yes" >&6; }
38611 tst_proto_if_nametoindex="yes"
38615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38616 printf "%s\n" "no" >&6; }
38617 tst_proto_if_nametoindex="no"
38624 if test "$tst_proto_if_nametoindex" = "yes"; then
38625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38626 printf %s "checking if if_nametoindex is compilable... " >&6; }
38627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38628 /* end confdefs.h. */
38631 $curl_includes_winsock2
38632 $curl_includes_netif
38637 if(0 != if_nametoindex(""))
38645 if ac_fn_c_try_compile "$LINENO"
38648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38649 printf "%s\n" "yes" >&6; }
38650 tst_compi_if_nametoindex="yes"
38654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38655 printf "%s\n" "no" >&6; }
38656 tst_compi_if_nametoindex="no"
38659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38662 if test "$tst_compi_if_nametoindex" = "yes"; then
38663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38664 printf %s "checking if if_nametoindex usage allowed... " >&6; }
38665 if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38667 printf "%s\n" "yes" >&6; }
38668 tst_allow_if_nametoindex="yes"
38670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38671 printf "%s\n" "no" >&6; }
38672 tst_allow_if_nametoindex="no"
38676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38677 printf %s "checking if if_nametoindex might be used... " >&6; }
38678 if test "$tst_links_if_nametoindex" = "yes" &&
38679 test "$tst_proto_if_nametoindex" = "yes" &&
38680 test "$tst_compi_if_nametoindex" = "yes" &&
38681 test "$tst_allow_if_nametoindex" = "yes"; then
38682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38683 printf "%s\n" "yes" >&6; }
38685 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
38687 curl_cv_func_if_nametoindex="yes"
38689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38690 printf "%s\n" "no" >&6; }
38691 curl_cv_func_if_nametoindex="no"
38695 curl_includes_ifaddrs="\
38696 /* includes start */
38697 #ifdef HAVE_SYS_TYPES_H
38698 # include <sys/types.h>
38700 #ifdef HAVE_SYS_SOCKET_H
38701 # include <sys/socket.h>
38703 #ifdef HAVE_NETINET_IN_H
38704 # include <netinet/in.h>
38706 #ifdef HAVE_IFADDRS_H
38707 # include <ifaddrs.h>
38709 /* includes end */"
38710 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
38712 if test "x$ac_cv_header_sys_types_h" = xyes
38714 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38717 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
38719 if test "x$ac_cv_header_sys_socket_h" = xyes
38721 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
38724 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
38726 if test "x$ac_cv_header_netinet_in_h" = xyes
38728 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
38731 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
38733 if test "x$ac_cv_header_ifaddrs_h" = xyes
38735 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
38742 tst_links_getifaddrs="unknown"
38743 tst_proto_getifaddrs="unknown"
38744 tst_compi_getifaddrs="unknown"
38745 tst_works_getifaddrs="unknown"
38746 tst_allow_getifaddrs="unknown"
38748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
38749 printf %s "checking if getifaddrs can be linked... " >&6; }
38750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38751 /* end confdefs.h. */
38754 #define getifaddrs innocuous_getifaddrs
38756 # include <limits.h>
38758 # include <assert.h>
38764 char getifaddrs ();
38765 #if defined __stub_getifaddrs || defined __stub___getifaddrs
38771 return getifaddrs ();
38777 if ac_fn_c_try_link "$LINENO"
38780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38781 printf "%s\n" "yes" >&6; }
38782 tst_links_getifaddrs="yes"
38786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38787 printf "%s\n" "no" >&6; }
38788 tst_links_getifaddrs="no"
38791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38792 conftest$ac_exeext conftest.$ac_ext
38794 if test "$tst_links_getifaddrs" = "yes"; then
38795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
38796 printf %s "checking if getifaddrs is prototyped... " >&6; }
38797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38798 /* end confdefs.h. */
38800 $curl_includes_ifaddrs
38803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38804 $EGREP "getifaddrs" >/dev/null 2>&1
38807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38808 printf "%s\n" "yes" >&6; }
38809 tst_proto_getifaddrs="yes"
38813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38814 printf "%s\n" "no" >&6; }
38815 tst_proto_getifaddrs="no"
38822 if test "$tst_proto_getifaddrs" = "yes"; then
38823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
38824 printf %s "checking if getifaddrs is compilable... " >&6; }
38825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38826 /* end confdefs.h. */
38829 $curl_includes_ifaddrs
38834 if(0 != getifaddrs(0))
38842 if ac_fn_c_try_compile "$LINENO"
38845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38846 printf "%s\n" "yes" >&6; }
38847 tst_compi_getifaddrs="yes"
38851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38852 printf "%s\n" "no" >&6; }
38853 tst_compi_getifaddrs="no"
38856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38859 if test "x$cross_compiling" != "xyes" &&
38860 test "$tst_compi_getifaddrs" = "yes"; then
38861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
38862 printf %s "checking if getifaddrs seems to work... " >&6; }
38866 if test "$cross_compiling" = yes
38868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38869 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38870 as_fn_error $? "cannot run test program while cross compiling
38871 See \`config.log' for more details" "$LINENO" 5; }
38873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38874 /* end confdefs.h. */
38877 $curl_includes_stdlib
38878 $curl_includes_ifaddrs
38883 struct ifaddrs *ifa = 0;
38886 error = getifaddrs(&ifa);
38888 exit(1); /* fail */
38897 if ac_fn_c_try_run "$LINENO"
38899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38900 printf "%s\n" "yes" >&6; }
38901 tst_works_getifaddrs="yes"
38904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38905 printf "%s\n" "no" >&6; }
38906 tst_works_getifaddrs="no"
38909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38910 conftest.$ac_objext conftest.beam conftest.$ac_ext
38916 old=$LD_LIBRARY_PATH
38917 CC="sh ./run-compiler"
38918 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38919 export LD_LIBRARY_PATH
38920 if test "$cross_compiling" = yes
38922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38923 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38924 as_fn_error $? "cannot run test program while cross compiling
38925 See \`config.log' for more details" "$LINENO" 5; }
38927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38928 /* end confdefs.h. */
38931 $curl_includes_stdlib
38932 $curl_includes_ifaddrs
38937 struct ifaddrs *ifa = 0;
38940 error = getifaddrs(&ifa);
38942 exit(1); /* fail */
38951 if ac_fn_c_try_run "$LINENO"
38953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38954 printf "%s\n" "yes" >&6; }
38955 tst_works_getifaddrs="yes"
38958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38959 printf "%s\n" "no" >&6; }
38960 tst_works_getifaddrs="no"
38963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38964 conftest.$ac_objext conftest.beam conftest.$ac_ext
38967 LD_LIBRARY_PATH=$old # restore
38974 if test "$tst_compi_getifaddrs" = "yes" &&
38975 test "$tst_works_getifaddrs" != "no"; then
38976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
38977 printf %s "checking if getifaddrs usage allowed... " >&6; }
38978 if test "x$curl_disallow_getifaddrs" != "xyes"; then
38979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38980 printf "%s\n" "yes" >&6; }
38981 tst_allow_getifaddrs="yes"
38983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38984 printf "%s\n" "no" >&6; }
38985 tst_allow_getifaddrs="no"
38989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
38990 printf %s "checking if getifaddrs might be used... " >&6; }
38991 if test "$tst_links_getifaddrs" = "yes" &&
38992 test "$tst_proto_getifaddrs" = "yes" &&
38993 test "$tst_compi_getifaddrs" = "yes" &&
38994 test "$tst_allow_getifaddrs" = "yes" &&
38995 test "$tst_works_getifaddrs" != "no"; then
38996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38997 printf "%s\n" "yes" >&6; }
38999 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
39001 curl_cv_func_getifaddrs="yes"
39003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39004 printf "%s\n" "no" >&6; }
39005 curl_cv_func_getifaddrs="no"
39009 curl_includes_time="\
39010 /* includes start */
39011 #ifdef HAVE_SYS_TYPES_H
39012 # include <sys/types.h>
39014 #ifdef HAVE_SYS_TIME_H
39015 # include <sys/time.h>
39018 /* includes end */"
39019 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
39021 if test "x$ac_cv_header_sys_types_h" = xyes
39023 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39026 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
39028 if test "x$ac_cv_header_sys_time_h" = xyes
39030 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
39037 tst_links_gmtime_r="unknown"
39038 tst_proto_gmtime_r="unknown"
39039 tst_compi_gmtime_r="unknown"
39040 tst_works_gmtime_r="unknown"
39041 tst_allow_gmtime_r="unknown"
39043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
39044 printf %s "checking if gmtime_r can be linked... " >&6; }
39045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39046 /* end confdefs.h. */
39049 #define gmtime_r innocuous_gmtime_r
39051 # include <limits.h>
39053 # include <assert.h>
39060 #if defined __stub_gmtime_r || defined __stub___gmtime_r
39066 return gmtime_r ();
39072 if ac_fn_c_try_link "$LINENO"
39075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39076 printf "%s\n" "yes" >&6; }
39077 tst_links_gmtime_r="yes"
39081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39082 printf "%s\n" "no" >&6; }
39083 tst_links_gmtime_r="no"
39086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39087 conftest$ac_exeext conftest.$ac_ext
39089 if test "$tst_links_gmtime_r" = "yes"; then
39090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
39091 printf %s "checking if gmtime_r is prototyped... " >&6; }
39092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39093 /* end confdefs.h. */
39095 $curl_includes_time
39098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39099 $EGREP "gmtime_r" >/dev/null 2>&1
39102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39103 printf "%s\n" "yes" >&6; }
39104 tst_proto_gmtime_r="yes"
39108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39109 printf "%s\n" "no" >&6; }
39110 tst_proto_gmtime_r="no"
39117 if test "$tst_proto_gmtime_r" = "yes"; then
39118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
39119 printf %s "checking if gmtime_r is compilable... " >&6; }
39120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39121 /* end confdefs.h. */
39124 $curl_includes_time
39129 if(0 != gmtime_r(0, 0))
39137 if ac_fn_c_try_compile "$LINENO"
39140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39141 printf "%s\n" "yes" >&6; }
39142 tst_compi_gmtime_r="yes"
39146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39147 printf "%s\n" "no" >&6; }
39148 tst_compi_gmtime_r="no"
39151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39154 if test "x$cross_compiling" != "xyes" &&
39155 test "$tst_compi_gmtime_r" = "yes"; then
39156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
39157 printf %s "checking if gmtime_r seems to work... " >&6; }
39161 if test "$cross_compiling" = yes
39163 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39164 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39165 as_fn_error $? "cannot run test program while cross compiling
39166 See \`config.log' for more details" "$LINENO" 5; }
39168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39169 /* end confdefs.h. */
39172 $curl_includes_stdlib
39173 $curl_includes_time
39178 time_t local = 1170352587;
39179 struct tm *gmt = 0;
39181 gmt = gmtime_r(&local, &result);
39192 if ac_fn_c_try_run "$LINENO"
39194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39195 printf "%s\n" "yes" >&6; }
39196 tst_works_gmtime_r="yes"
39199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39200 printf "%s\n" "no" >&6; }
39201 tst_works_gmtime_r="no"
39204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39205 conftest.$ac_objext conftest.beam conftest.$ac_ext
39211 old=$LD_LIBRARY_PATH
39212 CC="sh ./run-compiler"
39213 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39214 export LD_LIBRARY_PATH
39215 if test "$cross_compiling" = yes
39217 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39218 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39219 as_fn_error $? "cannot run test program while cross compiling
39220 See \`config.log' for more details" "$LINENO" 5; }
39222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39223 /* end confdefs.h. */
39226 $curl_includes_stdlib
39227 $curl_includes_time
39232 time_t local = 1170352587;
39233 struct tm *gmt = 0;
39235 gmt = gmtime_r(&local, &result);
39246 if ac_fn_c_try_run "$LINENO"
39248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39249 printf "%s\n" "yes" >&6; }
39250 tst_works_gmtime_r="yes"
39253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39254 printf "%s\n" "no" >&6; }
39255 tst_works_gmtime_r="no"
39258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39259 conftest.$ac_objext conftest.beam conftest.$ac_ext
39262 LD_LIBRARY_PATH=$old # restore
39269 if test "$tst_compi_gmtime_r" = "yes" &&
39270 test "$tst_works_gmtime_r" != "no"; then
39271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
39272 printf %s "checking if gmtime_r usage allowed... " >&6; }
39273 if test "x$curl_disallow_gmtime_r" != "xyes"; then
39274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39275 printf "%s\n" "yes" >&6; }
39276 tst_allow_gmtime_r="yes"
39278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39279 printf "%s\n" "no" >&6; }
39280 tst_allow_gmtime_r="no"
39284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39285 printf %s "checking if gmtime_r might be used... " >&6; }
39286 if test "$tst_links_gmtime_r" = "yes" &&
39287 test "$tst_proto_gmtime_r" = "yes" &&
39288 test "$tst_compi_gmtime_r" = "yes" &&
39289 test "$tst_allow_gmtime_r" = "yes" &&
39290 test "$tst_works_gmtime_r" != "no"; then
39291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39292 printf "%s\n" "yes" >&6; }
39294 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39296 curl_cv_func_gmtime_r="yes"
39298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39299 printf "%s\n" "no" >&6; }
39300 curl_cv_func_gmtime_r="no"
39304 curl_includes_arpa_inet="\
39305 /* includes start */
39306 #ifdef HAVE_SYS_TYPES_H
39307 # include <sys/types.h>
39309 #ifdef HAVE_SYS_SOCKET_H
39310 # include <sys/socket.h>
39312 #ifdef HAVE_NETINET_IN_H
39313 # include <netinet/in.h>
39315 #ifdef HAVE_ARPA_INET_H
39316 # include <arpa/inet.h>
39318 #ifdef HAVE_WINSOCK2_H
39319 #include <winsock2.h>
39320 #include <ws2tcpip.h>
39322 /* includes end */"
39323 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39325 if test "x$ac_cv_header_sys_types_h" = xyes
39327 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39330 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39332 if test "x$ac_cv_header_sys_socket_h" = xyes
39334 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39337 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39339 if test "x$ac_cv_header_netinet_in_h" = xyes
39341 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39344 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39346 if test "x$ac_cv_header_arpa_inet_h" = xyes
39348 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39355 tst_links_inet_ntop="unknown"
39356 tst_proto_inet_ntop="unknown"
39357 tst_compi_inet_ntop="unknown"
39358 tst_works_inet_ntop="unknown"
39359 tst_allow_inet_ntop="unknown"
39361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39362 printf %s "checking if inet_ntop can be linked... " >&6; }
39363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39364 /* end confdefs.h. */
39367 #define inet_ntop innocuous_inet_ntop
39369 # include <limits.h>
39371 # include <assert.h>
39378 #if defined __stub_inet_ntop || defined __stub___inet_ntop
39384 return inet_ntop ();
39390 if ac_fn_c_try_link "$LINENO"
39393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39394 printf "%s\n" "yes" >&6; }
39395 tst_links_inet_ntop="yes"
39399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39400 printf "%s\n" "no" >&6; }
39401 tst_links_inet_ntop="no"
39404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39405 conftest$ac_exeext conftest.$ac_ext
39407 if test "$tst_links_inet_ntop" = "yes"; then
39408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39409 printf %s "checking if inet_ntop is prototyped... " >&6; }
39410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39411 /* end confdefs.h. */
39413 $curl_includes_arpa_inet
39416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39417 $EGREP "inet_ntop" >/dev/null 2>&1
39420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39421 printf "%s\n" "yes" >&6; }
39422 tst_proto_inet_ntop="yes"
39426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39427 printf "%s\n" "no" >&6; }
39428 tst_proto_inet_ntop="no"
39435 if test "$tst_proto_inet_ntop" = "yes"; then
39436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39437 printf %s "checking if inet_ntop is compilable... " >&6; }
39438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39439 /* end confdefs.h. */
39442 $curl_includes_arpa_inet
39447 if(0 != inet_ntop(0, 0, 0, 0))
39455 if ac_fn_c_try_compile "$LINENO"
39458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39459 printf "%s\n" "yes" >&6; }
39460 tst_compi_inet_ntop="yes"
39464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39465 printf "%s\n" "no" >&6; }
39466 tst_compi_inet_ntop="no"
39469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39472 if test "x$cross_compiling" != "xyes" &&
39473 test "$tst_compi_inet_ntop" = "yes"; then
39474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39475 printf %s "checking if inet_ntop seems to work... " >&6; }
39479 if test "$cross_compiling" = yes
39481 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39482 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39483 as_fn_error $? "cannot run test program while cross compiling
39484 See \`config.log' for more details" "$LINENO" 5; }
39486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39487 /* end confdefs.h. */
39490 $curl_includes_stdlib
39491 $curl_includes_arpa_inet
39492 $curl_includes_string
39497 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39498 char ipv4res[sizeof "255.255.255.255"];
39499 unsigned char ipv6a[26];
39500 unsigned char ipv4a[5];
39511 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39513 exit(1); /* fail */
39514 if(ipv4ptr != ipv4res)
39515 exit(1); /* fail */
39517 exit(1); /* fail */
39518 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39519 exit(1); /* fail */
39522 memset(ipv6a, 0, sizeof(ipv6a));
39535 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39537 exit(1); /* fail */
39538 if(ipv6ptr != ipv6res)
39539 exit(1); /* fail */
39541 exit(1); /* fail */
39542 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39543 exit(1); /* fail */
39552 if ac_fn_c_try_run "$LINENO"
39554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39555 printf "%s\n" "yes" >&6; }
39556 tst_works_inet_ntop="yes"
39559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39560 printf "%s\n" "no" >&6; }
39561 tst_works_inet_ntop="no"
39564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39565 conftest.$ac_objext conftest.beam conftest.$ac_ext
39571 old=$LD_LIBRARY_PATH
39572 CC="sh ./run-compiler"
39573 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39574 export LD_LIBRARY_PATH
39575 if test "$cross_compiling" = yes
39577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39578 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39579 as_fn_error $? "cannot run test program while cross compiling
39580 See \`config.log' for more details" "$LINENO" 5; }
39582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39583 /* end confdefs.h. */
39586 $curl_includes_stdlib
39587 $curl_includes_arpa_inet
39588 $curl_includes_string
39593 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39594 char ipv4res[sizeof "255.255.255.255"];
39595 unsigned char ipv6a[26];
39596 unsigned char ipv4a[5];
39607 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39609 exit(1); /* fail */
39610 if(ipv4ptr != ipv4res)
39611 exit(1); /* fail */
39613 exit(1); /* fail */
39614 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39615 exit(1); /* fail */
39618 memset(ipv6a, 0, sizeof(ipv6a));
39631 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39633 exit(1); /* fail */
39634 if(ipv6ptr != ipv6res)
39635 exit(1); /* fail */
39637 exit(1); /* fail */
39638 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39639 exit(1); /* fail */
39648 if ac_fn_c_try_run "$LINENO"
39650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39651 printf "%s\n" "yes" >&6; }
39652 tst_works_inet_ntop="yes"
39655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39656 printf "%s\n" "no" >&6; }
39657 tst_works_inet_ntop="no"
39660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39661 conftest.$ac_objext conftest.beam conftest.$ac_ext
39664 LD_LIBRARY_PATH=$old # restore
39671 if test "$tst_compi_inet_ntop" = "yes" &&
39672 test "$tst_works_inet_ntop" != "no"; then
39673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39674 printf %s "checking if inet_ntop usage allowed... " >&6; }
39675 if test "x$curl_disallow_inet_ntop" != "xyes"; then
39676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39677 printf "%s\n" "yes" >&6; }
39678 tst_allow_inet_ntop="yes"
39680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39681 printf "%s\n" "no" >&6; }
39682 tst_allow_inet_ntop="no"
39686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
39687 printf %s "checking if inet_ntop might be used... " >&6; }
39688 if test "$tst_links_inet_ntop" = "yes" &&
39689 test "$tst_proto_inet_ntop" = "yes" &&
39690 test "$tst_compi_inet_ntop" = "yes" &&
39691 test "$tst_allow_inet_ntop" = "yes" &&
39692 test "$tst_works_inet_ntop" != "no"; then
39693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39694 printf "%s\n" "yes" >&6; }
39696 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
39698 curl_cv_func_inet_ntop="yes"
39700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39701 printf "%s\n" "no" >&6; }
39702 curl_cv_func_inet_ntop="no"
39707 tst_links_inet_pton="unknown"
39708 tst_proto_inet_pton="unknown"
39709 tst_compi_inet_pton="unknown"
39710 tst_works_inet_pton="unknown"
39711 tst_allow_inet_pton="unknown"
39713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
39714 printf %s "checking if inet_pton can be linked... " >&6; }
39715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39716 /* end confdefs.h. */
39719 #define inet_pton innocuous_inet_pton
39721 # include <limits.h>
39723 # include <assert.h>
39730 #if defined __stub_inet_pton || defined __stub___inet_pton
39736 return inet_pton ();
39742 if ac_fn_c_try_link "$LINENO"
39745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39746 printf "%s\n" "yes" >&6; }
39747 tst_links_inet_pton="yes"
39751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39752 printf "%s\n" "no" >&6; }
39753 tst_links_inet_pton="no"
39756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39757 conftest$ac_exeext conftest.$ac_ext
39759 if test "$tst_links_inet_pton" = "yes"; then
39760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
39761 printf %s "checking if inet_pton is prototyped... " >&6; }
39762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39763 /* end confdefs.h. */
39765 $curl_includes_arpa_inet
39768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39769 $EGREP "inet_pton" >/dev/null 2>&1
39772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39773 printf "%s\n" "yes" >&6; }
39774 tst_proto_inet_pton="yes"
39778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39779 printf "%s\n" "no" >&6; }
39780 tst_proto_inet_pton="no"
39787 if test "$tst_proto_inet_pton" = "yes"; then
39788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
39789 printf %s "checking if inet_pton is compilable... " >&6; }
39790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39791 /* end confdefs.h. */
39794 $curl_includes_arpa_inet
39799 if(0 != inet_pton(0, 0, 0))
39807 if ac_fn_c_try_compile "$LINENO"
39810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39811 printf "%s\n" "yes" >&6; }
39812 tst_compi_inet_pton="yes"
39816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39817 printf "%s\n" "no" >&6; }
39818 tst_compi_inet_pton="no"
39821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39824 if test "x$cross_compiling" != "xyes" &&
39825 test "$tst_compi_inet_pton" = "yes"; then
39826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
39827 printf %s "checking if inet_pton seems to work... " >&6; }
39831 if test "$cross_compiling" = yes
39833 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39834 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39835 as_fn_error $? "cannot run test program while cross compiling
39836 See \`config.log' for more details" "$LINENO" 5; }
39838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39839 /* end confdefs.h. */
39842 $curl_includes_stdlib
39843 $curl_includes_arpa_inet
39844 $curl_includes_string
39849 unsigned char ipv6a[16+1];
39850 unsigned char ipv4a[4+1];
39851 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39852 const char *ipv4src = "192.168.100.1";
39854 memset(ipv4a, 1, sizeof(ipv4a));
39855 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39856 exit(1); /* fail */
39858 if( (ipv4a[0] != 0xc0) ||
39859 (ipv4a[1] != 0xa8) ||
39860 (ipv4a[2] != 0x64) ||
39861 (ipv4a[3] != 0x01) ||
39862 (ipv4a[4] != 0x01) )
39863 exit(1); /* fail */
39865 memset(ipv6a, 1, sizeof(ipv6a));
39866 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39867 exit(1); /* fail */
39869 if( (ipv6a[0] != 0xfe) ||
39870 (ipv6a[1] != 0x80) ||
39871 (ipv6a[8] != 0x02) ||
39872 (ipv6a[9] != 0x14) ||
39873 (ipv6a[10] != 0x4f) ||
39874 (ipv6a[11] != 0xff) ||
39875 (ipv6a[12] != 0xfe) ||
39876 (ipv6a[13] != 0x0b) ||
39877 (ipv6a[14] != 0x76) ||
39878 (ipv6a[15] != 0xc8) ||
39879 (ipv6a[16] != 0x01) )
39880 exit(1); /* fail */
39882 if( (ipv6a[2] != 0x0) ||
39883 (ipv6a[3] != 0x0) ||
39884 (ipv6a[4] != 0x0) ||
39885 (ipv6a[5] != 0x0) ||
39886 (ipv6a[6] != 0x0) ||
39887 (ipv6a[7] != 0x0) )
39888 exit(1); /* fail */
39897 if ac_fn_c_try_run "$LINENO"
39899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39900 printf "%s\n" "yes" >&6; }
39901 tst_works_inet_pton="yes"
39904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39905 printf "%s\n" "no" >&6; }
39906 tst_works_inet_pton="no"
39909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39910 conftest.$ac_objext conftest.beam conftest.$ac_ext
39916 old=$LD_LIBRARY_PATH
39917 CC="sh ./run-compiler"
39918 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39919 export LD_LIBRARY_PATH
39920 if test "$cross_compiling" = yes
39922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39923 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39924 as_fn_error $? "cannot run test program while cross compiling
39925 See \`config.log' for more details" "$LINENO" 5; }
39927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39928 /* end confdefs.h. */
39931 $curl_includes_stdlib
39932 $curl_includes_arpa_inet
39933 $curl_includes_string
39938 unsigned char ipv6a[16+1];
39939 unsigned char ipv4a[4+1];
39940 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39941 const char *ipv4src = "192.168.100.1";
39943 memset(ipv4a, 1, sizeof(ipv4a));
39944 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39945 exit(1); /* fail */
39947 if( (ipv4a[0] != 0xc0) ||
39948 (ipv4a[1] != 0xa8) ||
39949 (ipv4a[2] != 0x64) ||
39950 (ipv4a[3] != 0x01) ||
39951 (ipv4a[4] != 0x01) )
39952 exit(1); /* fail */
39954 memset(ipv6a, 1, sizeof(ipv6a));
39955 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39956 exit(1); /* fail */
39958 if( (ipv6a[0] != 0xfe) ||
39959 (ipv6a[1] != 0x80) ||
39960 (ipv6a[8] != 0x02) ||
39961 (ipv6a[9] != 0x14) ||
39962 (ipv6a[10] != 0x4f) ||
39963 (ipv6a[11] != 0xff) ||
39964 (ipv6a[12] != 0xfe) ||
39965 (ipv6a[13] != 0x0b) ||
39966 (ipv6a[14] != 0x76) ||
39967 (ipv6a[15] != 0xc8) ||
39968 (ipv6a[16] != 0x01) )
39969 exit(1); /* fail */
39971 if( (ipv6a[2] != 0x0) ||
39972 (ipv6a[3] != 0x0) ||
39973 (ipv6a[4] != 0x0) ||
39974 (ipv6a[5] != 0x0) ||
39975 (ipv6a[6] != 0x0) ||
39976 (ipv6a[7] != 0x0) )
39977 exit(1); /* fail */
39986 if ac_fn_c_try_run "$LINENO"
39988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39989 printf "%s\n" "yes" >&6; }
39990 tst_works_inet_pton="yes"
39993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39994 printf "%s\n" "no" >&6; }
39995 tst_works_inet_pton="no"
39998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39999 conftest.$ac_objext conftest.beam conftest.$ac_ext
40002 LD_LIBRARY_PATH=$old # restore
40009 if test "$tst_compi_inet_pton" = "yes" &&
40010 test "$tst_works_inet_pton" != "no"; then
40011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
40012 printf %s "checking if inet_pton usage allowed... " >&6; }
40013 if test "x$curl_disallow_inet_pton" != "xyes"; then
40014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40015 printf "%s\n" "yes" >&6; }
40016 tst_allow_inet_pton="yes"
40018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40019 printf "%s\n" "no" >&6; }
40020 tst_allow_inet_pton="no"
40024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
40025 printf %s "checking if inet_pton might be used... " >&6; }
40026 if test "$tst_links_inet_pton" = "yes" &&
40027 test "$tst_proto_inet_pton" = "yes" &&
40028 test "$tst_compi_inet_pton" = "yes" &&
40029 test "$tst_allow_inet_pton" = "yes" &&
40030 test "$tst_works_inet_pton" != "no"; then
40031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40032 printf "%s\n" "yes" >&6; }
40034 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
40036 curl_cv_func_inet_pton="yes"
40038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40039 printf "%s\n" "no" >&6; }
40040 curl_cv_func_inet_pton="no"
40044 curl_includes_stropts="\
40045 /* includes start */
40046 #ifdef HAVE_SYS_TYPES_H
40047 # include <sys/types.h>
40049 #ifdef HAVE_UNISTD_H
40050 # include <unistd.h>
40052 #ifdef HAVE_SYS_SOCKET_H
40053 # include <sys/socket.h>
40055 #ifdef HAVE_SYS_IOCTL_H
40056 # include <sys/ioctl.h>
40058 #ifdef HAVE_STROPTS_H
40059 # include <stropts.h>
40061 /* includes end */"
40062 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stropts
40064 if test "x$ac_cv_header_sys_types_h" = xyes
40066 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
40069 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_stropts
40071 if test "x$ac_cv_header_unistd_h" = xyes
40073 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
40076 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_stropts
40078 if test "x$ac_cv_header_sys_socket_h" = xyes
40080 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
40083 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$curl_includes_stropts
40085 if test "x$ac_cv_header_sys_ioctl_h" = xyes
40087 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
40090 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$curl_includes_stropts
40092 if test "x$ac_cv_header_stropts_h" = xyes
40094 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
40101 tst_links_ioctl="unknown"
40102 tst_proto_ioctl="unknown"
40103 tst_compi_ioctl="unknown"
40104 tst_allow_ioctl="unknown"
40106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
40107 printf %s "checking if ioctl can be linked... " >&6; }
40108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40109 /* end confdefs.h. */
40112 #define ioctl innocuous_ioctl
40114 # include <limits.h>
40116 # include <assert.h>
40123 #if defined __stub_ioctl || defined __stub___ioctl
40135 if ac_fn_c_try_link "$LINENO"
40138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40139 printf "%s\n" "yes" >&6; }
40140 tst_links_ioctl="yes"
40144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40145 printf "%s\n" "no" >&6; }
40146 tst_links_ioctl="no"
40149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40150 conftest$ac_exeext conftest.$ac_ext
40152 if test "$tst_links_ioctl" = "yes"; then
40153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
40154 printf %s "checking if ioctl is prototyped... " >&6; }
40155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40156 /* end confdefs.h. */
40158 $curl_includes_stropts
40161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40162 $EGREP "ioctl" >/dev/null 2>&1
40165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40166 printf "%s\n" "yes" >&6; }
40167 tst_proto_ioctl="yes"
40171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40172 printf "%s\n" "no" >&6; }
40173 tst_proto_ioctl="no"
40180 if test "$tst_proto_ioctl" = "yes"; then
40181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
40182 printf %s "checking if ioctl is compilable... " >&6; }
40183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40184 /* end confdefs.h. */
40187 $curl_includes_stropts
40192 if(0 != ioctl(0, 0, 0))
40200 if ac_fn_c_try_compile "$LINENO"
40203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40204 printf "%s\n" "yes" >&6; }
40205 tst_compi_ioctl="yes"
40209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40210 printf "%s\n" "no" >&6; }
40211 tst_compi_ioctl="no"
40214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40217 if test "$tst_compi_ioctl" = "yes"; then
40218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
40219 printf %s "checking if ioctl usage allowed... " >&6; }
40220 if test "x$curl_disallow_ioctl" != "xyes"; then
40221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40222 printf "%s\n" "yes" >&6; }
40223 tst_allow_ioctl="yes"
40225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40226 printf "%s\n" "no" >&6; }
40227 tst_allow_ioctl="no"
40231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
40232 printf %s "checking if ioctl might be used... " >&6; }
40233 if test "$tst_links_ioctl" = "yes" &&
40234 test "$tst_proto_ioctl" = "yes" &&
40235 test "$tst_compi_ioctl" = "yes" &&
40236 test "$tst_allow_ioctl" = "yes"; then
40237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40238 printf "%s\n" "yes" >&6; }
40240 printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
40242 curl_cv_func_ioctl="yes"
40245 tst_compi_ioctl_fionbio="unknown"
40246 tst_allow_ioctl_fionbio="unknown"
40248 if test "$curl_cv_func_ioctl" = "yes"; then
40249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
40250 printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
40251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40252 /* end confdefs.h. */
40255 $curl_includes_stropts
40261 if(0 != ioctl(0, FIONBIO, &flags))
40269 if ac_fn_c_try_compile "$LINENO"
40272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40273 printf "%s\n" "yes" >&6; }
40274 tst_compi_ioctl_fionbio="yes"
40278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40279 printf "%s\n" "no" >&6; }
40280 tst_compi_ioctl_fionbio="no"
40283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40286 if test "$tst_compi_ioctl_fionbio" = "yes"; then
40287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
40288 printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
40289 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
40290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40291 printf "%s\n" "yes" >&6; }
40292 tst_allow_ioctl_fionbio="yes"
40294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40295 printf "%s\n" "no" >&6; }
40296 tst_allow_ioctl_fionbio="no"
40300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
40301 printf %s "checking if ioctl FIONBIO might be used... " >&6; }
40302 if test "$tst_compi_ioctl_fionbio" = "yes" &&
40303 test "$tst_allow_ioctl_fionbio" = "yes"; then
40304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40305 printf "%s\n" "yes" >&6; }
40307 printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
40309 curl_cv_func_ioctl_fionbio="yes"
40311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40312 printf "%s\n" "no" >&6; }
40313 curl_cv_func_ioctl_fionbio="no"
40318 tst_compi_ioctl_siocgifaddr="unknown"
40319 tst_allow_ioctl_siocgifaddr="unknown"
40321 if test "$curl_cv_func_ioctl" = "yes"; then
40322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
40323 printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
40324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40325 /* end confdefs.h. */
40328 $curl_includes_stropts
40329 #include <net/if.h>
40335 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
40343 if ac_fn_c_try_compile "$LINENO"
40346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40347 printf "%s\n" "yes" >&6; }
40348 tst_compi_ioctl_siocgifaddr="yes"
40352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40353 printf "%s\n" "no" >&6; }
40354 tst_compi_ioctl_siocgifaddr="no"
40357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40360 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
40361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
40362 printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
40363 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
40364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40365 printf "%s\n" "yes" >&6; }
40366 tst_allow_ioctl_siocgifaddr="yes"
40368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40369 printf "%s\n" "no" >&6; }
40370 tst_allow_ioctl_siocgifaddr="no"
40374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
40375 printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
40376 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
40377 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
40378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40379 printf "%s\n" "yes" >&6; }
40381 printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
40383 curl_cv_func_ioctl_siocgifaddr="yes"
40385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40386 printf "%s\n" "no" >&6; }
40387 curl_cv_func_ioctl_siocgifaddr="no"
40391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40392 printf "%s\n" "no" >&6; }
40393 curl_cv_func_ioctl="no"
40398 tst_links_ioctlsocket="unknown"
40399 tst_proto_ioctlsocket="unknown"
40400 tst_compi_ioctlsocket="unknown"
40401 tst_allow_ioctlsocket="unknown"
40403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
40404 printf %s "checking if ioctlsocket can be linked... " >&6; }
40405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40406 /* end confdefs.h. */
40409 $curl_includes_winsock2
40414 if(0 != ioctlsocket(0, 0, 0))
40422 if ac_fn_c_try_link "$LINENO"
40425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40426 printf "%s\n" "yes" >&6; }
40427 tst_links_ioctlsocket="yes"
40431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40432 printf "%s\n" "no" >&6; }
40433 tst_links_ioctlsocket="no"
40436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40437 conftest$ac_exeext conftest.$ac_ext
40439 if test "$tst_links_ioctlsocket" = "yes"; then
40440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
40441 printf %s "checking if ioctlsocket is prototyped... " >&6; }
40442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40443 /* end confdefs.h. */
40445 $curl_includes_winsock2
40448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40449 $EGREP "ioctlsocket" >/dev/null 2>&1
40452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40453 printf "%s\n" "yes" >&6; }
40454 tst_proto_ioctlsocket="yes"
40458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40459 printf "%s\n" "no" >&6; }
40460 tst_proto_ioctlsocket="no"
40467 if test "$tst_proto_ioctlsocket" = "yes"; then
40468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
40469 printf %s "checking if ioctlsocket is compilable... " >&6; }
40470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40471 /* end confdefs.h. */
40474 $curl_includes_winsock2
40479 if(0 != ioctlsocket(0, 0, 0))
40487 if ac_fn_c_try_compile "$LINENO"
40490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40491 printf "%s\n" "yes" >&6; }
40492 tst_compi_ioctlsocket="yes"
40496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40497 printf "%s\n" "no" >&6; }
40498 tst_compi_ioctlsocket="no"
40501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40504 if test "$tst_compi_ioctlsocket" = "yes"; then
40505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40506 printf %s "checking if ioctlsocket usage allowed... " >&6; }
40507 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40509 printf "%s\n" "yes" >&6; }
40510 tst_allow_ioctlsocket="yes"
40512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40513 printf "%s\n" "no" >&6; }
40514 tst_allow_ioctlsocket="no"
40518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40519 printf %s "checking if ioctlsocket might be used... " >&6; }
40520 if test "$tst_links_ioctlsocket" = "yes" &&
40521 test "$tst_proto_ioctlsocket" = "yes" &&
40522 test "$tst_compi_ioctlsocket" = "yes" &&
40523 test "$tst_allow_ioctlsocket" = "yes"; then
40524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40525 printf "%s\n" "yes" >&6; }
40527 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40529 curl_cv_func_ioctlsocket="yes"
40532 tst_compi_ioctlsocket_fionbio="unknown"
40533 tst_allow_ioctlsocket_fionbio="unknown"
40535 if test "$curl_cv_func_ioctlsocket" = "yes"; then
40536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40537 printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40539 /* end confdefs.h. */
40542 $curl_includes_winsock2
40548 if(0 != ioctlsocket(0, FIONBIO, &flags))
40556 if ac_fn_c_try_compile "$LINENO"
40559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40560 printf "%s\n" "yes" >&6; }
40561 tst_compi_ioctlsocket_fionbio="yes"
40565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40566 printf "%s\n" "no" >&6; }
40567 tst_compi_ioctlsocket_fionbio="no"
40570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40573 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40575 printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40576 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40578 printf "%s\n" "yes" >&6; }
40579 tst_allow_ioctlsocket_fionbio="yes"
40581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40582 printf "%s\n" "no" >&6; }
40583 tst_allow_ioctlsocket_fionbio="no"
40587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40588 printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40589 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40590 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40592 printf "%s\n" "yes" >&6; }
40594 printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40596 curl_cv_func_ioctlsocket_fionbio="yes"
40598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40599 printf "%s\n" "no" >&6; }
40600 curl_cv_func_ioctlsocket_fionbio="no"
40604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40605 printf "%s\n" "no" >&6; }
40606 curl_cv_func_ioctlsocket="no"
40611 tst_links_ioctlsocket_camel="unknown"
40612 tst_proto_ioctlsocket_camel="unknown"
40613 tst_compi_ioctlsocket_camel="unknown"
40614 tst_allow_ioctlsocket_camel="unknown"
40616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40617 printf %s "checking if IoctlSocket can be linked... " >&6; }
40618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40619 /* end confdefs.h. */
40622 $curl_includes_bsdsocket
40627 IoctlSocket(0, 0, 0);
40634 if ac_fn_c_try_link "$LINENO"
40637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40638 printf "%s\n" "yes" >&6; }
40639 tst_links_ioctlsocket_camel="yes"
40643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40644 printf "%s\n" "no" >&6; }
40645 tst_links_ioctlsocket_camel="no"
40648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40649 conftest$ac_exeext conftest.$ac_ext
40651 if test "$tst_links_ioctlsocket_camel" = "yes"; then
40652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40653 printf %s "checking if IoctlSocket is prototyped... " >&6; }
40654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40655 /* end confdefs.h. */
40657 $curl_includes_bsdsocket
40660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40661 $EGREP "IoctlSocket" >/dev/null 2>&1
40664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40665 printf "%s\n" "yes" >&6; }
40666 tst_proto_ioctlsocket_camel="yes"
40670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40671 printf "%s\n" "no" >&6; }
40672 tst_proto_ioctlsocket_camel="no"
40679 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
40680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
40681 printf %s "checking if IoctlSocket is compilable... " >&6; }
40682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40683 /* end confdefs.h. */
40686 $curl_includes_bsdsocket
40691 if(0 != IoctlSocket(0, 0, 0))
40699 if ac_fn_c_try_compile "$LINENO"
40702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40703 printf "%s\n" "yes" >&6; }
40704 tst_compi_ioctlsocket_camel="yes"
40708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40709 printf "%s\n" "no" >&6; }
40710 tst_compi_ioctlsocket_camel="no"
40713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40716 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
40717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
40718 printf %s "checking if IoctlSocket usage allowed... " >&6; }
40719 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
40720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40721 printf "%s\n" "yes" >&6; }
40722 tst_allow_ioctlsocket_camel="yes"
40724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40725 printf "%s\n" "no" >&6; }
40726 tst_allow_ioctlsocket_camel="no"
40730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
40731 printf %s "checking if IoctlSocket might be used... " >&6; }
40732 if test "$tst_links_ioctlsocket_camel" = "yes" &&
40733 test "$tst_proto_ioctlsocket_camel" = "yes" &&
40734 test "$tst_compi_ioctlsocket_camel" = "yes" &&
40735 test "$tst_allow_ioctlsocket_camel" = "yes"; then
40736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40737 printf "%s\n" "yes" >&6; }
40739 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
40741 curl_cv_func_ioctlsocket_camel="yes"
40744 tst_compi_ioctlsocket_camel_fionbio="unknown"
40745 tst_allow_ioctlsocket_camel_fionbio="unknown"
40747 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
40748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
40749 printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
40750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40751 /* end confdefs.h. */
40754 $curl_includes_bsdsocket
40760 if(0 != IoctlSocket(0, FIONBIO, &flags))
40768 if ac_fn_c_try_compile "$LINENO"
40771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40772 printf "%s\n" "yes" >&6; }
40773 tst_compi_ioctlsocket_camel_fionbio="yes"
40777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40778 printf "%s\n" "no" >&6; }
40779 tst_compi_ioctlsocket_camel_fionbio="no"
40782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40785 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
40786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
40787 printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
40788 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
40789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40790 printf "%s\n" "yes" >&6; }
40791 tst_allow_ioctlsocket_camel_fionbio="yes"
40793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40794 printf "%s\n" "no" >&6; }
40795 tst_allow_ioctlsocket_camel_fionbio="no"
40799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
40800 printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
40801 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
40802 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
40803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40804 printf "%s\n" "yes" >&6; }
40806 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
40808 curl_cv_func_ioctlsocket_camel_fionbio="yes"
40810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40811 printf "%s\n" "no" >&6; }
40812 curl_cv_func_ioctlsocket_camel_fionbio="no"
40816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40817 printf "%s\n" "no" >&6; }
40818 curl_cv_func_ioctlsocket_camel="no"
40823 tst_links_memrchr="unknown"
40824 tst_macro_memrchr="unknown"
40825 tst_proto_memrchr="unknown"
40826 tst_compi_memrchr="unknown"
40827 tst_allow_memrchr="unknown"
40829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
40830 printf %s "checking if memrchr can be linked... " >&6; }
40831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40832 /* end confdefs.h. */
40835 #define memrchr innocuous_memrchr
40837 # include <limits.h>
40839 # include <assert.h>
40846 #if defined __stub_memrchr || defined __stub___memrchr
40858 if ac_fn_c_try_link "$LINENO"
40861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40862 printf "%s\n" "yes" >&6; }
40863 tst_links_memrchr="yes"
40867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40868 printf "%s\n" "no" >&6; }
40869 tst_links_memrchr="no"
40872 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40873 conftest$ac_exeext conftest.$ac_ext
40875 if test "$tst_links_memrchr" = "no"; then
40876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
40877 printf %s "checking if memrchr seems a macro... " >&6; }
40878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40879 /* end confdefs.h. */
40882 $curl_includes_string
40887 if(0 != memrchr(0, 0, 0))
40895 if ac_fn_c_try_link "$LINENO"
40898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40899 printf "%s\n" "yes" >&6; }
40900 tst_macro_memrchr="yes"
40904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40905 printf "%s\n" "no" >&6; }
40906 tst_macro_memrchr="no"
40909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40910 conftest$ac_exeext conftest.$ac_ext
40913 if test "$tst_links_memrchr" = "yes"; then
40914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
40915 printf %s "checking if memrchr is prototyped... " >&6; }
40916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40917 /* end confdefs.h. */
40919 $curl_includes_string
40922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40923 $EGREP "memrchr" >/dev/null 2>&1
40926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40927 printf "%s\n" "yes" >&6; }
40928 tst_proto_memrchr="yes"
40932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40933 printf "%s\n" "no" >&6; }
40934 tst_proto_memrchr="no"
40941 if test "$tst_proto_memrchr" = "yes" ||
40942 test "$tst_macro_memrchr" = "yes"; then
40943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
40944 printf %s "checking if memrchr is compilable... " >&6; }
40945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40946 /* end confdefs.h. */
40949 $curl_includes_string
40954 if(0 != memrchr(0, 0, 0))
40962 if ac_fn_c_try_compile "$LINENO"
40965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40966 printf "%s\n" "yes" >&6; }
40967 tst_compi_memrchr="yes"
40971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40972 printf "%s\n" "no" >&6; }
40973 tst_compi_memrchr="no"
40976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40979 if test "$tst_compi_memrchr" = "yes"; then
40980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
40981 printf %s "checking if memrchr usage allowed... " >&6; }
40982 if test "x$curl_disallow_memrchr" != "xyes"; then
40983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40984 printf "%s\n" "yes" >&6; }
40985 tst_allow_memrchr="yes"
40987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40988 printf "%s\n" "no" >&6; }
40989 tst_allow_memrchr="no"
40993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
40994 printf %s "checking if memrchr might be used... " >&6; }
40995 if (test "$tst_proto_memrchr" = "yes" ||
40996 test "$tst_macro_memrchr" = "yes") &&
40997 test "$tst_compi_memrchr" = "yes" &&
40998 test "$tst_allow_memrchr" = "yes"; then
40999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41000 printf "%s\n" "yes" >&6; }
41002 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
41004 curl_cv_func_memrchr="yes"
41006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41007 printf "%s\n" "no" >&6; }
41008 curl_cv_func_memrchr="no"
41013 tst_links_poll="unknown"
41014 tst_proto_poll="unknown"
41015 tst_compi_poll="unknown"
41016 tst_works_poll="unknown"
41017 tst_allow_poll="unknown"
41021 curl_disallow_poll="yes"
41022 tst_compi_poll="no"
41026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
41027 printf %s "checking if poll can be linked... " >&6; }
41028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41029 /* end confdefs.h. */
41032 $curl_includes_poll
41037 if(0 != poll(0, 0, 0))
41045 if ac_fn_c_try_link "$LINENO"
41048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41049 printf "%s\n" "yes" >&6; }
41050 tst_links_poll="yes"
41054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41055 printf "%s\n" "no" >&6; }
41056 tst_links_poll="no"
41059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41060 conftest$ac_exeext conftest.$ac_ext
41062 if test "$tst_links_poll" = "yes"; then
41063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
41064 printf %s "checking if poll is prototyped... " >&6; }
41065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41066 /* end confdefs.h. */
41068 $curl_includes_poll
41071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41072 $EGREP "poll" >/dev/null 2>&1
41075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41076 printf "%s\n" "yes" >&6; }
41077 tst_proto_poll="yes"
41081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41082 printf "%s\n" "no" >&6; }
41083 tst_proto_poll="no"
41090 if test "$tst_proto_poll" = "yes"; then
41091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
41092 printf %s "checking if poll is compilable... " >&6; }
41093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41094 /* end confdefs.h. */
41097 $curl_includes_poll
41102 if(0 != poll(0, 0, 0))
41110 if ac_fn_c_try_compile "$LINENO"
41113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41114 printf "%s\n" "yes" >&6; }
41115 tst_compi_poll="yes"
41119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41120 printf "%s\n" "no" >&6; }
41121 tst_compi_poll="no"
41124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41127 if test "x$cross_compiling" != "xyes" &&
41128 test "$tst_compi_poll" = "yes"; then
41129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
41130 printf %s "checking if poll seems to work... " >&6; }
41134 if test "$cross_compiling" = yes
41136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41138 as_fn_error $? "cannot run test program while cross compiling
41139 See \`config.log' for more details" "$LINENO" 5; }
41141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41142 /* end confdefs.h. */
41145 $curl_includes_stdlib
41146 $curl_includes_poll
41147 $curl_includes_time
41152 /* detect the original poll() breakage */
41153 if(0 != poll(0, 0, 10))
41154 exit(1); /* fail */
41156 /* detect the 10.12 poll() breakage */
41157 struct timeval before, after;
41161 gettimeofday(&before, NULL);
41162 rc = poll(NULL, 0, 500);
41163 gettimeofday(&after, NULL);
41165 us = (after.tv_sec - before.tv_sec) * 1000000 +
41166 (after.tv_usec - before.tv_usec);
41177 if ac_fn_c_try_run "$LINENO"
41179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41180 printf "%s\n" "yes" >&6; }
41181 tst_works_poll="yes"
41184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41185 printf "%s\n" "no" >&6; }
41186 tst_works_poll="no"
41189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41190 conftest.$ac_objext conftest.beam conftest.$ac_ext
41196 old=$LD_LIBRARY_PATH
41197 CC="sh ./run-compiler"
41198 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
41199 export LD_LIBRARY_PATH
41200 if test "$cross_compiling" = yes
41202 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41203 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41204 as_fn_error $? "cannot run test program while cross compiling
41205 See \`config.log' for more details" "$LINENO" 5; }
41207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41208 /* end confdefs.h. */
41211 $curl_includes_stdlib
41212 $curl_includes_poll
41213 $curl_includes_time
41218 /* detect the original poll() breakage */
41219 if(0 != poll(0, 0, 10))
41220 exit(1); /* fail */
41222 /* detect the 10.12 poll() breakage */
41223 struct timeval before, after;
41227 gettimeofday(&before, NULL);
41228 rc = poll(NULL, 0, 500);
41229 gettimeofday(&after, NULL);
41231 us = (after.tv_sec - before.tv_sec) * 1000000 +
41232 (after.tv_usec - before.tv_usec);
41243 if ac_fn_c_try_run "$LINENO"
41245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41246 printf "%s\n" "yes" >&6; }
41247 tst_works_poll="yes"
41250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41251 printf "%s\n" "no" >&6; }
41252 tst_works_poll="no"
41255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41256 conftest.$ac_objext conftest.beam conftest.$ac_ext
41259 LD_LIBRARY_PATH=$old # restore
41266 if test "$tst_compi_poll" = "yes" &&
41267 test "$tst_works_poll" != "no"; then
41268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
41269 printf %s "checking if poll usage allowed... " >&6; }
41270 if test "x$curl_disallow_poll" != "xyes"; then
41271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41272 printf "%s\n" "yes" >&6; }
41273 tst_allow_poll="yes"
41275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41276 printf "%s\n" "no" >&6; }
41277 tst_allow_poll="no"
41281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
41282 printf %s "checking if poll might be used... " >&6; }
41283 if test "$tst_links_poll" = "yes" &&
41284 test "$tst_proto_poll" = "yes" &&
41285 test "$tst_compi_poll" = "yes" &&
41286 test "$tst_allow_poll" = "yes" &&
41287 test "$tst_works_poll" != "no"; then
41288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41289 printf "%s\n" "yes" >&6; }
41291 printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
41293 curl_cv_func_poll="yes"
41295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41296 printf "%s\n" "no" >&6; }
41297 curl_cv_func_poll="no"
41301 curl_includes_signal="\
41302 /* includes start */
41303 #ifdef HAVE_SYS_TYPES_H
41304 # include <sys/types.h>
41306 #include <signal.h>
41307 /* includes end */"
41308 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
41310 if test "x$ac_cv_header_sys_types_h" = xyes
41312 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41319 tst_links_sigaction="unknown"
41320 tst_proto_sigaction="unknown"
41321 tst_compi_sigaction="unknown"
41322 tst_allow_sigaction="unknown"
41324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
41325 printf %s "checking if sigaction can be linked... " >&6; }
41326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41327 /* end confdefs.h. */
41330 #define sigaction innocuous_sigaction
41332 # include <limits.h>
41334 # include <assert.h>
41341 #if defined __stub_sigaction || defined __stub___sigaction
41347 return sigaction ();
41353 if ac_fn_c_try_link "$LINENO"
41356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41357 printf "%s\n" "yes" >&6; }
41358 tst_links_sigaction="yes"
41362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41363 printf "%s\n" "no" >&6; }
41364 tst_links_sigaction="no"
41367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41368 conftest$ac_exeext conftest.$ac_ext
41370 if test "$tst_links_sigaction" = "yes"; then
41371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
41372 printf %s "checking if sigaction is prototyped... " >&6; }
41373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41374 /* end confdefs.h. */
41376 $curl_includes_signal
41379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41380 $EGREP "sigaction" >/dev/null 2>&1
41383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41384 printf "%s\n" "yes" >&6; }
41385 tst_proto_sigaction="yes"
41389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41390 printf "%s\n" "no" >&6; }
41391 tst_proto_sigaction="no"
41398 if test "$tst_proto_sigaction" = "yes"; then
41399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
41400 printf %s "checking if sigaction is compilable... " >&6; }
41401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41402 /* end confdefs.h. */
41405 $curl_includes_signal
41410 if(0 != sigaction(0, 0, 0))
41418 if ac_fn_c_try_compile "$LINENO"
41421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41422 printf "%s\n" "yes" >&6; }
41423 tst_compi_sigaction="yes"
41427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41428 printf "%s\n" "no" >&6; }
41429 tst_compi_sigaction="no"
41432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41435 if test "$tst_compi_sigaction" = "yes"; then
41436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
41437 printf %s "checking if sigaction usage allowed... " >&6; }
41438 if test "x$curl_disallow_sigaction" != "xyes"; then
41439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41440 printf "%s\n" "yes" >&6; }
41441 tst_allow_sigaction="yes"
41443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41444 printf "%s\n" "no" >&6; }
41445 tst_allow_sigaction="no"
41449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
41450 printf %s "checking if sigaction might be used... " >&6; }
41451 if test "$tst_links_sigaction" = "yes" &&
41452 test "$tst_proto_sigaction" = "yes" &&
41453 test "$tst_compi_sigaction" = "yes" &&
41454 test "$tst_allow_sigaction" = "yes"; then
41455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41456 printf "%s\n" "yes" >&6; }
41458 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
41460 curl_cv_func_sigaction="yes"
41462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41463 printf "%s\n" "no" >&6; }
41464 curl_cv_func_sigaction="no"
41469 tst_links_siginterrupt="unknown"
41470 tst_proto_siginterrupt="unknown"
41471 tst_compi_siginterrupt="unknown"
41472 tst_allow_siginterrupt="unknown"
41474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41475 printf %s "checking if siginterrupt can be linked... " >&6; }
41476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41477 /* end confdefs.h. */
41480 #define siginterrupt innocuous_siginterrupt
41482 # include <limits.h>
41484 # include <assert.h>
41486 #undef siginterrupt
41490 char siginterrupt ();
41491 #if defined __stub_siginterrupt || defined __stub___siginterrupt
41497 return siginterrupt ();
41503 if ac_fn_c_try_link "$LINENO"
41506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41507 printf "%s\n" "yes" >&6; }
41508 tst_links_siginterrupt="yes"
41512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41513 printf "%s\n" "no" >&6; }
41514 tst_links_siginterrupt="no"
41517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41518 conftest$ac_exeext conftest.$ac_ext
41520 if test "$tst_links_siginterrupt" = "yes"; then
41521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41522 printf %s "checking if siginterrupt is prototyped... " >&6; }
41523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41524 /* end confdefs.h. */
41526 $curl_includes_signal
41529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41530 $EGREP "siginterrupt" >/dev/null 2>&1
41533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41534 printf "%s\n" "yes" >&6; }
41535 tst_proto_siginterrupt="yes"
41539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41540 printf "%s\n" "no" >&6; }
41541 tst_proto_siginterrupt="no"
41548 if test "$tst_proto_siginterrupt" = "yes"; then
41549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41550 printf %s "checking if siginterrupt is compilable... " >&6; }
41551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41552 /* end confdefs.h. */
41555 $curl_includes_signal
41560 if(0 != siginterrupt(0, 0))
41568 if ac_fn_c_try_compile "$LINENO"
41571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41572 printf "%s\n" "yes" >&6; }
41573 tst_compi_siginterrupt="yes"
41577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41578 printf "%s\n" "no" >&6; }
41579 tst_compi_siginterrupt="no"
41582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41585 if test "$tst_compi_siginterrupt" = "yes"; then
41586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41587 printf %s "checking if siginterrupt usage allowed... " >&6; }
41588 if test "x$curl_disallow_siginterrupt" != "xyes"; then
41589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41590 printf "%s\n" "yes" >&6; }
41591 tst_allow_siginterrupt="yes"
41593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41594 printf "%s\n" "no" >&6; }
41595 tst_allow_siginterrupt="no"
41599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41600 printf %s "checking if siginterrupt might be used... " >&6; }
41601 if test "$tst_links_siginterrupt" = "yes" &&
41602 test "$tst_proto_siginterrupt" = "yes" &&
41603 test "$tst_compi_siginterrupt" = "yes" &&
41604 test "$tst_allow_siginterrupt" = "yes"; then
41605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41606 printf "%s\n" "yes" >&6; }
41608 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41610 curl_cv_func_siginterrupt="yes"
41612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41613 printf "%s\n" "no" >&6; }
41614 curl_cv_func_siginterrupt="no"
41619 tst_links_signal="unknown"
41620 tst_proto_signal="unknown"
41621 tst_compi_signal="unknown"
41622 tst_allow_signal="unknown"
41624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41625 printf %s "checking if signal can be linked... " >&6; }
41626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41627 /* end confdefs.h. */
41630 #define signal innocuous_signal
41632 # include <limits.h>
41634 # include <assert.h>
41641 #if defined __stub_signal || defined __stub___signal
41653 if ac_fn_c_try_link "$LINENO"
41656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41657 printf "%s\n" "yes" >&6; }
41658 tst_links_signal="yes"
41662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41663 printf "%s\n" "no" >&6; }
41664 tst_links_signal="no"
41667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41668 conftest$ac_exeext conftest.$ac_ext
41670 if test "$tst_links_signal" = "yes"; then
41671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
41672 printf %s "checking if signal is prototyped... " >&6; }
41673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41674 /* end confdefs.h. */
41676 $curl_includes_signal
41679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41680 $EGREP "signal" >/dev/null 2>&1
41683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41684 printf "%s\n" "yes" >&6; }
41685 tst_proto_signal="yes"
41689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41690 printf "%s\n" "no" >&6; }
41691 tst_proto_signal="no"
41698 if test "$tst_proto_signal" = "yes"; then
41699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
41700 printf %s "checking if signal is compilable... " >&6; }
41701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41702 /* end confdefs.h. */
41705 $curl_includes_signal
41710 if(0 != signal(0, 0))
41718 if ac_fn_c_try_compile "$LINENO"
41721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41722 printf "%s\n" "yes" >&6; }
41723 tst_compi_signal="yes"
41727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41728 printf "%s\n" "no" >&6; }
41729 tst_compi_signal="no"
41732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41735 if test "$tst_compi_signal" = "yes"; then
41736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
41737 printf %s "checking if signal usage allowed... " >&6; }
41738 if test "x$curl_disallow_signal" != "xyes"; then
41739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41740 printf "%s\n" "yes" >&6; }
41741 tst_allow_signal="yes"
41743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41744 printf "%s\n" "no" >&6; }
41745 tst_allow_signal="no"
41749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
41750 printf %s "checking if signal might be used... " >&6; }
41751 if test "$tst_links_signal" = "yes" &&
41752 test "$tst_proto_signal" = "yes" &&
41753 test "$tst_compi_signal" = "yes" &&
41754 test "$tst_allow_signal" = "yes"; then
41755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41756 printf "%s\n" "yes" >&6; }
41758 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
41760 curl_cv_func_signal="yes"
41762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41763 printf "%s\n" "no" >&6; }
41764 curl_cv_func_signal="no"
41768 curl_includes_setjmp="\
41769 /* includes start */
41770 #ifdef HAVE_SYS_TYPES_H
41771 # include <sys/types.h>
41773 #include <setjmp.h>
41774 /* includes end */"
41775 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
41777 if test "x$ac_cv_header_sys_types_h" = xyes
41779 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41786 tst_links_sigsetjmp="unknown"
41787 tst_macro_sigsetjmp="unknown"
41788 tst_proto_sigsetjmp="unknown"
41789 tst_compi_sigsetjmp="unknown"
41790 tst_allow_sigsetjmp="unknown"
41792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
41793 printf %s "checking if sigsetjmp can be linked... " >&6; }
41794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41795 /* end confdefs.h. */
41798 #define sigsetjmp innocuous_sigsetjmp
41800 # include <limits.h>
41802 # include <assert.h>
41809 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
41815 return sigsetjmp ();
41821 if ac_fn_c_try_link "$LINENO"
41824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41825 printf "%s\n" "yes" >&6; }
41826 tst_links_sigsetjmp="yes"
41830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41831 printf "%s\n" "no" >&6; }
41832 tst_links_sigsetjmp="no"
41835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41836 conftest$ac_exeext conftest.$ac_ext
41838 if test "$tst_links_sigsetjmp" = "no"; then
41839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
41840 printf %s "checking if sigsetjmp seems a macro... " >&6; }
41841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41842 /* end confdefs.h. */
41845 $curl_includes_setjmp
41851 if(0 != sigsetjmp(env, 0))
41859 if ac_fn_c_try_link "$LINENO"
41862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41863 printf "%s\n" "yes" >&6; }
41864 tst_macro_sigsetjmp="yes"
41868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41869 printf "%s\n" "no" >&6; }
41870 tst_macro_sigsetjmp="no"
41873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41874 conftest$ac_exeext conftest.$ac_ext
41877 if test "$tst_links_sigsetjmp" = "yes"; then
41878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
41879 printf %s "checking if sigsetjmp is prototyped... " >&6; }
41880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41881 /* end confdefs.h. */
41883 $curl_includes_setjmp
41886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41887 $EGREP "sigsetjmp" >/dev/null 2>&1
41890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41891 printf "%s\n" "yes" >&6; }
41892 tst_proto_sigsetjmp="yes"
41896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41897 printf "%s\n" "no" >&6; }
41898 tst_proto_sigsetjmp="no"
41905 if test "$tst_proto_sigsetjmp" = "yes" ||
41906 test "$tst_macro_sigsetjmp" = "yes"; then
41907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
41908 printf %s "checking if sigsetjmp is compilable... " >&6; }
41909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41910 /* end confdefs.h. */
41913 $curl_includes_setjmp
41919 if(0 != sigsetjmp(env, 0))
41927 if ac_fn_c_try_compile "$LINENO"
41930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41931 printf "%s\n" "yes" >&6; }
41932 tst_compi_sigsetjmp="yes"
41936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41937 printf "%s\n" "no" >&6; }
41938 tst_compi_sigsetjmp="no"
41941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41944 if test "$tst_compi_sigsetjmp" = "yes"; then
41945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
41946 printf %s "checking if sigsetjmp usage allowed... " >&6; }
41947 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
41948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41949 printf "%s\n" "yes" >&6; }
41950 tst_allow_sigsetjmp="yes"
41952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41953 printf "%s\n" "no" >&6; }
41954 tst_allow_sigsetjmp="no"
41958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
41959 printf %s "checking if sigsetjmp might be used... " >&6; }
41960 if (test "$tst_proto_sigsetjmp" = "yes" ||
41961 test "$tst_macro_sigsetjmp" = "yes") &&
41962 test "$tst_compi_sigsetjmp" = "yes" &&
41963 test "$tst_allow_sigsetjmp" = "yes"; then
41964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41965 printf "%s\n" "yes" >&6; }
41967 printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
41969 curl_cv_func_sigsetjmp="yes"
41971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41972 printf "%s\n" "no" >&6; }
41973 curl_cv_func_sigsetjmp="no"
41978 tst_links_socket="unknown"
41979 tst_proto_socket="unknown"
41980 tst_compi_socket="unknown"
41981 tst_allow_socket="unknown"
41983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
41984 printf %s "checking if socket can be linked... " >&6; }
41985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41986 /* end confdefs.h. */
41989 $curl_includes_winsock2
41990 $curl_includes_bsdsocket
41991 $curl_includes_sys_socket
41992 $curl_includes_socket
41997 if(0 != socket(0, 0, 0))
42005 if ac_fn_c_try_link "$LINENO"
42008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42009 printf "%s\n" "yes" >&6; }
42010 tst_links_socket="yes"
42014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42015 printf "%s\n" "no" >&6; }
42016 tst_links_socket="no"
42019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42020 conftest$ac_exeext conftest.$ac_ext
42022 if test "$tst_links_socket" = "yes"; then
42023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
42024 printf %s "checking if socket is prototyped... " >&6; }
42025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42026 /* end confdefs.h. */
42028 $curl_includes_winsock2
42029 $curl_includes_bsdsocket
42030 $curl_includes_sys_socket
42031 $curl_includes_socket
42034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42035 $EGREP "socket" >/dev/null 2>&1
42038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42039 printf "%s\n" "yes" >&6; }
42040 tst_proto_socket="yes"
42044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42045 printf "%s\n" "no" >&6; }
42046 tst_proto_socket="no"
42053 if test "$tst_proto_socket" = "yes"; then
42054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
42055 printf %s "checking if socket is compilable... " >&6; }
42056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42057 /* end confdefs.h. */
42060 $curl_includes_winsock2
42061 $curl_includes_bsdsocket
42062 $curl_includes_sys_socket
42063 $curl_includes_socket
42068 if(0 != socket(0, 0, 0))
42076 if ac_fn_c_try_compile "$LINENO"
42079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42080 printf "%s\n" "yes" >&6; }
42081 tst_compi_socket="yes"
42085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42086 printf "%s\n" "no" >&6; }
42087 tst_compi_socket="no"
42090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42093 if test "$tst_compi_socket" = "yes"; then
42094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
42095 printf %s "checking if socket usage allowed... " >&6; }
42096 if test "x$curl_disallow_socket" != "xyes"; then
42097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42098 printf "%s\n" "yes" >&6; }
42099 tst_allow_socket="yes"
42101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42102 printf "%s\n" "no" >&6; }
42103 tst_allow_socket="no"
42107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
42108 printf %s "checking if socket might be used... " >&6; }
42109 if test "$tst_links_socket" = "yes" &&
42110 test "$tst_proto_socket" = "yes" &&
42111 test "$tst_compi_socket" = "yes" &&
42112 test "$tst_allow_socket" = "yes"; then
42113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42114 printf "%s\n" "yes" >&6; }
42116 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
42118 curl_cv_func_socket="yes"
42120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42121 printf "%s\n" "no" >&6; }
42122 curl_cv_func_socket="no"
42127 tst_links_socketpair="unknown"
42128 tst_proto_socketpair="unknown"
42129 tst_compi_socketpair="unknown"
42130 tst_allow_socketpair="unknown"
42132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
42133 printf %s "checking if socketpair can be linked... " >&6; }
42134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42135 /* end confdefs.h. */
42138 #define socketpair innocuous_socketpair
42140 # include <limits.h>
42142 # include <assert.h>
42148 char socketpair ();
42149 #if defined __stub_socketpair || defined __stub___socketpair
42155 return socketpair ();
42161 if ac_fn_c_try_link "$LINENO"
42164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42165 printf "%s\n" "yes" >&6; }
42166 tst_links_socketpair="yes"
42170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42171 printf "%s\n" "no" >&6; }
42172 tst_links_socketpair="no"
42175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42176 conftest$ac_exeext conftest.$ac_ext
42178 if test "$tst_links_socketpair" = "yes"; then
42179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
42180 printf %s "checking if socketpair is prototyped... " >&6; }
42181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42182 /* end confdefs.h. */
42184 $curl_includes_sys_socket
42185 $curl_includes_socket
42188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42189 $EGREP "socketpair" >/dev/null 2>&1
42192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42193 printf "%s\n" "yes" >&6; }
42194 tst_proto_socketpair="yes"
42198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42199 printf "%s\n" "no" >&6; }
42200 tst_proto_socketpair="no"
42207 if test "$tst_proto_socketpair" = "yes"; then
42208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
42209 printf %s "checking if socketpair is compilable... " >&6; }
42210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42211 /* end confdefs.h. */
42214 $curl_includes_sys_socket
42215 $curl_includes_socket
42221 if(0 != socketpair(0, 0, 0, sv))
42229 if ac_fn_c_try_compile "$LINENO"
42232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42233 printf "%s\n" "yes" >&6; }
42234 tst_compi_socketpair="yes"
42238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42239 printf "%s\n" "no" >&6; }
42240 tst_compi_socketpair="no"
42243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42246 if test "$tst_compi_socketpair" = "yes"; then
42247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
42248 printf %s "checking if socketpair usage allowed... " >&6; }
42249 if test "x$curl_disallow_socketpair" != "xyes"; then
42250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42251 printf "%s\n" "yes" >&6; }
42252 tst_allow_socketpair="yes"
42254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42255 printf "%s\n" "no" >&6; }
42256 tst_allow_socketpair="no"
42260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
42261 printf %s "checking if socketpair might be used... " >&6; }
42262 if test "$tst_links_socketpair" = "yes" &&
42263 test "$tst_proto_socketpair" = "yes" &&
42264 test "$tst_compi_socketpair" = "yes" &&
42265 test "$tst_allow_socketpair" = "yes"; then
42266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42267 printf "%s\n" "yes" >&6; }
42269 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
42271 curl_cv_func_socketpair="yes"
42273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42274 printf "%s\n" "no" >&6; }
42275 curl_cv_func_socketpair="no"
42280 tst_links_strcasecmp="unknown"
42281 tst_proto_strcasecmp="unknown"
42282 tst_compi_strcasecmp="unknown"
42283 tst_allow_strcasecmp="unknown"
42285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
42286 printf %s "checking if strcasecmp can be linked... " >&6; }
42287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42288 /* end confdefs.h. */
42291 #define strcasecmp innocuous_strcasecmp
42293 # include <limits.h>
42295 # include <assert.h>
42301 char strcasecmp ();
42302 #if defined __stub_strcasecmp || defined __stub___strcasecmp
42308 return strcasecmp ();
42314 if ac_fn_c_try_link "$LINENO"
42317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42318 printf "%s\n" "yes" >&6; }
42319 tst_links_strcasecmp="yes"
42323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42324 printf "%s\n" "no" >&6; }
42325 tst_links_strcasecmp="no"
42328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42329 conftest$ac_exeext conftest.$ac_ext
42331 if test "$tst_links_strcasecmp" = "yes"; then
42332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
42333 printf %s "checking if strcasecmp is prototyped... " >&6; }
42334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42335 /* end confdefs.h. */
42337 $curl_includes_string
42340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42341 $EGREP "strcasecmp" >/dev/null 2>&1
42344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42345 printf "%s\n" "yes" >&6; }
42346 tst_proto_strcasecmp="yes"
42350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42351 printf "%s\n" "no" >&6; }
42352 tst_proto_strcasecmp="no"
42359 if test "$tst_proto_strcasecmp" = "yes"; then
42360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
42361 printf %s "checking if strcasecmp is compilable... " >&6; }
42362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42363 /* end confdefs.h. */
42366 $curl_includes_string
42371 if(0 != strcasecmp(0, 0))
42379 if ac_fn_c_try_compile "$LINENO"
42382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42383 printf "%s\n" "yes" >&6; }
42384 tst_compi_strcasecmp="yes"
42388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42389 printf "%s\n" "no" >&6; }
42390 tst_compi_strcasecmp="no"
42393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42396 if test "$tst_compi_strcasecmp" = "yes"; then
42397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
42398 printf %s "checking if strcasecmp usage allowed... " >&6; }
42399 if test "x$curl_disallow_strcasecmp" != "xyes"; then
42400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42401 printf "%s\n" "yes" >&6; }
42402 tst_allow_strcasecmp="yes"
42404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42405 printf "%s\n" "no" >&6; }
42406 tst_allow_strcasecmp="no"
42410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
42411 printf %s "checking if strcasecmp might be used... " >&6; }
42412 if test "$tst_links_strcasecmp" = "yes" &&
42413 test "$tst_proto_strcasecmp" = "yes" &&
42414 test "$tst_compi_strcasecmp" = "yes" &&
42415 test "$tst_allow_strcasecmp" = "yes"; then
42416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42417 printf "%s\n" "yes" >&6; }
42419 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
42421 curl_cv_func_strcasecmp="yes"
42423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42424 printf "%s\n" "no" >&6; }
42425 curl_cv_func_strcasecmp="no"
42430 tst_links_strcmpi="unknown"
42431 tst_proto_strcmpi="unknown"
42432 tst_compi_strcmpi="unknown"
42433 tst_allow_strcmpi="unknown"
42435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
42436 printf %s "checking if strcmpi can be linked... " >&6; }
42437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42438 /* end confdefs.h. */
42441 #define strcmpi innocuous_strcmpi
42443 # include <limits.h>
42445 # include <assert.h>
42452 #if defined __stub_strcmpi || defined __stub___strcmpi
42464 if ac_fn_c_try_link "$LINENO"
42467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42468 printf "%s\n" "yes" >&6; }
42469 tst_links_strcmpi="yes"
42473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42474 printf "%s\n" "no" >&6; }
42475 tst_links_strcmpi="no"
42478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42479 conftest$ac_exeext conftest.$ac_ext
42481 if test "$tst_links_strcmpi" = "yes"; then
42482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42483 printf %s "checking if strcmpi is prototyped... " >&6; }
42484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42485 /* end confdefs.h. */
42487 $curl_includes_string
42490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42491 $EGREP "strcmpi" >/dev/null 2>&1
42494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42495 printf "%s\n" "yes" >&6; }
42496 tst_proto_strcmpi="yes"
42500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42501 printf "%s\n" "no" >&6; }
42502 tst_proto_strcmpi="no"
42509 if test "$tst_proto_strcmpi" = "yes"; then
42510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42511 printf %s "checking if strcmpi is compilable... " >&6; }
42512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42513 /* end confdefs.h. */
42516 $curl_includes_string
42521 if(0 != strcmpi(0, 0))
42529 if ac_fn_c_try_compile "$LINENO"
42532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42533 printf "%s\n" "yes" >&6; }
42534 tst_compi_strcmpi="yes"
42538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42539 printf "%s\n" "no" >&6; }
42540 tst_compi_strcmpi="no"
42543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42546 if test "$tst_compi_strcmpi" = "yes"; then
42547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42548 printf %s "checking if strcmpi usage allowed... " >&6; }
42549 if test "x$curl_disallow_strcmpi" != "xyes"; then
42550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42551 printf "%s\n" "yes" >&6; }
42552 tst_allow_strcmpi="yes"
42554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42555 printf "%s\n" "no" >&6; }
42556 tst_allow_strcmpi="no"
42560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42561 printf %s "checking if strcmpi might be used... " >&6; }
42562 if test "$tst_links_strcmpi" = "yes" &&
42563 test "$tst_proto_strcmpi" = "yes" &&
42564 test "$tst_compi_strcmpi" = "yes" &&
42565 test "$tst_allow_strcmpi" = "yes"; then
42566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42567 printf "%s\n" "yes" >&6; }
42569 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42571 curl_cv_func_strcmpi="yes"
42573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42574 printf "%s\n" "no" >&6; }
42575 curl_cv_func_strcmpi="no"
42580 tst_links_strdup="unknown"
42581 tst_proto_strdup="unknown"
42582 tst_compi_strdup="unknown"
42583 tst_allow_strdup="unknown"
42585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42586 printf %s "checking if strdup can be linked... " >&6; }
42587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42588 /* end confdefs.h. */
42591 #define strdup innocuous_strdup
42593 # include <limits.h>
42595 # include <assert.h>
42602 #if defined __stub_strdup || defined __stub___strdup
42614 if ac_fn_c_try_link "$LINENO"
42617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42618 printf "%s\n" "yes" >&6; }
42619 tst_links_strdup="yes"
42623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42624 printf "%s\n" "no" >&6; }
42625 tst_links_strdup="no"
42628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42629 conftest$ac_exeext conftest.$ac_ext
42631 if test "$tst_links_strdup" = "yes"; then
42632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42633 printf %s "checking if strdup is prototyped... " >&6; }
42634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42635 /* end confdefs.h. */
42637 $curl_includes_string
42640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42641 $EGREP "strdup" >/dev/null 2>&1
42644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42645 printf "%s\n" "yes" >&6; }
42646 tst_proto_strdup="yes"
42650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42651 printf "%s\n" "no" >&6; }
42652 tst_proto_strdup="no"
42659 if test "$tst_proto_strdup" = "yes"; then
42660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
42661 printf %s "checking if strdup is compilable... " >&6; }
42662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42663 /* end confdefs.h. */
42666 $curl_includes_string
42679 if ac_fn_c_try_compile "$LINENO"
42682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42683 printf "%s\n" "yes" >&6; }
42684 tst_compi_strdup="yes"
42688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42689 printf "%s\n" "no" >&6; }
42690 tst_compi_strdup="no"
42693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42696 if test "$tst_compi_strdup" = "yes"; then
42697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
42698 printf %s "checking if strdup usage allowed... " >&6; }
42699 if test "x$curl_disallow_strdup" != "xyes"; then
42700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42701 printf "%s\n" "yes" >&6; }
42702 tst_allow_strdup="yes"
42704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42705 printf "%s\n" "no" >&6; }
42706 tst_allow_strdup="no"
42710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
42711 printf %s "checking if strdup might be used... " >&6; }
42712 if test "$tst_links_strdup" = "yes" &&
42713 test "$tst_proto_strdup" = "yes" &&
42714 test "$tst_compi_strdup" = "yes" &&
42715 test "$tst_allow_strdup" = "yes"; then
42716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42717 printf "%s\n" "yes" >&6; }
42719 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
42721 curl_cv_func_strdup="yes"
42723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42724 printf "%s\n" "no" >&6; }
42725 curl_cv_func_strdup="no"
42730 tst_links_strerror_r="unknown"
42731 tst_proto_strerror_r="unknown"
42732 tst_compi_strerror_r="unknown"
42733 tst_glibc_strerror_r="unknown"
42734 tst_posix_strerror_r="unknown"
42735 tst_allow_strerror_r="unknown"
42736 tst_works_glibc_strerror_r="unknown"
42737 tst_works_posix_strerror_r="unknown"
42738 tst_glibc_strerror_r_type_arg3="unknown"
42739 tst_posix_strerror_r_type_arg3="unknown"
42741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
42742 printf %s "checking if strerror_r can be linked... " >&6; }
42743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42744 /* end confdefs.h. */
42747 #define strerror_r innocuous_strerror_r
42749 # include <limits.h>
42751 # include <assert.h>
42757 char strerror_r ();
42758 #if defined __stub_strerror_r || defined __stub___strerror_r
42764 return strerror_r ();
42770 if ac_fn_c_try_link "$LINENO"
42773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42774 printf "%s\n" "yes" >&6; }
42775 tst_links_strerror_r="yes"
42779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42780 printf "%s\n" "no" >&6; }
42781 tst_links_strerror_r="no"
42784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42785 conftest$ac_exeext conftest.$ac_ext
42787 if test "$tst_links_strerror_r" = "yes"; then
42788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
42789 printf %s "checking if strerror_r is prototyped... " >&6; }
42790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42791 /* end confdefs.h. */
42793 $curl_includes_string
42796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42797 $EGREP "strerror_r" >/dev/null 2>&1
42800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42801 printf "%s\n" "yes" >&6; }
42802 tst_proto_strerror_r="yes"
42806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42807 printf "%s\n" "no" >&6; }
42808 tst_proto_strerror_r="no"
42815 if test "$tst_proto_strerror_r" = "yes"; then
42816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
42817 printf %s "checking if strerror_r is compilable... " >&6; }
42818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42819 /* end confdefs.h. */
42822 $curl_includes_string
42827 if(0 != strerror_r(0, 0, 0))
42835 if ac_fn_c_try_compile "$LINENO"
42838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42839 printf "%s\n" "yes" >&6; }
42840 tst_compi_strerror_r="yes"
42844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42845 printf "%s\n" "no" >&6; }
42846 tst_compi_strerror_r="no"
42849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42852 if test "$tst_compi_strerror_r" = "yes"; then
42853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
42854 printf %s "checking if strerror_r is glibc like... " >&6; }
42855 tst_glibc_strerror_r_type_arg3="unknown"
42856 for arg3 in 'size_t' 'int' 'unsigned int'; do
42857 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
42858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42859 /* end confdefs.h. */
42862 $curl_includes_string
42863 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
42868 if(0 != strerror_r(0, 0, 0))
42876 if ac_fn_c_try_compile "$LINENO"
42879 tst_glibc_strerror_r_type_arg3="$arg3"
42882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42885 case "$tst_glibc_strerror_r_type_arg3" in
42887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42888 printf "%s\n" "no" >&6; }
42889 tst_glibc_strerror_r="no"
42892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42893 printf "%s\n" "yes" >&6; }
42894 tst_glibc_strerror_r="yes"
42899 if test "x$cross_compiling" != "xyes" &&
42900 test "$tst_glibc_strerror_r" = "yes"; then
42901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42902 printf %s "checking if strerror_r seems to work... " >&6; }
42906 if test "$cross_compiling" = yes
42908 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42909 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42910 as_fn_error $? "cannot run test program while cross compiling
42911 See \`config.log' for more details" "$LINENO" 5; }
42913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42914 /* end confdefs.h. */
42917 $curl_includes_stdlib
42918 $curl_includes_string
42919 # include <errno.h>
42927 string = strerror_r(EACCES, buffer, sizeof(buffer));
42929 exit(1); /* fail */
42931 exit(1); /* fail */
42940 if ac_fn_c_try_run "$LINENO"
42942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42943 printf "%s\n" "yes" >&6; }
42944 tst_works_glibc_strerror_r="yes"
42947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42948 printf "%s\n" "no" >&6; }
42949 tst_works_glibc_strerror_r="no"
42952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42953 conftest.$ac_objext conftest.beam conftest.$ac_ext
42959 old=$LD_LIBRARY_PATH
42960 CC="sh ./run-compiler"
42961 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42962 export LD_LIBRARY_PATH
42963 if test "$cross_compiling" = yes
42965 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42966 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42967 as_fn_error $? "cannot run test program while cross compiling
42968 See \`config.log' for more details" "$LINENO" 5; }
42970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42971 /* end confdefs.h. */
42974 $curl_includes_stdlib
42975 $curl_includes_string
42976 # include <errno.h>
42984 string = strerror_r(EACCES, buffer, sizeof(buffer));
42986 exit(1); /* fail */
42988 exit(1); /* fail */
42997 if ac_fn_c_try_run "$LINENO"
42999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43000 printf "%s\n" "yes" >&6; }
43001 tst_works_glibc_strerror_r="yes"
43004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43005 printf "%s\n" "no" >&6; }
43006 tst_works_glibc_strerror_r="no"
43009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43010 conftest.$ac_objext conftest.beam conftest.$ac_ext
43013 LD_LIBRARY_PATH=$old # restore
43020 if test "$tst_compi_strerror_r" = "yes" &&
43021 test "$tst_works_glibc_strerror_r" != "yes"; then
43022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
43023 printf %s "checking if strerror_r is POSIX like... " >&6; }
43024 tst_posix_strerror_r_type_arg3="unknown"
43025 for arg3 in 'size_t' 'int' 'unsigned int'; do
43026 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
43027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43028 /* end confdefs.h. */
43031 $curl_includes_string
43032 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
43037 if(0 != strerror_r(0, 0, 0))
43045 if ac_fn_c_try_compile "$LINENO"
43048 tst_posix_strerror_r_type_arg3="$arg3"
43051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43054 case "$tst_posix_strerror_r_type_arg3" in
43056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43057 printf "%s\n" "no" >&6; }
43058 tst_posix_strerror_r="no"
43061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43062 printf "%s\n" "yes" >&6; }
43063 tst_posix_strerror_r="yes"
43068 if test "x$cross_compiling" != "xyes" &&
43069 test "$tst_posix_strerror_r" = "yes"; then
43070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
43071 printf %s "checking if strerror_r seems to work... " >&6; }
43075 if test "$cross_compiling" = yes
43077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43078 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43079 as_fn_error $? "cannot run test program while cross compiling
43080 See \`config.log' for more details" "$LINENO" 5; }
43082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43083 /* end confdefs.h. */
43086 $curl_includes_stdlib
43087 $curl_includes_string
43088 # include <errno.h>
43096 error = strerror_r(EACCES, buffer, sizeof(buffer));
43098 exit(1); /* fail */
43099 if(buffer[0] == '\0')
43100 exit(1); /* fail */
43109 if ac_fn_c_try_run "$LINENO"
43111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43112 printf "%s\n" "yes" >&6; }
43113 tst_works_posix_strerror_r="yes"
43116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43117 printf "%s\n" "no" >&6; }
43118 tst_works_posix_strerror_r="no"
43121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43122 conftest.$ac_objext conftest.beam conftest.$ac_ext
43128 old=$LD_LIBRARY_PATH
43129 CC="sh ./run-compiler"
43130 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
43131 export LD_LIBRARY_PATH
43132 if test "$cross_compiling" = yes
43134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43135 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43136 as_fn_error $? "cannot run test program while cross compiling
43137 See \`config.log' for more details" "$LINENO" 5; }
43139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43140 /* end confdefs.h. */
43143 $curl_includes_stdlib
43144 $curl_includes_string
43145 # include <errno.h>
43153 error = strerror_r(EACCES, buffer, sizeof(buffer));
43155 exit(1); /* fail */
43156 if(buffer[0] == '\0')
43157 exit(1); /* fail */
43166 if ac_fn_c_try_run "$LINENO"
43168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43169 printf "%s\n" "yes" >&6; }
43170 tst_works_posix_strerror_r="yes"
43173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43174 printf "%s\n" "no" >&6; }
43175 tst_works_posix_strerror_r="no"
43178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43179 conftest.$ac_objext conftest.beam conftest.$ac_ext
43182 LD_LIBRARY_PATH=$old # restore
43189 if test "$tst_works_glibc_strerror_r" = "yes"; then
43190 tst_posix_strerror_r="no"
43192 if test "$tst_works_posix_strerror_r" = "yes"; then
43193 tst_glibc_strerror_r="no"
43195 if test "$tst_glibc_strerror_r" = "yes" &&
43196 test "$tst_works_glibc_strerror_r" != "no" &&
43197 test "$tst_posix_strerror_r" != "yes"; then
43198 tst_allow_strerror_r="check"
43200 if test "$tst_posix_strerror_r" = "yes" &&
43201 test "$tst_works_posix_strerror_r" != "no" &&
43202 test "$tst_glibc_strerror_r" != "yes"; then
43203 tst_allow_strerror_r="check"
43205 if test "$tst_allow_strerror_r" = "check"; then
43206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
43207 printf %s "checking if strerror_r usage allowed... " >&6; }
43208 if test "x$curl_disallow_strerror_r" != "xyes"; then
43209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43210 printf "%s\n" "yes" >&6; }
43211 tst_allow_strerror_r="yes"
43213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43214 printf "%s\n" "no" >&6; }
43215 tst_allow_strerror_r="no"
43219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
43220 printf %s "checking if strerror_r might be used... " >&6; }
43221 if test "$tst_links_strerror_r" = "yes" &&
43222 test "$tst_proto_strerror_r" = "yes" &&
43223 test "$tst_compi_strerror_r" = "yes" &&
43224 test "$tst_allow_strerror_r" = "yes"; then
43225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43226 printf "%s\n" "yes" >&6; }
43227 if test "$tst_glibc_strerror_r" = "yes"; then
43229 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43232 printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
43235 if test "$tst_posix_strerror_r" = "yes"; then
43237 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43240 printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
43243 curl_cv_func_strerror_r="yes"
43245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43246 printf "%s\n" "no" >&6; }
43247 curl_cv_func_strerror_r="no"
43250 if test "$tst_compi_strerror_r" = "yes" &&
43251 test "$tst_allow_strerror_r" = "unknown"; then
43252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
43253 printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
43259 tst_links_stricmp="unknown"
43260 tst_proto_stricmp="unknown"
43261 tst_compi_stricmp="unknown"
43262 tst_allow_stricmp="unknown"
43264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
43265 printf %s "checking if stricmp can be linked... " >&6; }
43266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43267 /* end confdefs.h. */
43270 #define stricmp innocuous_stricmp
43272 # include <limits.h>
43274 # include <assert.h>
43281 #if defined __stub_stricmp || defined __stub___stricmp
43293 if ac_fn_c_try_link "$LINENO"
43296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43297 printf "%s\n" "yes" >&6; }
43298 tst_links_stricmp="yes"
43302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43303 printf "%s\n" "no" >&6; }
43304 tst_links_stricmp="no"
43307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43308 conftest$ac_exeext conftest.$ac_ext
43310 if test "$tst_links_stricmp" = "yes"; then
43311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
43312 printf %s "checking if stricmp is prototyped... " >&6; }
43313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43314 /* end confdefs.h. */
43316 $curl_includes_string
43319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43320 $EGREP "stricmp" >/dev/null 2>&1
43323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43324 printf "%s\n" "yes" >&6; }
43325 tst_proto_stricmp="yes"
43329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43330 printf "%s\n" "no" >&6; }
43331 tst_proto_stricmp="no"
43338 if test "$tst_proto_stricmp" = "yes"; then
43339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
43340 printf %s "checking if stricmp is compilable... " >&6; }
43341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43342 /* end confdefs.h. */
43345 $curl_includes_string
43350 if(0 != stricmp(0, 0))
43358 if ac_fn_c_try_compile "$LINENO"
43361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43362 printf "%s\n" "yes" >&6; }
43363 tst_compi_stricmp="yes"
43367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43368 printf "%s\n" "no" >&6; }
43369 tst_compi_stricmp="no"
43372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43375 if test "$tst_compi_stricmp" = "yes"; then
43376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
43377 printf %s "checking if stricmp usage allowed... " >&6; }
43378 if test "x$curl_disallow_stricmp" != "xyes"; then
43379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43380 printf "%s\n" "yes" >&6; }
43381 tst_allow_stricmp="yes"
43383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43384 printf "%s\n" "no" >&6; }
43385 tst_allow_stricmp="no"
43389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
43390 printf %s "checking if stricmp might be used... " >&6; }
43391 if test "$tst_links_stricmp" = "yes" &&
43392 test "$tst_proto_stricmp" = "yes" &&
43393 test "$tst_compi_stricmp" = "yes" &&
43394 test "$tst_allow_stricmp" = "yes"; then
43395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43396 printf "%s\n" "yes" >&6; }
43398 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
43400 curl_cv_func_stricmp="yes"
43402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43403 printf "%s\n" "no" >&6; }
43404 curl_cv_func_stricmp="no"
43409 tst_links_strtok_r="unknown"
43410 tst_proto_strtok_r="unknown"
43411 tst_compi_strtok_r="unknown"
43412 tst_allow_strtok_r="unknown"
43414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
43415 printf %s "checking if strtok_r can be linked... " >&6; }
43416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43417 /* end confdefs.h. */
43420 #define strtok_r innocuous_strtok_r
43422 # include <limits.h>
43424 # include <assert.h>
43431 #if defined __stub_strtok_r || defined __stub___strtok_r
43437 return strtok_r ();
43443 if ac_fn_c_try_link "$LINENO"
43446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43447 printf "%s\n" "yes" >&6; }
43448 tst_links_strtok_r="yes"
43452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43453 printf "%s\n" "no" >&6; }
43454 tst_links_strtok_r="no"
43457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43458 conftest$ac_exeext conftest.$ac_ext
43460 if test "$tst_links_strtok_r" = "yes"; then
43461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
43462 printf %s "checking if strtok_r is prototyped... " >&6; }
43463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43464 /* end confdefs.h. */
43466 $curl_includes_string
43469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43470 $EGREP "strtok_r" >/dev/null 2>&1
43473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43474 printf "%s\n" "yes" >&6; }
43475 tst_proto_strtok_r="yes"
43479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43480 printf "%s\n" "no" >&6; }
43481 tst_proto_strtok_r="no"
43488 if test "$tst_proto_strtok_r" = "yes"; then
43489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
43490 printf %s "checking if strtok_r is compilable... " >&6; }
43491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43492 /* end confdefs.h. */
43495 $curl_includes_string
43500 if(0 != strtok_r(0, 0, 0))
43508 if ac_fn_c_try_compile "$LINENO"
43511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43512 printf "%s\n" "yes" >&6; }
43513 tst_compi_strtok_r="yes"
43517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43518 printf "%s\n" "no" >&6; }
43519 tst_compi_strtok_r="no"
43522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43525 if test "$tst_compi_strtok_r" = "yes"; then
43526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
43527 printf %s "checking if strtok_r usage allowed... " >&6; }
43528 if test "x$curl_disallow_strtok_r" != "xyes"; then
43529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43530 printf "%s\n" "yes" >&6; }
43531 tst_allow_strtok_r="yes"
43533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43534 printf "%s\n" "no" >&6; }
43535 tst_allow_strtok_r="no"
43539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
43540 printf %s "checking if strtok_r might be used... " >&6; }
43541 if test "$tst_links_strtok_r" = "yes" &&
43542 test "$tst_proto_strtok_r" = "yes" &&
43543 test "$tst_compi_strtok_r" = "yes" &&
43544 test "$tst_allow_strtok_r" = "yes"; then
43545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43546 printf "%s\n" "yes" >&6; }
43548 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
43550 curl_cv_func_strtok_r="yes"
43552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43553 printf "%s\n" "no" >&6; }
43554 curl_cv_func_strtok_r="no"
43559 tst_links_strtoll="unknown"
43560 tst_proto_strtoll="unknown"
43561 tst_compi_strtoll="unknown"
43562 tst_allow_strtoll="unknown"
43564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
43565 printf %s "checking if strtoll can be linked... " >&6; }
43566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43567 /* end confdefs.h. */
43570 #define strtoll innocuous_strtoll
43572 # include <limits.h>
43574 # include <assert.h>
43581 #if defined __stub_strtoll || defined __stub___strtoll
43593 if ac_fn_c_try_link "$LINENO"
43596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43597 printf "%s\n" "yes" >&6; }
43598 tst_links_strtoll="yes"
43602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43603 printf "%s\n" "no" >&6; }
43604 tst_links_strtoll="no"
43607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43608 conftest$ac_exeext conftest.$ac_ext
43610 if test "$tst_links_strtoll" = "yes"; then
43611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
43612 printf %s "checking if strtoll is prototyped... " >&6; }
43613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43614 /* end confdefs.h. */
43616 $curl_includes_stdlib
43619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43620 $EGREP "strtoll" >/dev/null 2>&1
43623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43624 printf "%s\n" "yes" >&6; }
43625 tst_proto_strtoll="yes"
43629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43630 printf "%s\n" "no" >&6; }
43631 tst_proto_strtoll="no"
43638 if test "$tst_proto_strtoll" = "yes"; then
43639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43640 printf %s "checking if strtoll is compilable... " >&6; }
43641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43642 /* end confdefs.h. */
43645 $curl_includes_stdlib
43650 if(0 != strtoll(0, 0, 0))
43658 if ac_fn_c_try_compile "$LINENO"
43661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43662 printf "%s\n" "yes" >&6; }
43663 tst_compi_strtoll="yes"
43667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43668 printf "%s\n" "no" >&6; }
43669 tst_compi_strtoll="no"
43672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43675 if test "$tst_compi_strtoll" = "yes"; then
43676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
43677 printf %s "checking if strtoll usage allowed... " >&6; }
43678 if test "x$curl_disallow_strtoll" != "xyes"; then
43679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43680 printf "%s\n" "yes" >&6; }
43681 tst_allow_strtoll="yes"
43683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43684 printf "%s\n" "no" >&6; }
43685 tst_allow_strtoll="no"
43689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
43690 printf %s "checking if strtoll might be used... " >&6; }
43691 if test "$tst_links_strtoll" = "yes" &&
43692 test "$tst_proto_strtoll" = "yes" &&
43693 test "$tst_compi_strtoll" = "yes" &&
43694 test "$tst_allow_strtoll" = "yes"; then
43695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43696 printf "%s\n" "yes" >&6; }
43698 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
43700 curl_cv_func_strtoll="yes"
43702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43703 printf "%s\n" "no" >&6; }
43704 curl_cv_func_strtoll="no"
43712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
43713 printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
43717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
43718 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
43719 if test ${ac_cv_c_undeclared_builtin_options+y}
43721 printf %s "(cached) " >&6
43723 ac_save_CFLAGS=$CFLAGS
43724 ac_cv_c_undeclared_builtin_options='cannot detect'
43725 for ac_arg in '' -fno-builtin; do
43726 CFLAGS="$ac_save_CFLAGS $ac_arg"
43727 # This test program should *not* compile successfully.
43728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43729 /* end confdefs.h. */
43738 if ac_fn_c_try_compile "$LINENO"
43742 # This test program should compile successfully.
43743 # No library function is consistently available on
43744 # freestanding implementations, so test against a dummy
43745 # declaration. Include always-available headers on the
43746 # off chance that they somehow elicit warnings.
43747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43748 /* end confdefs.h. */
43750 #include <limits.h>
43751 #include <stdarg.h>
43752 #include <stddef.h>
43753 extern void ac_decl (int, char *);
43757 (void) ac_decl (0, (char *) 0);
43764 if ac_fn_c_try_compile "$LINENO"
43766 if test x"$ac_arg" = x
43768 ac_cv_c_undeclared_builtin_options='none needed'
43770 ac_cv_c_undeclared_builtin_options=$ac_arg
43774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43778 CFLAGS=$ac_save_CFLAGS
43781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
43782 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
43783 case $ac_cv_c_undeclared_builtin_options in #(
43785 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43786 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43787 as_fn_error $? "cannot make $CC report undeclared builtins
43788 See \`config.log' for more details" "$LINENO" 5; } ;; #(
43790 ac_c_undeclared_builtin_options='' ;; #(
43792 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
43795 ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
43796 #include <sys/types.h>
43797 " "$ac_c_undeclared_builtin_options" "CFLAGS"
43798 if test "x$ac_cv_have_decl_getpwuid_r" = xyes
43804 printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
43805 if test $ac_have_decl = 1
43810 printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
43816 for ac_func in _fseeki64 arc4random fnmatch fseeko geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe sched_yield sendmsg setlocale setmode setrlimit snprintf utime utimes
43818 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
43819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43820 if eval test \"x\$"$as_ac_var"\" = x"yes"
43822 cat >>confdefs.h <<_ACEOF
43823 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
43830 eval skipcheck=\$skipcheck_$func
43831 if test "x$skipcheck" != "xyes"; then
43832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
43833 printf %s "checking deeper for $func... " >&6; }
43834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43835 /* end confdefs.h. */
43849 if ac_fn_c_try_link "$LINENO"
43852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43853 printf "%s\n" "yes" >&6; }
43854 eval "ac_cv_func_$func=yes"
43856 cat >>confdefs.h <<_ACEOF
43857 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
43863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
43864 printf "%s\n" "but still no" >&6; }
43867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43868 conftest$ac_exeext conftest.$ac_ext
43875 ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "#include <stdio.h>
43876 " "$ac_c_undeclared_builtin_options" "CFLAGS"
43877 if test "x$ac_cv_have_decl_fseeko" = xyes
43880 printf "%s\n" "#define HAVE_DECL_FSEEKO 1" >>confdefs.h
43886 tst_method="unknown"
43888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
43889 printf %s "checking how to set a socket into non-blocking mode... " >&6; }
43890 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
43891 tst_method="fcntl O_NONBLOCK"
43892 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
43893 tst_method="ioctl FIONBIO"
43894 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
43895 tst_method="ioctlsocket FIONBIO"
43896 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
43897 tst_method="IoctlSocket FIONBIO"
43898 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
43899 tst_method="setsockopt SO_NONBLOCK"
43901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
43902 printf "%s\n" "$tst_method" >&6; }
43903 if test "$tst_method" = "unknown"; then
43904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
43905 printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
43910 # Extract the first word of "perl", so it can be a program name with args.
43911 set dummy perl; ac_word=$2
43912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43913 printf %s "checking for $ac_word... " >&6; }
43914 if test ${ac_cv_path_PERL+y}
43916 printf %s "(cached) " >&6
43920 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43924 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
43925 for as_dir in $as_dummy
43928 case $as_dir in #(((
43931 *) as_dir=$as_dir/ ;;
43933 for ac_exec_ext in '' $ac_executable_extensions; do
43934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43935 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
43936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43946 PERL=$ac_cv_path_PERL
43947 if test -n "$PERL"; then
43948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
43949 printf "%s\n" "$PERL" >&6; }
43951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43952 printf "%s\n" "no" >&6; }
43958 for ac_prog in gnroff nroff
43960 # Extract the first word of "$ac_prog", so it can be a program name with args.
43961 set dummy $ac_prog; ac_word=$2
43962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43963 printf %s "checking for $ac_word... " >&6; }
43964 if test ${ac_cv_path_NROFF+y}
43966 printf %s "(cached) " >&6
43970 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
43973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43974 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
43975 for as_dir in $as_dummy
43978 case $as_dir in #(((
43981 *) as_dir=$as_dir/ ;;
43983 for ac_exec_ext in '' $ac_executable_extensions; do
43984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43985 ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
43986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43996 NROFF=$ac_cv_path_NROFF
43997 if test -n "$NROFF"; then
43998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
43999 printf "%s\n" "$NROFF" >&6; }
44001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44002 printf "%s\n" "no" >&6; }
44006 test -n "$NROFF" && break
44011 if test -n "$NROFF"; then
44013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
44014 printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
44016 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
44017 if test -z "$mancheck"; then
44019 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
44020 if test -z "$mancheck"; then
44022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
44023 printf "%s\n" "failed" >&6; }
44024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
44025 printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
44027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
44028 printf "%s\n" "$MANOPT" >&6; }
44031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
44032 printf "%s\n" "$MANOPT" >&6; }
44037 if test -z "$MANOPT"
44039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
44040 printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
44045 if test "$USE_MANUAL" = "1"; then
44047 printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
44049 curl_manual_msg="enabled"
44052 if test x"$USE_MANUAL" = x1; then
44054 USE_MANUAL_FALSE='#'
44056 USE_MANUAL_TRUE='#'
44063 if test "$want_ares" = "yes"; then
44064 clean_CPPFLAGS="$CPPFLAGS"
44065 clean_LDFLAGS="$LDFLAGS"
44067 configure_runpath=`pwd`
44068 if test -n "$want_ares_path"; then
44069 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
44071 if test -n "$PKG_CONFIG"; then
44072 PKGCONFIG="$PKG_CONFIG"
44074 if test -n "$ac_tool_prefix"; then
44075 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44076 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44078 printf %s "checking for $ac_word... " >&6; }
44079 if test ${ac_cv_path_PKGCONFIG+y}
44081 printf %s "(cached) " >&6
44085 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44089 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44090 for as_dir in $as_dummy
44093 case $as_dir in #(((
44096 *) as_dir=$as_dir/ ;;
44098 for ac_exec_ext in '' $ac_executable_extensions; do
44099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44100 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44111 PKGCONFIG=$ac_cv_path_PKGCONFIG
44112 if test -n "$PKGCONFIG"; then
44113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44114 printf "%s\n" "$PKGCONFIG" >&6; }
44116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44117 printf "%s\n" "no" >&6; }
44122 if test -z "$ac_cv_path_PKGCONFIG"; then
44123 ac_pt_PKGCONFIG=$PKGCONFIG
44124 # Extract the first word of "pkg-config", so it can be a program name with args.
44125 set dummy pkg-config; ac_word=$2
44126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44127 printf %s "checking for $ac_word... " >&6; }
44128 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44130 printf %s "(cached) " >&6
44132 case $ac_pt_PKGCONFIG in
44134 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44138 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44139 for as_dir in $as_dummy
44142 case $as_dir in #(((
44145 *) as_dir=$as_dir/ ;;
44147 for ac_exec_ext in '' $ac_executable_extensions; do
44148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44149 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44160 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44161 if test -n "$ac_pt_PKGCONFIG"; then
44162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44163 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44166 printf "%s\n" "no" >&6; }
44169 if test "x$ac_pt_PKGCONFIG" = x; then
44172 case $cross_compiling:$ac_tool_warned in
44174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44175 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44176 ac_tool_warned=yes ;;
44178 PKGCONFIG=$ac_pt_PKGCONFIG
44181 PKGCONFIG="$ac_cv_path_PKGCONFIG"
44186 if test "x$PKGCONFIG" != "xno"; then
44187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44188 printf %s "checking for libcares options with pkg-config... " >&6; }
44190 if test -n "$ARES_PCDIR"; then
44191 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44192 export PKG_CONFIG_LIBDIR
44194 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44196 if test -z "$itexists"; then
44198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44199 printf "%s\n" "no" >&6; }
44201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44202 printf "%s\n" "found" >&6; }
44206 if test "$PKGCONFIG" != "no" ; then
44208 if test -n "$ARES_PCDIR"; then
44209 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44210 export PKG_CONFIG_LIBDIR
44213 $PKGCONFIG --libs-only-l libcares`
44215 if test -n "$ARES_PCDIR"; then
44216 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44217 export PKG_CONFIG_LIBDIR
44220 $PKGCONFIG --libs-only-L libcares`
44222 if test -n "$ARES_PCDIR"; then
44223 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44224 export PKG_CONFIG_LIBDIR
44227 $PKGCONFIG --cflags-only-I libcares`
44228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
44229 printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
44230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
44231 printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44233 printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44235 ares_CPPFLAGS="-I$want_ares_path/include"
44236 ares_LDFLAGS="-L$want_ares_path/lib"
44237 ares_LIBS="-lcares"
44241 if test -n "$PKG_CONFIG"; then
44242 PKGCONFIG="$PKG_CONFIG"
44244 if test -n "$ac_tool_prefix"; then
44245 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44246 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44248 printf %s "checking for $ac_word... " >&6; }
44249 if test ${ac_cv_path_PKGCONFIG+y}
44251 printf %s "(cached) " >&6
44255 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44259 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44260 for as_dir in $as_dummy
44263 case $as_dir in #(((
44266 *) as_dir=$as_dir/ ;;
44268 for ac_exec_ext in '' $ac_executable_extensions; do
44269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44270 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44281 PKGCONFIG=$ac_cv_path_PKGCONFIG
44282 if test -n "$PKGCONFIG"; then
44283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44284 printf "%s\n" "$PKGCONFIG" >&6; }
44286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44287 printf "%s\n" "no" >&6; }
44292 if test -z "$ac_cv_path_PKGCONFIG"; then
44293 ac_pt_PKGCONFIG=$PKGCONFIG
44294 # Extract the first word of "pkg-config", so it can be a program name with args.
44295 set dummy pkg-config; ac_word=$2
44296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44297 printf %s "checking for $ac_word... " >&6; }
44298 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44300 printf %s "(cached) " >&6
44302 case $ac_pt_PKGCONFIG in
44304 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44308 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44309 for as_dir in $as_dummy
44312 case $as_dir in #(((
44315 *) as_dir=$as_dir/ ;;
44317 for ac_exec_ext in '' $ac_executable_extensions; do
44318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44319 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44330 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44331 if test -n "$ac_pt_PKGCONFIG"; then
44332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44333 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44336 printf "%s\n" "no" >&6; }
44339 if test "x$ac_pt_PKGCONFIG" = x; then
44342 case $cross_compiling:$ac_tool_warned in
44344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44346 ac_tool_warned=yes ;;
44348 PKGCONFIG=$ac_pt_PKGCONFIG
44351 PKGCONFIG="$ac_cv_path_PKGCONFIG"
44356 if test "x$PKGCONFIG" != "xno"; then
44357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44358 printf %s "checking for libcares options with pkg-config... " >&6; }
44360 if test -n ""; then
44361 PKG_CONFIG_LIBDIR=""
44362 export PKG_CONFIG_LIBDIR
44364 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44366 if test -z "$itexists"; then
44368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44369 printf "%s\n" "no" >&6; }
44371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44372 printf "%s\n" "found" >&6; }
44376 if test "$PKGCONFIG" != "no" ; then
44377 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
44378 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
44379 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
44380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
44381 printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
44382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
44383 printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
44384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
44385 printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
44389 ares_LIBS="-lcares"
44393 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
44394 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
44395 LIBS="$ares_LIBS $clean_LIBS"
44398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
44399 printf %s "checking that c-ares is good and recent enough... " >&6; }
44400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44401 /* end confdefs.h. */
44405 /* set of dummy functions in case c-ares was built with debug */
44406 void curl_dofree() { }
44407 void curl_sclose() { }
44408 void curl_domalloc() { }
44409 void curl_docalloc() { }
44410 void curl_socket() { }
44415 ares_channel channel;
44416 ares_cancel(channel); /* added in 1.2.0 */
44417 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
44418 ares_dup(&channel, channel); /* added in 1.6.0 */
44425 if ac_fn_c_try_link "$LINENO"
44428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44429 printf "%s\n" "yes" >&6; }
44433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44434 printf "%s\n" "no" >&6; }
44435 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
44436 CPPFLAGS="$clean_CPPFLAGS"
44437 LDFLAGS="$clean_LDFLAGS"
44443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44444 conftest$ac_exeext conftest.$ac_ext
44446 if test "$want_ares" = "yes"; then
44448 printf "%s\n" "#define USE_ARES 1" >>confdefs.h
44452 curl_res_msg="c-ares"
44457 if test "x$curl_cv_native_windows" != "xyes" &&
44458 test "x$enable_shared" = "xyes"; then
44459 build_libhostname=yes
44461 build_libhostname=no
44463 if test x$build_libhostname = xyes; then
44464 BUILD_LIBHOSTNAME_TRUE=
44465 BUILD_LIBHOSTNAME_FALSE='#'
44467 BUILD_LIBHOSTNAME_TRUE='#'
44468 BUILD_LIBHOSTNAME_FALSE=
44472 if test "x$want_ares" != xyes; then
44474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
44475 printf %s "checking whether to enable the threaded resolver... " >&6; }
44476 OPT_THRES="default"
44477 # Check whether --enable-threaded_resolver was given.
44478 if test ${enable_threaded_resolver+y}
44480 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
44483 case "$OPT_THRES" in
44491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
44492 printf "%s\n" "$want_thres" >&6; }
44496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
44497 printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
44498 # Check whether --enable-pthreads was given.
44499 if test ${enable_pthreads+y}
44501 enableval=$enable_pthreads; case "$enableval" in
44502 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44503 printf "%s\n" "no" >&6; }
44506 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44507 printf "%s\n" "yes" >&6; }
44513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44514 printf "%s\n" "auto" >&6; }
44521 if test "$want_pthreads" != "no"; then
44522 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
44523 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
44525 if test "$dontwant_rt" != "no"; then
44526 if test "$want_pthreads" = "yes"; then
44527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
44528 printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
44534 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
44538 if test "$want_pthreads" != "no"; then
44539 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44540 if test "x$ac_cv_header_pthread_h" = xyes
44543 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
44545 save_CFLAGS="$CFLAGS"
44549 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44550 if test "x$ac_cv_func_pthread_create" = xyes
44552 USE_THREADS_POSIX=1
44559 USE_THREADS_POSIX=""
44565 if test "$USE_THREADS_POSIX" != "1"
44567 # assign PTHREAD for pkg-config use
44568 PTHREAD=" -pthread"
44572 COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
44573 if test x"$COMPILER_VERSION" = "x"; then
44574 CFLAGS="$CFLAGS -pthread"
44576 CFLAGS="$CFLAGS -qthreaded"
44580 PTHREAD=" -lpthread"
44583 CFLAGS="$CFLAGS -pthread"
44586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44587 printf %s "checking for pthread_create in -lpthread... " >&6; }
44588 if test ${ac_cv_lib_pthread_pthread_create+y}
44590 printf %s "(cached) " >&6
44592 ac_check_lib_save_LIBS=$LIBS
44593 LIBS="-lpthread $LIBS"
44594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44595 /* end confdefs.h. */
44601 char pthread_create ();
44604 return pthread_create ();
44609 if ac_fn_c_try_link "$LINENO"
44611 ac_cv_lib_pthread_pthread_create=yes
44613 ac_cv_lib_pthread_pthread_create=no
44615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44616 conftest$ac_exeext conftest.$ac_ext
44617 LIBS=$ac_check_lib_save_LIBS
44619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44620 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
44621 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
44623 USE_THREADS_POSIX=1
44625 CFLAGS="$save_CFLAGS"
44630 if test "x$USE_THREADS_POSIX" = "x1"
44633 printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
44635 curl_res_msg="POSIX threaded"
44642 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44643 if test "$want_pthreads" = "yes"; then
44644 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44646 if test "$curl_cv_native_windows" = "yes"; then
44647 USE_THREADS_WIN32=1
44649 printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
44651 curl_res_msg="Win32 threaded"
44653 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44659 printf %s "checking convert -I options to -isystem... " >&6; }
44660 if test "$compiler_id" = "GNU_C" ||
44661 test "$compiler_id" = "CLANG"; then
44662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44663 printf "%s\n" "yes" >&6; }
44664 tmp_has_include="no"
44665 tmp_chg_FLAGS="$CFLAGS"
44666 for word1 in $tmp_chg_FLAGS; do
44669 tmp_has_include="yes"
44673 if test "$tmp_has_include" = "yes"; then
44674 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44675 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44676 CFLAGS="$tmp_chg_FLAGS"
44679 tmp_has_include="no"
44680 tmp_chg_FLAGS="$CPPFLAGS"
44681 for word1 in $tmp_chg_FLAGS; do
44684 tmp_has_include="yes"
44688 if test "$tmp_has_include" = "yes"; then
44689 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44690 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44691 CPPFLAGS="$tmp_chg_FLAGS"
44695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44696 printf "%s\n" "no" >&6; }
44700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
44701 printf %s "checking whether to enable verbose strings... " >&6; }
44702 # Check whether --enable-verbose was given.
44703 if test ${enable_verbose+y}
44705 enableval=$enable_verbose; case "$enableval" in
44707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44708 printf "%s\n" "no" >&6; }
44710 printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
44712 curl_verbose_msg="no"
44714 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44715 printf "%s\n" "yes" >&6; }
44719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44720 printf "%s\n" "yes" >&6; }
44725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
44726 printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
44727 # Check whether --enable-sspi was given.
44728 if test ${enable_sspi+y}
44730 enableval=$enable_sspi; case "$enableval" in
44732 if test "$curl_cv_native_windows" = "yes"; then
44733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44734 printf "%s\n" "yes" >&6; }
44736 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
44740 curl_sspi_msg="enabled"
44742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44743 printf "%s\n" "no" >&6; }
44744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
44745 printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
44749 if test "x$SCHANNEL_ENABLED" = "x1"; then
44750 # --with-schannel implies --enable-sspi
44751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44752 printf "%s\n" "yes" >&6; }
44754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44755 printf "%s\n" "no" >&6; }
44760 if test "x$SCHANNEL_ENABLED" = "x1"; then
44761 # --with-schannel implies --enable-sspi
44762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44763 printf "%s\n" "yes" >&6; }
44765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44766 printf "%s\n" "no" >&6; }
44772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable basic authentication method" >&5
44773 printf %s "checking whether to enable basic authentication method... " >&6; }
44774 # Check whether --enable-basic-auth was given.
44775 if test ${enable_basic_auth+y}
44777 enableval=$enable_basic_auth; case "$enableval" in
44779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44780 printf "%s\n" "no" >&6; }
44782 printf "%s\n" "#define CURL_DISABLE_BASIC_AUTH 1" >>confdefs.h
44784 CURL_DISABLE_BASIC_AUTH=1
44786 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44787 printf "%s\n" "yes" >&6; }
44791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44792 printf "%s\n" "yes" >&6; }
44797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable bearer authentication method" >&5
44798 printf %s "checking whether to enable bearer authentication method... " >&6; }
44799 # Check whether --enable-bearer-auth was given.
44800 if test ${enable_bearer_auth+y}
44802 enableval=$enable_bearer_auth; case "$enableval" in
44804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44805 printf "%s\n" "no" >&6; }
44807 printf "%s\n" "#define CURL_DISABLE_BEARER_AUTH 1" >>confdefs.h
44809 CURL_DISABLE_BEARER_AUTH=1
44811 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44812 printf "%s\n" "yes" >&6; }
44816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44817 printf "%s\n" "yes" >&6; }
44822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable digest authentication method" >&5
44823 printf %s "checking whether to enable digest authentication method... " >&6; }
44824 # Check whether --enable-digest-auth was given.
44825 if test ${enable_digest_auth+y}
44827 enableval=$enable_digest_auth; case "$enableval" in
44829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44830 printf "%s\n" "no" >&6; }
44832 printf "%s\n" "#define CURL_DISABLE_DIGEST_AUTH 1" >>confdefs.h
44834 CURL_DISABLE_DIGEST_AUTH=1
44836 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44837 printf "%s\n" "yes" >&6; }
44841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44842 printf "%s\n" "yes" >&6; }
44847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable kerberos authentication method" >&5
44848 printf %s "checking whether to enable kerberos authentication method... " >&6; }
44849 # Check whether --enable-kerberos-auth was given.
44850 if test ${enable_kerberos_auth+y}
44852 enableval=$enable_kerberos_auth; case "$enableval" in
44854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44855 printf "%s\n" "no" >&6; }
44857 printf "%s\n" "#define CURL_DISABLE_KERBEROS_AUTH 1" >>confdefs.h
44859 CURL_DISABLE_KERBEROS_AUTH=1
44861 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44862 printf "%s\n" "yes" >&6; }
44866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44867 printf "%s\n" "yes" >&6; }
44872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable negotiate authentication method" >&5
44873 printf %s "checking whether to enable negotiate authentication method... " >&6; }
44874 # Check whether --enable-negotiate-auth was given.
44875 if test ${enable_negotiate_auth+y}
44877 enableval=$enable_negotiate_auth; case "$enableval" in
44879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44880 printf "%s\n" "no" >&6; }
44882 printf "%s\n" "#define CURL_DISABLE_NEGOTIATE_AUTH 1" >>confdefs.h
44884 CURL_DISABLE_NEGOTIATE_AUTH=1
44886 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44887 printf "%s\n" "yes" >&6; }
44891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44892 printf "%s\n" "yes" >&6; }
44898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable aws sig methods" >&5
44899 printf %s "checking whether to enable aws sig methods... " >&6; }
44900 # Check whether --enable-aws was given.
44901 if test ${enable_aws+y}
44903 enableval=$enable_aws; case "$enableval" in
44905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44906 printf "%s\n" "no" >&6; }
44908 printf "%s\n" "#define CURL_DISABLE_AWS 1" >>confdefs.h
44912 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44913 printf "%s\n" "yes" >&6; }
44917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44918 printf "%s\n" "yes" >&6; }
44923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
44924 printf %s "checking whether to support NTLM... " >&6; }
44925 # Check whether --enable-ntlm was given.
44926 if test ${enable_ntlm+y}
44928 enableval=$enable_ntlm; case "$enableval" in
44930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44931 printf "%s\n" "no" >&6; }
44933 printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
44935 CURL_DISABLE_NTLM=1
44937 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44938 printf "%s\n" "yes" >&6; }
44942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44943 printf "%s\n" "yes" >&6; }
44949 OPT_NTLM_WB="default"
44950 # Check whether --enable-ntlm-wb was given.
44951 if test ${enable_ntlm_wb+y}
44953 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
44956 want_ntlm_wb_file="/usr/bin/ntlm_auth"
44957 case "$OPT_NTLM_WB" in
44966 if test -n "$enableval" && test "$enableval" != "yes"; then
44967 want_ntlm_wb_file="$enableval"
44974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
44975 printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
44976 if test "$curl_cv_native_windows" = "yes" ||
44977 test "x$SSL_ENABLED" = "x"; then
44978 want_ntlm_wb_file=""
44980 elif test "x$ac_cv_func_fork" != "xyes"; then
44983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
44984 printf "%s\n" "$want_ntlm_wb" >&6; }
44985 if test "$want_ntlm_wb" = "yes"; then
44987 printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
44990 printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
44996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
44997 printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
44998 # Check whether --enable-tls-srp was given.
44999 if test ${enable_tls_srp+y}
45001 enableval=$enable_tls_srp; case "$enableval" in
45003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45004 printf "%s\n" "no" >&6; }
45007 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45008 printf "%s\n" "yes" >&6; }
45013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45014 printf "%s\n" "yes" >&6; }
45020 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
45022 printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
45025 curl_tls_srp_msg="enabled"
45028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
45029 printf %s "checking whether to enable Unix domain sockets... " >&6; }
45030 # Check whether --enable-unix-sockets was given.
45031 if test ${enable_unix_sockets+y}
45033 enableval=$enable_unix_sockets; case "$enableval" in
45034 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45035 printf "%s\n" "no" >&6; }
45036 want_unix_sockets=no
45038 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45039 printf "%s\n" "yes" >&6; }
45040 want_unix_sockets=yes
45045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
45046 printf "%s\n" "auto" >&6; }
45047 want_unix_sockets=auto
45052 if test "x$want_unix_sockets" != "xno"; then
45053 if test "x$curl_cv_native_windows" = "xyes"; then
45056 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
45058 curl_unix_sockets_msg="enabled"
45060 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
45061 #include <sys/un.h>
45064 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
45068 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
45072 curl_unix_sockets_msg="enabled"
45076 if test "x$want_unix_sockets" = "xyes"; then
45077 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
45085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
45086 printf %s "checking whether to support cookies... " >&6; }
45087 # Check whether --enable-cookies was given.
45088 if test ${enable_cookies+y}
45090 enableval=$enable_cookies; case "$enableval" in
45092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45093 printf "%s\n" "no" >&6; }
45095 printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
45098 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45099 printf "%s\n" "yes" >&6; }
45103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45104 printf "%s\n" "yes" >&6; }
45109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
45110 printf %s "checking whether to support socketpair... " >&6; }
45111 # Check whether --enable-socketpair was given.
45112 if test ${enable_socketpair+y}
45114 enableval=$enable_socketpair; case "$enableval" in
45116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45117 printf "%s\n" "no" >&6; }
45119 printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
45122 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45123 printf "%s\n" "yes" >&6; }
45127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45128 printf "%s\n" "yes" >&6; }
45133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
45134 printf %s "checking whether to support HTTP authentication... " >&6; }
45135 # Check whether --enable-http-auth was given.
45136 if test ${enable_http_auth+y}
45138 enableval=$enable_http_auth; case "$enableval" in
45140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45141 printf "%s\n" "no" >&6; }
45143 printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
45146 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45147 printf "%s\n" "yes" >&6; }
45151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45152 printf "%s\n" "yes" >&6; }
45157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
45158 printf %s "checking whether to support DoH... " >&6; }
45159 # Check whether --enable-doh was given.
45160 if test ${enable_doh+y}
45162 enableval=$enable_doh; case "$enableval" in
45164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45165 printf "%s\n" "no" >&6; }
45167 printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
45170 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45171 printf "%s\n" "yes" >&6; }
45175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45176 printf "%s\n" "yes" >&6; }
45181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
45182 printf %s "checking whether to support the MIME API... " >&6; }
45183 # Check whether --enable-mime was given.
45184 if test ${enable_mime+y}
45186 enableval=$enable_mime; case "$enableval" in
45188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45189 printf "%s\n" "no" >&6; }
45191 printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
45194 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45195 printf "%s\n" "yes" >&6; }
45199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45200 printf "%s\n" "yes" >&6; }
45205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support binding connections locally" >&5
45206 printf %s "checking whether to support binding connections locally... " >&6; }
45207 # Check whether --enable-bindlocal was given.
45208 if test ${enable_bindlocal+y}
45210 enableval=$enable_bindlocal; case "$enableval" in
45212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45213 printf "%s\n" "no" >&6; }
45215 printf "%s\n" "#define CURL_DISABLE_BINDLOCAL 1" >>confdefs.h
45218 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45219 printf "%s\n" "yes" >&6; }
45223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45224 printf "%s\n" "yes" >&6; }
45229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the form API" >&5
45230 printf %s "checking whether to support the form API... " >&6; }
45231 # Check whether --enable-form-api was given.
45232 if test ${enable_form_api+y}
45234 enableval=$enable_form_api; case "$enableval" in
45235 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45236 printf "%s\n" "no" >&6; }
45238 printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h
45241 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45242 printf "%s\n" "yes" >&6; }
45243 test "$enable_mime" = no &&
45244 as_fn_error $? "MIME support needs to be enabled in order to enable form API support" "$LINENO" 5
45249 if test "$enable_mime" = no; then
45251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45252 printf "%s\n" "no" >&6; }
45254 printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h
45257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45258 printf "%s\n" "yes" >&6; }
45264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
45265 printf %s "checking whether to support date parsing... " >&6; }
45266 # Check whether --enable-dateparse was given.
45267 if test ${enable_dateparse+y}
45269 enableval=$enable_dateparse; case "$enableval" in
45271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45272 printf "%s\n" "no" >&6; }
45274 printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
45277 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45278 printf "%s\n" "yes" >&6; }
45282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45283 printf "%s\n" "yes" >&6; }
45288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
45289 printf %s "checking whether to support netrc parsing... " >&6; }
45290 # Check whether --enable-netrc was given.
45291 if test ${enable_netrc+y}
45293 enableval=$enable_netrc; case "$enableval" in
45295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45296 printf "%s\n" "no" >&6; }
45298 printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
45301 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45302 printf "%s\n" "yes" >&6; }
45306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45307 printf "%s\n" "yes" >&6; }
45312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
45313 printf %s "checking whether to support progress-meter... " >&6; }
45314 # Check whether --enable-progress-meter was given.
45315 if test ${enable_progress_meter+y}
45317 enableval=$enable_progress_meter; case "$enableval" in
45319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45320 printf "%s\n" "no" >&6; }
45322 printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
45325 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45326 printf "%s\n" "yes" >&6; }
45330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45331 printf "%s\n" "yes" >&6; }
45336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
45337 printf %s "checking whether to support DNS shuffling... " >&6; }
45338 # Check whether --enable-dnsshuffle was given.
45339 if test ${enable_dnsshuffle+y}
45341 enableval=$enable_dnsshuffle; case "$enableval" in
45343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45344 printf "%s\n" "no" >&6; }
45346 printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
45349 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45350 printf "%s\n" "yes" >&6; }
45354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45355 printf "%s\n" "yes" >&6; }
45360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
45361 printf %s "checking whether to support curl_easy_option*... " >&6; }
45362 # Check whether --enable-get-easy-options was given.
45363 if test ${enable_get_easy_options+y}
45365 enableval=$enable_get_easy_options; case "$enableval" in
45367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45368 printf "%s\n" "no" >&6; }
45370 printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
45373 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45374 printf "%s\n" "yes" >&6; }
45378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45379 printf "%s\n" "yes" >&6; }
45384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
45385 printf %s "checking whether to support alt-svc... " >&6; }
45386 # Check whether --enable-alt-svc was given.
45387 if test ${enable_alt_svc+y}
45389 enableval=$enable_alt_svc; case "$enableval" in
45391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45392 printf "%s\n" "no" >&6; }
45394 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
45396 curl_altsvc_msg="no";
45399 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45400 printf "%s\n" "yes" >&6; }
45404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45405 printf "%s\n" "yes" >&6; }
45410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5
45411 printf %s "checking whether to support headers-api... " >&6; }
45412 # Check whether --enable-headers-api was given.
45413 if test ${enable_headers_api+y}
45415 enableval=$enable_headers_api; case "$enableval" in
45416 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45417 printf "%s\n" "no" >&6; }
45418 curl_headers_msg="no (--enable-headers-api)"
45420 printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h
45424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45425 printf "%s\n" "yes" >&6; }
45429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45430 printf "%s\n" "yes" >&6; }
45435 if test -n "$SSL_ENABLED"; then
45436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
45437 printf %s "checking whether to support HSTS... " >&6; }
45438 # Check whether --enable-hsts was given.
45439 if test ${enable_hsts+y}
45441 enableval=$enable_hsts; case "$enableval" in
45443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45444 printf "%s\n" "no" >&6; }
45447 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45448 printf "%s\n" "yes" >&6; }
45452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
45453 printf "%s\n" "$hsts" >&6; }
45458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
45459 printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
45463 if test "x$hsts" != "xyes"; then
45464 curl_hsts_msg="no (--enable-hsts)";
45466 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
45470 if test "x$want_ech" != "xno"; then
45471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
45472 printf %s "checking whether ECH support is available... " >&6; }
45477 if test "x$OPENSSL_ENABLED" = "x1"; then
45479 for ac_func in SSL_get_ech_status
45481 ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
45482 if test "x$ac_cv_func_SSL_get_ech_status" = xyes
45484 printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
45485 ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
45493 if test "x$ECH_ENABLED" = "x1"; then
45495 printf "%s\n" "#define USE_ECH 1" >>confdefs.h
45497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
45498 printf "%s\n" "$ECH_SUPPORT" >&6; }
45499 experimental="$experimental ECH"
45501 as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
45505 if test "x$OPENSSL_ENABLED" = "x1"; then
45506 ac_fn_c_check_func "$LINENO" "SSL_set0_wbio" "ac_cv_func_SSL_set0_wbio"
45507 if test "x$ac_cv_func_SSL_set0_wbio" = xyes
45509 printf "%s\n" "#define HAVE_SSL_SET0_WBIO 1" >>confdefs.h
45515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5
45516 printf %s "checking whether to support WebSockets... " >&6; }
45517 # Check whether --enable-websockets was given.
45518 if test ${enable_websockets+y}
45520 enableval=$enable_websockets; case "$enableval" in
45522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45523 printf "%s\n" "no" >&6; }
45526 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45528 printf "%s\n" "yes" >&6; }
45529 curl_ws_msg="enabled"
45531 printf "%s\n" "#define USE_WEBSOCKETS 1" >>confdefs.h
45533 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
45534 if test "x$SSL_ENABLED" = "x1"; then
45535 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
45537 experimental="$experimental Websockets"
45539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45540 printf "%s\n" "no" >&6; }
45541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&5
45542 printf "%s\n" "$as_me: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&2;}
45547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45548 printf "%s\n" "no" >&6; }
45555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
45556 printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
45557 CFLAG_CURL_SYMBOL_HIDING=""
45558 doing_symbol_hiding="no"
45559 if test "$want_symbol_hiding" = "yes" &&
45560 test "$supports_symbol_hiding" = "yes"; then
45561 doing_symbol_hiding="yes"
45562 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
45564 printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
45566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45567 printf "%s\n" "yes" >&6; }
45569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45570 printf "%s\n" "no" >&6; }
45572 if test x$doing_symbol_hiding = xyes; then
45573 DOING_CURL_SYMBOL_HIDING_TRUE=
45574 DOING_CURL_SYMBOL_HIDING_FALSE='#'
45576 DOING_CURL_SYMBOL_HIDING_TRUE='#'
45577 DOING_CURL_SYMBOL_HIDING_FALSE=
45583 LIBCURL_LIBS="$LIBS$PTHREAD"
45592 if test x$cross_compiling = xyes; then
45593 CROSSCOMPILING_TRUE=
45594 CROSSCOMPILING_FALSE='#'
45596 CROSSCOMPILING_TRUE='#'
45597 CROSSCOMPILING_FALSE=
45601 ENABLE_SHARED="$enable_shared"
45604 ENABLE_STATIC="$enable_static"
45607 if test "x$enable_shared" = "xno"; then
45608 LIBCURL_NO_SHARED=$LIBCURL_LIBS
45617 if test "x$OPENSSL_ENABLED" = "x1"; then
45618 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45619 elif test -n "$SSL_ENABLED"; then
45620 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
45622 if test "x$IPV6_ENABLED" = "x1"; then
45623 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
45625 if test "x$USE_UNIX_SOCKETS" = "x1"; then
45626 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
45628 if test "x$HAVE_LIBZ" = "x1"; then
45629 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
45631 if test "x$HAVE_BROTLI" = "x1"; then
45632 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
45634 if test "x$HAVE_ZSTD" = "x1"; then
45635 SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
45637 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
45638 -o "x$USE_THREADS_WIN32" = "x1"; then
45639 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
45641 if test "x$IDN_ENABLED" = "x1"; then
45642 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
45644 if test "x$USE_WINDOWS_SSPI" = "x1"; then
45645 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
45648 if test "x$HAVE_GSSAPI" = "x1"; then
45649 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
45652 if test "x$curl_psl_msg" = "xenabled"; then
45653 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
45656 if test "x$curl_gsasl_msg" = "xenabled"; then
45657 SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
45660 if test "x$enable_altsvc" = "xyes"; then
45661 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
45663 if test "x$hsts" = "xyes"; then
45664 SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
45667 if test "x$CURL_DISABLE_NEGOTIATE_AUTH" != "x1" -a \
45668 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45669 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
45672 if test "x$CURL_DISABLE_KERBEROS_AUTH" != "x1" -a \
45673 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45674 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
45677 use_curl_ntlm_core=no
45679 if test "x$CURL_DISABLE_NTLM" != "x1"; then
45680 if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
45681 -o "x$GNUTLS_ENABLED" = "x1" \
45682 -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45683 -o "x$USE_WIN32_CRYPTO" = "x1" \
45684 -o "x$WOLFSSL_NTLM" = "x1"; then
45685 use_curl_ntlm_core=yes
45688 if test "x$use_curl_ntlm_core" = "xyes" \
45689 -o "x$USE_WINDOWS_SSPI" = "x1"; then
45690 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
45692 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
45693 "x$NTLM_WB_ENABLED" = "x1"; then
45694 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
45699 if test "x$USE_TLS_SRP" = "x1"; then
45700 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
45703 if test "x$USE_NGHTTP2" = "x1"; then
45704 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
45707 if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1" \
45708 -o "x$USE_MSH3" = "x1"; then
45709 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
45712 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
45713 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
45716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this build supports HTTPS-proxy" >&5
45717 printf %s "checking if this build supports HTTPS-proxy... " >&6; }
45718 if test "x$CURL_DISABLE_HTTP" != "x1"; then
45719 if test "x$https_proxy" != "xno"; then
45720 if test "x$OPENSSL_ENABLED" = "x1" \
45721 -o "x$GNUTLS_ENABLED" = "x1" \
45722 -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45723 -o "x$RUSTLS_ENABLED" = "x1" \
45724 -o "x$BEARSSL_ENABLED" = "x1" \
45725 -o "x$SCHANNEL_ENABLED" = "x1" \
45726 -o "x$GNUTLS_ENABLED" = "x1" \
45727 -o "x$MBEDTLS_ENABLED" = "x1"; then
45728 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45730 printf "%s\n" "yes" >&6; }
45731 elif test "x$WOLFSSL_ENABLED" = "x1" -a "x$WOLFSSL_FULL_BIO" = "x1"; then
45732 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45734 printf "%s\n" "yes" >&6; }
45736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45737 printf "%s\n" "no" >&6; }
45740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45741 printf "%s\n" "no" >&6; }
45744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45745 printf "%s\n" "no" >&6; }
45748 if test "x$ECH_ENABLED" = "x1"; then
45749 SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
45752 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45753 if test ${ac_cv_sizeof_off_t} -gt 4 -o \
45754 "$curl_win32_file_api" = "win32_large_files"; then
45755 SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
45759 if test "$tst_atomic" = "yes"; then
45760 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45761 elif test "x$USE_THREADS_POSIX" = "x1" -a \
45762 "x$ac_cv_header_pthread_h" = "xyes"; then
45763 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45766 /* end confdefs.h. */
45769 #include <windows.h>
45774 #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
45783 if ac_fn_c_try_compile "$LINENO"
45786 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45792 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
45795 if test "x$CURL_DISABLE_HTTP" != "x1"; then
45796 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
45797 if test "x$SSL_ENABLED" = "x1"; then
45798 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
45801 if test "x$CURL_DISABLE_FTP" != "x1"; then
45802 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
45803 if test "x$SSL_ENABLED" = "x1"; then
45804 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
45807 if test "x$CURL_DISABLE_FILE" != "x1"; then
45808 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
45810 if test "x$CURL_DISABLE_TELNET" != "x1"; then
45811 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
45813 if test "x$CURL_DISABLE_LDAP" != "x1"; then
45814 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
45815 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
45816 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
45817 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
45818 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
45822 if test "x$CURL_DISABLE_DICT" != "x1"; then
45823 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
45825 if test "x$CURL_DISABLE_TFTP" != "x1"; then
45826 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
45828 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
45829 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
45830 if test "x$SSL_ENABLED" = "x1"; then
45831 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
45834 if test "x$CURL_DISABLE_MQTT" != "x1"; then
45835 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
45837 if test "x$CURL_DISABLE_POP3" != "x1"; then
45838 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
45839 if test "x$SSL_ENABLED" = "x1"; then
45840 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
45843 if test "x$CURL_DISABLE_IMAP" != "x1"; then
45844 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
45845 if test "x$SSL_ENABLED" = "x1"; then
45846 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
45849 if test "x$CURL_DISABLE_SMB" != "x1" \
45850 -a "x$use_curl_ntlm_core" = "xyes"; then
45851 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
45852 if test "x$SSL_ENABLED" = "x1"; then
45853 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
45856 if test "x$CURL_DISABLE_SMTP" != "x1"; then
45857 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
45858 if test "x$SSL_ENABLED" = "x1"; then
45859 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
45862 if test "x$USE_LIBSSH2" = "x1"; then
45863 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45864 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45866 if test "x$USE_LIBSSH" = "x1"; then
45867 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45868 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45870 if test "x$USE_WOLFSSH" = "x1"; then
45871 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45873 if test "x$CURL_DISABLE_RTSP" != "x1"; then
45874 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
45876 if test "x$USE_LIBRTMP" = "x1"; then
45877 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
45880 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
45891 squeeze LIBCURL_LIBS
45892 squeeze CURL_NETWORK_LIBS
45893 squeeze CURL_NETWORK_AND_TIME_LIBS
45895 squeeze SUPPORT_FEATURES
45896 squeeze SUPPORT_PROTOCOLS
45901 for xc_word in $LIBS; do
45907 xc_bad_var_libs=yes
45911 if test $xc_bad_var_libs = yes; then
45912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
45913 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
45914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
45915 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
45919 xc_bad_var_ldflags=no
45920 for xc_word in $LDFLAGS; do
45923 xc_bad_var_ldflags=yes
45926 xc_bad_var_ldflags=yes
45929 xc_bad_var_ldflags=yes
45932 xc_bad_var_ldflags=yes
45936 if test $xc_bad_var_ldflags = yes; then
45937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
45938 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
45939 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
45940 for xc_word in $LDFLAGS; do
45943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45944 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45948 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45952 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45956 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45963 xc_bad_var_cppflags=no
45964 for xc_word in $CPPFLAGS; do
45967 xc_bad_var_cppflags=yes
45969 -L* | --library-path=*)
45970 xc_bad_var_cppflags=yes
45973 xc_bad_var_cppflags=yes
45977 if test $xc_bad_var_cppflags = yes; then
45978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
45979 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
45980 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
45981 for xc_word in $CPPFLAGS; do
45984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45985 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45987 -L* | --library-path=*)
45988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45989 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45993 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46000 xc_bad_var_cflags=no
46001 for xc_word in $CFLAGS; do
46004 xc_bad_var_cflags=yes
46007 xc_bad_var_cflags=yes
46010 xc_bad_var_cflags=yes
46013 xc_bad_var_cflags=yes
46015 -L* | --library-path=*)
46016 xc_bad_var_cflags=yes
46019 xc_bad_var_cflags=yes
46023 if test $xc_bad_var_cflags = yes; then
46024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
46025 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
46026 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
46027 for xc_word in $CFLAGS; do
46030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
46031 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
46034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
46035 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
46038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
46039 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
46042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
46043 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
46045 -L* | --library-path=*)
46046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
46047 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
46050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46051 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46057 if test $xc_bad_var_libs = yes ||
46058 test $xc_bad_var_cflags = yes ||
46059 test $xc_bad_var_ldflags = yes ||
46060 test $xc_bad_var_cppflags = yes; then
46061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
46062 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
46066 SSL_BACKENDS=${ssl_backends}
46069 if test "x$want_curldebug_assumed" = "xyes" &&
46070 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
46071 ac_configure_args="$ac_configure_args --enable-curldebug"
46074 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers lib/libcurl.plist tests/Makefile tests/config tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile tests/http/config.ini tests/http/Makefile tests/http/clients/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
46076 cat >confcache <<\_ACEOF
46077 # This file is a shell script that caches the results of configure
46078 # tests run on this system so they can be shared between configure
46079 # scripts and configure runs, see configure's option --config-cache.
46080 # It is not useful on other systems. If it contains results you don't
46081 # want to keep, you may remove or edit it.
46083 # config.status only pays attention to the cache file if you give it
46084 # the --recheck option to rerun configure.
46086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
46087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
46088 # following values.
46092 # The following way of writing the cache mishandles newlines in values,
46093 # but we know of no workaround that is simple, portable, and efficient.
46094 # So, we kill variables containing newlines.
46095 # Ultrix sh set writes to stderr and can't be redirected directly,
46096 # and sets the high bit in the cache file unless we assign to the vars.
46098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46099 eval ac_val=\$$ac_var
46103 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
46104 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46107 _ | IFS | as_nl) ;; #(
46108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46109 *) { eval $ac_var=; unset $ac_var;} ;;
46115 case $as_nl`(ac_space=' '; set) 2>&1` in #(
46116 *${as_nl}ac_space=\ *)
46117 # `set' does not quote correctly, so add quotes: double-quote
46118 # substitution turns \\\\ into \\, and sed turns \\ into \.
46121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46124 # `set' quotes correctly as required by POSIX, so do not add quotes.
46125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46134 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
46136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46138 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46139 if test -w "$cache_file"; then
46140 if test "x$cache_file" != "x/dev/null"; then
46141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
46142 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
46143 if test ! -f "$cache_file" || test -h "$cache_file"; then
46144 cat confcache >"$cache_file"
46146 case $cache_file in #(
46148 mv -f confcache "$cache_file"$$ &&
46149 mv -f "$cache_file"$$ "$cache_file" ;; #(
46151 mv -f confcache "$cache_file" ;;
46156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
46157 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
46162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
46163 # Let make expand exec_prefix.
46164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46166 DEFS=-DHAVE_CONFIG_H
46171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46172 # 1. Remove the extension, and $U if already installed.
46173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46174 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
46175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
46176 # will be set to the directory where LIBOBJS objects are built.
46177 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46178 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
46180 LIBOBJS=$ac_libobjs
46182 LTLIBOBJS=$ac_ltlibobjs
46185 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46186 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
46187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
46190 printf %s "checking that generated files are newer than configure... " >&6; }
46191 if test -n "$am_sleep_pid"; then
46192 # Hide warnings about reused PIDs.
46193 wait $am_sleep_pid 2>/dev/null
46195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
46196 printf "%s\n" "done" >&6; }
46197 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46198 as_fn_error $? "conditional \"AMDEP\" was never defined.
46199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46201 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46202 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
46203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46205 if test -n "$EXEEXT"; then
46207 am__EXEEXT_FALSE='#'
46209 am__EXEEXT_TRUE='#'
46213 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
46214 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
46215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46217 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
46218 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
46219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46221 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
46222 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
46223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46225 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
46226 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
46227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46229 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
46230 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
46231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46233 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
46234 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
46235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46237 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
46238 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
46239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46241 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
46242 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
46243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46245 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
46246 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
46247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46249 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
46250 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
46251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46253 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
46254 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
46255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46257 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
46258 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
46259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46261 if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
46262 as_fn_error $? "conditional \"USE_GSASL\" was never defined.
46263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46265 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
46266 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
46267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46269 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
46270 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
46271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46273 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
46274 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
46275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46277 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
46278 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
46279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46281 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
46282 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
46283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46286 : "${CONFIG_STATUS=./config.status}"
46288 ac_clean_files_save=$ac_clean_files
46289 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
46291 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
46293 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
46295 # Generated by $as_me.
46296 # Run this file to recreate the current configuration.
46297 # Compiler output produced by configure, useful for debugging
46298 # configure, is in config.log if it exists.
46301 ac_cs_recheck=false
46304 SHELL=\${CONFIG_SHELL-$SHELL}
46307 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
46308 ## -------------------- ##
46309 ## M4sh Initialization. ##
46310 ## -------------------- ##
46312 # Be more Bourne compatible
46313 DUALCASE=1; export DUALCASE # for MKS sh
46315 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
46319 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46320 # is contrary to our usage. Disable this feature.
46321 alias -g '${1+"$@"}'='"$@"'
46322 setopt NO_GLOB_SUBST
46324 case `(set -o) 2>/dev/null` in #(
46334 # Reset variables that may have inherited troublesome values from
46337 # IFS needs to be set, to space, tab, and newline, in precisely that order.
46338 # (If _AS_PATH_WALK were called with IFS unset, it would have the
46339 # side effect of setting IFS to empty, thus disabling word splitting.)
46340 # Quoting is to prevent editors from complaining about space-tab.
46350 # Ensure predictable behavior from utilities with locale-dependent output.
46356 # We cannot yet rely on "unset" to work, but we need these variables
46357 # to be unset--not just set to an empty or harmless value--now, to
46358 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
46359 # also avoids known problems related to "unset" and subshell syntax
46360 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
46361 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
46362 do eval test \${$as_var+y} \
46363 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
46366 # Ensure that fds 0, 1, and 2 are open.
46367 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
46368 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
46369 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
46373 # Find who we are. Look in the path if we contain no directory separator.
46376 *[\\/]* ) as_myself=$0 ;;
46377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46378 for as_dir in $PATH
46381 case $as_dir in #(((
46384 *) as_dir=$as_dir/ ;;
46386 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
46392 # We did not find ourselves, most probably we were run as `sh COMMAND'
46393 # in which case we are not to be found in the path.
46394 if test "x$as_myself" = x; then
46397 if test ! -f "$as_myself"; then
46398 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
46405 # ----------------------------------------
46406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
46407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
46408 # script with STATUS, using 1 if that was 0.
46411 as_status=$1; test $as_status -eq 0 && as_status=1
46413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
46414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
46416 printf "%s\n" "$as_me: error: $2" >&2
46417 as_fn_exit $as_status
46422 # as_fn_set_status STATUS
46423 # -----------------------
46424 # Set $? to STATUS, without forking.
46425 as_fn_set_status ()
46428 } # as_fn_set_status
46430 # as_fn_exit STATUS
46431 # -----------------
46432 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
46436 as_fn_set_status $1
46442 # Portably unset VAR.
46445 { eval $1=; unset $1;}
46447 as_unset=as_fn_unset
46449 # as_fn_append VAR VALUE
46450 # ----------------------
46451 # Append the text in VALUE to the end of the definition contained in VAR. Take
46452 # advantage of any shell optimizations that allow amortized linear growth over
46453 # repeated appends, instead of the typical quadratic growth present in naive
46455 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
46457 eval 'as_fn_append ()
46468 # as_fn_arith ARG...
46469 # ------------------
46470 # Perform arithmetic evaluation on the ARGs, and store the result in the
46471 # global $as_val. Take advantage of shells that can avoid forks. The arguments
46472 # must be portable across $(()) and expr.
46473 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
46475 eval 'as_fn_arith ()
46482 as_val=`expr "$@" || test $? -eq 1`
46487 if expr a : '\(a\)' >/dev/null 2>&1 &&
46488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46494 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46495 as_basename=basename
46500 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46506 as_me=`$as_basename -- "$0" ||
46507 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46508 X"$0" : 'X\(//\)$' \| \
46509 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46510 printf "%s\n" X/"$0" |
46511 sed '/^.*\/\([^/][^/]*\)\/*$/{
46525 # Avoid depending upon Character Ranges.
46526 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46527 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46528 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46529 as_cr_digits='0123456789'
46530 as_cr_alnum=$as_cr_Letters$as_cr_digits
46533 # Determine whether it's possible to make 'echo' print without a newline.
46534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
46535 # for compatibility with existing Makefiles.
46536 ECHO_C= ECHO_N= ECHO_T=
46537 case `echo -n x` in #(((((
46539 case `echo 'xy\c'` in
46540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
46542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
46549 # For backward compatibility with old third-party macros, we provide
46550 # the shell variables $as_echo and $as_echo_n. New code should use
46551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
46552 as_echo='printf %s\n'
46553 as_echo_n='printf %s'
46555 rm -f conf$$ conf$$.exe conf$$.file
46556 if test -d conf$$.dir; then
46557 rm -f conf$$.dir/conf$$.file
46560 mkdir conf$$.dir 2>/dev/null
46562 if (echo >conf$$.file) 2>/dev/null; then
46563 if ln -s conf$$.file conf$$ 2>/dev/null; then
46565 # ... but there are two gotchas:
46566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46568 # In both cases, we have to default to `cp -pR'.
46569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46571 elif ln conf$$.file conf$$ 2>/dev/null; then
46579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46580 rmdir conf$$.dir 2>/dev/null
46585 # Create "$as_dir" as a directory, including parents if necessary.
46590 -*) as_dir=./$as_dir;;
46592 test -d "$as_dir" || eval $as_mkdir_p || {
46596 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
46597 *) as_qdir=$as_dir;;
46599 as_dirs="'$as_qdir' $as_dirs"
46600 as_dir=`$as_dirname -- "$as_dir" ||
46601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46602 X"$as_dir" : 'X\(//\)[^/]' \| \
46603 X"$as_dir" : 'X\(//\)$' \| \
46604 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
46605 printf "%s\n" X"$as_dir" |
46606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46610 /^X\(\/\/\)[^/].*/{
46623 test -d "$as_dir" && break
46625 test -z "$as_dirs" || eval "mkdir $as_dirs"
46626 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
46630 if mkdir -p . 2>/dev/null; then
46631 as_mkdir_p='mkdir -p "$as_dir"'
46633 test -d ./-p && rmdir ./-p
46638 # as_fn_executable_p FILE
46639 # -----------------------
46640 # Test if FILE is an executable regular file.
46641 as_fn_executable_p ()
46643 test -f "$1" && test -x "$1"
46644 } # as_fn_executable_p
46645 as_test_x='test -x'
46646 as_executable_p=as_fn_executable_p
46648 # Sed expression to map a string onto a valid CPP name.
46649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46651 # Sed expression to map a string onto a valid variable name.
46652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46656 ## ----------------------------------- ##
46657 ## Main body of $CONFIG_STATUS script. ##
46658 ## ----------------------------------- ##
46660 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
46662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46663 # Save the log message, to keep $0 and so on meaningful, and to
46664 # report actual input values of CONFIG_FILES etc. instead of their
46665 # values after options handling.
46667 This file was extended by curl $as_me -, which was
46668 generated by GNU Autoconf 2.71. Invocation command line was
46670 CONFIG_FILES = $CONFIG_FILES
46671 CONFIG_HEADERS = $CONFIG_HEADERS
46672 CONFIG_LINKS = $CONFIG_LINKS
46673 CONFIG_COMMANDS = $CONFIG_COMMANDS
46676 on `(hostname || uname -n) 2>/dev/null | sed 1q`
46681 case $ac_config_files in *"
46682 "*) set x $ac_config_files; shift; ac_config_files=$*;;
46685 case $ac_config_headers in *"
46686 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46691 # Files that config.status was made for.
46692 config_files="$ac_config_files"
46693 config_headers="$ac_config_headers"
46694 config_commands="$ac_config_commands"
46698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46700 \`$as_me' instantiates files and other configuration actions
46701 from templates according to the current configuration. Unless the files
46702 and actions are specified as TAGs, all are instantiated by default.
46704 Usage: $0 [OPTION]... [TAG]...
46706 -h, --help print this help, then exit
46707 -V, --version print version number and configuration settings, then exit
46708 --config print configuration, then exit
46709 -q, --quiet, --silent
46710 do not print progress messages
46711 -d, --debug don't remove temporary files
46712 --recheck update $as_me by reconfiguring in the same conditions
46713 --file=FILE[:TEMPLATE]
46714 instantiate the configuration file FILE
46715 --header=FILE[:TEMPLATE]
46716 instantiate the configuration header FILE
46718 Configuration files:
46721 Configuration headers:
46724 Configuration commands:
46727 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
46730 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
46731 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
46732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46733 ac_cs_config='$ac_cs_config_escaped'
46735 curl config.status -
46736 configured by $0, generated by GNU Autoconf 2.71,
46737 with options \\"\$ac_cs_config\\"
46739 Copyright (C) 2021 Free Software Foundation, Inc.
46740 This config.status script is free software; the Free Software Foundation
46741 gives unlimited permission to copy, distribute and modify it."
46748 test -n "\$AWK" || AWK=awk
46751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46752 # The default lists apply if the user does not specify any file.
46758 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46759 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46775 # Handling of the options.
46776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46778 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46779 printf "%s\n" "$ac_cs_version"; exit ;;
46780 --config | --confi | --conf | --con | --co | --c )
46781 printf "%s\n" "$ac_cs_config"; exit ;;
46782 --debug | --debu | --deb | --de | --d | -d )
46784 --file | --fil | --fi | --f )
46787 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46788 '') as_fn_error $? "missing file argument" ;;
46790 as_fn_append CONFIG_FILES " '$ac_optarg'"
46791 ac_need_defaults=false;;
46792 --header | --heade | --head | --hea )
46795 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46797 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
46798 ac_need_defaults=false;;
46800 # Conflict between --help and --header
46801 as_fn_error $? "ambiguous option: \`$1'
46802 Try \`$0 --help' for more information.";;
46803 --help | --hel | -h )
46804 printf "%s\n" "$ac_cs_usage"; exit ;;
46805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46806 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46809 # This is an error.
46810 -*) as_fn_error $? "unrecognized option: \`$1'
46811 Try \`$0 --help' for more information." ;;
46813 *) as_fn_append ac_config_targets " $1"
46814 ac_need_defaults=false ;;
46820 ac_configure_extra_args=
46822 if $ac_cs_silent; then
46824 ac_configure_extra_args="$ac_configure_extra_args --silent"
46828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46829 if \$ac_cs_recheck; then
46830 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46832 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
46833 CONFIG_SHELL='$SHELL'
46834 export CONFIG_SHELL
46839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46843 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46844 ## Running $as_me. ##
46846 printf "%s\n" "$ac_log"
46850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46854 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
46857 # The HP-UX ksh and POSIX shell print the target directory to stdout
46858 # if CDPATH is set.
46859 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46861 sed_quote_subst='$sed_quote_subst'
46862 double_quote_subst='$double_quote_subst'
46863 delay_variable_subst='$delay_variable_subst'
46864 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
46865 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
46866 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
46867 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
46868 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
46869 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
46870 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
46871 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
46872 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
46873 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
46874 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
46875 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
46876 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
46877 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
46878 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
46879 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
46880 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
46881 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
46882 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
46883 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
46884 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
46885 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
46886 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
46887 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
46888 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
46889 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
46890 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
46891 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
46892 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
46893 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
46894 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
46895 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
46896 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
46897 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
46898 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
46899 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
46900 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
46901 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
46902 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
46903 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
46904 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
46905 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
46906 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
46907 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
46908 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
46909 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
46910 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
46911 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
46912 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
46913 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46914 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46915 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
46916 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
46917 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
46918 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
46919 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
46920 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
46921 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
46922 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
46923 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
46924 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
46925 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
46926 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
46927 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
46928 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46929 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
46930 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46931 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46932 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46933 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46934 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46935 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46936 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46937 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46938 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46939 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46940 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46941 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46942 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46943 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46944 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46945 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46946 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46947 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46948 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46949 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46950 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46951 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46952 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46953 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46954 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46955 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46956 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46957 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46958 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46959 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46960 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46961 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46962 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46963 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46964 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46965 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46966 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46967 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46968 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46969 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46970 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46971 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46972 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46973 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46974 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46975 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46976 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46977 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46978 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46979 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46980 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46981 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46982 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46983 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46984 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46985 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46986 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46987 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46988 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46989 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46990 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46991 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46992 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46993 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46994 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
46995 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
46996 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46997 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46998 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46999 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
47000 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
47001 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
47002 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
47003 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
47004 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
47005 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
47006 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
47007 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
47008 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
47009 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
47010 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
47011 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
47012 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
47013 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
47014 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
47015 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
47016 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
47017 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
47018 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
47019 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
47020 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
47021 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
47022 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
47023 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
47024 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
47025 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
47026 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
47027 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
47028 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
47029 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
47030 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
47031 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
47032 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
47033 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
47034 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
47035 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
47036 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
47037 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
47038 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
47039 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
47040 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
47041 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
47042 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
47043 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
47046 LTCFLAGS='$LTCFLAGS'
47047 compiler='$compiler_DEFAULT'
47049 # A function that is used when there is no print builtin or printf.
47050 func_fallback_echo ()
47052 eval 'cat <<_LTECHO_EOF
47057 # Quote evaled strings.
47075 deplibs_check_method \
47079 sharedlib_from_linklib_cmd \
47081 archiver_list_spec \
47087 lt_cv_sys_global_symbol_pipe \
47088 lt_cv_sys_global_symbol_to_cdecl \
47089 lt_cv_sys_global_symbol_to_import \
47090 lt_cv_sys_global_symbol_to_c_name_address \
47091 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47092 lt_cv_nm_interface \
47093 nm_file_list_spec \
47094 lt_cv_truncate_bin \
47095 lt_prog_compiler_no_builtin_flag \
47096 lt_prog_compiler_pic \
47097 lt_prog_compiler_wl \
47098 lt_prog_compiler_static \
47099 lt_cv_prog_compiler_c_o \
47108 export_dynamic_flag_spec \
47109 whole_archive_flag_spec \
47110 compiler_needs_object \
47112 allow_undefined_flag \
47113 no_undefined_flag \
47114 hardcode_libdir_flag_spec \
47115 hardcode_libdir_separator \
47119 variables_saved_for_relink \
47121 library_names_spec \
47123 install_override_mode \
47130 lt_prog_compiler_no_builtin_flag_RC \
47131 lt_prog_compiler_pic_RC \
47132 lt_prog_compiler_wl_RC \
47133 lt_prog_compiler_static_RC \
47134 lt_cv_prog_compiler_c_o_RC \
47135 export_dynamic_flag_spec_RC \
47136 whole_archive_flag_spec_RC \
47137 compiler_needs_object_RC \
47139 allow_undefined_flag_RC \
47140 no_undefined_flag_RC \
47141 hardcode_libdir_flag_spec_RC \
47142 hardcode_libdir_separator_RC \
47143 exclude_expsyms_RC \
47144 include_expsyms_RC \
47145 file_list_spec_RC; do
47146 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47147 *[\\\\\\\`\\"\\\$]*)
47148 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47151 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47156 # Double-quote double-evaled strings.
47157 for var in reload_cmds \
47158 old_postinstall_cmds \
47159 old_postuninstall_cmds \
47161 extract_expsyms_cmds \
47162 old_archive_from_new_cmds \
47163 old_archive_from_expsyms_cmds \
47165 archive_expsym_cmds \
47167 module_expsym_cmds \
47168 export_symbols_cmds \
47172 postuninstall_cmds \
47174 sys_lib_search_path_spec \
47175 configure_time_dlsearch_path \
47176 configure_time_lt_sys_library_path \
47178 old_archive_cmds_RC \
47179 old_archive_from_new_cmds_RC \
47180 old_archive_from_expsyms_cmds_RC \
47182 archive_expsym_cmds_RC \
47184 module_expsym_cmds_RC \
47185 export_symbols_cmds_RC \
47187 postlink_cmds_RC; do
47188 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47189 *[\\\\\\\`\\"\\\$]*)
47190 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47193 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47198 ac_aux_dir='$ac_aux_dir'
47200 # See if we are running on zsh, and set the options that allow our
47201 # commands through without removal of \ escapes INIT.
47202 if test -n "\${ZSH_VERSION+set}"; then
47203 setopt NO_GLOB_SUBST
47219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47221 # Handling of arguments.
47222 for ac_config_target in $ac_config_targets
47224 case $ac_config_target in
47225 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
47226 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47227 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47228 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47229 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
47230 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
47231 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
47232 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
47233 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
47234 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
47235 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
47236 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
47237 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
47238 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
47239 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
47240 "lib/libcurl.plist") CONFIG_FILES="$CONFIG_FILES lib/libcurl.plist" ;;
47241 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
47242 "tests/config") CONFIG_FILES="$CONFIG_FILES tests/config" ;;
47243 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
47244 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
47245 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
47246 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
47247 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
47248 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
47249 "tests/http/config.ini") CONFIG_FILES="$CONFIG_FILES tests/http/config.ini" ;;
47250 "tests/http/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/Makefile" ;;
47251 "tests/http/clients/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/clients/Makefile" ;;
47252 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
47253 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
47254 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
47255 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
47257 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
47262 # If the user did not use the arguments to specify the items to instantiate,
47263 # then the envvar interface is used. Set only those that are not.
47264 # We use the long form for the default assignment because of an extremely
47265 # bizarre bug on SunOS 4.1.3.
47266 if $ac_need_defaults; then
47267 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
47268 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
47269 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
47272 # Have a temporary directory for convenience. Make it in the build tree
47273 # simply because there is no reason against having it here, and in addition,
47274 # creating and moving files from /tmp can sometimes cause problems.
47275 # Hook for its removal unless debugging.
47276 # Note that there is a small window in which the directory will not be cleaned:
47277 # after its creation but before its name has been assigned to `$tmp'.
47281 trap 'exit_status=$?
47282 : "${ac_tmp:=$tmp}"
47283 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
47285 trap 'as_fn_exit 1' 1 2 13 15
47287 # Create a (secure) tmp directory for tmp files.
47290 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47294 tmp=./conf$$-$RANDOM
47295 (umask 077 && mkdir "$tmp")
47296 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
47299 # Set up the scripts for CONFIG_FILES section.
47300 # No need to generate them if there are no CONFIG_FILES.
47301 # This happens for instance with `./config.status config.h'.
47302 if test -n "$CONFIG_FILES"; then
47305 ac_cr=`echo X | tr X '\015'`
47306 # On cygwin, bash can eat \r inside `` if the user requested igncr.
47307 # But we know of no other shell where ac_cr would be empty at this
47308 # point, so we can use a bashism as a fallback.
47309 if test "x$ac_cr" = x; then
47310 eval ac_cr=\$\'\\r\'
47312 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47313 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47316 ac_cs_awk_cr=$ac_cr
47319 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
47324 echo "cat >conf$$subs.awk <<_ACEOF" &&
47325 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47327 } >conf$$subs.sh ||
47328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47329 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
47331 for ac_last_try in false false false false false :; do
47332 . ./conf$$subs.sh ||
47333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47335 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47336 if test $ac_delim_n = $ac_delim_num; then
47338 elif $ac_last_try; then
47339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47344 rm -f conf$$subs.sh
47346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47347 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47351 s/^/S["/; s/!.*/"]=/
47361 s/\(.\{148\}\)..*/\1/
47363 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47375 s/\(.\{148\}\)..*/\1/
47377 s/["\\]/\\&/g; s/^/"/; s/$/"/
47381 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47386 ' <conf$$subs.awk | sed '
47391 ' >>$CONFIG_STATUS || ac_write_fail=1
47392 rm -f conf$$subs.awk
47393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47395 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47396 for (key in S) S_is_set[key] = 1
47402 nfields = split(line, field, "@")
47404 len = length(field[1])
47405 for (i = 2; i < nfields; i++) {
47407 keylen = length(key)
47408 if (S_is_set[key]) {
47410 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47411 len += length(value) + length(field[++i])
47422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47423 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47424 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47427 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
47428 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
47431 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
47432 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
47433 # trailing colons and then remove the whole line if VPATH becomes empty
47434 # (actually we leave an empty line to preserve line numbers).
47435 if test "x$srcdir" = x.; then
47436 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
47454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47455 fi # test -n "$CONFIG_FILES"
47457 # Set up the scripts for CONFIG_HEADERS section.
47458 # No need to generate them if there are no CONFIG_HEADERS.
47459 # This happens for instance with `./config.status Makefile'.
47460 if test -n "$CONFIG_HEADERS"; then
47461 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47465 # Transform confdefs.h into an awk script `defines.awk', embedded as
47466 # here-document in config.status, that substitutes the proper values into
47467 # config.h.in to produce config.h.
47469 # Create a delimiter string that does not exist in confdefs.h, to ease
47470 # handling of long lines.
47472 for ac_last_try in false false :; do
47473 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
47474 if test -z "$ac_tt"; then
47476 elif $ac_last_try; then
47477 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47483 # For the awk script, D is an array of macro values keyed by name,
47484 # likewise P contains macro parameters if any. Preserve backslash
47485 # newline sequences.
47487 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47489 s/.\{148\}/&'"$ac_delim"'/g
47492 s/^[ ]*#[ ]*define[ ][ ]*/ /
47499 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47501 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
47505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47506 D["\1"]=" \3\\\\\\n"\\/p
47508 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47513 s/.\{148\}/&'"$ac_delim"'/g
47518 s/["\\]/\\&/g; s/^/"/; s/$/"/p
47521 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47523 ' <confdefs.h | sed '
47524 s/'"$ac_delim"'/"\\\
47525 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47528 for (key in D) D_is_set[key] = 1
47531 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47533 split(line, arg, " ")
47534 if (arg[1] == "#") {
47538 defundef = substr(arg[1], 2)
47541 split(mac1, mac2, "(") #)
47543 prefix = substr(line, 1, index(line, defundef) - 1)
47544 if (D_is_set[macro]) {
47545 # Preserve the white space surrounding the "#".
47546 print prefix "define", macro P[macro] D[macro]
47549 # Replace #undef with comments. This is necessary, for example,
47550 # in the case of _POSIX_SOURCE, which is predefined and required
47551 # on some systems where configure will not decide to define it.
47552 if (defundef == "undef") {
47553 print "/*", prefix defundef, macro, "*/"
47561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47562 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
47563 fi # test -n "$CONFIG_HEADERS"
47566 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
47571 :[FHLC]) ac_mode=$ac_tag; continue;;
47573 case $ac_mode$ac_tag in
47575 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
47576 :[FH]-) ac_tag=-:-;;
47577 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47594 -) ac_f="$ac_tmp/stdin";;
47595 *) # Look for the file first in the build tree, then in the source tree
47596 # (if the path is not absolute). The absolute path cannot be DOS-style,
47597 # because $ac_f cannot contain `:'.
47601 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47603 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
47605 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47606 as_fn_append ac_file_inputs " '$ac_f'"
47609 # Let's still pretend it is `configure' which instantiates (i.e., don't
47610 # use $as_me), people would be surprised to read:
47611 # /* config.h. Generated by config.status. */
47612 configure_input='Generated from '`
47613 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47615 if test x"$ac_file" != x-; then
47616 configure_input="$ac_file. $configure_input"
47617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
47618 printf "%s\n" "$as_me: creating $ac_file" >&6;}
47620 # Neutralize special characters interpreted by sed in replacement strings.
47621 case $configure_input in #(
47622 *\&* | *\|* | *\\* )
47623 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
47624 sed 's/[\\\\&|]/\\\\&/g'`;; #(
47625 *) ac_sed_conf_input=$configure_input;;
47629 *:-:* | *:-) cat >"$ac_tmp/stdin" \
47630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
47635 ac_dir=`$as_dirname -- "$ac_file" ||
47636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47637 X"$ac_file" : 'X\(//\)[^/]' \| \
47638 X"$ac_file" : 'X\(//\)$' \| \
47639 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47640 printf "%s\n" X"$ac_file" |
47641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47645 /^X\(\/\/\)[^/].*/{
47658 as_dir="$ac_dir"; as_fn_mkdir_p
47662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47664 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
47665 # A ".." for each directory in $ac_dir_suffix.
47666 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47667 case $ac_top_builddir_sub in
47668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47672 ac_abs_top_builddir=$ac_pwd
47673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
47674 # for backward compatibility:
47675 ac_top_builddir=$ac_top_build_prefix
47678 .) # We are building in place.
47680 ac_top_srcdir=$ac_top_builddir_sub
47681 ac_abs_top_srcdir=$ac_pwd ;;
47682 [\\/]* | ?:[\\/]* ) # Absolute name.
47683 ac_srcdir=$srcdir$ac_dir_suffix;
47684 ac_top_srcdir=$srcdir
47685 ac_abs_top_srcdir=$srcdir ;;
47686 *) # Relative name.
47687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47688 ac_top_srcdir=$ac_top_build_prefix$srcdir
47689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47701 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47702 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47704 ac_MKDIR_P=$MKDIR_P
47706 [\\/$]* | ?:[\\/]* ) ;;
47707 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47712 # If the template does not know about datarootdir, expand it.
47713 # FIXME: This hack should be removed a few years after 2.60.
47714 ac_datarootdir_hack=; ac_datarootdir_seen=
47725 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47726 *datarootdir*) ac_datarootdir_seen=yes;;
47727 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47729 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47732 ac_datarootdir_hack='
47733 s&@datadir@&$datadir&g
47734 s&@docdir@&$docdir&g
47735 s&@infodir@&$infodir&g
47736 s&@localedir@&$localedir&g
47737 s&@mandir@&$mandir&g
47738 s&\\\${datarootdir}&$datarootdir&g' ;;
47742 # Neutralize VPATH when `$srcdir' = `.'.
47743 # Shell code in configure.ac might set extrasub.
47744 # FIXME: do we really want to maintain this feature?
47745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47746 ac_sed_extra="$ac_vpsub
47749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47752 s|@configure_input@|$ac_sed_conf_input|;t t
47753 s&@top_builddir@&$ac_top_builddir_sub&;t t
47754 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47755 s&@srcdir@&$ac_srcdir&;t t
47756 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47757 s&@top_srcdir@&$ac_top_srcdir&;t t
47758 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47759 s&@builddir@&$ac_builddir&;t t
47760 s&@abs_builddir@&$ac_abs_builddir&;t t
47761 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47762 s&@INSTALL@&$ac_INSTALL&;t t
47763 s&@MKDIR_P@&$ac_MKDIR_P&;t t
47764 $ac_datarootdir_hack
47766 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
47767 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47770 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
47771 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
47772 "$ac_tmp/out"`; test -z "$ac_out"; } &&
47773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47774 which seems to be undefined. Please make sure it is defined" >&5
47775 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47776 which seems to be undefined. Please make sure it is defined" >&2;}
47778 rm -f "$ac_tmp/stdin"
47780 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
47781 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
47783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47789 if test x"$ac_file" != x-; then
47791 printf "%s\n" "/* $configure_input */" >&1 \
47792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
47793 } >"$ac_tmp/config.h" \
47794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47795 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
47796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
47797 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
47800 mv "$ac_tmp/config.h" "$ac_file" \
47801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47804 printf "%s\n" "/* $configure_input */" >&1 \
47805 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
47806 || as_fn_error $? "could not create -" "$LINENO" 5
47808 # Compute "$ac_file"'s index in $config_headers.
47811 for _am_header in $config_headers :; do
47812 case $_am_header in
47813 $_am_arg | $_am_arg:* )
47816 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47819 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47820 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47821 X"$_am_arg" : 'X\(//\)[^/]' \| \
47822 X"$_am_arg" : 'X\(//\)$' \| \
47823 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47824 printf "%s\n" X"$_am_arg" |
47825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47829 /^X\(\/\/\)[^/].*/{
47841 s/.*/./; q'`/stamp-h$_am_stamp_count
47844 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
47845 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
47850 case $ac_file$ac_mode in
47851 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47852 # Older Autoconf quotes --file arguments for eval, but not when files
47853 # are listed without --file. Let's play safe and only enable the eval
47854 # if we detect the quoting.
47855 # TODO: see whether this extra hack can be removed once we start
47856 # requiring Autoconf 2.70 or later.
47857 case $CONFIG_FILES in #(
47859 eval set x "$CONFIG_FILES" ;; #(
47861 set x $CONFIG_FILES ;; #(
47866 # Used to flag and report bootstrapping failures.
47870 # Strip MF so we end up with the name of the file.
47871 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
47872 # Check whether this is an Automake generated Makefile which includes
47873 # dependency-tracking related rules and includes.
47874 # Grep'ing the whole file directly is not great: AIX grep has a line
47875 # limit of 2048, but all sed's we know have understand at least 4000.
47876 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
47878 am_dirpart=`$as_dirname -- "$am_mf" ||
47879 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47880 X"$am_mf" : 'X\(//\)[^/]' \| \
47881 X"$am_mf" : 'X\(//\)$' \| \
47882 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47883 printf "%s\n" X"$am_mf" |
47884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47888 /^X\(\/\/\)[^/].*/{
47901 am_filepart=`$as_basename -- "$am_mf" ||
47902 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
47903 X"$am_mf" : 'X\(//\)$' \| \
47904 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47905 printf "%s\n" X/"$am_mf" |
47906 sed '/^.*\/\([^/][^/]*\)\/*$/{
47919 { echo "$as_me:$LINENO: cd "$am_dirpart" \
47920 && sed -e '/# am--include-marker/d' "$am_filepart" \
47921 | $MAKE -f - am--depfiles" >&5
47922 (cd "$am_dirpart" \
47923 && sed -e '/# am--include-marker/d' "$am_filepart" \
47924 | $MAKE -f - am--depfiles) >&5 2>&5
47926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47927 (exit $ac_status); } || am_rc=$?
47929 if test $am_rc -ne 0; then
47930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47931 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
47932 as_fn_error $? "Something went wrong bootstrapping makefile fragments
47933 for automatic dependency tracking. If GNU make was not used, consider
47934 re-running the configure script with MAKE=\"gmake\" (or whatever is
47935 necessary). You can also try re-running configure with the
47936 '--disable-dependency-tracking' option to at least be able to build
47937 the package (albeit without support for automatic dependency tracking).
47938 See \`config.log' for more details" "$LINENO" 5; }
47940 { am_dirpart=; unset am_dirpart;}
47941 { am_filepart=; unset am_filepart;}
47942 { am_mf=; unset am_mf;}
47943 { am_rc=; unset am_rc;}
47944 rm -f conftest-deps.mk
47949 # See if we are running on zsh, and set the options that allow our
47950 # commands through without removal of \ escapes.
47951 if test -n "${ZSH_VERSION+set}"; then
47952 setopt NO_GLOB_SUBST
47956 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47959 cat <<_LT_EOF >> "$cfgfile"
47961 # Generated automatically by $as_me ($PACKAGE) $VERSION
47962 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47964 # Provide generalized library-building support services.
47965 # Written by Gordon Matzigkeit, 1996
47967 # Copyright (C) 2014 Free Software Foundation, Inc.
47968 # This is free software; see the source for copying conditions. There is NO
47969 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
47971 # GNU Libtool is free software; you can redistribute it and/or modify
47972 # it under the terms of the GNU General Public License as published by
47973 # the Free Software Foundation; either version 2 of of the License, or
47974 # (at your option) any later version.
47976 # As a special exception to the GNU General Public License, if you
47977 # distribute this file as part of a program or library that is built
47978 # using GNU Libtool, you may include this file under the same
47979 # distribution terms that you use for the rest of that program.
47981 # GNU Libtool is distributed in the hope that it will be useful, but
47982 # WITHOUT ANY WARRANTY; without even the implied warranty of
47983 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47984 # GNU General Public License for more details.
47986 # You should have received a copy of the GNU General Public License
47987 # along with this program. If not, see <http://www.gnu.org/licenses/>.
47990 # The names of the tagged configurations supported by this script.
47991 available_tags='RC '
47993 # Configured defaults for sys_lib_dlsearch_path munging.
47994 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
47996 # ### BEGIN LIBTOOL CONFIG
47998 # Which release of libtool.m4 was used?
47999 macro_version=$macro_version
48000 macro_revision=$macro_revision
48002 # Assembler program.
48005 # DLL creation program.
48006 DLLTOOL=$lt_DLLTOOL
48008 # Object dumper program.
48009 OBJDUMP=$lt_OBJDUMP
48011 # Whether or not to build shared libraries.
48012 build_libtool_libs=$enable_shared
48014 # Whether or not to build static libraries.
48015 build_old_libs=$enable_static
48017 # What type of objects to build.
48020 # Whether or not to optimize for fast installation.
48021 fast_install=$enable_fast_install
48023 # Shared archive member basename,for filename based shared library versioning on AIX.
48024 shared_archive_member_spec=$shared_archive_member_spec
48026 # Shell to use when invoking shell scripts.
48029 # An echo program that protects backslashes.
48032 # The PATH separator for the build system.
48033 PATH_SEPARATOR=$lt_PATH_SEPARATOR
48036 host_alias=$host_alias
48040 # The build system.
48041 build_alias=$build_alias
48045 # A sed program that does not truncate output.
48048 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
48049 Xsed="\$SED -e 1s/^X//"
48051 # A grep program that handles long lines.
48057 # A literal string matcher.
48060 # A BSD- or MS-compatible name lister.
48063 # Whether we need soft or hard links.
48066 # What is the maximum length of a command?
48067 max_cmd_len=$max_cmd_len
48069 # Object file suffix (normally "o").
48072 # Executable file suffix (normally "").
48075 # whether the shell understands "unset".
48078 # turn spaces into newlines.
48081 # turn newlines into spaces.
48084 # convert \$build file names to \$host format.
48085 to_host_file_cmd=$lt_cv_to_host_file_cmd
48087 # convert \$build files to toolchain format.
48088 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
48090 # A file(cmd) program that detects file types.
48091 FILECMD=$lt_FILECMD
48093 # Method to check whether dependent libraries are shared objects.
48094 deplibs_check_method=$lt_deplibs_check_method
48096 # Command to use when deplibs_check_method = "file_magic".
48097 file_magic_cmd=$lt_file_magic_cmd
48099 # How to find potential files when deplibs_check_method = "file_magic".
48100 file_magic_glob=$lt_file_magic_glob
48102 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
48103 want_nocaseglob=$lt_want_nocaseglob
48105 # Command to associate shared and link libraries.
48106 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
48111 # Flags to create an archive (by configure).
48112 lt_ar_flags=$lt_ar_flags
48114 # Flags to create an archive.
48115 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
48117 # How to feed a file listing to the archiver.
48118 archiver_list_spec=$lt_archiver_list_spec
48120 # A symbol stripping program.
48123 # Commands used to install an old-style archive.
48125 old_postinstall_cmds=$lt_old_postinstall_cmds
48126 old_postuninstall_cmds=$lt_old_postuninstall_cmds
48128 # Whether to use a lock for old archive extraction.
48129 lock_old_archive_extraction=$lock_old_archive_extraction
48134 # LTCC compiler flags.
48135 LTCFLAGS=$lt_CFLAGS
48137 # Take the output of nm and produce a listing of raw symbols and C names.
48138 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48140 # Transform the output of nm in a proper C declaration.
48141 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48143 # Transform the output of nm into a list of symbols to manually relocate.
48144 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
48146 # Transform the output of nm in a C name address pair.
48147 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48149 # Transform the output of nm in a C name address pair when lib prefix is needed.
48150 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
48152 # The name lister interface.
48153 nm_interface=$lt_lt_cv_nm_interface
48155 # Specify filename containing input files for \$NM.
48156 nm_file_list_spec=$lt_nm_file_list_spec
48158 # The root where to search for dependent libraries,and where our libraries should be installed.
48159 lt_sysroot=$lt_sysroot
48161 # Command to truncate a binary pipe.
48162 lt_truncate_bin=$lt_lt_cv_truncate_bin
48164 # The name of the directory that contains temporary libtool files.
48167 # Used to examine libraries when file_magic_cmd begins with "file".
48168 MAGIC_CMD=$MAGIC_CMD
48170 # Must we lock files when doing compilation?
48171 need_locks=$lt_need_locks
48174 MANIFEST_TOOL=$lt_MANIFEST_TOOL
48176 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
48177 DSYMUTIL=$lt_DSYMUTIL
48179 # Tool to change global to local symbols on Mac OS X.
48182 # Tool to manipulate fat objects and archives on Mac OS X.
48185 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
48188 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
48189 OTOOL64=$lt_OTOOL64
48191 # Old archive suffix (normally "a").
48194 # Shared library suffix (normally ".so").
48195 shrext_cmds=$lt_shrext_cmds
48197 # The commands to extract the exported symbol list from a shared archive.
48198 extract_expsyms_cmds=$lt_extract_expsyms_cmds
48200 # Variables whose values should be saved in libtool wrapper scripts and
48201 # restored at link time.
48202 variables_saved_for_relink=$lt_variables_saved_for_relink
48204 # Do we need the "lib" prefix for modules?
48205 need_lib_prefix=$need_lib_prefix
48207 # Do we need a version for libraries?
48208 need_version=$need_version
48210 # Library versioning type.
48211 version_type=$version_type
48213 # Shared library runtime path variable.
48214 runpath_var=$runpath_var
48216 # Shared library path variable.
48217 shlibpath_var=$shlibpath_var
48219 # Is shlibpath searched before the hard-coded library search path?
48220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48222 # Format of library name prefix.
48223 libname_spec=$lt_libname_spec
48225 # List of archive names. First name is the real one, the rest are links.
48226 # The last name is the one that the linker finds with -lNAME
48227 library_names_spec=$lt_library_names_spec
48229 # The coded name of the library, if different from the real name.
48230 soname_spec=$lt_soname_spec
48232 # Permission mode override for installation of shared libraries.
48233 install_override_mode=$lt_install_override_mode
48235 # Command to use after installation of a shared archive.
48236 postinstall_cmds=$lt_postinstall_cmds
48238 # Command to use after uninstallation of a shared archive.
48239 postuninstall_cmds=$lt_postuninstall_cmds
48241 # Commands used to finish a libtool library installation in a directory.
48242 finish_cmds=$lt_finish_cmds
48244 # As "finish_cmds", except a single script fragment to be evaled but
48246 finish_eval=$lt_finish_eval
48248 # Whether we should hardcode library paths into libraries.
48249 hardcode_into_libs=$hardcode_into_libs
48251 # Compile-time system search path for libraries.
48252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48254 # Detected run-time system search path for libraries.
48255 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
48257 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
48258 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
48260 # Whether dlopen is supported.
48261 dlopen_support=$enable_dlopen
48263 # Whether dlopen of programs is supported.
48264 dlopen_self=$enable_dlopen_self
48266 # Whether dlopen of statically linked programs is supported.
48267 dlopen_self_static=$enable_dlopen_self_static
48269 # Commands to strip libraries.
48270 old_striplib=$lt_old_striplib
48271 striplib=$lt_striplib
48274 # The linker used to build libraries.
48277 # How to create reloadable object files.
48278 reload_flag=$lt_reload_flag
48279 reload_cmds=$lt_reload_cmds
48281 # Commands used to build an old-style archive.
48282 old_archive_cmds=$lt_old_archive_cmds
48284 # A language specific compiler.
48287 # Is the compiler the GNU compiler?
48290 # Compiler flag to turn off builtin functions.
48291 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
48293 # Additional compiler flags for building library objects.
48294 pic_flag=$lt_lt_prog_compiler_pic
48296 # How to pass a linker flag through the compiler.
48297 wl=$lt_lt_prog_compiler_wl
48299 # Compiler flag to prevent dynamic linking.
48300 link_static_flag=$lt_lt_prog_compiler_static
48302 # Does compiler simultaneously support -c and -o options?
48303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48305 # Whether or not to add -lc for building shared libraries.
48306 build_libtool_need_lc=$archive_cmds_need_lc
48308 # Whether or not to disallow shared libs when runtime libs are static.
48309 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48311 # Compiler flag to allow reflexive dlopens.
48312 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48314 # Compiler flag to generate shared objects directly from archives.
48315 whole_archive_flag_spec=$lt_whole_archive_flag_spec
48317 # Whether the compiler copes with passing no objects directly.
48318 compiler_needs_object=$lt_compiler_needs_object
48320 # Create an old-style archive from a shared archive.
48321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48323 # Create a temporary old-style archive to link instead of a shared archive.
48324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48326 # Commands used to build a shared archive.
48327 archive_cmds=$lt_archive_cmds
48328 archive_expsym_cmds=$lt_archive_expsym_cmds
48330 # Commands used to build a loadable module if different from building
48331 # a shared archive.
48332 module_cmds=$lt_module_cmds
48333 module_expsym_cmds=$lt_module_expsym_cmds
48335 # Whether we are building with GNU ld or not.
48336 with_gnu_ld=$lt_with_gnu_ld
48338 # Flag that allows shared libraries with undefined symbols to be built.
48339 allow_undefined_flag=$lt_allow_undefined_flag
48341 # Flag that enforces no undefined symbols.
48342 no_undefined_flag=$lt_no_undefined_flag
48344 # Flag to hardcode \$libdir into a binary during linking.
48345 # This must work even if \$libdir does not exist
48346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48348 # Whether we need a single "-rpath" flag with a separated argument.
48349 hardcode_libdir_separator=$lt_hardcode_libdir_separator
48351 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48352 # DIR into the resulting binary.
48353 hardcode_direct=$hardcode_direct
48355 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48356 # DIR into the resulting binary and the resulting library dependency is
48357 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
48358 # library is relocated.
48359 hardcode_direct_absolute=$hardcode_direct_absolute
48361 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48362 # into the resulting binary.
48363 hardcode_minus_L=$hardcode_minus_L
48365 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48366 # into the resulting binary.
48367 hardcode_shlibpath_var=$hardcode_shlibpath_var
48369 # Set to "yes" if building a shared library automatically hardcodes DIR
48370 # into the library and all subsequent libraries and executables linked
48372 hardcode_automatic=$hardcode_automatic
48374 # Set to yes if linker adds runtime paths of dependent libraries
48375 # to runtime path list.
48376 inherit_rpath=$inherit_rpath
48378 # Whether libtool must link a program against all its dependency libraries.
48379 link_all_deplibs=$link_all_deplibs
48381 # Set to "yes" if exported symbols are required.
48382 always_export_symbols=$always_export_symbols
48384 # The commands to list exported symbols.
48385 export_symbols_cmds=$lt_export_symbols_cmds
48387 # Symbols that should not be listed in the preloaded symbols.
48388 exclude_expsyms=$lt_exclude_expsyms
48390 # Symbols that must always be exported.
48391 include_expsyms=$lt_include_expsyms
48393 # Commands necessary for linking programs (against libraries) with templates.
48394 prelink_cmds=$lt_prelink_cmds
48396 # Commands necessary for finishing linking programs.
48397 postlink_cmds=$lt_postlink_cmds
48399 # Specify filename containing input files.
48400 file_list_spec=$lt_file_list_spec
48402 # How to hardcode a shared library path into an executable.
48403 hardcode_action=$hardcode_action
48405 # ### END LIBTOOL CONFIG
48409 cat <<'_LT_EOF' >> "$cfgfile"
48411 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
48413 # func_munge_path_list VARIABLE PATH
48414 # -----------------------------------
48415 # VARIABLE is name of variable containing _space_ separated list of
48416 # directories to be munged by the contents of PATH, which is string
48419 # string "DIR[ DIR]" will be prepended to VARIABLE
48421 # string "DIR[ DIR]" will be appended to VARIABLE
48422 # "DIRP[:DIRP]::[DIRA:]DIRA"
48423 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
48424 # "DIRA[ DIRA]" will be appended to VARIABLE
48426 # VARIABLE will be replaced by "DIR[ DIR]"
48427 func_munge_path_list ()
48433 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
48436 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
48439 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
48440 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
48443 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
48449 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
48450 func_cc_basename ()
48452 for cc_temp in $*""; do
48454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48460 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
48464 # ### END FUNCTIONS SHARED WITH CONFIGURE
48470 cat <<\_LT_EOF >> "$cfgfile"
48471 # AIX sometimes has problems with the GCC collect2 program. For some
48472 # reason, if we set the COLLECT_NAMES environment variable, the problems
48473 # vanish in a puff of smoke.
48474 if test set != "${COLLECT_NAMES+set}"; then
48476 export COLLECT_NAMES
48484 ltmain=$ac_aux_dir/ltmain.sh
48487 # We use sed instead of cat because bash on DJGPP gets confused if
48488 # if finds mixed CR/LF and LF-only lines. Since sed operates in
48489 # text mode, it properly converts lines to CR/LF. This bash problem
48490 # is reportedly fixed, but why not run on old versions too?
48491 $SED '$q' "$ltmain" >> "$cfgfile" \
48492 || (rm -f "$cfgfile"; exit 1)
48494 mv -f "$cfgfile" "$ofile" ||
48495 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48499 cat <<_LT_EOF >> "$ofile"
48501 # ### BEGIN LIBTOOL TAG CONFIG: RC
48503 # The linker used to build libraries.
48506 # How to create reloadable object files.
48507 reload_flag=$lt_reload_flag_RC
48508 reload_cmds=$lt_reload_cmds_RC
48510 # Commands used to build an old-style archive.
48511 old_archive_cmds=$lt_old_archive_cmds_RC
48513 # A language specific compiler.
48516 # Is the compiler the GNU compiler?
48519 # Compiler flag to turn off builtin functions.
48520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
48522 # Additional compiler flags for building library objects.
48523 pic_flag=$lt_lt_prog_compiler_pic_RC
48525 # How to pass a linker flag through the compiler.
48526 wl=$lt_lt_prog_compiler_wl_RC
48528 # Compiler flag to prevent dynamic linking.
48529 link_static_flag=$lt_lt_prog_compiler_static_RC
48531 # Does compiler simultaneously support -c and -o options?
48532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
48534 # Whether or not to add -lc for building shared libraries.
48535 build_libtool_need_lc=$archive_cmds_need_lc_RC
48537 # Whether or not to disallow shared libs when runtime libs are static.
48538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
48540 # Compiler flag to allow reflexive dlopens.
48541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
48543 # Compiler flag to generate shared objects directly from archives.
48544 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
48546 # Whether the compiler copes with passing no objects directly.
48547 compiler_needs_object=$lt_compiler_needs_object_RC
48549 # Create an old-style archive from a shared archive.
48550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
48552 # Create a temporary old-style archive to link instead of a shared archive.
48553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
48555 # Commands used to build a shared archive.
48556 archive_cmds=$lt_archive_cmds_RC
48557 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
48559 # Commands used to build a loadable module if different from building
48560 # a shared archive.
48561 module_cmds=$lt_module_cmds_RC
48562 module_expsym_cmds=$lt_module_expsym_cmds_RC
48564 # Whether we are building with GNU ld or not.
48565 with_gnu_ld=$lt_with_gnu_ld_RC
48567 # Flag that allows shared libraries with undefined symbols to be built.
48568 allow_undefined_flag=$lt_allow_undefined_flag_RC
48570 # Flag that enforces no undefined symbols.
48571 no_undefined_flag=$lt_no_undefined_flag_RC
48573 # Flag to hardcode \$libdir into a binary during linking.
48574 # This must work even if \$libdir does not exist
48575 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
48577 # Whether we need a single "-rpath" flag with a separated argument.
48578 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
48580 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48581 # DIR into the resulting binary.
48582 hardcode_direct=$hardcode_direct_RC
48584 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48585 # DIR into the resulting binary and the resulting library dependency is
48586 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
48587 # library is relocated.
48588 hardcode_direct_absolute=$hardcode_direct_absolute_RC
48590 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48591 # into the resulting binary.
48592 hardcode_minus_L=$hardcode_minus_L_RC
48594 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48595 # into the resulting binary.
48596 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
48598 # Set to "yes" if building a shared library automatically hardcodes DIR
48599 # into the library and all subsequent libraries and executables linked
48601 hardcode_automatic=$hardcode_automatic_RC
48603 # Set to yes if linker adds runtime paths of dependent libraries
48604 # to runtime path list.
48605 inherit_rpath=$inherit_rpath_RC
48607 # Whether libtool must link a program against all its dependency libraries.
48608 link_all_deplibs=$link_all_deplibs_RC
48610 # Set to "yes" if exported symbols are required.
48611 always_export_symbols=$always_export_symbols_RC
48613 # The commands to list exported symbols.
48614 export_symbols_cmds=$lt_export_symbols_cmds_RC
48616 # Symbols that should not be listed in the preloaded symbols.
48617 exclude_expsyms=$lt_exclude_expsyms_RC
48619 # Symbols that must always be exported.
48620 include_expsyms=$lt_include_expsyms_RC
48622 # Commands necessary for linking programs (against libraries) with templates.
48623 prelink_cmds=$lt_prelink_cmds_RC
48625 # Commands necessary for finishing linking programs.
48626 postlink_cmds=$lt_postlink_cmds_RC
48628 # Specify filename containing input files.
48629 file_list_spec=$lt_file_list_spec_RC
48631 # How to hardcode a shared library path into an executable.
48632 hardcode_action=$hardcode_action_RC
48634 # ### END LIBTOOL TAG CONFIG: RC
48645 ac_clean_files=$ac_clean_files_save
48647 test $ac_write_fail = 0 ||
48648 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48651 # configure is writing to config.log, and then calls config.status.
48652 # config.status does its own redirection, appending to config.log.
48653 # Unfortunately, on DOS this fails, as config.log is still kept open
48654 # by configure, so config.status won't be able to write to it; its
48655 # output is simply discarded. So we exec the FD to /dev/null,
48656 # effectively closing config.log, so it can be properly (re)opened and
48657 # appended to by config.status. When coming back to configure, we
48658 # need to make the FD available again.
48659 if test "$no_create" != yes; then
48661 ac_config_status_args=
48662 test "$silent" = yes &&
48663 ac_config_status_args="$ac_config_status_args --quiet"
48665 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48667 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48668 # would make configure fail if this is the last instruction.
48669 $ac_cs_success || as_fn_exit 1
48671 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48673 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48678 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
48679 if test -z "$tmp_cpp"; then
48682 cat >./tests/configurehelp.pm <<_EOF
48683 # This is a generated file. Do not edit.
48685 package configurehelp;
48697 @ISA = qw(Exporter);
48703 \$Cpreprocessor = '$tmp_cpp';
48709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
48711 Host setup: ${host}
48712 Install prefix: ${prefix}
48715 CPPFLAGS: ${CPPFLAGS}
48716 LDFLAGS: ${LDFLAGS}
48719 curl version: ${CURLVERSION}
48720 SSL: ${curl_ssl_msg}
48721 SSH: ${curl_ssh_msg}
48722 zlib: ${curl_zlib_msg}
48723 brotli: ${curl_brotli_msg}
48724 zstd: ${curl_zstd_msg}
48725 GSS-API: ${curl_gss_msg}
48726 GSASL: ${curl_gsasl_msg}
48727 TLS-SRP: ${curl_tls_srp_msg}
48728 resolver: ${curl_res_msg}
48729 IPv6: ${curl_ipv6_msg}
48730 Unix sockets: ${curl_unix_sockets_msg}
48731 IDN: ${curl_idn_msg}
48732 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
48733 Built-in manual: ${curl_manual_msg}
48734 --libcurl option: ${curl_libcurl_msg}
48735 Verbose errors: ${curl_verbose_msg}
48736 Code coverage: ${curl_coverage_msg}
48737 SSPI: ${curl_sspi_msg}
48738 ca cert bundle: ${ca}${ca_warning}
48739 ca cert path: ${capath}${capath_warning}
48740 ca fallback: ${with_ca_fallback}
48741 LDAP: ${curl_ldap_msg}
48742 LDAPS: ${curl_ldaps_msg}
48743 RTSP: ${curl_rtsp_msg}
48744 RTMP: ${curl_rtmp_msg}
48745 PSL: ${curl_psl_msg}
48746 Alt-svc: ${curl_altsvc_msg}
48747 Headers API: ${curl_headers_msg}
48748 HSTS: ${curl_hsts_msg}
48749 HTTP1: ${curl_h1_msg}
48750 HTTP2: ${curl_h2_msg}
48751 HTTP3: ${curl_h3_msg}
48752 ECH: ${curl_ech_msg}
48753 WebSockets: ${curl_ws_msg}
48754 Protocols: ${SUPPORT_PROTOCOLS}
48755 Features: ${SUPPORT_FEATURES}
48757 printf "%s\n" "$as_me: Configured to build curl/libcurl:
48759 Host setup: ${host}
48760 Install prefix: ${prefix}
48763 CPPFLAGS: ${CPPFLAGS}
48764 LDFLAGS: ${LDFLAGS}
48767 curl version: ${CURLVERSION}
48768 SSL: ${curl_ssl_msg}
48769 SSH: ${curl_ssh_msg}
48770 zlib: ${curl_zlib_msg}
48771 brotli: ${curl_brotli_msg}
48772 zstd: ${curl_zstd_msg}
48773 GSS-API: ${curl_gss_msg}
48774 GSASL: ${curl_gsasl_msg}
48775 TLS-SRP: ${curl_tls_srp_msg}
48776 resolver: ${curl_res_msg}
48777 IPv6: ${curl_ipv6_msg}
48778 Unix sockets: ${curl_unix_sockets_msg}
48779 IDN: ${curl_idn_msg}
48780 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
48781 Built-in manual: ${curl_manual_msg}
48782 --libcurl option: ${curl_libcurl_msg}
48783 Verbose errors: ${curl_verbose_msg}
48784 Code coverage: ${curl_coverage_msg}
48785 SSPI: ${curl_sspi_msg}
48786 ca cert bundle: ${ca}${ca_warning}
48787 ca cert path: ${capath}${capath_warning}
48788 ca fallback: ${with_ca_fallback}
48789 LDAP: ${curl_ldap_msg}
48790 LDAPS: ${curl_ldaps_msg}
48791 RTSP: ${curl_rtsp_msg}
48792 RTMP: ${curl_rtmp_msg}
48793 PSL: ${curl_psl_msg}
48794 Alt-svc: ${curl_altsvc_msg}
48795 Headers API: ${curl_headers_msg}
48796 HSTS: ${curl_hsts_msg}
48797 HTTP1: ${curl_h1_msg}
48798 HTTP2: ${curl_h2_msg}
48799 HTTP3: ${curl_h3_msg}
48800 ECH: ${curl_ech_msg}
48801 WebSockets: ${curl_ws_msg}
48802 Protocols: ${SUPPORT_PROTOCOLS}
48803 Features: ${SUPPORT_FEATURES}
48805 if test -n "$experimental"; then
48807 WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!