2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for curl -.
5 # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
15 # This configure script may be copied, distributed and modified under the
16 # terms of the curl license; see COPYING for more details
18 ## -------------------------------- ##
19 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
20 ## -------------------------------- ##
22 xc_configure_preamble_ver_major='1'
23 xc_configure_preamble_ver_minor='0'
26 # Set IFS to space, tab and newline.
33 IFS="$xc_space$xc_tab$xc_newline"
36 # Set internationalization behavior variables.
47 # Some useful variables.
50 xc_msg_warn='configure: WARNING:'
51 xc_msg_abrt='Can not continue.'
52 xc_msg_err='configure: error:'
55 # Verify that 'echo' command is available, otherwise abort.
59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60 case "x$xc_tst_str" in # ((
65 # Try built-in echo, and fail.
66 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
72 # Verify that 'test' command is available, otherwise abort.
76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77 case "x$xc_tst_str" in # ((
82 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
88 # Verify that 'PATH' variable is set, otherwise abort.
92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93 case "x$xc_tst_str" in # ((
98 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
104 # Verify that 'expr' command is available, otherwise abort.
108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109 case "x$xc_tst_str" in # ((
114 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
120 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125 | sed -e 's:unknown:success:' 2>/dev/null`
126 case "x$xc_tst_str" in # ((
131 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
137 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
141 (`echo "$xc_tst_str" 2>/dev/null \
142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143 case "x$xc_tst_str" in # ((
148 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
154 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159 | tr -d "0123456789$xc_tab" 2>/dev/null`
160 case "x$xc_tst_str" in # ((
165 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
171 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
174 xc_tst_str='unknown unknown unknown unknown'
175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177 case "x$xc_tst_str" in # ((
182 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
188 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
192 xc_tst_str=`cat <<_EOT 2>/dev/null \
193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
198 case "x$xc_tst_str" in # ((
203 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
212 # Directory count in 'PATH' when using a colon separator.
214 xc_tst_prev_IFS=$IFS; IFS=':'
215 for xc_tst_dir in $PATH; do
217 xc_tst_dirs_col="x$xc_tst_dirs_col"
220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
222 # Directory count in 'PATH' when using a semicolon separator.
224 xc_tst_prev_IFS=$IFS; IFS=';'
225 for xc_tst_dir in $PATH; do
227 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233 # When both counting methods give the same result we do not want to
234 # chose one over the other, and consider auto-detection not possible.
235 if test -z "$PATH_SEPARATOR"; then
236 # User should provide the correct 'PATH_SEPARATOR' definition.
237 # Until then, guess that it is colon!
238 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
242 # Separator with the greater directory count is the auto-detected one.
243 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244 xc_tst_auto_separator=';'
246 xc_tst_auto_separator=':'
248 if test -z "$PATH_SEPARATOR"; then
249 # Simply use the auto-detected one when not already set.
250 PATH_SEPARATOR=$xc_tst_auto_separator
251 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
255 xc_PATH_SEPARATOR=$PATH_SEPARATOR
257 xc_configure_preamble_result='yes'
260 ## -------------------- ##
261 ## M4sh Initialization. ##
262 ## -------------------- ##
264 # Be more Bourne compatible
265 DUALCASE=1; export DUALCASE # for MKS sh
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
274 case `(set -o) 2>/dev/null` in #(
286 # Printing a long string crashes Solaris 7 /usr/bin/printf.
287 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290 # Prefer a ksh shell builtin over an external printf program on Solaris,
291 # but without wasting forks for bash or zsh.
292 if test -z "$BASH_VERSION$ZSH_VERSION" \
293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294 as_echo='print -r --'
295 as_echo_n='print -rn --'
296 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297 as_echo='printf %s\n'
298 as_echo_n='printf %s'
300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302 as_echo_n='/usr/ucb/echo -n'
304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
309 expr "X$arg" : "X\\(.*\\)$as_nl";
310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
314 export as_echo_n_body
315 as_echo_n='sh -c $as_echo_n_body as_echo'
318 as_echo='sh -c $as_echo_body as_echo'
324 # We need space, tab and new line, in precisely that order. Quoting is
325 # there to prevent editors from complaining about space-tab.
326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
327 # splitting by setting IFS to empty value.)
330 # Find who we are. Look in the path if we contain no directory separator.
333 *[\\/]* ) as_myself=$0 ;;
334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
338 test -z "$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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
355 # Unset variables that we do not need and which cause bugs (e.g. in
356 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
357 # suppresses any "Segmentation fault" message there. '((' could
358 # trigger a bug in pdksh 5.2.14.
359 for as_var in BASH_ENV ENV MAIL MAILPATH
360 do eval test x\${$as_var+set} = xset \
361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
376 # Use a proper internal environment variable to ensure we don't fall
377 # into an infinite loop, continuously re-executing ourselves.
378 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379 _as_can_reexec=no; export _as_can_reexec;
380 # We cannot yet assume a decent shell, so we have to provide a
381 # neutralization value for shells without unset; and this also
382 # works around shells that cannot unset nonexistent variables.
383 # Preserve -v and -x to the replacement shell.
386 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
388 *v*x* | *x*v* ) as_opts=-vx ;;
393 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394 # Admittedly, this is quite paranoid, since all the known shells bail
395 # out after a failed `exec'.
396 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
399 # We don't want this to propagate to other subprocesses.
400 { _as_can_reexec=; unset _as_can_reexec;}
401 if test "x$CONFIG_SHELL" = x; then
402 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
405 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406 # is contrary to our usage. Disable this feature.
407 alias -g '\${1+\"\$@\"}'='\"\$@\"'
410 case \`(set -o) 2>/dev/null\` in #(
418 as_required="as_fn_return () { (exit \$1); }
419 as_fn_success () { as_fn_return 0; }
420 as_fn_failure () { as_fn_return 1; }
421 as_fn_ret_success () { return 0; }
422 as_fn_ret_failure () { return 1; }
425 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
432 exitcode=1; echo positional parameters were not saved.
434 test x\$exitcode = x0 || exit 1
436 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440 test \$(( 1 + 1 )) = 2 || exit 1
442 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446 PATH=/empty FPATH=/empty; export PATH FPATH
447 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449 if (eval "$as_required") 2>/dev/null; then :
454 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
462 test -z "$as_dir" && as_dir=.
466 for as_base in sh bash ksh sh5; do
467 # Try only shells that exist, to save several forks.
468 as_shell=$as_dir/$as_base
469 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471 CONFIG_SHELL=$as_shell as_have_required=yes
472 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
480 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482 CONFIG_SHELL=$SHELL as_have_required=yes
487 if test "x$CONFIG_SHELL" != x; then :
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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
509 if test x$as_have_required = xno; then :
510 $as_echo "$0: This script requires a shell more modern than all"
511 $as_echo "$0: the shells that I found on your system."
512 if test x${ZSH_VERSION+set} = xset ; then
513 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
516 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517 $0: mailing list: https://curl.haxx.se/mail/ about your
518 $0: system, including any error possibly output before this
519 $0: message. Then install a modern shell, or manually run
520 $0: the script under such a shell if you do have one."
526 SHELL=${CONFIG_SHELL-/bin/sh}
528 # Unset more variables known to interfere with behavior of common tools.
529 CLICOLOR_FORCE= GREP_OPTIONS=
530 unset CLICOLOR_FORCE GREP_OPTIONS
532 ## --------------------- ##
533 ## M4sh Shell Functions. ##
534 ## --------------------- ##
537 # Portably unset VAR.
540 { eval $1=; unset $1;}
544 # as_fn_set_status STATUS
545 # -----------------------
546 # Set $? to STATUS, without forking.
554 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
564 # Create "$as_dir" as a directory, including parents if necessary.
569 -*) as_dir=./$as_dir;;
571 test -d "$as_dir" || eval $as_mkdir_p || {
575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
578 as_dirs="'$as_qdir' $as_dirs"
579 as_dir=`$as_dirname -- "$as_dir" ||
580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581 X"$as_dir" : 'X\(//\)[^/]' \| \
582 X"$as_dir" : 'X\(//\)$' \| \
583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584 $as_echo X"$as_dir" |
585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
602 test -d "$as_dir" && break
604 test -z "$as_dirs" || eval "mkdir $as_dirs"
605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
610 # as_fn_executable_p FILE
611 # -----------------------
612 # Test if FILE is an executable regular file.
613 as_fn_executable_p ()
615 test -f "$1" && test -x "$1"
616 } # as_fn_executable_p
617 # as_fn_append VAR VALUE
618 # ----------------------
619 # Append the text in VALUE to the end of the definition contained in VAR. Take
620 # advantage of any shell optimizations that allow amortized linear growth over
621 # repeated appends, instead of the typical quadratic growth present in naive
623 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624 eval 'as_fn_append ()
637 # Perform arithmetic evaluation on the ARGs, and store the result in the
638 # global $as_val. Take advantage of shells that can avoid forks. The arguments
639 # must be portable across $(()) and expr.
640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
648 as_val=`expr "$@" || test $? -eq 1`
653 # as_fn_error STATUS ERROR [LINENO LOG_FD]
654 # ----------------------------------------
655 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657 # script with STATUS, using 1 if that was 0.
660 as_status=$1; test $as_status -eq 0 && as_status=1
662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
665 $as_echo "$as_me: error: $2" >&2
666 as_fn_exit $as_status
669 if expr a : '\(a\)' >/dev/null 2>&1 &&
670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
688 as_me=`$as_basename -- "$0" ||
689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690 X"$0" : 'X\(//\)$' \| \
691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
693 sed '/^.*\/\([^/][^/]*\)\/*$/{
707 # Avoid depending upon Character Ranges.
708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711 as_cr_digits='0123456789'
712 as_cr_alnum=$as_cr_Letters$as_cr_digits
715 as_lineno_1=$LINENO as_lineno_1a=$LINENO
716 as_lineno_2=$LINENO as_lineno_2a=$LINENO
717 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
735 chmod +x "$as_me.lineno" ||
736 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
738 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739 # already done that, so ensure we don't try to do so again and fall
740 # in an infinite loop. This has already happened in practice.
741 _as_can_reexec=no; export _as_can_reexec
742 # Don't try to exec as it changes $[0], causing all sort of problems
743 # (the dirname of $[0] is not the place where we might find the
744 # original and so on. Autoconf is especially sensitive to this).
746 # Exit status is that of the last command.
750 ECHO_C= ECHO_N= ECHO_T=
751 case `echo -n x` in #(((((
753 case `echo 'xy\c'` in
754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
763 rm -f conf$$ conf$$.exe conf$$.file
764 if test -d conf$$.dir; then
765 rm -f conf$$.dir/conf$$.file
768 mkdir conf$$.dir 2>/dev/null
770 if (echo >conf$$.file) 2>/dev/null; then
771 if ln -s conf$$.file conf$$ 2>/dev/null; then
773 # ... but there are two gotchas:
774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776 # In both cases, we have to default to `cp -pR'.
777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
779 elif ln conf$$.file conf$$ 2>/dev/null; then
787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788 rmdir conf$$.dir 2>/dev/null
790 if mkdir -p . 2>/dev/null; then
791 as_mkdir_p='mkdir -p "$as_dir"'
793 test -d ./-p && rmdir ./-p
798 as_executable_p=as_fn_executable_p
800 # Sed expression to map a string onto a valid CPP name.
801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
803 # Sed expression to map a string onto a valid variable name.
804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
806 SHELL=${CONFIG_SHELL-/bin/sh}
809 test -n "$DJDIR" || exec 7<&0 </dev/null
813 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814 # so uname gets run too.
815 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
820 ac_default_prefix=/usr/local
822 ac_config_libobj_dir=.
829 # Identity of this package.
831 PACKAGE_TARNAME='curl'
833 PACKAGE_STRING='curl -'
834 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
837 ac_unique_file="lib/urldata.h"
838 # Factoring default headers for most tests.
839 ac_includes_default="\
841 #ifdef HAVE_SYS_TYPES_H
842 # include <sys/types.h>
844 #ifdef HAVE_SYS_STAT_H
845 # include <sys/stat.h>
851 # ifdef HAVE_STDLIB_H
856 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
861 #ifdef HAVE_STRINGS_H
862 # include <strings.h>
864 #ifdef HAVE_INTTYPES_H
865 # include <inttypes.h>
874 enable_option_checking=no
875 ac_subst_vars='am__EXEEXT_FALSE
887 CURL_NETWORK_AND_TIME_LIBS
890 CFLAG_CURL_SYMBOL_HIDING
891 DOING_CURL_SYMBOL_HIDING_FALSE
892 DOING_CURL_SYMBOL_HIDING_TRUE
894 BUILD_LIBHOSTNAME_FALSE
895 BUILD_LIBHOSTNAME_TRUE
896 USE_EMBEDDED_ARES_FALSE
897 USE_EMBEDDED_ARES_TRUE
909 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911 CURL_LT_SHLIB_VERSIONED_FLAVOUR
965 DOING_NATIVE_WINDOWS_FALSE
966 DOING_NATIVE_WINDOWS_TRUE
967 BUILD_UNITTESTS_FALSE
971 USE_EXPLICIT_LIB_DEPS_FALSE
972 USE_EXPLICIT_LIB_DEPS_TRUE
974 CPPFLAG_CURL_STATICLIB
975 USE_CPPFLAG_CURL_STATICLIB_FALSE
976 USE_CPPFLAG_CURL_STATICLIB_TRUE
977 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
978 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
979 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
980 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
981 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
982 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1033 INSTALL_STRIP_PROGRAM
1046 CODE_COVERAGE_LDFLAGS
1048 CODE_COVERAGE_CXXFLAGS
1049 CODE_COVERAGE_CFLAGS
1050 CODE_COVERAGE_CPPFLAGS
1054 CODE_COVERAGE_ENABLED
1055 CODE_COVERAGE_ENABLED_FALSE
1056 CODE_COVERAGE_ENABLED_TRUE
1076 AM_DEFAULT_VERBOSITY
1080 MAINTAINER_MODE_FALSE
1081 MAINTAINER_MODE_TRUE
1110 program_transform_name
1124 enable_option_checking
1125 enable_maintainer_mode
1132 enable_symbol_hiding
1133 enable_hidden_symbols
1137 enable_code_coverage
1138 enable_dependency_tracking
1164 enable_libcurl_option
1171 with_gssapi_includes
1174 with_default_ssl_backend
1180 enable_openssl_auto_load_config
1197 enable_versioned_symbols
1201 with_zsh_functions_dir
1202 enable_threaded_resolver
1212 ac_precious_vars='build_alias
1221 LT_SYS_LIBRARY_PATH'
1222 ac_subdirs_all='ares'
1224 # Initialize some variables set by options.
1226 ac_init_version=false
1227 ac_unrecognized_opts=
1228 ac_unrecognized_sep=
1229 # The variables have the same names as the options, with
1230 # dashes changed to underlines.
1231 cache_file=/dev/null
1238 program_transform_name=s,x,x,
1246 # Installation directory options.
1247 # These are left unexpanded so users can "make install exec_prefix=/foo"
1248 # and all the variables that are supposed to be based on exec_prefix
1249 # by default will actually change.
1250 # Use braces instead of parens because sh, perl, etc. also accept them.
1251 # (The list follows the same order as the GNU Coding Standards.)
1252 bindir='${exec_prefix}/bin'
1253 sbindir='${exec_prefix}/sbin'
1254 libexecdir='${exec_prefix}/libexec'
1255 datarootdir='${prefix}/share'
1256 datadir='${datarootdir}'
1257 sysconfdir='${prefix}/etc'
1258 sharedstatedir='${prefix}/com'
1259 localstatedir='${prefix}/var'
1260 runstatedir='${localstatedir}/run'
1261 includedir='${prefix}/include'
1262 oldincludedir='/usr/include'
1263 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1264 infodir='${datarootdir}/info'
1269 libdir='${exec_prefix}/lib'
1270 localedir='${datarootdir}/locale'
1271 mandir='${datarootdir}/man'
1277 # If the previous option needs an argument, assign it.
1278 if test -n "$ac_prev"; then
1279 eval $ac_prev=\$ac_option
1285 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1290 # Accept the important Cygnus configure options, so we can diagnose typos.
1292 case $ac_dashdash$ac_option in
1296 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1298 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1299 bindir=$ac_optarg ;;
1301 -build | --build | --buil | --bui | --bu)
1302 ac_prev=build_alias ;;
1303 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1304 build_alias=$ac_optarg ;;
1306 -cache-file | --cache-file | --cache-fil | --cache-fi \
1307 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1308 ac_prev=cache_file ;;
1309 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1310 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1311 cache_file=$ac_optarg ;;
1313 --config-cache | -C)
1314 cache_file=config.cache ;;
1316 -datadir | --datadir | --datadi | --datad)
1318 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1319 datadir=$ac_optarg ;;
1321 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1322 | --dataroo | --dataro | --datar)
1323 ac_prev=datarootdir ;;
1324 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1325 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1326 datarootdir=$ac_optarg ;;
1328 -disable-* | --disable-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332 as_fn_error $? "invalid feature name: $ac_useropt"
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1337 "enable_$ac_useropt"
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1342 eval enable_$ac_useropt=no ;;
1344 -docdir | --docdir | --docdi | --doc | --do)
1346 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1347 docdir=$ac_optarg ;;
1349 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1351 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1352 dvidir=$ac_optarg ;;
1354 -enable-* | --enable-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358 as_fn_error $? "invalid feature name: $ac_useropt"
1359 ac_useropt_orig=$ac_useropt
1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1363 "enable_$ac_useropt"
1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1366 ac_unrecognized_sep=', ';;
1368 eval enable_$ac_useropt=\$ac_optarg ;;
1370 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1371 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1372 | --exec | --exe | --ex)
1373 ac_prev=exec_prefix ;;
1374 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1375 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1376 | --exec=* | --exe=* | --ex=*)
1377 exec_prefix=$ac_optarg ;;
1379 -gas | --gas | --ga | --g)
1380 # Obsolete; use --with-gas.
1383 -help | --help | --hel | --he | -h)
1384 ac_init_help=long ;;
1385 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1386 ac_init_help=recursive ;;
1387 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1388 ac_init_help=short ;;
1390 -host | --host | --hos | --ho)
1391 ac_prev=host_alias ;;
1392 -host=* | --host=* | --hos=* | --ho=*)
1393 host_alias=$ac_optarg ;;
1395 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1397 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1399 htmldir=$ac_optarg ;;
1401 -includedir | --includedir | --includedi | --included | --include \
1402 | --includ | --inclu | --incl | --inc)
1403 ac_prev=includedir ;;
1404 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1405 | --includ=* | --inclu=* | --incl=* | --inc=*)
1406 includedir=$ac_optarg ;;
1408 -infodir | --infodir | --infodi | --infod | --info | --inf)
1410 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1411 infodir=$ac_optarg ;;
1413 -libdir | --libdir | --libdi | --libd)
1415 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1416 libdir=$ac_optarg ;;
1418 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1419 | --libexe | --libex | --libe)
1420 ac_prev=libexecdir ;;
1421 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1422 | --libexe=* | --libex=* | --libe=*)
1423 libexecdir=$ac_optarg ;;
1425 -localedir | --localedir | --localedi | --localed | --locale)
1426 ac_prev=localedir ;;
1427 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1428 localedir=$ac_optarg ;;
1430 -localstatedir | --localstatedir | --localstatedi | --localstated \
1431 | --localstate | --localstat | --localsta | --localst | --locals)
1432 ac_prev=localstatedir ;;
1433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1434 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1435 localstatedir=$ac_optarg ;;
1437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1440 mandir=$ac_optarg ;;
1442 -nfp | --nfp | --nf)
1443 # Obsolete; use --without-fp.
1446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1447 | --no-cr | --no-c | -n)
1450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1456 | --oldin | --oldi | --old | --ol | --o)
1457 ac_prev=oldincludedir ;;
1458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1461 oldincludedir=$ac_optarg ;;
1463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1466 prefix=$ac_optarg ;;
1468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1469 | --program-pre | --program-pr | --program-p)
1470 ac_prev=program_prefix ;;
1471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1473 program_prefix=$ac_optarg ;;
1475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1476 | --program-suf | --program-su | --program-s)
1477 ac_prev=program_suffix ;;
1478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1480 program_suffix=$ac_optarg ;;
1482 -program-transform-name | --program-transform-name \
1483 | --program-transform-nam | --program-transform-na \
1484 | --program-transform-n | --program-transform- \
1485 | --program-transform | --program-transfor \
1486 | --program-transfo | --program-transf \
1487 | --program-trans | --program-tran \
1488 | --progr-tra | --program-tr | --program-t)
1489 ac_prev=program_transform_name ;;
1490 -program-transform-name=* | --program-transform-name=* \
1491 | --program-transform-nam=* | --program-transform-na=* \
1492 | --program-transform-n=* | --program-transform-=* \
1493 | --program-transform=* | --program-transfor=* \
1494 | --program-transfo=* | --program-transf=* \
1495 | --program-trans=* | --program-tran=* \
1496 | --progr-tra=* | --program-tr=* | --program-t=*)
1497 program_transform_name=$ac_optarg ;;
1499 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1501 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1502 pdfdir=$ac_optarg ;;
1504 -psdir | --psdir | --psdi | --psd | --ps)
1506 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1513 -runstatedir | --runstatedir | --runstatedi | --runstated \
1514 | --runstate | --runstat | --runsta | --runst | --runs \
1515 | --run | --ru | --r)
1516 ac_prev=runstatedir ;;
1517 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1518 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1519 | --run=* | --ru=* | --r=*)
1520 runstatedir=$ac_optarg ;;
1522 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1524 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1526 sbindir=$ac_optarg ;;
1528 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1529 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1530 | --sharedst | --shareds | --shared | --share | --shar \
1532 ac_prev=sharedstatedir ;;
1533 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1534 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1535 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1537 sharedstatedir=$ac_optarg ;;
1539 -site | --site | --sit)
1541 -site=* | --site=* | --sit=*)
1544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1547 srcdir=$ac_optarg ;;
1549 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1550 | --syscon | --sysco | --sysc | --sys | --sy)
1551 ac_prev=sysconfdir ;;
1552 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1553 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1554 sysconfdir=$ac_optarg ;;
1556 -target | --target | --targe | --targ | --tar | --ta | --t)
1557 ac_prev=target_alias ;;
1558 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1559 target_alias=$ac_optarg ;;
1561 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1564 -version | --version | --versio | --versi | --vers | -V)
1565 ac_init_version=: ;;
1568 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1569 # Reject names that are not valid shell variable names.
1570 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1571 as_fn_error $? "invalid package name: $ac_useropt"
1572 ac_useropt_orig=$ac_useropt
1573 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1574 case $ac_user_opts in
1578 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1579 ac_unrecognized_sep=', ';;
1581 eval with_$ac_useropt=\$ac_optarg ;;
1583 -without-* | --without-*)
1584 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1585 # Reject names that are not valid shell variable names.
1586 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1587 as_fn_error $? "invalid package name: $ac_useropt"
1588 ac_useropt_orig=$ac_useropt
1589 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1590 case $ac_user_opts in
1594 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1595 ac_unrecognized_sep=', ';;
1597 eval with_$ac_useropt=no ;;
1600 # Obsolete; use --with-x.
1603 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1604 | --x-incl | --x-inc | --x-in | --x-i)
1605 ac_prev=x_includes ;;
1606 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1607 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1608 x_includes=$ac_optarg ;;
1610 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1611 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1612 ac_prev=x_libraries ;;
1613 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1614 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1615 x_libraries=$ac_optarg ;;
1617 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1618 Try \`$0 --help' for more information"
1622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1623 # Reject names that are not valid shell variable names.
1624 case $ac_envvar in #(
1625 '' | [0-9]* | *[!_$as_cr_alnum]* )
1626 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1628 eval $ac_envvar=\$ac_optarg
1629 export $ac_envvar ;;
1632 # FIXME: should be removed in autoconf 3.0.
1633 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1635 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1636 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1642 if test -n "$ac_prev"; then
1643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1644 as_fn_error $? "missing argument to $ac_option"
1647 if test -n "$ac_unrecognized_opts"; then
1648 case $enable_option_checking in
1650 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1651 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1655 # Check all directory arguments for consistency.
1656 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1657 datadir sysconfdir sharedstatedir localstatedir includedir \
1658 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1659 libdir localedir mandir runstatedir
1661 eval ac_val=\$$ac_var
1662 # Remove trailing slashes.
1665 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1666 eval $ac_var=\$ac_val;;
1668 # Be sure to have absolute directory names.
1670 [\\/$]* | ?:[\\/]* ) continue;;
1671 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1673 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1676 # There might be people who depend on the old broken behavior: `$host'
1677 # used to hold the argument of --host etc.
1678 # FIXME: To remove some day.
1681 target=$target_alias
1683 # FIXME: To remove some day.
1684 if test "x$host_alias" != x; then
1685 if test "x$build_alias" = x; then
1686 cross_compiling=maybe
1687 elif test "x$build_alias" != "x$host_alias"; then
1693 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1695 test "$silent" = yes && exec 6>/dev/null
1698 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1699 ac_ls_di=`ls -di .` &&
1700 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1701 as_fn_error $? "working directory cannot be determined"
1702 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1703 as_fn_error $? "pwd does not report name of working directory"
1706 # Find the source files, if location was not specified.
1707 if test -z "$srcdir"; then
1708 ac_srcdir_defaulted=yes
1709 # Try the directory containing this script, then the parent directory.
1710 ac_confdir=`$as_dirname -- "$as_myself" ||
1711 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1712 X"$as_myself" : 'X\(//\)[^/]' \| \
1713 X"$as_myself" : 'X\(//\)$' \| \
1714 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1715 $as_echo X"$as_myself" |
1716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1734 if test ! -r "$srcdir/$ac_unique_file"; then
1738 ac_srcdir_defaulted=no
1740 if test ! -r "$srcdir/$ac_unique_file"; then
1741 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1742 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1744 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1746 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1748 # When building in place, set srcdir=.
1749 if test "$ac_abs_confdir" = "$ac_pwd"; then
1752 # Remove unnecessary trailing slashes from srcdir.
1753 # Double slashes in file names in object file debugging info
1754 # mess up M-x gdb in Emacs.
1756 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1760 eval ac_env_${ac_var}_value=\$${ac_var}
1761 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1762 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1766 # Report the --help message.
1768 if test "$ac_init_help" = "long"; then
1769 # Omit some internal or obsolete options to make the list less imposing.
1770 # This message is too long to be a string in the A/UX 3.1 sh.
1772 \`configure' configures curl - to adapt to many kinds of systems.
1774 Usage: $0 [OPTION]... [VAR=VALUE]...
1776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1777 VAR=VALUE. See below for descriptions of some of the useful variables.
1779 Defaults for the options are specified in brackets.
1782 -h, --help display this help and exit
1783 --help=short display options specific to this package
1784 --help=recursive display the short help of all the included packages
1785 -V, --version display version information and exit
1786 -q, --quiet, --silent do not print \`checking ...' messages
1787 --cache-file=FILE cache test results in FILE [disabled]
1788 -C, --config-cache alias for \`--cache-file=config.cache'
1789 -n, --no-create do not create output files
1790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1792 Installation directories:
1793 --prefix=PREFIX install architecture-independent files in PREFIX
1794 [$ac_default_prefix]
1795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1798 By default, \`make install' will install all the files in
1799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1801 for instance \`--prefix=\$HOME'.
1803 For better control, use the options below.
1805 Fine tuning of the installation directories:
1806 --bindir=DIR user executables [EPREFIX/bin]
1807 --sbindir=DIR system admin executables [EPREFIX/sbin]
1808 --libexecdir=DIR program executables [EPREFIX/libexec]
1809 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1810 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1811 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1812 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1813 --libdir=DIR object code libraries [EPREFIX/lib]
1814 --includedir=DIR C header files [PREFIX/include]
1815 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1816 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1817 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1818 --infodir=DIR info documentation [DATAROOTDIR/info]
1819 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1820 --mandir=DIR man documentation [DATAROOTDIR/man]
1821 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1822 --htmldir=DIR html documentation [DOCDIR]
1823 --dvidir=DIR dvi documentation [DOCDIR]
1824 --pdfdir=DIR pdf documentation [DOCDIR]
1825 --psdir=DIR ps documentation [DOCDIR]
1831 --program-prefix=PREFIX prepend PREFIX to installed program names
1832 --program-suffix=SUFFIX append SUFFIX to installed program names
1833 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1836 --build=BUILD configure for building on BUILD [guessed]
1837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1841 if test -n "$ac_init_help"; then
1842 case $ac_init_help in
1843 short | recursive ) echo "Configuration of curl -:";;
1848 --disable-option-checking ignore unrecognized --enable/--with options
1849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1851 --enable-maintainer-mode
1852 enable make rules and dependencies not useful (and
1853 sometimes confusing) to the casual installer
1854 --enable-silent-rules less verbose build output (undo: "make V=1")
1855 --disable-silent-rules verbose build output (undo: "make V=0")
1856 --enable-debug Enable debug build options
1857 --disable-debug Disable debug build options
1858 --enable-optimize Enable compiler optimizations
1859 --disable-optimize Disable compiler optimizations
1860 --enable-warnings Enable strict compiler warnings
1861 --disable-warnings Disable strict compiler warnings
1862 --enable-werror Enable compiler warnings as errors
1863 --disable-werror Disable compiler warnings as errors
1864 --enable-curldebug Enable curl debug memory tracking
1865 --disable-curldebug Disable curl debug memory tracking
1866 --enable-symbol-hiding Enable hiding of library internal symbols
1867 --disable-symbol-hiding Disable hiding of library internal symbols
1868 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1869 --disable-hidden-symbols
1870 To be deprecated, use --disable-symbol-hiding
1871 --enable-ares[=PATH] Enable c-ares for DNS lookups
1872 --disable-ares Disable c-ares for DNS lookups
1873 --disable-rt disable dependency on -lrt
1874 --enable-code-coverage Whether to enable code coverage support
1875 --enable-dependency-tracking
1876 do not reject slow dependency extractors
1877 --disable-dependency-tracking
1878 speeds up one-time build
1879 --disable-largefile omit support for large files
1880 --enable-shared[=PKGS] build shared libraries [default=yes]
1881 --enable-static[=PKGS] build static libraries [default=yes]
1882 --enable-fast-install[=PKGS]
1883 optimize for fast installation [default=yes]
1884 --disable-libtool-lock avoid locking (might break parallel builds)
1885 --enable-http Enable HTTP support
1886 --disable-http Disable HTTP support
1887 --enable-ftp Enable FTP support
1888 --disable-ftp Disable FTP support
1889 --enable-file Enable FILE support
1890 --disable-file Disable FILE support
1891 --enable-ldap Enable LDAP support
1892 --disable-ldap Disable LDAP support
1893 --enable-ldaps Enable LDAPS support
1894 --disable-ldaps Disable LDAPS support
1895 --enable-rtsp Enable RTSP support
1896 --disable-rtsp Disable RTSP support
1897 --enable-proxy Enable proxy support
1898 --disable-proxy Disable proxy support
1899 --enable-dict Enable DICT support
1900 --disable-dict Disable DICT support
1901 --enable-telnet Enable TELNET support
1902 --disable-telnet Disable TELNET support
1903 --enable-tftp Enable TFTP support
1904 --disable-tftp Disable TFTP support
1905 --enable-pop3 Enable POP3 support
1906 --disable-pop3 Disable POP3 support
1907 --enable-imap Enable IMAP support
1908 --disable-imap Disable IMAP support
1909 --enable-smb Enable SMB/CIFS support
1910 --disable-smb Disable SMB/CIFS support
1911 --enable-smtp Enable SMTP support
1912 --disable-smtp Disable SMTP support
1913 --enable-gopher Enable Gopher support
1914 --disable-gopher Disable Gopher support
1915 --enable-manual Enable built-in manual
1916 --disable-manual Disable built-in manual
1917 --enable-libcurl-option Enable --libcurl C code generation support
1918 --disable-libcurl-option
1919 Disable --libcurl C code generation support
1920 --enable-libgcc use libgcc when linking
1921 --enable-ipv6 Enable IPv6 (with IPv4) support
1922 --disable-ipv6 Disable IPv6 support
1923 --enable-openssl-auto-load-config
1924 Enable automatic loading of OpenSSL configuration
1925 --disable-openssl-auto-load-config
1926 Disable automatic loading of OpenSSL configuration
1927 --enable-versioned-symbols
1928 Enable versioned symbols in shared library
1929 --disable-versioned-symbols
1930 Disable versioned symbols in shared library
1931 --enable-threaded-resolver
1932 Enable threaded resolver
1933 --disable-threaded-resolver
1934 Disable threaded resolver
1935 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1936 --disable-pthreads Disable POSIX threads
1937 --enable-verbose Enable verbose strings
1938 --disable-verbose Disable verbose strings
1939 --enable-sspi Enable SSPI
1940 --disable-sspi Disable SSPI
1941 --enable-crypto-auth Enable cryptographic authentication
1942 --disable-crypto-auth Disable cryptographic authentication
1943 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1944 helper, where FILE is ntlm_auth's absolute filename
1945 (default: /usr/bin/ntlm_auth)
1946 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1948 --enable-tls-srp Enable TLS-SRP authentication
1949 --disable-tls-srp Disable TLS-SRP authentication
1950 --enable-unix-sockets Enable Unix domain sockets
1951 --disable-unix-sockets Disable Unix domain sockets
1952 --enable-cookies Enable cookies support
1953 --disable-cookies Disable cookies support
1956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1958 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1959 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1961 --with-aix-soname=aix|svr4|both
1962 shared library versioning (aka "SONAME") variant to
1963 provide on AIX, [default=aix].
1964 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1965 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1966 compiler's sysroot if not specified).
1967 --with-zlib=PATH search for zlib in PATH
1968 --without-zlib disable use of zlib
1969 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1970 installation; when possible, set the PKG_CONFIG_PATH
1971 environment variable instead of using this option
1972 --without-brotli disable BROTLI
1973 --with-ldap-lib=libname Specify name of ldap lib file
1974 --with-lber-lib=libname Specify name of lber lib file
1975 --with-gssapi-includes=DIR
1976 Specify location of GSS-API headers
1977 --with-gssapi-libs=DIR Specify location of GSS-API libs
1978 --with-gssapi=DIR Where to look for GSS-API
1979 --with-default-ssl-backend=NAME
1980 Use NAME as default SSL backend
1981 --without-default-ssl-backend
1982 Use implicit default SSL backend
1983 --with-winssl enable Windows native SSL/TLS
1984 --without-winssl disable Windows native SSL/TLS
1985 --with-darwinssl enable Apple OS native SSL/TLS
1986 --without-darwinssl disable Apple OS native SSL/TLS
1987 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1988 installation (default: /usr/local/ssl); when
1989 possible, set the PKG_CONFIG_PATH environment
1990 variable instead of using this option
1991 --without-ssl disable OpenSSL
1992 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1993 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1994 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1996 --without-gnutls disable GnuTLS detection
1997 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1999 --without-polarssl disable PolarSSL detection
2000 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
2002 --without-mbedtls disable mbedTLS detection
2003 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
2004 installation root (default: system lib default)
2005 --without-cyassl disable CyaSSL detection
2006 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2007 installation root (default: system lib default)
2008 --without-wolfssl disable WolfSSL detection
2009 --with-mesalink=PATH where to look for MesaLink, PATH points to the
2011 --without-mesalink disable MesaLink detection
2012 --with-nss=PATH where to look for NSS, PATH points to the
2014 --without-nss disable NSS detection
2015 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
2016 installation prefix (default: /usr/local). Ignored
2017 if another SSL engine is selected.
2018 --without-axtls disable axTLS
2019 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2021 --without-ca-bundle Don't use a default CA bundle
2022 --with-ca-path=DIRECTORY
2023 Path to a directory containing CA certificates
2024 stored individually, with their filenames in a hash
2025 format. This option can be used with OpenSSL, GnuTLS
2026 and PolarSSL backends. Refer to OpenSSL c_rehash for
2027 details. (example: /etc/certificates)
2028 --without-ca-path Don't use a default CA path
2029 --with-ca-fallback Use the built in CA store of the SSL library
2030 --without-ca-fallback Don't use the built in CA store of the SSL library
2031 --without-libpsl disable support for libpsl cookie checking
2032 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2034 --without-libmetalink disable libmetalink detection
2035 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2036 LIBSSH2 installation; when possible, set the
2037 PKG_CONFIG_PATH environment variable instead of
2039 --with-libssh2 enable LIBSSH2
2040 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2041 installation; when possible, set the PKG_CONFIG_PATH
2042 environment variable instead of using this option
2043 --with-libssh enable LIBSSH
2044 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2045 LIBRTMP installation; when possible, set the
2046 PKG_CONFIG_PATH environment variable instead of
2048 --without-librtmp disable LIBRTMP
2049 --with-winidn=PATH enable Windows native IDN
2050 --without-winidn disable Windows native IDN
2051 --with-libidn2=PATH Enable libidn2 usage
2052 --without-libidn2 Disable libidn2 usage
2053 --with-nghttp2=PATH Enable nghttp2 usage
2054 --without-nghttp2 Disable nghttp2 usage
2055 --with-zsh-functions-dir=PATH
2056 Install zsh completions to PATH
2057 --without-zsh-functions-dir
2058 Do not install zsh completions
2060 Some influential environment variables:
2061 CC C compiler command
2062 CFLAGS C compiler flags
2063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2064 nonstandard directory <lib dir>
2065 LIBS libraries to pass to the linker, e.g. -l<library>
2066 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2067 you have headers in a nonstandard directory <include dir>
2070 User-defined run-time library search path.
2072 Use these variables to override the choices made by `configure' or to help
2073 it to find libraries and programs with nonstandard names/locations.
2075 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2080 if test "$ac_init_help" = "recursive"; then
2081 # If there are subdirs, report their specific --help.
2082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2083 test -d "$ac_dir" ||
2084 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2091 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2092 # A ".." for each directory in $ac_dir_suffix.
2093 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2094 case $ac_top_builddir_sub in
2095 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2096 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2099 ac_abs_top_builddir=$ac_pwd
2100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2101 # for backward compatibility:
2102 ac_top_builddir=$ac_top_build_prefix
2105 .) # We are building in place.
2107 ac_top_srcdir=$ac_top_builddir_sub
2108 ac_abs_top_srcdir=$ac_pwd ;;
2109 [\\/]* | ?:[\\/]* ) # Absolute name.
2110 ac_srcdir=$srcdir$ac_dir_suffix;
2111 ac_top_srcdir=$srcdir
2112 ac_abs_top_srcdir=$srcdir ;;
2114 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2115 ac_top_srcdir=$ac_top_build_prefix$srcdir
2116 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2120 cd "$ac_dir" || { ac_status=$?; continue; }
2121 # Check for guested configure.
2122 if test -f "$ac_srcdir/configure.gnu"; then
2124 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2125 elif test -f "$ac_srcdir/configure"; then
2127 $SHELL "$ac_srcdir/configure" --help=recursive
2129 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2131 cd "$ac_pwd" || { ac_status=$?; break; }
2135 test -n "$ac_init_help" && exit $ac_status
2136 if $ac_init_version; then
2139 generated by GNU Autoconf 2.69
2141 Copyright (C) 2012 Free Software Foundation, Inc.
2142 This configure script is free software; the Free Software Foundation
2143 gives unlimited permission to copy, distribute and modify it.
2145 Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2146 This configure script may be copied, distributed and modified under the
2147 terms of the curl license; see COPYING for more details
2152 ## ------------------------ ##
2153 ## Autoconf initialization. ##
2154 ## ------------------------ ##
2156 # ac_fn_c_try_compile LINENO
2157 # --------------------------
2158 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2159 ac_fn_c_try_compile ()
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 rm -f conftest.$ac_objext
2163 if { { ac_try="$ac_compile"
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2169 $as_echo "$ac_try_echo"; } >&5
2170 (eval "$ac_compile") 2>conftest.err
2172 if test -s conftest.err; then
2173 grep -v '^ *+' conftest.err >conftest.er1
2174 cat conftest.er1 >&5
2175 mv -f conftest.er1 conftest.err
2177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178 test $ac_status = 0; } && {
2179 test -z "$ac_c_werror_flag" ||
2180 test ! -s conftest.err
2181 } && test -s conftest.$ac_objext; then :
2184 $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 as_fn_set_status $ac_retval
2192 } # ac_fn_c_try_compile
2194 # ac_fn_c_try_cpp LINENO
2195 # ----------------------
2196 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 if { { ac_try="$ac_cpp conftest.$ac_ext"
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2209 if test -s conftest.err; then
2210 grep -v '^ *+' conftest.err >conftest.er1
2211 cat conftest.er1 >&5
2212 mv -f conftest.er1 conftest.err
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } > conftest.i && {
2216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2217 test ! -s conftest.err
2221 $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227 as_fn_set_status $ac_retval
2231 # ac_fn_c_try_link LINENO
2232 # -----------------------
2233 # Try to link conftest.$ac_ext, and return whether this succeeded.
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 rm -f conftest.$ac_objext conftest$ac_exeext
2238 if { { ac_try="$ac_link"
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_link") 2>conftest.err
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } && {
2254 test -z "$ac_c_werror_flag" ||
2255 test ! -s conftest.err
2256 } && test -s conftest$ac_exeext && {
2257 test "$cross_compiling" = yes ||
2258 test -x conftest$ac_exeext
2262 $as_echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2267 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2268 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2269 # interfere with the next link command; also delete a directory that is
2270 # left behind by Apple's compiler. We do this before executing the actions.
2271 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 as_fn_set_status $ac_retval
2275 } # ac_fn_c_try_link
2277 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2278 # -------------------------------------------------------
2279 # Tests whether HEADER exists and can be compiled using the include files in
2280 # INCLUDES, setting the cache variable VAR accordingly.
2281 ac_fn_c_check_header_compile ()
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2285 $as_echo_n "checking for $2... " >&6; }
2286 if eval \${$3+:} false; then :
2287 $as_echo_n "(cached) " >&6
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2294 if ac_fn_c_try_compile "$LINENO"; then :
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 } # ac_fn_c_check_header_compile
2308 # ac_fn_c_try_run LINENO
2309 # ----------------------
2310 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2311 # that executables *can* be run.
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 if { { ac_try="$ac_link"
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2321 $as_echo "$ac_try_echo"; } >&5
2322 (eval "$ac_link") 2>&5
2324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2325 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2326 { { case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331 $as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_try") 2>&5
2334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335 test $ac_status = 0; }; }; then :
2338 $as_echo "$as_me: program exited with status $ac_status" >&5
2339 $as_echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 ac_retval=$ac_status
2344 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346 as_fn_set_status $ac_retval
2350 # ac_fn_c_check_func LINENO FUNC VAR
2351 # ----------------------------------
2352 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2353 ac_fn_c_check_func ()
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2357 $as_echo_n "checking for $2... " >&6; }
2358 if eval \${$3+:} false; then :
2359 $as_echo_n "(cached) " >&6
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2364 #define $2 innocuous_$2
2366 # include <limits.h>
2368 # include <assert.h>
2375 #if defined __stub_$2 || defined __stub___$2
2386 if ac_fn_c_try_link "$LINENO"; then :
2391 rm -f core conftest.err conftest.$ac_objext \
2392 conftest$ac_exeext conftest.$ac_ext
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399 } # ac_fn_c_check_func
2401 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2402 # -------------------------------------------------------
2403 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2404 # the include files in INCLUDES and setting the cache variable VAR
2406 ac_fn_c_check_header_mongrel ()
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 if eval \${$3+:} false; then :
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval \${$3+:} false; then :
2413 $as_echo_n "(cached) " >&6
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2419 # Is the header compilable?
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2421 $as_echo_n "checking $2 usability... " >&6; }
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428 ac_header_compiler=yes
2430 ac_header_compiler=no
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2434 $as_echo "$ac_header_compiler" >&6; }
2436 # Is the header present?
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2438 $as_echo_n "checking $2 presence... " >&6; }
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2443 if ac_fn_c_try_cpp "$LINENO"; then :
2444 ac_header_preproc=yes
2446 ac_header_preproc=no
2448 rm -f conftest.err conftest.i conftest.$ac_ext
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2450 $as_echo "$ac_header_preproc" >&6; }
2452 # So? What about this header?
2453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2456 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2462 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2464 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2466 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2468 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2470 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2471 ( $as_echo "## ----------------------------------------------------------------------- ##
2472 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2473 ## ----------------------------------------------------------------------- ##"
2474 ) | sed "s/^/$as_me: WARNING: /" >&2
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2478 $as_echo_n "checking for $2... " >&6; }
2479 if eval \${$3+:} false; then :
2480 $as_echo_n "(cached) " >&6
2482 eval "$3=\$ac_header_compiler"
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2486 $as_echo "$ac_res" >&6; }
2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490 } # ac_fn_c_check_header_mongrel
2492 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2493 # -------------------------------------------
2494 # Tests whether TYPE exists after having included INCLUDES, setting cache
2495 # variable VAR accordingly.
2496 ac_fn_c_check_type ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2500 $as_echo_n "checking for $2... " >&6; }
2501 if eval \${$3+:} false; then :
2502 $as_echo_n "(cached) " >&6
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h. */
2516 if ac_fn_c_try_compile "$LINENO"; then :
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2528 if ac_fn_c_try_compile "$LINENO"; then :
2533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2542 } # ac_fn_c_check_type
2544 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2545 # ---------------------------------------------
2546 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2548 ac_fn_c_check_decl ()
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 as_decl_name=`echo $2|sed 's/ *(.*//'`
2552 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2554 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2555 if eval \${$3+:} false; then :
2556 $as_echo_n "(cached) " >&6
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2563 #ifndef $as_decl_name
2565 (void) $as_decl_use;
2567 (void) $as_decl_name;
2575 if ac_fn_c_try_compile "$LINENO"; then :
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584 $as_echo "$ac_res" >&6; }
2585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2587 } # ac_fn_c_check_decl
2589 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2590 # ----------------------------------------------------
2591 # Tries to find if the field MEMBER exists in type AGGR, after including
2592 # INCLUDES, setting cache variable VAR accordingly.
2593 ac_fn_c_check_member ()
2595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2597 $as_echo_n "checking for $2.$3... " >&6; }
2598 if eval \${$4+:} false; then :
2599 $as_echo_n "(cached) " >&6
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2613 if ac_fn_c_try_compile "$LINENO"; then :
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2622 if (sizeof ac_aggr.$3)
2628 if ac_fn_c_try_compile "$LINENO"; then :
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 } # ac_fn_c_check_member
2643 cat >config.log <<_ACEOF
2644 This file contains any messages produced by compilers while
2645 running configure, to aid debugging if configure makes a mistake.
2647 It was created by curl $as_me -, which was
2648 generated by GNU Autoconf 2.69. Invocation command line was
2660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2667 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2669 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2670 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2672 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2673 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2674 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2675 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 $as_echo "PATH: $as_dir"
2700 # Keep a trace of the command line.
2701 # Strip out --no-create and --no-recursion so they do not pile up.
2702 # Strip out --silent because we don't want to record it for future runs.
2703 # Also quote any args containing shell meta-characters.
2704 # Make two passes to allow for proper duplicate-argument suppression.
2708 ac_must_keep_next=false
2714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2716 | -silent | --silent | --silen | --sile | --sil)
2719 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2722 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2724 as_fn_append ac_configure_args1 " '$ac_arg'"
2725 if test $ac_must_keep_next = true; then
2726 ac_must_keep_next=false # Got value, back to normal.
2729 *=* | --config-cache | -C | -disable-* | --disable-* \
2730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2732 | -with-* | --with-* | -without-* | --without-* | --x)
2733 case "$ac_configure_args0 " in
2734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2737 -* ) ac_must_keep_next=true ;;
2740 as_fn_append ac_configure_args " '$ac_arg'"
2745 { ac_configure_args0=; unset ac_configure_args0;}
2746 { ac_configure_args1=; unset ac_configure_args1;}
2748 # When interrupted or exit'd, cleanup temporary files, and complete
2749 # config.log. We remove comments because anyway the quotes in there
2750 # would cause problems or look ugly.
2751 # WARNING: Use '\'' to represent an apostrophe within the trap.
2752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2753 trap 'exit_status=$?
2754 # Save into config.log some information that might help in debugging.
2758 $as_echo "## ---------------- ##
2759 ## Cache variables. ##
2760 ## ---------------- ##"
2762 # The following way of writing the cache mishandles newlines in values,
2764 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2765 eval ac_val=\$$ac_var
2769 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2770 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2773 _ | IFS | as_nl) ;; #(
2774 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2775 *) { eval $ac_var=; unset $ac_var;} ;;
2780 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2781 *${as_nl}ac_space=\ *)
2783 "s/'\''/'\''\\\\'\'''\''/g;
2784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2794 $as_echo "## ----------------- ##
2795 ## Output variables. ##
2796 ## ----------------- ##"
2798 for ac_var in $ac_subst_vars
2800 eval ac_val=\$$ac_var
2802 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2804 $as_echo "$ac_var='\''$ac_val'\''"
2808 if test -n "$ac_subst_files"; then
2809 $as_echo "## ------------------- ##
2810 ## File substitutions. ##
2811 ## ------------------- ##"
2813 for ac_var in $ac_subst_files
2815 eval ac_val=\$$ac_var
2817 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 $as_echo "$ac_var='\''$ac_val'\''"
2824 if test -s confdefs.h; then
2825 $as_echo "## ----------- ##
2832 test "$ac_signal" != 0 &&
2833 $as_echo "$as_me: caught signal $ac_signal"
2834 $as_echo "$as_me: exit $exit_status"
2836 rm -f core *.core core.conftest.* &&
2837 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2840 for ac_signal in 1 2 13 15; do
2841 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2845 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2846 rm -f -r conftest* confdefs.h
2848 $as_echo "/* confdefs.h */" > confdefs.h
2850 # Predefined preprocessor variables.
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_NAME "$PACKAGE_NAME"
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_STRING "$PACKAGE_STRING"
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_URL "$PACKAGE_URL"
2877 # Let the site file select an alternate cache file if it wants to.
2878 # Prefer an explicitly selected file to automatically selected ones.
2881 if test -n "$CONFIG_SITE"; then
2882 # We do not want a PATH search for config.site.
2883 case $CONFIG_SITE in #((
2884 -*) ac_site_file1=./$CONFIG_SITE;;
2885 */*) ac_site_file1=$CONFIG_SITE;;
2886 *) ac_site_file1=./$CONFIG_SITE;;
2888 elif test "x$prefix" != xNONE; then
2889 ac_site_file1=$prefix/share/config.site
2890 ac_site_file2=$prefix/etc/config.site
2892 ac_site_file1=$ac_default_prefix/share/config.site
2893 ac_site_file2=$ac_default_prefix/etc/config.site
2895 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2897 test "x$ac_site_file" = xNONE && continue
2898 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2900 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2901 sed 's/^/| /' "$ac_site_file" >&5
2903 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2905 as_fn_error $? "failed to load site script $ac_site_file
2906 See \`config.log' for more details" "$LINENO" 5; }
2910 if test -r "$cache_file"; then
2911 # Some versions of bash will fail to source /dev/null (special files
2912 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2913 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2915 $as_echo "$as_me: loading cache $cache_file" >&6;}
2917 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2918 *) . "./$cache_file";;
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2923 $as_echo "$as_me: creating cache $cache_file" >&6;}
2927 # Check that the precious variables saved in the cache have kept the same
2929 ac_cache_corrupted=false
2930 for ac_var in $ac_precious_vars; do
2931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2932 eval ac_new_set=\$ac_env_${ac_var}_set
2933 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2934 eval ac_new_val=\$ac_env_${ac_var}_value
2935 case $ac_old_set,$ac_new_set in
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2938 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2939 ac_cache_corrupted=: ;;
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2942 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2943 ac_cache_corrupted=: ;;
2946 if test "x$ac_old_val" != "x$ac_new_val"; then
2947 # differences in whitespace do not lead to failure.
2948 ac_old_val_w=`echo x $ac_old_val`
2949 ac_new_val_w=`echo x $ac_new_val`
2950 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2952 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2953 ac_cache_corrupted=:
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2956 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2957 eval $ac_var=\$ac_old_val
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2960 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2962 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2965 # Pass precious variables to config.status.
2966 if test "$ac_new_set" = set; then
2968 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2969 *) ac_arg=$ac_var=$ac_new_val ;;
2971 case " $ac_configure_args " in
2972 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2973 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2977 if $ac_cache_corrupted; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2981 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2982 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2984 ## -------------------- ##
2985 ## Main body of script. ##
2986 ## -------------------- ##
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 # using curl-override.m4
3006 ac_config_headers="$ac_config_headers lib/curl_config.h"
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3011 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3012 # Check whether --enable-maintainer-mode was given.
3013 if test "${enable_maintainer_mode+set}" = set; then :
3014 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3016 USE_MAINTAINER_MODE=no
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3020 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3021 if test $USE_MAINTAINER_MODE = yes; then
3022 MAINTAINER_MODE_TRUE=
3023 MAINTAINER_MODE_FALSE='#'
3025 MAINTAINER_MODE_TRUE='#'
3026 MAINTAINER_MODE_FALSE=
3029 MAINT=$MAINTAINER_MODE_TRUE
3032 # Check whether --enable-silent-rules was given.
3033 if test "${enable_silent_rules+set}" = set; then :
3034 enableval=$enable_silent_rules;
3037 case $enable_silent_rules in # (((
3038 yes) AM_DEFAULT_VERBOSITY=0;;
3039 no) AM_DEFAULT_VERBOSITY=1;;
3040 *) AM_DEFAULT_VERBOSITY=0;;
3042 am_make=${MAKE-make}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3044 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3045 if ${am_cv_make_support_nested_variables+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 if $as_echo 'TRUE=$(BAR$(V))
3054 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3055 am_cv_make_support_nested_variables=yes
3057 am_cv_make_support_nested_variables=no
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3061 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3062 if test $am_cv_make_support_nested_variables = yes; then
3064 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3066 AM_V=$AM_DEFAULT_VERBOSITY
3067 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3074 $as_echo_n "checking whether to enable debug build options... " >&6; }
3075 OPT_DEBUG_BUILD="default"
3076 # Check whether --enable-debug was given.
3077 if test "${enable_debug+set}" = set; then :
3078 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3081 case "$OPT_DEBUG_BUILD" in
3091 $as_echo "#define DEBUGBUILD 1" >>confdefs.h
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3096 $as_echo "$want_debug" >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3100 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3101 OPT_COMPILER_OPTIMIZE="default"
3102 # Check whether --enable-optimize was given.
3103 if test "${enable_optimize+set}" = set; then :
3104 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3107 case "$OPT_COMPILER_OPTIMIZE" in
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3114 if test "$want_debug" = "yes"; then
3115 want_optimize="assume_no"
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3117 $as_echo "(assumed) no" >&6; }
3119 want_optimize="assume_yes"
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3121 $as_echo "(assumed) yes" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 $as_echo "yes" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3133 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3134 OPT_COMPILER_WARNINGS="default"
3135 # Check whether --enable-warnings was given.
3136 if test "${enable_warnings+set}" = set; then :
3137 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3140 case "$OPT_COMPILER_WARNINGS" in
3145 want_warnings="$want_debug"
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3152 $as_echo "$want_warnings" >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3156 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3157 OPT_COMPILER_WERROR="default"
3158 # Check whether --enable-werror was given.
3159 if test "${enable_werror+set}" = set; then :
3160 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3163 case "$OPT_COMPILER_WERROR" in
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3175 $as_echo "$want_werror" >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3179 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3180 OPT_CURLDEBUG_BUILD="default"
3181 # Check whether --enable-curldebug was given.
3182 if test "${enable_curldebug+set}" = set; then :
3183 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3186 case "$OPT_CURLDEBUG_BUILD" in
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3193 if test "$want_debug" = "yes"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3195 $as_echo "(assumed) yes" >&6; }
3197 $as_echo "#define CURLDEBUG 1" >>confdefs.h
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3203 want_curldebug_assumed="yes"
3204 want_curldebug="$want_debug"
3207 want_curldebug="yes"
3209 $as_echo "#define CURLDEBUG 1" >>confdefs.h
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 $as_echo "yes" >&6; }
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3218 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3219 OPT_SYMBOL_HIDING="default"
3220 # Check whether --enable-symbol-hiding was given.
3221 if test "${enable_symbol_hiding+set}" = set; then :
3222 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3225 # Check whether --enable-hidden-symbols was given.
3226 if test "${enable_hidden_symbols+set}" = set; then :
3227 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3230 case "$OPT_SYMBOL_HIDING" in
3232 want_symbol_hiding="no"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3237 want_symbol_hiding="yes"
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3242 want_symbol_hiding="yes"
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244 $as_echo "yes" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3250 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3252 # Check whether --enable-ares was given.
3253 if test "${enable_ares+set}" = set; then :
3254 enableval=$enable_ares; OPT_ARES=$enableval
3266 if test -n "$enableval" && test "$enableval" != "yes"; then
3267 want_ares_path="$enableval"
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3272 $as_echo "$want_ares" >&6; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3276 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3278 # Check whether --enable-rt was given.
3279 if test "${enable_rt+set}" = set; then :
3280 enableval=$enable_rt; OPT_RT=$enableval
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3292 $as_echo "(assumed no)" >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3303 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3306 if test -z "$xc_configure_preamble_result"; then
3307 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3311 # Check that 'PATH_SEPARATOR' has already been set.
3314 if test -z "$xc_PATH_SEPARATOR"; then
3315 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3317 if test -z "$PATH_SEPARATOR"; then
3318 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3321 $as_echo_n "checking for path separator... " >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3323 $as_echo "$PATH_SEPARATOR" >&6; }
3324 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3326 $as_echo_n "checking for initial path separator... " >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3328 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3329 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3334 # save the configure arguments
3336 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3339 CURL_CFLAG_EXTRAS=""
3340 if test X"$want_werror" = Xyes; then
3341 CURL_CFLAG_EXTRAS="-Werror"
3342 if test "$compiler_id" = "GNU_C"; then
3343 if test "$compiler_num" -ge "500"; then
3344 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3350 if test -z "$SED"; then
3351 # Extract the first word of "sed", so it can be a program name with args.
3352 set dummy sed; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_path_SED+:} false; then :
3356 $as_echo_n "(cached) " >&6
3360 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3365 for as_dir in $as_dummy
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3384 if test -n "$SED"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3386 $as_echo "$SED" >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3393 if test -z "$SED" || test "$SED" = "not_found"; then
3394 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3399 if test -z "$GREP"; then
3400 # Extract the first word of "grep", so it can be a program name with args.
3401 set dummy grep; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_path_GREP+:} false; then :
3405 $as_echo_n "(cached) " >&6
3409 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3414 for as_dir in $as_dummy
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3432 GREP=$ac_cv_path_GREP
3433 if test -n "$GREP"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3435 $as_echo "$GREP" >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3442 if test -z "$GREP" || test "$GREP" = "not_found"; then
3443 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3448 if test -z "$EGREP"; then
3449 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3451 $as_echo_n "checking for egrep... " >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3454 $as_echo "$EGREP" >&6; }
3456 # Extract the first word of "egrep", so it can be a program name with args.
3457 set dummy egrep; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_path_EGREP+:} false; then :
3461 $as_echo_n "(cached) " >&6
3465 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3470 for as_dir in $as_dummy
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3488 EGREP=$ac_cv_path_EGREP
3489 if test -n "$EGREP"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3491 $as_echo "$EGREP" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3500 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3501 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3505 if test -z "$AR"; then
3506 if test -n "$ac_tool_prefix"; then
3507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}ar; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_path_AR+:} false; then :
3512 $as_echo_n "(cached) " >&6
3516 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3521 for as_dir in $as_dummy
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 if test -n "$AR"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3541 $as_echo "$AR" >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3549 if test -z "$ac_cv_path_AR"; then
3551 # Extract the first word of "ar", so it can be a program name with args.
3552 set dummy ar; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_path_ac_pt_AR+:} false; then :
3556 $as_echo_n "(cached) " >&6
3560 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3565 for as_dir in $as_dummy
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 ac_pt_AR=$ac_cv_path_ac_pt_AR
3583 if test -n "$ac_pt_AR"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3585 $as_echo "$ac_pt_AR" >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3591 if test "x$ac_pt_AR" = x; then
3594 case $cross_compiling:$ac_tool_warned in
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3606 if test -z "$AR" || test "$AR" = "not_found"; then
3607 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3614 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3616 xc_prog_cc_prev_IFS=$IFS
3617 xc_prog_cc_prev_LIBS=$LIBS
3618 xc_prog_cc_prev_CFLAGS=$CFLAGS
3619 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3620 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3625 for xc_word in $LIBS; do
3635 if test $xc_bad_var_libs = yes; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3637 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3639 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3643 xc_bad_var_ldflags=no
3644 for xc_word in $LDFLAGS; do
3647 xc_bad_var_ldflags=yes
3650 xc_bad_var_ldflags=yes
3653 xc_bad_var_ldflags=yes
3656 xc_bad_var_ldflags=yes
3660 if test $xc_bad_var_ldflags = yes; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3662 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3663 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3664 for xc_word in $LDFLAGS; do
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3668 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3672 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3676 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3680 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3687 xc_bad_var_cppflags=no
3688 for xc_word in $CPPFLAGS; do
3691 xc_bad_var_cppflags=yes
3693 -L* | --library-path=*)
3694 xc_bad_var_cppflags=yes
3697 xc_bad_var_cppflags=yes
3701 if test $xc_bad_var_cppflags = yes; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3703 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3704 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3705 for xc_word in $CPPFLAGS; do
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3709 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3711 -L* | --library-path=*)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3713 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3717 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3724 xc_bad_var_cflags=no
3725 for xc_word in $CFLAGS; do
3728 xc_bad_var_cflags=yes
3731 xc_bad_var_cflags=yes
3734 xc_bad_var_cflags=yes
3737 xc_bad_var_cflags=yes
3739 -L* | --library-path=*)
3740 xc_bad_var_cflags=yes
3743 xc_bad_var_cflags=yes
3747 if test $xc_bad_var_cflags = yes; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3749 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3750 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3751 for xc_word in $CFLAGS; do
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3755 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3759 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3763 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3767 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3769 -L* | --library-path=*)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3771 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3775 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3781 if test $xc_bad_var_libs = yes ||
3782 test $xc_bad_var_cflags = yes ||
3783 test $xc_bad_var_ldflags = yes ||
3784 test $xc_bad_var_cppflags = yes; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3786 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3790 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3791 if test -f "$ac_dir/install-sh"; then
3793 ac_install_sh="$ac_aux_dir/install-sh -c"
3795 elif test -f "$ac_dir/install.sh"; then
3797 ac_install_sh="$ac_aux_dir/install.sh -c"
3799 elif test -f "$ac_dir/shtool"; then
3801 ac_install_sh="$ac_aux_dir/shtool install -c"
3805 if test -z "$ac_aux_dir"; then
3806 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3809 # These three variables are undocumented and unsupported,
3810 # and are intended to be withdrawn in a future Autoconf release.
3811 # They can cause serious problems if a builder's source tree is in a directory
3812 # whose full name contains unusual characters.
3813 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3814 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3815 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3818 # Find a good install program. We prefer a C program (faster),
3819 # so one script is as good as another. But avoid the broken or
3820 # incompatible versions:
3821 # SysV /etc/install, /usr/sbin/install
3822 # SunOS /usr/etc/install
3823 # IRIX /sbin/install
3825 # AmigaOS /C/install, which installs bootblocks on floppy discs
3826 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3829 # OS/2's system install, which has a completely different semantic
3830 # ./install, which can be erroneously created by make from ./install.sh.
3831 # Reject install programs that cannot install multiple files.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3833 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3834 if test -z "$INSTALL"; then
3835 if ${ac_cv_path_install+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 test -z "$as_dir" && as_dir=.
3843 # Account for people who put trailing slashes in PATH elements.
3844 case $as_dir/ in #((
3845 ./ | .// | /[cC]/* | \
3846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3847 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3850 # OSF1 and SCO ODT 3.0 have their own names for install.
3851 # Don't use installbsd from OSF since it installs stuff as root
3853 for ac_prog in ginstall scoinst install; do
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3856 if test $ac_prog = install &&
3857 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3858 # AIX install. It has an incompatible calling convention.
3860 elif test $ac_prog = install &&
3861 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3862 # program-specific install script used by HP pwplus--don't use.
3865 rm -rf conftest.one conftest.two conftest.dir
3866 echo one > conftest.one
3867 echo two > conftest.two
3869 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3870 test -s conftest.one && test -s conftest.two &&
3871 test -s conftest.dir/conftest.one &&
3872 test -s conftest.dir/conftest.two
3874 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3887 rm -rf conftest.one conftest.two conftest.dir
3890 if test "${ac_cv_path_install+set}" = set; then
3891 INSTALL=$ac_cv_path_install
3893 # As a last resort, use the slow shell script. Don't cache a
3894 # value for INSTALL within a source directory, because that will
3895 # break other packages using the cache if that directory is
3896 # removed, or if the value is a relative name.
3897 INSTALL=$ac_install_sh
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3901 $as_echo "$INSTALL" >&6; }
3903 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3904 # It thinks the first close brace ends the variable substitution.
3905 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3907 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3909 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3911 # Expand $ac_aux_dir to an absolute path.
3912 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_CC+:} false; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 if test -n "$CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3958 if test -z "$ac_cv_prog_CC"; then
3960 # Extract the first word of "gcc", so it can be a program name with args.
3961 set dummy gcc; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -n "$ac_ct_CC"; then
3968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_CC="gcc"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3988 if test -n "$ac_ct_CC"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3990 $as_echo "$ac_ct_CC" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3996 if test "x$ac_ct_CC" = x; then
3999 case $cross_compiling:$ac_tool_warned in
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003 ac_tool_warned=yes ;;
4011 if test -z "$CC"; then
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}cc; ac_word=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if ${ac_cv_prog_CC+:} false; then :
4018 $as_echo_n "(cached) " >&6
4020 if test -n "$CC"; then
4021 ac_cv_prog_CC="$CC" # Let the user override the test.
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_prog_CC="${ac_tool_prefix}cc"
4031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 if test -n "$CC"; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043 $as_echo "$CC" >&6; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4052 if test -z "$CC"; then
4053 # Extract the first word of "cc", so it can be a program name with args.
4054 set dummy cc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_CC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC="$CC" # Let the user override the test.
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4072 ac_prog_rejected=yes
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 if test $ac_prog_rejected = yes; then
4084 # We found a bogon in the path, so make sure we never use it.
4085 set dummy $ac_cv_prog_CC
4087 if test $# != 0; then
4088 # We chose a different compiler from the bogus one.
4089 # However, it has the same basename, so the bogon will be chosen
4090 # first if we set CC to just the basename; use the full file name.
4092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4098 if test -n "$CC"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100 $as_echo "$CC" >&6; }
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4108 if test -z "$CC"; then
4109 if test -n "$ac_tool_prefix"; then
4110 for ac_prog in cl.exe
4112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if ${ac_cv_prog_CC+:} false; then :
4117 $as_echo_n "(cached) " >&6
4119 if test -n "$CC"; then
4120 ac_cv_prog_CC="$CC" # Let the user override the test.
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 if test -n "$CC"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4142 $as_echo "$CC" >&6; }
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4149 test -n "$CC" && break
4152 if test -z "$CC"; then
4154 for ac_prog in cl.exe
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4161 $as_echo_n "(cached) " >&6
4163 if test -n "$ac_ct_CC"; then
4164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_CC="$ac_prog"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4184 if test -n "$ac_ct_CC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4186 $as_echo "$ac_ct_CC" >&6; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 test -n "$ac_ct_CC" && break
4196 if test "x$ac_ct_CC" = x; then
4199 case $cross_compiling:$ac_tool_warned in
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203 ac_tool_warned=yes ;;
4212 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214 as_fn_error $? "no acceptable C compiler found in \$PATH
4215 See \`config.log' for more details" "$LINENO" 5; }
4217 # Provide some information about the compiler.
4218 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4221 for ac_option in --version -v -V -qversion; do
4222 { { ac_try="$ac_compiler $ac_option >&5"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4228 $as_echo "$ac_try_echo"; } >&5
4229 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4231 if test -s conftest.err; then
4233 ... rest of stderr output deleted ...
4234 10q' conftest.err >conftest.er1
4235 cat conftest.er1 >&5
4237 rm -f conftest.er1 conftest.err
4238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239 test $ac_status = 0; }
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4252 ac_clean_files_save=$ac_clean_files
4253 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4254 # Try to create an executable without -o first, disregard a.out.
4255 # It will help us diagnose broken compilers, and finding out an intuition
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4258 $as_echo_n "checking whether the C compiler works... " >&6; }
4259 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4261 # The possible output files:
4262 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4265 for ac_file in $ac_files
4268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4269 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4274 if { { ac_try="$ac_link_default"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_link_default") 2>&5
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }; then :
4285 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4286 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4287 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4288 # so that the user can short-circuit this test for compilers unknown to
4290 for ac_file in $ac_files ''
4292 test -f "$ac_file" || continue
4294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4297 # We found the default executable, but exeext='' is most
4301 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4303 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4305 # We set ac_cv_exeext here because the later test for it is not
4306 # safe: cross compilers may not add the suffix if given an `-o'
4307 # argument, so we may need to know it at that point already.
4308 # Even if this section looks crufty: it has the advantage of
4315 test "$ac_cv_exeext" = no && ac_cv_exeext=
4320 if test -z "$ac_file"; then :
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 $as_echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328 as_fn_error 77 "C compiler cannot create executables
4329 See \`config.log' for more details" "$LINENO" 5; }
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4332 $as_echo "yes" >&6; }
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4335 $as_echo_n "checking for C compiler default output file name... " >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4337 $as_echo "$ac_file" >&6; }
4338 ac_exeext=$ac_cv_exeext
4340 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4341 ac_clean_files=$ac_clean_files_save
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4343 $as_echo_n "checking for suffix of executables... " >&6; }
4344 if { { ac_try="$ac_link"
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_link") 2>&5
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }; then :
4355 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4356 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4357 # work properly (i.e., refer to `conftest.exe'), while it won't with
4359 for ac_file in conftest.exe conftest conftest.*; do
4360 test -f "$ac_file" || continue
4362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4363 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4372 See \`config.log' for more details" "$LINENO" 5; }
4374 rm -f conftest conftest$ac_cv_exeext
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4376 $as_echo "$ac_cv_exeext" >&6; }
4378 rm -f conftest.$ac_ext
4379 EXEEXT=$ac_cv_exeext
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4386 FILE *f = fopen ("conftest.out", "w");
4387 return ferror (f) || fclose (f) != 0;
4393 ac_clean_files="$ac_clean_files conftest.out"
4394 # Check that the compiler produces executables we can run. If not, either
4395 # the compiler is broken, or we cross compile.
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4397 $as_echo_n "checking whether we are cross compiling... " >&6; }
4398 if test "$cross_compiling" != yes; then
4399 { { ac_try="$ac_link"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 $as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_link") 2>&5
4408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409 test $ac_status = 0; }
4410 if { ac_try='./conftest$ac_cv_exeext'
4411 { { case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_try") 2>&5
4419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420 test $ac_status = 0; }; }; then
4423 if test "$cross_compiling" = maybe; then
4426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 as_fn_error $? "cannot run C compiled programs.
4429 If you meant to cross compile, use \`--host'.
4430 See \`config.log' for more details" "$LINENO" 5; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4435 $as_echo "$cross_compiling" >&6; }
4437 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4438 ac_clean_files=$ac_clean_files_save
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4440 $as_echo_n "checking for suffix of object files... " >&6; }
4441 if ${ac_cv_objext+:} false; then :
4442 $as_echo_n "(cached) " >&6
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4454 rm -f conftest.o conftest.obj
4455 if { { ac_try="$ac_compile"
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 $as_echo "$ac_try_echo"; } >&5
4462 (eval "$ac_compile") 2>&5
4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; then :
4466 for ac_file in conftest.o conftest.obj conftest.*; do
4467 test -f "$ac_file" || continue;
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4475 $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 as_fn_error $? "cannot compute suffix of object files: cannot compile
4481 See \`config.log' for more details" "$LINENO" 5; }
4483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4486 $as_echo "$ac_cv_objext" >&6; }
4487 OBJEXT=$ac_cv_objext
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4490 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4491 if ${ac_cv_c_compiler_gnu+:} false; then :
4492 $as_echo_n "(cached) " >&6
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4507 if ac_fn_c_try_compile "$LINENO"; then :
4512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4517 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4518 if test $ac_compiler_gnu = yes; then
4523 ac_test_CFLAGS=${CFLAGS+set}
4524 ac_save_CFLAGS=$CFLAGS
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4526 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4527 if ${ac_cv_prog_cc_g+:} false; then :
4528 $as_echo_n "(cached) " >&6
4530 ac_save_c_werror_flag=$ac_c_werror_flag
4531 ac_c_werror_flag=yes
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4544 if ac_fn_c_try_compile "$LINENO"; then :
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4558 if ac_fn_c_try_compile "$LINENO"; then :
4561 ac_c_werror_flag=$ac_save_c_werror_flag
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4573 if ac_fn_c_try_compile "$LINENO"; then :
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_c_werror_flag=$ac_save_c_werror_flag
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4584 $as_echo "$ac_cv_prog_cc_g" >&6; }
4585 if test "$ac_test_CFLAGS" = set; then
4586 CFLAGS=$ac_save_CFLAGS
4587 elif test $ac_cv_prog_cc_g = yes; then
4588 if test "$GCC" = yes; then
4594 if test "$GCC" = yes; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4602 if ${ac_cv_prog_cc_c89+:} false; then :
4603 $as_echo_n "(cached) " >&6
4605 ac_cv_prog_cc_c89=no
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4613 struct buf { int x; };
4614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4615 static char *e (p, i)
4621 static char *f (char * (*g) (char **, int), char **p, ...)
4626 s = g (p, va_arg (v,int));
4631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4632 function prototypes and stuff, but not '\xHH' hex character constants.
4633 These don't provoke an error unfortunately, instead are silently treated
4634 as 'x'. The following induces an error, until -std is added to get
4635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4636 array size at least. It's necessary to write '\x00'==0 to get something
4637 that's true only with -std. */
4638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4641 inside strings and character constants. */
4643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4645 int test (int i, double x);
4646 struct s1 {int (*f) (int a);};
4647 struct s2 {int (*f) (double a);};
4648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4653 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4658 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4659 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4661 CC="$ac_save_CC $ac_arg"
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_cv_prog_cc_c89=$ac_arg
4665 rm -f core conftest.err conftest.$ac_objext
4666 test "x$ac_cv_prog_cc_c89" != "xno" && break
4668 rm -f conftest.$ac_ext
4673 case "x$ac_cv_prog_cc_c89" in
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4676 $as_echo "none needed" >&6; } ;;
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4679 $as_echo "unsupported" >&6; } ;;
4681 CC="$CC $ac_cv_prog_cc_c89"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4683 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4685 if test "x$ac_cv_prog_cc_c89" != xno; then :
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4696 ac_cpp='$CPP $CPPFLAGS'
4697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4701 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4702 if ${am_cv_prog_cc_c_o+:} false; then :
4703 $as_echo_n "(cached) " >&6
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4715 # Make sure it works both with $CC and with simple cc.
4716 # Following AC_PROG_CC_C_O, we do the test twice because some
4717 # compilers refuse to overwrite an existing .o file with -o,
4718 # though they will create one.
4719 am_cv_prog_cc_c_o=yes
4721 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4722 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } \
4726 && test -f conftest2.$ac_objext; then
4729 am_cv_prog_cc_c_o=no
4733 rm -f core conftest*
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4737 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4738 if test "$am_cv_prog_cc_c_o" != yes; then
4739 # Losing compiler, so override with the script.
4740 # FIXME: It is wrong to rewrite CC.
4741 # But if we don't then we get into trouble of one sort or another.
4742 # A longer-term fix would be to have automake use am__CC in this case,
4743 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4744 CC="$am_aux_dir/compile $CC"
4747 ac_cpp='$CPP $CPPFLAGS'
4748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755 ac_cpp='$CPP $CPPFLAGS'
4756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4760 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4761 # On Suns, sometimes $CPP names a directory.
4762 if test -n "$CPP" && test -d "$CPP"; then
4765 if test -z "$CPP"; then
4766 if ${ac_cv_prog_CPP+:} false; then :
4767 $as_echo_n "(cached) " >&6
4769 # Double quotes because CPP needs to be expanded
4770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4773 for ac_c_preproc_warn_flag in '' yes
4775 # Use a header file that comes with gcc, so configuring glibc
4776 # with a fresh cross-compiler works.
4777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4778 # <limits.h> exists even on freestanding compilers.
4779 # On the NeXT, cc -E runs the code through the compiler's parser,
4780 # not just through cpp. "Syntax error" is here to catch this case.
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4784 # include <limits.h>
4786 # include <assert.h>
4790 if ac_fn_c_try_cpp "$LINENO"; then :
4793 # Broken: fails on valid input.
4796 rm -f conftest.err conftest.i conftest.$ac_ext
4798 # OK, works on sane cases. Now check whether nonexistent headers
4799 # can be detected and how.
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 #include <ac_nonexistent.h>
4804 if ac_fn_c_try_cpp "$LINENO"; then :
4805 # Broken: success on invalid input.
4808 # Passes both tests.
4812 rm -f conftest.err conftest.i conftest.$ac_ext
4815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4816 rm -f conftest.i conftest.err conftest.$ac_ext
4817 if $ac_preproc_ok; then :
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4830 $as_echo "$CPP" >&6; }
4832 for ac_c_preproc_warn_flag in '' yes
4834 # Use a header file that comes with gcc, so configuring glibc
4835 # with a fresh cross-compiler works.
4836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4837 # <limits.h> exists even on freestanding compilers.
4838 # On the NeXT, cc -E runs the code through the compiler's parser,
4839 # not just through cpp. "Syntax error" is here to catch this case.
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4843 # include <limits.h>
4845 # include <assert.h>
4849 if ac_fn_c_try_cpp "$LINENO"; then :
4852 # Broken: fails on valid input.
4855 rm -f conftest.err conftest.i conftest.$ac_ext
4857 # OK, works on sane cases. Now check whether nonexistent headers
4858 # can be detected and how.
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 #include <ac_nonexistent.h>
4863 if ac_fn_c_try_cpp "$LINENO"; then :
4864 # Broken: success on invalid input.
4867 # Passes both tests.
4871 rm -f conftest.err conftest.i conftest.$ac_ext
4874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875 rm -f conftest.i conftest.err conftest.$ac_ext
4876 if $ac_preproc_ok; then :
4879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4881 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4882 See \`config.log' for more details" "$LINENO" 5; }
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892 IFS=$xc_prog_cc_prev_IFS
4893 LIBS=$xc_prog_cc_prev_LIBS
4894 CFLAGS=$xc_prog_cc_prev_CFLAGS
4895 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4896 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4904 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4905 if ${ac_cv_path_SED+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4909 for ac_i in 1 2 3 4 5 6 7; do
4910 ac_script="$ac_script$as_nl$ac_script"
4912 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4913 { ac_script=; unset ac_script;}
4914 if test -z "$SED"; then
4915 ac_path_SED_found=false
4916 # Loop through the user's path and test for each of PROGNAME-LIST
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir=.
4922 for ac_prog in sed gsed; do
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4925 as_fn_executable_p "$ac_path_SED" || continue
4926 # Check for GNU ac_path_SED and select it if it is found.
4927 # Check for GNU $ac_path_SED
4928 case `"$ac_path_SED" --version 2>&1` in
4930 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4933 $as_echo_n 0123456789 >"conftest.in"
4936 cat "conftest.in" "conftest.in" >"conftest.tmp"
4937 mv "conftest.tmp" "conftest.in"
4938 cp "conftest.in" "conftest.nl"
4939 $as_echo '' >> "conftest.nl"
4940 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942 as_fn_arith $ac_count + 1 && ac_count=$as_val
4943 if test $ac_count -gt ${ac_path_SED_max-0}; then
4944 # Best one so far, save it but keep looking for a better one
4945 ac_cv_path_SED="$ac_path_SED"
4946 ac_path_SED_max=$ac_count
4948 # 10*(2^10) chars as input seems more than enough
4949 test $ac_count -gt 10 && break
4951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4954 $ac_path_SED_found && break 3
4959 if test -z "$ac_cv_path_SED"; then
4960 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4968 $as_echo "$ac_cv_path_SED" >&6; }
4969 SED="$ac_cv_path_SED"
4972 if test "$GCC" = "yes" ; then :
4976 # allow to override gcov location
4978 # Check whether --with-gcov was given.
4979 if test "${with_gcov+set}" = set; then :
4980 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
4982 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
4987 $as_echo_n "checking whether to build with code coverage support... " >&6; }
4988 # Check whether --enable-code-coverage was given.
4989 if test "${enable_code_coverage+set}" = set; then :
4990 enableval=$enable_code_coverage;
4992 enable_code_coverage=no
4996 if test x$enable_code_coverage = xyes; then
4997 CODE_COVERAGE_ENABLED_TRUE=
4998 CODE_COVERAGE_ENABLED_FALSE='#'
5000 CODE_COVERAGE_ENABLED_TRUE='#'
5001 CODE_COVERAGE_ENABLED_FALSE=
5004 CODE_COVERAGE_ENABLED=$enable_code_coverage
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
5007 $as_echo "$enable_code_coverage" >&6; }
5009 if test "$enable_code_coverage" = "yes" ; then :
5012 if test -n "$ac_tool_prefix"; then
5013 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5014 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_GCOV+:} false; then :
5018 $as_echo_n "(cached) " >&6
5020 if test -n "$GCOV"; then
5021 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 GCOV=$ac_cv_prog_GCOV
5041 if test -n "$GCOV"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5043 $as_echo "$GCOV" >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5051 if test -z "$ac_cv_prog_GCOV"; then
5053 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5054 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5058 $as_echo_n "(cached) " >&6
5060 if test -n "$ac_ct_GCOV"; then
5061 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5081 if test -n "$ac_ct_GCOV"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5083 $as_echo "$ac_ct_GCOV" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5089 if test "x$ac_ct_GCOV" = x; then
5092 case $cross_compiling:$ac_tool_warned in
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5101 GCOV="$ac_cv_prog_GCOV"
5104 if test "X$GCOV" = "X:"; then :
5105 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5109 if test "$GCC" = "no" ; then :
5111 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5115 # Extract the first word of "lcov", so it can be a program name with args.
5116 set dummy lcov; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_LCOV+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 if test -n "$LCOV"; then
5123 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_LCOV="lcov"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 LCOV=$ac_cv_prog_LCOV
5143 if test -n "$LCOV"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5145 $as_echo "$LCOV" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 # Extract the first word of "genhtml", so it can be a program name with args.
5153 set dummy genhtml; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_GENHTML+:} false; then :
5157 $as_echo_n "(cached) " >&6
5159 if test -n "$GENHTML"; then
5160 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_GENHTML="genhtml"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 GENHTML=$ac_cv_prog_GENHTML
5180 if test -n "$GENHTML"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5182 $as_echo "$GENHTML" >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5190 if test -z "$LCOV" ; then :
5192 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5196 if test -z "$GENHTML" ; then :
5198 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5202 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5203 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5204 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5205 CODE_COVERAGE_LIBS="-lgcov"
5206 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5214 CODE_COVERAGE_RULES_CHECK='
5215 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5216 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5218 CODE_COVERAGE_RULES_CAPTURE='
5219 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
5220 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
5221 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5222 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
5223 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5225 CODE_COVERAGE_RULES_CLEAN='
5226 clean: code-coverage-clean
5227 distclean: code-coverage-clean
5228 code-coverage-clean:
5229 -$(LCOV) --directory $(top_builddir) -z
5230 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5231 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5236 CODE_COVERAGE_RULES_CHECK='
5237 @echo "Need to reconfigure with --enable-code-coverage"
5239 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5240 CODE_COVERAGE_RULES_CLEAN=''
5244 CODE_COVERAGE_RULES='
5248 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5249 # Multiple directories may be specified, separated by whitespace.
5250 # (Default: $(top_builddir))
5251 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5252 # by lcov for code coverage. (Default:
5253 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5254 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5255 # reports to be created. (Default:
5256 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5257 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5258 # set to 0 to disable it and leave empty to stay with the default.
5260 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5261 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5262 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5263 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5264 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5265 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5266 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5267 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5268 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5269 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5270 # lcov instance. (Default: empty)
5271 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5272 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5273 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5274 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5275 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5276 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5277 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5279 # The generated report will be titled using the $(PACKAGE_NAME) and
5280 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
5281 # use the git-version-gen script, available online.
5283 # Optional variables
5284 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5285 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5286 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5287 CODE_COVERAGE_BRANCH_COVERAGE ?=
5288 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5289 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5290 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5291 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5292 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5293 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5294 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5295 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5296 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5297 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5298 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5299 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5300 CODE_COVERAGE_IGNORE_PATTERN ?=
5303 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5305 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5306 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5307 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
5308 $(CODE_COVERAGE_OUTPUT_FILE);
5309 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5310 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5311 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
5312 $(CODE_COVERAGE_IGNORE_PATTERN);
5313 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5314 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5315 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5316 code_coverage_quiet = $(code_coverage_quiet_$(V))
5317 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5318 code_coverage_quiet_0 = --quiet
5320 # sanitizes the test-name: replaces with underscores: dashes and dots
5321 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5323 # Use recursive makes in order to ignore errors during check
5324 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5326 # Capture code coverage data
5327 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5329 # Hook rule executed before code-coverage-capture, overridable by the user
5330 code-coverage-capture-hook:
5332 '"$CODE_COVERAGE_RULES_CLEAN"'
5334 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5335 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5337 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5344 # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5345 CODE_COVERAGE_ENABLED_TRUE='#'
5349 am__api_version='1.16'
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5352 $as_echo_n "checking whether build environment is sane... " >&6; }
5353 # Reject unsafe characters in $srcdir or the absolute working directory
5354 # name. Accept space and tab only in the latter.
5358 *[\\\"\#\$\&\'\`$am_lf]*)
5359 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5362 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5363 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5366 # Do 'set' in a subshell so we don't clobber the current shell's
5367 # arguments. Must try -L first in case configure is actually a
5368 # symlink; some systems play weird games with the mod time of symlinks
5369 # (eg FreeBSD returns the mod time of the symlink's containing
5373 for am_try in 1 2; do
5374 echo "timestamp, slept: $am_has_slept" > conftest.file
5375 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5376 if test "$*" = "X"; then
5378 set X `ls -t "$srcdir/configure" conftest.file`
5380 if test "$*" != "X $srcdir/configure conftest.file" \
5381 && test "$*" != "X conftest.file $srcdir/configure"; then
5383 # If neither matched, then we have a broken ls. This can happen
5384 # if, for instance, CONFIG_SHELL is bash and it inherits a
5385 # broken ls alias from the environment. This has actually
5386 # happened. Such a system could not be considered "sane".
5387 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5388 alias in your environment" "$LINENO" 5
5390 if test "$2" = conftest.file || test $am_try -eq 2; then
5397 test "$2" = conftest.file
5403 as_fn_error $? "newly created file is older than distributed files!
5404 Check your system clock" "$LINENO" 5
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5407 $as_echo "yes" >&6; }
5408 # If we didn't sleep, we still need to ensure time stamps of config.status and
5409 # generated files are strictly newer.
5411 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5418 test "$program_prefix" != NONE &&
5419 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5420 # Use a double $ so make ignores it.
5421 test "$program_suffix" != NONE &&
5422 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5423 # Double any \ or $.
5424 # By default was `s,x,x', remove it if useless.
5425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5428 if test x"${MISSING+set}" != xset; then
5431 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5433 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5436 # Use eval to expand $SHELL
5437 if eval "$MISSING --is-lightweight"; then
5438 am_missing_run="$MISSING "
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5442 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5445 if test x"${install_sh+set}" != xset; then
5448 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5450 install_sh="\${SHELL} $am_aux_dir/install-sh"
5454 # Installed binaries are usually stripped using 'strip' when the user
5455 # run "make install-strip". However 'strip' might not be the right
5456 # tool to use in cross-compilation environments, therefore Automake
5457 # will honor the 'STRIP' environment variable to overrule this program.
5458 if test "$cross_compiling" != no; then
5459 if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}strip; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_STRIP+:} false; then :
5465 $as_echo_n "(cached) " >&6
5467 if test -n "$STRIP"; then
5468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 STRIP=$ac_cv_prog_STRIP
5488 if test -n "$STRIP"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5490 $as_echo "$STRIP" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5498 if test -z "$ac_cv_prog_STRIP"; then
5500 # Extract the first word of "strip", so it can be a program name with args.
5501 set dummy strip; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5505 $as_echo_n "(cached) " >&6
5507 if test -n "$ac_ct_STRIP"; then
5508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517 ac_cv_prog_ac_ct_STRIP="strip"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5528 if test -n "$ac_ct_STRIP"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5530 $as_echo "$ac_ct_STRIP" >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5536 if test "x$ac_ct_STRIP" = x; then
5539 case $cross_compiling:$ac_tool_warned in
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5548 STRIP="$ac_cv_prog_STRIP"
5552 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5555 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556 if test -z "$MKDIR_P"; then
5557 if ${ac_cv_path_mkdir+:} false; then :
5558 $as_echo_n "(cached) " >&6
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5564 test -z "$as_dir" && as_dir=.
5565 for ac_prog in mkdir gmkdir; do
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5568 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5569 'mkdir (GNU coreutils) '* | \
5570 'mkdir (coreutils) '* | \
5571 'mkdir (fileutils) '4.1*)
5572 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5582 test -d ./--version && rmdir ./--version
5583 if test "${ac_cv_path_mkdir+set}" = set; then
5584 MKDIR_P="$ac_cv_path_mkdir -p"
5586 # As a last resort, use the slow shell script. Don't cache a
5587 # value for MKDIR_P within a source directory, because that will
5588 # break other packages using the cache if that directory is
5589 # removed, or if the value is a relative name.
5590 MKDIR_P="$ac_install_sh -d"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5594 $as_echo "$MKDIR_P" >&6; }
5596 for ac_prog in gawk mawk nawk awk
5598 # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_AWK+:} false; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$AWK"; then
5606 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_AWK="$ac_prog"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 if test -n "$AWK"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5628 $as_echo "$AWK" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5635 test -n "$AWK" && break
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5639 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5641 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5642 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5643 $as_echo_n "(cached) " >&6
5645 cat >conftest.make <<\_ACEOF
5648 @echo '@@@%%%=$(MAKE)=@@@%%%'
5650 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5651 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5653 eval ac_cv_prog_make_${ac_make}_set=yes;;
5655 eval ac_cv_prog_make_${ac_make}_set=no;;
5659 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661 $as_echo "yes" >&6; }
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 SET_MAKE="MAKE=${MAKE-make}"
5669 rm -rf .tst 2>/dev/null
5670 mkdir .tst 2>/dev/null
5671 if test -d .tst; then
5676 rmdir .tst 2>/dev/null
5678 DEPDIR="${am__leading_dot}deps"
5680 ac_config_commands="$ac_config_commands depfiles"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5683 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5684 cat > confinc.mk << 'END'
5686 @echo this is the am__doit target >confinc.out
5691 # BSD make does it like this.
5692 echo '.include "confinc.mk" # ignored' > confmf.BSD
5693 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5694 echo 'include confinc.mk # ignored' > confmf.GNU
5696 for s in GNU BSD; do
5697 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5698 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }
5702 case $?:`cat confinc.out 2>/dev/null` in #(
5703 '0:this is the am__doit target') :
5706 am__include='.include' am__quote='"' ;; #(
5708 am__include='include' am__quote='' ;;
5713 if test "$am__include" != "#"; then
5714 _am_result="yes ($s style)"
5718 rm -f confinc.* confmf.*
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5720 $as_echo "${_am_result}" >&6; }
5722 # Check whether --enable-dependency-tracking was given.
5723 if test "${enable_dependency_tracking+set}" = set; then :
5724 enableval=$enable_dependency_tracking;
5727 if test "x$enable_dependency_tracking" != xno; then
5728 am_depcomp="$ac_aux_dir/depcomp"
5732 if test "x$enable_dependency_tracking" != xno; then
5741 ## --------------------------------------- ##
5742 ## Start of automake initialization code ##
5743 ## --------------------------------------- ##
5745 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5746 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5747 # is not polluted with repeated "-I."
5748 am__isrc=' -I$(srcdir)'
5749 # test to see if srcdir already configured
5750 if test -f $srcdir/config.status; then
5751 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5755 # test whether we have cygpath
5756 if test -z "$CYGPATH_W"; then
5757 if (cygpath --version) >/dev/null 2>/dev/null; then
5758 CYGPATH_W='cygpath -w'
5765 # Define the identity of the package.
5770 cat >>confdefs.h <<_ACEOF
5771 #define PACKAGE "$PACKAGE"
5775 cat >>confdefs.h <<_ACEOF
5776 #define VERSION "$VERSION"
5779 # Some tools Automake needs.
5781 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5784 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5787 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5790 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5793 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5795 # For better backward compatibility. To be removed once Automake 1.9.x
5796 # dies out for good. For more background, see:
5797 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5798 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5799 mkdir_p='$(MKDIR_P)'
5801 # We need awk for the "check" target (and possibly the TAP driver). The
5802 # system "awk" is bad on some platforms.
5803 # Always define AMTAR for backward compatibility. Yes, it's still used
5804 # in the wild :-( We should find a proper way to deprecate it ...
5808 # We'll loop over all known methods to create a tar archive until one works.
5809 _am_tools='gnutar pax cpio none'
5811 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5817 depcc="$CC" am_compiler_list=
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5820 $as_echo_n "checking dependency style of $depcc... " >&6; }
5821 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5822 $as_echo_n "(cached) " >&6
5824 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5825 # We make a subdir and do the tests there. Otherwise we can end up
5826 # making bogus files that we don't know about and never remove. For
5827 # instance it was reported that on HP-UX the gcc test will end up
5828 # making a dummy file named 'D' -- because '-MD' means "put the output
5832 # Copy depcomp to subdir because otherwise we won't find it if we're
5833 # using a relative directory.
5834 cp "$am_depcomp" conftest.dir
5836 # We will build objects and dependencies in a subdirectory because
5837 # it helps to detect inapplicable dependency modes. For instance
5838 # both Tru64's cc and ICC support -MD to output dependencies as a
5839 # side effect of compilation, but ICC will put the dependencies in
5840 # the current directory while Tru64 will put them in the object
5844 am_cv_CC_dependencies_compiler_type=none
5845 if test "$am_compiler_list" = ""; then
5846 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5849 case " $depcc " in #(
5850 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5853 for depmode in $am_compiler_list; do
5854 # Setup a source with many dependencies, because some compilers
5855 # like to wrap large dependency lists on column 80 (with \), and
5856 # we should not choose a depcomp mode which is confused by this.
5858 # We need to recreate these files for each test, as the compiler may
5859 # overwrite some of them when testing with obscure command lines.
5860 # This happens at least with the AIX C compiler.
5862 for i in 1 2 3 4 5 6; do
5863 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5864 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5865 # Solaris 10 /bin/sh.
5866 echo '/* dummy */' > sub/conftst$i.h
5868 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5870 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5871 # mode. It turns out that the SunPro C++ compiler does not properly
5872 # handle '-M -o', and we need to detect this. Also, some Intel
5873 # versions had trouble with output in subdirs.
5874 am__obj=sub/conftest.${OBJEXT-o}
5875 am__minus_obj="-o $am__obj"
5878 # This depmode causes a compiler race in universal mode.
5879 test "$am__universal" = false || continue
5882 # After this tag, mechanisms are not by side-effect, so they'll
5883 # only be used when explicitly requested.
5884 if test "x$enable_dependency_tracking" = xyes; then
5890 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5891 # This compiler won't grok '-c -o', but also, the minuso test has
5892 # not run yet. These depmodes are late enough in the game, and
5893 # so weak that their functioning should not be impacted.
5894 am__obj=conftest.${OBJEXT-o}
5899 if depmode=$depmode \
5900 source=sub/conftest.c object=$am__obj \
5901 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5902 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5903 >/dev/null 2>conftest.err &&
5904 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5905 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5906 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5907 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5908 # icc doesn't choke on unknown options, it will just issue warnings
5909 # or remarks (even with -Werror). So we grep stderr for any message
5910 # that says an option was ignored or not supported.
5911 # When given -MP, icc 7.0 and 7.1 complain thusly:
5912 # icc: Command line warning: ignoring option '-M'; no argument required
5913 # The diagnosis changed in icc 8.0:
5914 # icc: Command line remark: option '-MP' not supported
5915 if (grep 'ignoring option' conftest.err ||
5916 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5917 am_cv_CC_dependencies_compiler_type=$depmode
5926 am_cv_CC_dependencies_compiler_type=none
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5931 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5932 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5935 test "x$enable_dependency_tracking" != xno \
5936 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5938 am__fastdepCC_FALSE='#'
5940 am__fastdepCC_TRUE='#'
5941 am__fastdepCC_FALSE=
5946 # POSIX will say in a future version that running "rm -f" with no argument
5947 # is OK; and we want to be able to make that assumption in our Makefile
5948 # recipes. So use an aggressive probe to check that the usage we want is
5949 # actually supported "in the wild" to an acceptable degree.
5950 # See automake bug#10828.
5951 # To make any issue more visible, cause the running configure to be aborted
5952 # by default if the 'rm' program in use doesn't match our expectations; the
5953 # user can still override this though.
5954 if rm -f && rm -fr && rm -rf; then : OK; else
5958 Your 'rm' program seems unable to run without file operands specified
5959 on the command line, even when the '-f' option is present. This is contrary
5960 to the behaviour of most rm programs out there, and not conforming with
5961 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5963 Please tell bug-automake@gnu.org about your system, including the value
5964 of your $PATH and any error possibly output before this message. This
5965 can help us improve future automake versions.
5968 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5969 echo 'Configuration will proceed anyway, since you have set the' >&2
5970 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5974 Aborting the configuration process, to ensure you take notice of the issue.
5976 You can download and install GNU coreutils to get an 'rm' implementation
5977 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5979 If you want to complete the configuration process using your problematic
5980 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5981 to "yes", and re-run configure.
5984 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5988 ## ------------------------------------- ##
5989 ## End of automake initialization code ##
5990 ## ------------------------------------- ##
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5994 $as_echo_n "checking curl version... " >&6; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5996 $as_echo "$CURLVERSION" >&6; }
6000 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6003 PKGADD_PKG="HAXXcurl"
6004 PKGADD_NAME="curl - a client that groks URLs"
6005 PKGADD_VENDOR="curl.haxx.se"
6010 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl,mesalink} )"
6011 curl_ssh_msg="no (--with-libssh2)"
6012 curl_zlib_msg="no (--with-zlib)"
6013 curl_brotli_msg="no (--with-brotli)"
6014 curl_gss_msg="no (--with-gssapi)"
6015 curl_tls_srp_msg="no (--enable-tls-srp)"
6016 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6017 curl_ipv6_msg="no (--enable-ipv6)"
6018 curl_unix_sockets_msg="no (--enable-unix-sockets)"
6019 curl_idn_msg="no (--with-{libidn2,winidn})"
6020 curl_manual_msg="no (--enable-manual)"
6021 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6022 curl_verbose_msg="enabled (--disable-verbose)"
6023 curl_sspi_msg="no (--enable-sspi)"
6024 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6025 curl_ldaps_msg="no (--enable-ldaps)"
6026 curl_rtsp_msg="no (--enable-rtsp)"
6027 curl_rtmp_msg="no (--with-librtmp)"
6028 curl_mtlnk_msg="no (--with-libmetalink)"
6029 curl_psl_msg="no (--with-libpsl)"
6033 INITIAL_LDFLAGS=$LDFLAGS
6037 # Make sure we can run config.sub.
6038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6039 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6042 $as_echo_n "checking build system type... " >&6; }
6043 if ${ac_cv_build+:} false; then :
6044 $as_echo_n "(cached) " >&6
6046 ac_build_alias=$build_alias
6047 test "x$ac_build_alias" = x &&
6048 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6049 test "x$ac_build_alias" = x &&
6050 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6052 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6056 $as_echo "$ac_cv_build" >&6; }
6057 case $ac_cv_build in
6059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6062 ac_save_IFS=$IFS; IFS='-'
6068 # Remember, the first character of IFS is used to create $*,
6069 # except with old shells:
6072 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6076 $as_echo_n "checking host system type... " >&6; }
6077 if ${ac_cv_host+:} false; then :
6078 $as_echo_n "(cached) " >&6
6080 if test "x$host_alias" = x; then
6081 ac_cv_host=$ac_cv_build
6083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6084 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6089 $as_echo "$ac_cv_host" >&6; }
6092 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6095 ac_save_IFS=$IFS; IFS='-'
6101 # Remember, the first character of IFS is used to create $*,
6102 # except with old shells:
6105 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6109 cat >>confdefs.h <<_ACEOF
6110 #define OS "${host}"
6114 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6122 if ${ac_cv_path_GREP+:} false; then :
6123 $as_echo_n "(cached) " >&6
6125 if test -z "$GREP"; then
6126 ac_path_GREP_found=false
6127 # Loop through the user's path and test for each of PROGNAME-LIST
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6132 test -z "$as_dir" && as_dir=.
6133 for ac_prog in grep ggrep; do
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6136 as_fn_executable_p "$ac_path_GREP" || continue
6137 # Check for GNU ac_path_GREP and select it if it is found.
6138 # Check for GNU $ac_path_GREP
6139 case `"$ac_path_GREP" --version 2>&1` in
6141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6144 $as_echo_n 0123456789 >"conftest.in"
6147 cat "conftest.in" "conftest.in" >"conftest.tmp"
6148 mv "conftest.tmp" "conftest.in"
6149 cp "conftest.in" "conftest.nl"
6150 $as_echo 'GREP' >> "conftest.nl"
6151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6153 as_fn_arith $ac_count + 1 && ac_count=$as_val
6154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6155 # Best one so far, save it but keep looking for a better one
6156 ac_cv_path_GREP="$ac_path_GREP"
6157 ac_path_GREP_max=$ac_count
6159 # 10*(2^10) chars as input seems more than enough
6160 test $ac_count -gt 10 && break
6162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6165 $ac_path_GREP_found && break 3
6170 if test -z "$ac_cv_path_GREP"; then
6171 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6174 ac_cv_path_GREP=$GREP
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6179 $as_echo "$ac_cv_path_GREP" >&6; }
6180 GREP="$ac_cv_path_GREP"
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6184 $as_echo_n "checking for egrep... " >&6; }
6185 if ${ac_cv_path_EGREP+:} false; then :
6186 $as_echo_n "(cached) " >&6
6188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6189 then ac_cv_path_EGREP="$GREP -E"
6191 if test -z "$EGREP"; then
6192 ac_path_EGREP_found=false
6193 # Loop through the user's path and test for each of PROGNAME-LIST
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6198 test -z "$as_dir" && as_dir=.
6199 for ac_prog in egrep; do
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6202 as_fn_executable_p "$ac_path_EGREP" || continue
6203 # Check for GNU ac_path_EGREP and select it if it is found.
6204 # Check for GNU $ac_path_EGREP
6205 case `"$ac_path_EGREP" --version 2>&1` in
6207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6210 $as_echo_n 0123456789 >"conftest.in"
6213 cat "conftest.in" "conftest.in" >"conftest.tmp"
6214 mv "conftest.tmp" "conftest.in"
6215 cp "conftest.in" "conftest.nl"
6216 $as_echo 'EGREP' >> "conftest.nl"
6217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6219 as_fn_arith $ac_count + 1 && ac_count=$as_val
6220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6221 # Best one so far, save it but keep looking for a better one
6222 ac_cv_path_EGREP="$ac_path_EGREP"
6223 ac_path_EGREP_max=$ac_count
6225 # 10*(2^10) chars as input seems more than enough
6226 test $ac_count -gt 10 && break
6228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6231 $ac_path_EGREP_found && break 3
6236 if test -z "$ac_cv_path_EGREP"; then
6237 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6240 ac_cv_path_EGREP=$EGREP
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6246 $as_echo "$ac_cv_path_EGREP" >&6; }
6247 EGREP="$ac_cv_path_EGREP"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6253 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6266 $as_echo "yes" >&6; }
6267 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6283 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6295 force compilation error
6303 if ac_fn_c_try_compile "$LINENO"; then :
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6306 $as_echo "yes" >&6; }
6307 tmp_thread_safe_initially_defined="yes"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6313 tmp_thread_safe_initially_defined="no"
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 if test "$tmp_thread_safe_initially_defined" = "no"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6320 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6323 aix[123].* | aix4.[012].*)
6324 tmp_need_thread_safe="no"
6327 tmp_need_thread_safe="yes"
6330 tmp_need_thread_safe="no"
6334 if test "$tmp_need_thread_safe" = "yes"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6336 $as_echo "yes" >&6; }
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6344 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6345 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6346 test "$tmp_need_thread_safe" = "yes"; then
6349 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6351 cat >>confdefs.h <<_EOF
6352 #ifndef _THREAD_SAFE
6353 # define _THREAD_SAFE
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6358 $as_echo "yes" >&6; }
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6368 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6380 force compilation error
6388 if ac_fn_c_try_compile "$LINENO"; then :
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6391 $as_echo "yes" >&6; }
6392 tmp_reentrant_initially_defined="yes"
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6398 tmp_reentrant_initially_defined="no"
6401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 if test "$tmp_reentrant_initially_defined" = "no"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6405 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6409 tmp_need_reentrant="yes"
6412 tmp_need_reentrant="no"
6416 if test "$tmp_need_reentrant" = "no"; then
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6435 if ac_fn_c_try_compile "$LINENO"; then :
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 if test "$tmp_errno" = "yes"; then
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6458 force compilation error
6466 if ac_fn_c_try_compile "$LINENO"; then :
6468 tmp_errno="errno_macro_defined"
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6485 force compilation error
6493 if ac_fn_c_try_compile "$LINENO"; then :
6495 tmp_errno="errno_macro_needs_reentrant"
6496 tmp_need_reentrant="yes"
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 if test "$tmp_need_reentrant" = "no"; then
6508 if test "$tmp_need_reentrant" = "no"; then
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6514 #define gmtime_r innocuous_gmtime_r
6516 # include <limits.h>
6518 # include <assert.h>
6525 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6537 if ac_fn_c_try_link "$LINENO"; then :
6546 rm -f core conftest.err conftest.$ac_objext \
6547 conftest$ac_exeext conftest.$ac_ext
6548 if test "$tmp_gmtime_r" = "yes"; then
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6552 #include <sys/types.h>
6556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6559 tmp_gmtime_r="proto_declared"
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6567 #include <sys/types.h>
6571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6572 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6574 tmp_gmtime_r="proto_needs_reentrant"
6575 tmp_need_reentrant="yes"
6587 if test "$tmp_need_reentrant" = "no"; then
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6593 #define localtime_r innocuous_localtime_r
6595 # include <limits.h>
6597 # include <assert.h>
6603 char localtime_r ();
6604 #if defined __stub_localtime_r || defined __stub___localtime_r
6610 return localtime_r ();
6616 if ac_fn_c_try_link "$LINENO"; then :
6618 tmp_localtime_r="yes"
6622 tmp_localtime_r="no"
6625 rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 if test "$tmp_localtime_r" = "yes"; then
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6631 #include <sys/types.h>
6635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6636 $EGREP "localtime_r" >/dev/null 2>&1; then :
6638 tmp_localtime_r="proto_declared"
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6646 #include <sys/types.h>
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 $EGREP "localtime_r" >/dev/null 2>&1; then :
6653 tmp_localtime_r="proto_needs_reentrant"
6654 tmp_need_reentrant="yes"
6666 if test "$tmp_need_reentrant" = "no"; then
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6672 #define strerror_r innocuous_strerror_r
6674 # include <limits.h>
6676 # include <assert.h>
6683 #if defined __stub_strerror_r || defined __stub___strerror_r
6689 return strerror_r ();
6695 if ac_fn_c_try_link "$LINENO"; then :
6697 tmp_strerror_r="yes"
6704 rm -f core conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706 if test "$tmp_strerror_r" = "yes"; then
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6710 #include <sys/types.h>
6714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6715 $EGREP "strerror_r" >/dev/null 2>&1; then :
6717 tmp_strerror_r="proto_declared"
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6725 #include <sys/types.h>
6729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6730 $EGREP "strerror_r" >/dev/null 2>&1; then :
6732 tmp_strerror_r="proto_needs_reentrant"
6733 tmp_need_reentrant="yes"
6745 if test "$tmp_need_reentrant" = "no"; then
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6751 #define strtok_r innocuous_strtok_r
6753 # include <limits.h>
6755 # include <assert.h>
6762 #if defined __stub_strtok_r || defined __stub___strtok_r
6774 if ac_fn_c_try_link "$LINENO"; then :
6783 rm -f core conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6785 if test "$tmp_strtok_r" = "yes"; then
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6789 #include <sys/types.h>
6793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6794 $EGREP "strtok_r" >/dev/null 2>&1; then :
6796 tmp_strtok_r="proto_declared"
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6804 #include <sys/types.h>
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809 $EGREP "strtok_r" >/dev/null 2>&1; then :
6811 tmp_strtok_r="proto_needs_reentrant"
6812 tmp_need_reentrant="yes"
6824 if test "$tmp_need_reentrant" = "no"; then
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6830 #define inet_ntoa_r innocuous_inet_ntoa_r
6832 # include <limits.h>
6834 # include <assert.h>
6840 char inet_ntoa_r ();
6841 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6847 return inet_ntoa_r ();
6853 if ac_fn_c_try_link "$LINENO"; then :
6855 tmp_inet_ntoa_r="yes"
6859 tmp_inet_ntoa_r="no"
6862 rm -f core conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext conftest.$ac_ext
6864 if test "$tmp_inet_ntoa_r" = "yes"; then
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6868 #include <sys/types.h>
6869 #include <sys/socket.h>
6870 #include <netinet/in.h>
6871 #include <arpa/inet.h>
6874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6875 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6877 tmp_inet_ntoa_r="proto_declared"
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6885 #include <sys/types.h>
6886 #include <sys/socket.h>
6887 #include <netinet/in.h>
6888 #include <arpa/inet.h>
6891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6892 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6894 tmp_inet_ntoa_r="proto_needs_reentrant"
6895 tmp_need_reentrant="yes"
6907 if test "$tmp_need_reentrant" = "no"; then
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6913 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6915 # include <limits.h>
6917 # include <assert.h>
6919 #undef gethostbyaddr_r
6923 char gethostbyaddr_r ();
6924 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6930 return gethostbyaddr_r ();
6936 if ac_fn_c_try_link "$LINENO"; then :
6938 tmp_gethostbyaddr_r="yes"
6942 tmp_gethostbyaddr_r="no"
6945 rm -f core conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
6947 if test "$tmp_gethostbyaddr_r" = "yes"; then
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6951 #include <sys/types.h>
6955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6956 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6958 tmp_gethostbyaddr_r="proto_declared"
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6966 #include <sys/types.h>
6970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6973 tmp_gethostbyaddr_r="proto_needs_reentrant"
6974 tmp_need_reentrant="yes"
6986 if test "$tmp_need_reentrant" = "no"; then
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h. */
6992 #define gethostbyname_r innocuous_gethostbyname_r
6994 # include <limits.h>
6996 # include <assert.h>
6998 #undef gethostbyname_r
7002 char gethostbyname_r ();
7003 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7009 return gethostbyname_r ();
7015 if ac_fn_c_try_link "$LINENO"; then :
7017 tmp_gethostbyname_r="yes"
7021 tmp_gethostbyname_r="no"
7024 rm -f core conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
7026 if test "$tmp_gethostbyname_r" = "yes"; then
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7030 #include <sys/types.h>
7034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7035 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7037 tmp_gethostbyname_r="proto_declared"
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7045 #include <sys/types.h>
7049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7052 tmp_gethostbyname_r="proto_needs_reentrant"
7053 tmp_need_reentrant="yes"
7065 if test "$tmp_need_reentrant" = "no"; then
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7071 #define getprotobyname_r innocuous_getprotobyname_r
7073 # include <limits.h>
7075 # include <assert.h>
7077 #undef getprotobyname_r
7081 char getprotobyname_r ();
7082 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7088 return getprotobyname_r ();
7094 if ac_fn_c_try_link "$LINENO"; then :
7096 tmp_getprotobyname_r="yes"
7100 tmp_getprotobyname_r="no"
7103 rm -f core conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105 if test "$tmp_getprotobyname_r" = "yes"; then
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7109 #include <sys/types.h>
7113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7114 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7116 tmp_getprotobyname_r="proto_declared"
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7124 #include <sys/types.h>
7128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7129 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7131 tmp_getprotobyname_r="proto_needs_reentrant"
7132 tmp_need_reentrant="yes"
7144 if test "$tmp_need_reentrant" = "no"; then
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7150 #define getservbyport_r innocuous_getservbyport_r
7152 # include <limits.h>
7154 # include <assert.h>
7156 #undef getservbyport_r
7160 char getservbyport_r ();
7161 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7167 return getservbyport_r ();
7173 if ac_fn_c_try_link "$LINENO"; then :
7175 tmp_getservbyport_r="yes"
7179 tmp_getservbyport_r="no"
7182 rm -f core conftest.err conftest.$ac_objext \
7183 conftest$ac_exeext conftest.$ac_ext
7184 if test "$tmp_getservbyport_r" = "yes"; then
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7188 #include <sys/types.h>
7192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7193 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7195 tmp_getservbyport_r="proto_declared"
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7203 #include <sys/types.h>
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7210 tmp_getservbyport_r="proto_needs_reentrant"
7211 tmp_need_reentrant="yes"
7225 if test "$tmp_need_reentrant" = "yes"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7227 $as_echo "yes" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7235 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7236 if test "$tmp_reentrant_initially_defined" = "yes" ||
7237 test "$tmp_need_reentrant" = "yes"; then
7240 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7242 cat >>confdefs.h <<_EOF
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7249 $as_echo "yes" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7257 # Check whether --enable-largefile was given.
7258 if test "${enable_largefile+set}" = set; then :
7259 enableval=$enable_largefile;
7262 if test "$enable_largefile" != no; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7265 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7266 if ${ac_cv_sys_largefile_CC+:} false; then :
7267 $as_echo_n "(cached) " >&6
7269 ac_cv_sys_largefile_CC=no
7270 if test "$GCC" != yes; then
7273 # IRIX 6.2 and later do not support large files by default,
7274 # so use the C compiler's -n32 option if that helps.
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 #include <sys/types.h>
7278 /* Check that off_t can represent 2**63 - 1 correctly.
7279 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7280 since some C++ compilers masquerading as C compilers
7281 incorrectly reject 9223372036854775807. */
7282 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7283 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7284 && LARGE_OFF_T % 2147483647 == 1)
7293 if ac_fn_c_try_compile "$LINENO"; then :
7296 rm -f core conftest.err conftest.$ac_objext
7298 if ac_fn_c_try_compile "$LINENO"; then :
7299 ac_cv_sys_largefile_CC=' -n32'; break
7301 rm -f core conftest.err conftest.$ac_objext
7305 rm -f conftest.$ac_ext
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7309 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7310 if test "$ac_cv_sys_largefile_CC" != no; then
7311 CC=$CC$ac_cv_sys_largefile_CC
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7315 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7316 if ${ac_cv_sys_file_offset_bits+:} false; then :
7317 $as_echo_n "(cached) " >&6
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 #include <sys/types.h>
7323 /* Check that off_t can represent 2**63 - 1 correctly.
7324 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7325 since some C++ compilers masquerading as C compilers
7326 incorrectly reject 9223372036854775807. */
7327 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7328 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7329 && LARGE_OFF_T % 2147483647 == 1)
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339 ac_cv_sys_file_offset_bits=no; break
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 #define _FILE_OFFSET_BITS 64
7345 #include <sys/types.h>
7346 /* Check that off_t can represent 2**63 - 1 correctly.
7347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7348 since some C++ compilers masquerading as C compilers
7349 incorrectly reject 9223372036854775807. */
7350 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7352 && LARGE_OFF_T % 2147483647 == 1)
7361 if ac_fn_c_try_compile "$LINENO"; then :
7362 ac_cv_sys_file_offset_bits=64; break
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 ac_cv_sys_file_offset_bits=unknown
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7370 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7371 case $ac_cv_sys_file_offset_bits in #(
7374 cat >>confdefs.h <<_ACEOF
7375 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7380 if test $ac_cv_sys_file_offset_bits = unknown; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7382 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7383 if ${ac_cv_sys_large_files+:} false; then :
7384 $as_echo_n "(cached) " >&6
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7389 #include <sys/types.h>
7390 /* Check that off_t can represent 2**63 - 1 correctly.
7391 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7392 since some C++ compilers masquerading as C compilers
7393 incorrectly reject 9223372036854775807. */
7394 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7396 && LARGE_OFF_T % 2147483647 == 1)
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406 ac_cv_sys_large_files=no; break
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411 #define _LARGE_FILES 1
7412 #include <sys/types.h>
7413 /* Check that off_t can represent 2**63 - 1 correctly.
7414 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7415 since some C++ compilers masquerading as C compilers
7416 incorrectly reject 9223372036854775807. */
7417 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7418 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7419 && LARGE_OFF_T % 2147483647 == 1)
7428 if ac_fn_c_try_compile "$LINENO"; then :
7429 ac_cv_sys_large_files=1; break
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 ac_cv_sys_large_files=unknown
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7437 $as_echo "$ac_cv_sys_large_files" >&6; }
7438 case $ac_cv_sys_large_files in #(
7441 cat >>confdefs.h <<_ACEOF
7442 #define _LARGE_FILES $ac_cv_sys_large_files
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7456 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7461 macro_version='2.4.6'
7462 macro_revision='2.4.6'
7476 ltmain=$ac_aux_dir/ltmain.sh
7478 # Backslashify metacharacters that are still active within
7479 # double-quoted strings.
7480 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7482 # Same as above, but do not quote variable references.
7483 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7485 # Sed substitution to delay expansion of an escaped shell variable in a
7486 # double_quote_subst'ed string.
7487 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7489 # Sed substitution to delay expansion of an escaped single quote.
7490 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7492 # Sed substitution to avoid accidental globbing in evaled expressions
7493 no_glob_subst='s/\*/\\\*/g'
7495 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7496 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7497 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7500 $as_echo_n "checking how to print strings... " >&6; }
7501 # Test print first, because it will be a builtin if present.
7502 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7503 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7505 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7508 # Use this function as a fallback that always works.
7509 func_fallback_echo ()
7511 eval 'cat <<_LTECHO_EOF
7515 ECHO='func_fallback_echo'
7518 # func_echo_all arg...
7519 # Invoke $ECHO with all args, space-separated.
7526 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7527 $as_echo "printf" >&6; } ;;
7528 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7529 $as_echo "print -r" >&6; } ;;
7530 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7531 $as_echo "cat" >&6; } ;;
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7548 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7549 if ${ac_cv_path_SED+:} false; then :
7550 $as_echo_n "(cached) " >&6
7552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7553 for ac_i in 1 2 3 4 5 6 7; do
7554 ac_script="$ac_script$as_nl$ac_script"
7556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7557 { ac_script=; unset ac_script;}
7558 if test -z "$SED"; then
7559 ac_path_SED_found=false
7560 # Loop through the user's path and test for each of PROGNAME-LIST
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir=.
7566 for ac_prog in sed gsed; do
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7569 as_fn_executable_p "$ac_path_SED" || continue
7570 # Check for GNU ac_path_SED and select it if it is found.
7571 # Check for GNU $ac_path_SED
7572 case `"$ac_path_SED" --version 2>&1` in
7574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7577 $as_echo_n 0123456789 >"conftest.in"
7580 cat "conftest.in" "conftest.in" >"conftest.tmp"
7581 mv "conftest.tmp" "conftest.in"
7582 cp "conftest.in" "conftest.nl"
7583 $as_echo '' >> "conftest.nl"
7584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7586 as_fn_arith $ac_count + 1 && ac_count=$as_val
7587 if test $ac_count -gt ${ac_path_SED_max-0}; then
7588 # Best one so far, save it but keep looking for a better one
7589 ac_cv_path_SED="$ac_path_SED"
7590 ac_path_SED_max=$ac_count
7592 # 10*(2^10) chars as input seems more than enough
7593 test $ac_count -gt 10 && break
7595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7598 $ac_path_SED_found && break 3
7603 if test -z "$ac_cv_path_SED"; then
7604 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7612 $as_echo "$ac_cv_path_SED" >&6; }
7613 SED="$ac_cv_path_SED"
7616 test -z "$SED" && SED=sed
7617 Xsed="$SED -e 1s/^X//"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7630 $as_echo_n "checking for fgrep... " >&6; }
7631 if ${ac_cv_path_FGREP+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7635 then ac_cv_path_FGREP="$GREP -F"
7637 if test -z "$FGREP"; then
7638 ac_path_FGREP_found=false
7639 # Loop through the user's path and test for each of PROGNAME-LIST
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7644 test -z "$as_dir" && as_dir=.
7645 for ac_prog in fgrep; do
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7648 as_fn_executable_p "$ac_path_FGREP" || continue
7649 # Check for GNU ac_path_FGREP and select it if it is found.
7650 # Check for GNU $ac_path_FGREP
7651 case `"$ac_path_FGREP" --version 2>&1` in
7653 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7656 $as_echo_n 0123456789 >"conftest.in"
7659 cat "conftest.in" "conftest.in" >"conftest.tmp"
7660 mv "conftest.tmp" "conftest.in"
7661 cp "conftest.in" "conftest.nl"
7662 $as_echo 'FGREP' >> "conftest.nl"
7663 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7665 as_fn_arith $ac_count + 1 && ac_count=$as_val
7666 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7667 # Best one so far, save it but keep looking for a better one
7668 ac_cv_path_FGREP="$ac_path_FGREP"
7669 ac_path_FGREP_max=$ac_count
7671 # 10*(2^10) chars as input seems more than enough
7672 test $ac_count -gt 10 && break
7674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7677 $ac_path_FGREP_found && break 3
7682 if test -z "$ac_cv_path_FGREP"; then
7683 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7686 ac_cv_path_FGREP=$FGREP
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7692 $as_echo "$ac_cv_path_FGREP" >&6; }
7693 FGREP="$ac_cv_path_FGREP"
7696 test -z "$GREP" && GREP=grep
7716 # Check whether --with-gnu-ld was given.
7717 if test "${with_gnu_ld+set}" = set; then :
7718 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7724 if test yes = "$GCC"; then
7725 # Check if gcc -print-prog-name=ld gives a path.
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7727 $as_echo_n "checking for ld used by $CC... " >&6; }
7730 # gcc leaves a trailing carriage return, which upsets mingw
7731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7736 # Accept absolute paths.
7738 re_direlt='/[^/][^/]*/\.\./'
7739 # Canonicalize the pathname of ld
7740 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7741 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7742 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7744 test -z "$LD" && LD=$ac_prog
7747 # If it fails, then pretend we aren't using GCC.
7751 # If it is relative, then search for the first ld in PATH.
7755 elif test yes = "$with_gnu_ld"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7757 $as_echo_n "checking for GNU ld... " >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7760 $as_echo_n "checking for non-GNU ld... " >&6; }
7762 if ${lt_cv_path_LD+:} false; then :
7763 $as_echo_n "(cached) " >&6
7765 if test -z "$LD"; then
7766 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7767 for ac_dir in $PATH; do
7769 test -z "$ac_dir" && ac_dir=.
7770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7771 lt_cv_path_LD=$ac_dir/$ac_prog
7772 # Check to see if the program is GNU ld. I'd rather use --version,
7773 # but apparently some variants of GNU ld only accept -v.
7774 # Break only if it was the GNU/non-GNU ld that we prefer.
7775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7776 *GNU* | *'with BFD'*)
7777 test no != "$with_gnu_ld" && break
7780 test yes != "$with_gnu_ld" && break
7787 lt_cv_path_LD=$LD # Let the user override the test with a path.
7792 if test -n "$LD"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7794 $as_echo "$LD" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7799 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7801 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7802 if ${lt_cv_prog_gnu_ld+:} false; then :
7803 $as_echo_n "(cached) " >&6
7805 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7806 case `$LD -v 2>&1 </dev/null` in
7807 *GNU* | *'with BFD'*)
7808 lt_cv_prog_gnu_ld=yes
7811 lt_cv_prog_gnu_ld=no
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7816 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7817 with_gnu_ld=$lt_cv_prog_gnu_ld
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7828 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7829 if ${lt_cv_path_NM+:} false; then :
7830 $as_echo_n "(cached) " >&6
7832 if test -n "$NM"; then
7833 # Let the user override the test.
7836 lt_nm_to_check=${ac_tool_prefix}nm
7837 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7838 lt_nm_to_check="$lt_nm_to_check nm"
7840 for lt_tmp_nm in $lt_nm_to_check; do
7841 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7842 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7844 test -z "$ac_dir" && ac_dir=.
7845 tmp_nm=$ac_dir/$lt_tmp_nm
7846 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7847 # Check to see if the nm accepts a BSD-compat flag.
7848 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7849 # nm: unknown option "B" ignored
7850 # Tru64's nm complains that /dev/null is an invalid object file
7851 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7853 mingw*) lt_bad_file=conftest.nm/nofile ;;
7854 *) lt_bad_file=/dev/null ;;
7856 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7857 *$lt_bad_file* | *'Invalid file or object type'*)
7858 lt_cv_path_NM="$tmp_nm -B"
7862 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7864 lt_cv_path_NM="$tmp_nm -p"
7868 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7869 continue # so that we can try to find one that supports BSD flags
7878 : ${lt_cv_path_NM=no}
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7882 $as_echo "$lt_cv_path_NM" >&6; }
7883 if test no != "$lt_cv_path_NM"; then
7886 # Didn't find any BSD compatible name lister, look for dumpbin.
7887 if test -n "$DUMPBIN"; then :
7888 # Let the user override the test.
7890 if test -n "$ac_tool_prefix"; then
7891 for ac_prog in dumpbin "link -dump"
7893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_prog_DUMPBIN+:} false; then :
7898 $as_echo_n "(cached) " >&6
7900 if test -n "$DUMPBIN"; then
7901 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 DUMPBIN=$ac_cv_prog_DUMPBIN
7921 if test -n "$DUMPBIN"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7923 $as_echo "$DUMPBIN" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7930 test -n "$DUMPBIN" && break
7933 if test -z "$DUMPBIN"; then
7934 ac_ct_DUMPBIN=$DUMPBIN
7935 for ac_prog in dumpbin "link -dump"
7937 # Extract the first word of "$ac_prog", so it can be a program name with args.
7938 set dummy $ac_prog; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7942 $as_echo_n "(cached) " >&6
7944 if test -n "$ac_ct_DUMPBIN"; then
7945 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7965 if test -n "$ac_ct_DUMPBIN"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7967 $as_echo "$ac_ct_DUMPBIN" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7974 test -n "$ac_ct_DUMPBIN" && break
7977 if test "x$ac_ct_DUMPBIN" = x; then
7980 case $cross_compiling:$ac_tool_warned in
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7984 ac_tool_warned=yes ;;
7986 DUMPBIN=$ac_ct_DUMPBIN
7990 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7992 DUMPBIN="$DUMPBIN -symbols -headers"
8000 if test : != "$DUMPBIN"; then
8004 test -z "$NM" && NM=nm
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8012 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8013 if ${lt_cv_nm_interface+:} false; then :
8014 $as_echo_n "(cached) " >&6
8016 lt_cv_nm_interface="BSD nm"
8017 echo "int some_variable = 0;" > conftest.$ac_ext
8018 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8019 (eval "$ac_compile" 2>conftest.err)
8020 cat conftest.err >&5
8021 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8022 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8023 cat conftest.err >&5
8024 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8025 cat conftest.out >&5
8026 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8027 lt_cv_nm_interface="MS dumpbin"
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8032 $as_echo "$lt_cv_nm_interface" >&6; }
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8035 $as_echo_n "checking whether ln -s works... " >&6; }
8037 if test "$LN_S" = "ln -s"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8039 $as_echo "yes" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8042 $as_echo "no, using $LN_S" >&6; }
8045 # find the maximum length of command line arguments
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8047 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8048 if ${lt_cv_sys_max_cmd_len+:} false; then :
8049 $as_echo_n "(cached) " >&6
8056 # On DJGPP, this test can blow up pretty badly due to problems in libc
8057 # (any single argument exceeding 2000 bytes causes a buffer overrun
8058 # during glob expansion). Even if it were fixed, the result of this
8059 # check would be larger than it should be.
8060 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8064 # Under GNU Hurd, this test is not required because there is
8065 # no limit to the length of command line arguments.
8066 # Libtool will interpret -1 as no limit whatsoever
8067 lt_cv_sys_max_cmd_len=-1;
8070 cygwin* | mingw* | cegcc*)
8071 # On Win9x/ME, this test blows up -- it succeeds, but takes
8072 # about 5 minutes as the teststring grows exponentially.
8073 # Worse, since 9x/ME are not pre-emptively multitasking,
8074 # you end up with a "frozen" computer, even though with patience
8075 # the test eventually succeeds (with a max line length of 256k).
8076 # Instead, let's just punt: use the minimum linelength reported by
8077 # all of the supported platforms: 8192 (on NT/2K/XP).
8078 lt_cv_sys_max_cmd_len=8192;
8082 # On MiNT this can take a long time and run out of memory.
8083 lt_cv_sys_max_cmd_len=8192;
8087 # On AmigaOS with pdksh, this test takes hours, literally.
8088 # So we just punt and use a minimum line length of 8192.
8089 lt_cv_sys_max_cmd_len=8192;
8092 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8093 # This has been around since 386BSD, at least. Likely further.
8094 if test -x /sbin/sysctl; then
8095 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8096 elif test -x /usr/sbin/sysctl; then
8097 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8099 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8101 # And add a safety zone
8102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8107 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8108 lt_cv_sys_max_cmd_len=196608
8112 # The test takes a long time on OS/2.
8113 lt_cv_sys_max_cmd_len=8192
8117 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8118 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8119 # nice to cause kernel panics so lets avoid the loop below.
8120 # First set a reasonable default.
8121 lt_cv_sys_max_cmd_len=16384
8123 if test -x /sbin/sysconfig; then
8124 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8125 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8130 lt_cv_sys_max_cmd_len=102400
8132 sysv5* | sco5v6* | sysv4.2uw2*)
8133 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8134 if test -n "$kargmax"; then
8135 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8137 lt_cv_sys_max_cmd_len=32768
8141 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8142 if test -n "$lt_cv_sys_max_cmd_len" && \
8143 test undefined != "$lt_cv_sys_max_cmd_len"; then
8144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8147 # Make teststring a little bigger before we do anything with it.
8148 # a 1K string should be a reasonable start.
8149 for i in 1 2 3 4 5 6 7 8; do
8150 teststring=$teststring$teststring
8152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8153 # If test is not a shell built-in, we'll probably end up computing a
8154 # maximum length that is only half of the actual maximum length, but
8156 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8157 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8158 test 17 != "$i" # 1/2 MB should be enough
8161 teststring=$teststring$teststring
8163 # Only check the string length outside the loop.
8164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8166 # Add a significant safety factor because C++ compilers can tack on
8167 # massive amounts of additional arguments before passing them to the
8168 # linker. It appears as though 1/2 is a usable value.
8169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8176 if test -n "$lt_cv_sys_max_cmd_len"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8178 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8181 $as_echo "none" >&6; }
8183 max_cmd_len=$lt_cv_sys_max_cmd_len
8194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8204 # test EBCDIC or ASCII
8205 case `echo X|tr X '\101'` in
8206 A) # ASCII based system
8207 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8208 lt_SP2NL='tr \040 \012'
8209 lt_NL2SP='tr \015\012 \040\040'
8211 *) # EBCDIC based system
8212 lt_SP2NL='tr \100 \n'
8213 lt_NL2SP='tr \r\n \100\100'
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8226 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8227 if ${lt_cv_to_host_file_cmd+:} false; then :
8228 $as_echo_n "(cached) " >&6
8233 *-*-mingw* ) # actually msys
8234 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8237 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8239 * ) # otherwise, assume *nix
8240 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8246 *-*-mingw* ) # actually msys
8247 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8250 lt_cv_to_host_file_cmd=func_convert_file_noop
8252 * ) # otherwise, assume *nix
8253 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8257 * ) # unhandled hosts (and "normal" native builds)
8258 lt_cv_to_host_file_cmd=func_convert_file_noop
8264 to_host_file_cmd=$lt_cv_to_host_file_cmd
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8266 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8273 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8274 if ${lt_cv_to_tool_file_cmd+:} false; then :
8275 $as_echo_n "(cached) " >&6
8277 #assume ordinary cross tools, or native build.
8278 lt_cv_to_tool_file_cmd=func_convert_file_noop
8282 *-*-mingw* ) # actually msys
8283 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8291 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8293 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8300 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8301 if ${lt_cv_ld_reload_flag+:} false; then :
8302 $as_echo_n "(cached) " >&6
8304 lt_cv_ld_reload_flag='-r'
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8307 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8308 reload_flag=$lt_cv_ld_reload_flag
8309 case $reload_flag in
8311 *) reload_flag=" $reload_flag" ;;
8313 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8315 cygwin* | mingw* | pw32* | cegcc*)
8316 if test yes != "$GCC"; then
8321 if test yes = "$GCC"; then
8322 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8337 if test -n "$ac_tool_prefix"; then
8338 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8339 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if ${ac_cv_prog_OBJDUMP+:} false; then :
8343 $as_echo_n "(cached) " >&6
8345 if test -n "$OBJDUMP"; then
8346 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8355 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 OBJDUMP=$ac_cv_prog_OBJDUMP
8366 if test -n "$OBJDUMP"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8368 $as_echo "$OBJDUMP" >&6; }
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8376 if test -z "$ac_cv_prog_OBJDUMP"; then
8377 ac_ct_OBJDUMP=$OBJDUMP
8378 # Extract the first word of "objdump", so it can be a program name with args.
8379 set dummy objdump; ac_word=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8383 $as_echo_n "(cached) " >&6
8385 if test -n "$ac_ct_OBJDUMP"; then
8386 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8406 if test -n "$ac_ct_OBJDUMP"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8408 $as_echo "$ac_ct_OBJDUMP" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8414 if test "x$ac_ct_OBJDUMP" = x; then
8417 case $cross_compiling:$ac_tool_warned in
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8421 ac_tool_warned=yes ;;
8423 OBJDUMP=$ac_ct_OBJDUMP
8426 OBJDUMP="$ac_cv_prog_OBJDUMP"
8429 test -z "$OBJDUMP" && OBJDUMP=objdump
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8437 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8438 if ${lt_cv_deplibs_check_method+:} false; then :
8439 $as_echo_n "(cached) " >&6
8441 lt_cv_file_magic_cmd='$MAGIC_CMD'
8442 lt_cv_file_magic_test_file=
8443 lt_cv_deplibs_check_method='unknown'
8444 # Need to set the preceding variable on all platforms that support
8445 # interlibrary dependencies.
8446 # 'none' -- dependencies not supported.
8447 # 'unknown' -- same as none, but documents that we really don't know.
8448 # 'pass_all' -- all dependencies passed with no checks.
8449 # 'test_compile' -- check by making test program.
8450 # 'file_magic [[regex]]' -- check by looking for files in library path
8451 # that responds to the $file_magic_cmd with a given extended regex.
8452 # If you have 'file' or equivalent on your system and you're not sure
8453 # whether 'pass_all' will *always* work, you probably want this one.
8457 lt_cv_deplibs_check_method=pass_all
8461 lt_cv_deplibs_check_method=pass_all
8465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8466 lt_cv_file_magic_cmd='/usr/bin/file -L'
8467 lt_cv_file_magic_test_file=/shlib/libc.so
8471 # func_win32_libid is a shell function defined in ltmain.sh
8472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8473 lt_cv_file_magic_cmd='func_win32_libid'
8477 # Base MSYS/MinGW do not provide the 'file' command needed by
8478 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8479 # unless we find 'file', for example because we are cross-compiling.
8480 if ( file / ) >/dev/null 2>&1; then
8481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8482 lt_cv_file_magic_cmd='func_win32_libid'
8484 # Keep this pattern in sync with the one in func_win32_libid.
8485 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8486 lt_cv_file_magic_cmd='$OBJDUMP -f'
8491 # use the weaker test based on 'objdump'. See mingw*.
8492 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8493 lt_cv_file_magic_cmd='$OBJDUMP -f'
8496 darwin* | rhapsody*)
8497 lt_cv_deplibs_check_method=pass_all
8500 freebsd* | dragonfly*)
8501 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8504 # Not sure whether the presence of OpenBSD here was a mistake.
8505 # Let's accept both of them until this is cleared up.
8506 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8507 lt_cv_file_magic_cmd=/usr/bin/file
8508 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8512 lt_cv_deplibs_check_method=pass_all
8517 lt_cv_deplibs_check_method=pass_all
8520 hpux10.20* | hpux11*)
8521 lt_cv_file_magic_cmd=/usr/bin/file
8524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8525 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8528 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]'
8529 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8532 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8533 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8539 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8543 irix5* | irix6* | nonstopux*)
8545 *-32|*"-32 ") libmagic=32-bit;;
8546 *-n32|*"-n32 ") libmagic=N32;;
8547 *-64|*"-64 ") libmagic=64-bit;;
8548 *) libmagic=never-match;;
8550 lt_cv_deplibs_check_method=pass_all
8553 # This must be glibc/ELF.
8554 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8555 lt_cv_deplibs_check_method=pass_all
8558 netbsd* | netbsdelf*-gnu)
8559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8568 lt_cv_file_magic_cmd=/usr/bin/file
8569 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8573 lt_cv_deplibs_check_method=pass_all
8577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8584 osf3* | osf4* | osf5*)
8585 lt_cv_deplibs_check_method=pass_all
8589 lt_cv_deplibs_check_method=pass_all
8593 lt_cv_deplibs_check_method=pass_all
8596 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8597 lt_cv_deplibs_check_method=pass_all
8601 case $host_vendor in
8603 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]'
8604 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8607 lt_cv_deplibs_check_method=pass_all
8610 lt_cv_file_magic_cmd='/bin/file'
8611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8614 lt_cv_file_magic_cmd='/bin/file'
8615 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8616 lt_cv_file_magic_test_file=/lib/libc.so
8619 lt_cv_deplibs_check_method=pass_all
8622 lt_cv_deplibs_check_method=pass_all
8628 lt_cv_deplibs_check_method=pass_all
8631 lt_cv_deplibs_check_method=pass_all
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8637 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8641 if test "$build" = "$host"; then
8644 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8647 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8653 file_magic_cmd=$lt_cv_file_magic_cmd
8654 deplibs_check_method=$lt_cv_deplibs_check_method
8655 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8678 if test -n "$ac_tool_prefix"; then
8679 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8680 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if ${ac_cv_prog_DLLTOOL+:} false; then :
8684 $as_echo_n "(cached) " >&6
8686 if test -n "$DLLTOOL"; then
8687 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8696 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 DLLTOOL=$ac_cv_prog_DLLTOOL
8707 if test -n "$DLLTOOL"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8709 $as_echo "$DLLTOOL" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8717 if test -z "$ac_cv_prog_DLLTOOL"; then
8718 ac_ct_DLLTOOL=$DLLTOOL
8719 # Extract the first word of "dlltool", so it can be a program name with args.
8720 set dummy dlltool; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8724 $as_echo_n "(cached) " >&6
8726 if test -n "$ac_ct_DLLTOOL"; then
8727 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8747 if test -n "$ac_ct_DLLTOOL"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8749 $as_echo "$ac_ct_DLLTOOL" >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8755 if test "x$ac_ct_DLLTOOL" = x; then
8758 case $cross_compiling:$ac_tool_warned in
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8762 ac_tool_warned=yes ;;
8764 DLLTOOL=$ac_ct_DLLTOOL
8767 DLLTOOL="$ac_cv_prog_DLLTOOL"
8770 test -z "$DLLTOOL" && DLLTOOL=dlltool
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8779 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8780 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8781 $as_echo_n "(cached) " >&6
8783 lt_cv_sharedlib_from_linklib_cmd='unknown'
8786 cygwin* | mingw* | pw32* | cegcc*)
8787 # two different shell functions defined in ltmain.sh;
8788 # decide which one to use based on capabilities of $DLLTOOL
8789 case `$DLLTOOL --help 2>&1` in
8790 *--identify-strict*)
8791 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8794 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8799 # fallback: assume linklib IS sharedlib
8800 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8806 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8807 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8808 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8816 if test -n "$ac_tool_prefix"; then
8819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if ${ac_cv_prog_AR+:} false; then :
8824 $as_echo_n "(cached) " >&6
8826 if test -n "$AR"; then
8827 ac_cv_prog_AR="$AR" # Let the user override the test.
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 if test -n "$AR"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8849 $as_echo "$AR" >&6; }
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8856 test -n "$AR" && break
8859 if test -z "$AR"; then
8863 # Extract the first word of "$ac_prog", so it can be a program name with args.
8864 set dummy $ac_prog; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8868 $as_echo_n "(cached) " >&6
8870 if test -n "$ac_ct_AR"; then
8871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8880 ac_cv_prog_ac_ct_AR="$ac_prog"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8891 if test -n "$ac_ct_AR"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8893 $as_echo "$ac_ct_AR" >&6; }
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8900 test -n "$ac_ct_AR" && break
8903 if test "x$ac_ct_AR" = x; then
8906 case $cross_compiling:$ac_tool_warned in
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8910 ac_tool_warned=yes ;;
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8930 $as_echo_n "checking for archiver @FILE support... " >&6; }
8931 if ${lt_cv_ar_at_file+:} false; then :
8932 $as_echo_n "(cached) " >&6
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8945 if ac_fn_c_try_compile "$LINENO"; then :
8946 echo conftest.$ac_objext > conftest.lst
8947 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8949 (eval $lt_ar_try) 2>&5
8951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8952 test $ac_status = 0; }
8953 if test 0 -eq "$ac_status"; then
8954 # Ensure the archiver fails upon bogus file names.
8955 rm -f conftest.$ac_objext libconftest.a
8956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8957 (eval $lt_ar_try) 2>&5
8959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8960 test $ac_status = 0; }
8961 if test 0 -ne "$ac_status"; then
8965 rm -f conftest.* libconftest.a
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8972 $as_echo "$lt_cv_ar_at_file" >&6; }
8974 if test no = "$lt_cv_ar_at_file"; then
8977 archiver_list_spec=$lt_cv_ar_at_file
8986 if test -n "$ac_tool_prefix"; then
8987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8988 set dummy ${ac_tool_prefix}strip; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_STRIP+:} false; then :
8992 $as_echo_n "(cached) " >&6
8994 if test -n "$STRIP"; then
8995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014 STRIP=$ac_cv_prog_STRIP
9015 if test -n "$STRIP"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9017 $as_echo "$STRIP" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9025 if test -z "$ac_cv_prog_STRIP"; then
9027 # Extract the first word of "strip", so it can be a program name with args.
9028 set dummy strip; ac_word=$2
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 $as_echo_n "checking for $ac_word... " >&6; }
9031 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9032 $as_echo_n "(cached) " >&6
9034 if test -n "$ac_ct_STRIP"; then
9035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 test -z "$as_dir" && as_dir=.
9042 for ac_exec_ext in '' $ac_executable_extensions; do
9043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9044 ac_cv_prog_ac_ct_STRIP="strip"
9045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9055 if test -n "$ac_ct_STRIP"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9057 $as_echo "$ac_ct_STRIP" >&6; }
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9063 if test "x$ac_ct_STRIP" = x; then
9066 case $cross_compiling:$ac_tool_warned in
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9070 ac_tool_warned=yes ;;
9075 STRIP="$ac_cv_prog_STRIP"
9078 test -z "$STRIP" && STRIP=:
9085 if test -n "$ac_tool_prefix"; then
9086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if ${ac_cv_prog_RANLIB+:} false; then :
9091 $as_echo_n "(cached) " >&6
9093 if test -n "$RANLIB"; then
9094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 RANLIB=$ac_cv_prog_RANLIB
9114 if test -n "$RANLIB"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9116 $as_echo "$RANLIB" >&6; }
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9124 if test -z "$ac_cv_prog_RANLIB"; then
9125 ac_ct_RANLIB=$RANLIB
9126 # Extract the first word of "ranlib", so it can be a program name with args.
9127 set dummy ranlib; ac_word=$2
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9131 $as_echo_n "(cached) " >&6
9133 if test -n "$ac_ct_RANLIB"; then
9134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143 ac_cv_prog_ac_ct_RANLIB="ranlib"
9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9154 if test -n "$ac_ct_RANLIB"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9156 $as_echo "$ac_ct_RANLIB" >&6; }
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9162 if test "x$ac_ct_RANLIB" = x; then
9165 case $cross_compiling:$ac_tool_warned in
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9169 ac_tool_warned=yes ;;
9171 RANLIB=$ac_ct_RANLIB
9174 RANLIB="$ac_cv_prog_RANLIB"
9177 test -z "$RANLIB" && RANLIB=:
9184 # Determine commands to create old-style static archives.
9185 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9186 old_postinstall_cmds='chmod 644 $oldlib'
9187 old_postuninstall_cmds=
9189 if test -n "$RANLIB"; then
9192 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9198 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9203 lock_old_archive_extraction=yes ;;
9205 lock_old_archive_extraction=no ;;
9246 # If no C compiler was specified, use CC.
9249 # If no C compiler flags were specified, use CFLAGS.
9250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9252 # Allow CC to be a program name with arguments.
9256 # Check for command to grab the raw symbol name followed by C symbol from nm.
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9258 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9259 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9260 $as_echo_n "(cached) " >&6
9263 # These are sane defaults that work on at least a few old systems.
9264 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9266 # Character class describing NM global symbol codes.
9267 symcode='[BCDEGRST]'
9269 # Regexp to match symbols that can be accessed directly from C.
9270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9272 # Define system-specific variables.
9277 cygwin* | mingw* | pw32* | cegcc*)
9278 symcode='[ABCDGISTW]'
9281 if test ia64 = "$host_cpu"; then
9282 symcode='[ABCDEGRST]'
9286 symcode='[BCDEGRST]'
9289 symcode='[BCDEGQRST]'
9300 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9308 # If we're using GNU nm, then use its standard symbol codes.
9309 case `$NM -V 2>&1` in
9310 *GNU* | *'with BFD'*)
9311 symcode='[ABCDGIRSTW]' ;;
9314 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9315 # Gets list of data symbols to import.
9316 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9317 # Adjust the below global symbol transforms to fixup imported variables.
9318 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9319 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9320 lt_c_name_lib_hook="\
9321 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9322 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9324 # Disable hooks by default.
9325 lt_cv_sys_global_symbol_to_import=
9331 # Transform an extracted symbol line into a proper C declaration.
9332 # Some systems (esp. on ia64) link data and code symbols differently,
9333 # so use this general approach.
9334 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9336 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9337 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9339 # Transform an extracted symbol line into symbol name and symbol address
9340 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9342 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9343 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9345 # Transform an extracted symbol line into symbol name with lib prefix and
9347 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9348 $lt_c_name_lib_hook\
9349 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9350 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9351 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9353 # Handle CRLF in mingw tool chain
9357 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9361 # Try without a prefix underscore, then with it.
9362 for ac_symprfx in "" "_"; do
9364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9365 symxfrm="\\1 $ac_symprfx\\2 \\2"
9367 # Write the raw and C identifiers.
9368 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9369 # Fake it for dumpbin and say T for any non-static function,
9370 # D for any global variable and I for any imported variable.
9371 # Also find C++ and __fastcall symbols from MSVC++,
9372 # which start with @ or ?.
9373 lt_cv_sys_global_symbol_pipe="$AWK '"\
9374 " {last_section=section; section=\$ 3};"\
9375 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9376 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9377 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9378 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9379 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9380 " \$ 0!~/External *\|/{next};"\
9381 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9382 " {if(hide[section]) next};"\
9383 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9384 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9385 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9386 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9387 " ' prfx=^$ac_symprfx"
9389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9391 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9393 # Check to see that the pipe works correctly.
9397 cat > conftest.$ac_ext <<_LT_EOF
9402 void nm_test_func(void);
9403 void nm_test_func(void){}
9407 int main(){nm_test_var='a';nm_test_func();return(0);}
9410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9411 (eval $ac_compile) 2>&5
9413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9414 test $ac_status = 0; }; then
9415 # Now try to grab the symbols.
9417 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9418 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9419 # Try sorting and uniquifying the output.
9420 if sort "$nlist" | uniq > "$nlist"T; then
9421 mv -f "$nlist"T "$nlist"
9426 # Make sure that we snagged all the symbols we need.
9427 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9428 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9429 cat <<_LT_EOF > conftest.$ac_ext
9430 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9431 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9432 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9433 relocations are performed -- see ld's documentation on pseudo-relocs. */
9434 # define LT_DLSYM_CONST
9435 #elif defined __osf__
9436 /* This system does not cope well with relocations in const data. */
9437 # define LT_DLSYM_CONST
9439 # define LT_DLSYM_CONST const
9447 # Now generate the symbol file.
9448 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9450 cat <<_LT_EOF >> conftest.$ac_ext
9452 /* The mapping between symbol names and symbols. */
9453 LT_DLSYM_CONST struct {
9457 lt__PROGRAM__LTX_preloaded_symbols[] =
9459 { "@PROGRAM@", (void *) 0 },
9461 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9462 cat <<\_LT_EOF >> conftest.$ac_ext
9466 /* This works around a problem in FreeBSD linker */
9467 #ifdef FREEBSD_WORKAROUND
9468 static const void *lt_preloaded_setup() {
9469 return lt__PROGRAM__LTX_preloaded_symbols;
9477 # Now try linking the two files.
9478 mv -f conftest.$ac_objext conftstm.$ac_objext
9479 lt_globsym_save_LIBS=$LIBS
9480 lt_globsym_save_CFLAGS=$CFLAGS
9481 LIBS=conftstm.$ac_objext
9482 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9484 (eval $ac_link) 2>&5
9486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9487 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9490 LIBS=$lt_globsym_save_LIBS
9491 CFLAGS=$lt_globsym_save_CFLAGS
9493 echo "cannot find nm_test_func in $nlist" >&5
9496 echo "cannot find nm_test_var in $nlist" >&5
9499 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9502 echo "$progname: failed program was:" >&5
9503 cat conftest.$ac_ext >&5
9505 rm -rf conftest* conftst*
9507 # Do not use the global_symbol_pipe unless it works.
9508 if test yes = "$pipe_works"; then
9511 lt_cv_sys_global_symbol_pipe=
9517 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9518 lt_cv_sys_global_symbol_to_cdecl=
9520 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9522 $as_echo "failed" >&6; }
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9525 $as_echo "ok" >&6; }
9528 # Response file support.
9529 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9530 nm_file_list_spec='@'
9531 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9532 nm_file_list_spec='@'
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9572 $as_echo_n "checking for sysroot... " >&6; }
9574 # Check whether --with-sysroot was given.
9575 if test "${with_sysroot+set}" = set; then :
9576 withval=$with_sysroot;
9583 case $with_sysroot in #(
9585 if test yes = "$GCC"; then
9586 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9590 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9596 $as_echo "$with_sysroot" >&6; }
9597 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9602 $as_echo "${lt_sysroot:-no}" >&6; }
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9609 $as_echo_n "checking for a working dd... " >&6; }
9610 if ${ac_cv_path_lt_DD+:} false; then :
9611 $as_echo_n "(cached) " >&6
9613 printf 0123456789abcdef0123456789abcdef >conftest.i
9614 cat conftest.i conftest.i >conftest2.i
9616 if test -z "$lt_DD"; then
9617 ac_path_lt_DD_found=false
9618 # Loop through the user's path and test for each of PROGNAME-LIST
9619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623 test -z "$as_dir" && as_dir=.
9624 for ac_prog in dd; do
9625 for ac_exec_ext in '' $ac_executable_extensions; do
9626 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9627 as_fn_executable_p "$ac_path_lt_DD" || continue
9628 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9629 cmp -s conftest.i conftest.out \
9630 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9632 $ac_path_lt_DD_found && break 3
9637 if test -z "$ac_cv_path_lt_DD"; then
9641 ac_cv_path_lt_DD=$lt_DD
9644 rm -f conftest.i conftest2.i conftest.out
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9647 $as_echo "$ac_cv_path_lt_DD" >&6; }
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9651 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9652 if ${lt_cv_truncate_bin+:} false; then :
9653 $as_echo_n "(cached) " >&6
9655 printf 0123456789abcdef0123456789abcdef >conftest.i
9656 cat conftest.i conftest.i >conftest2.i
9658 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9659 cmp -s conftest.i conftest.out \
9660 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9662 rm -f conftest.i conftest2.i conftest.out
9663 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9666 $as_echo "$lt_cv_truncate_bin" >&6; }
9674 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9677 for cc_temp in $*""; do
9679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9685 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9688 # Check whether --enable-libtool-lock was given.
9689 if test "${enable_libtool_lock+set}" = set; then :
9690 enableval=$enable_libtool_lock;
9693 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9695 # Some flags need to be propagated to the compiler or linker for good
9699 # Find out what ABI is being produced by ac_compile, and set mode
9700 # options accordingly.
9701 echo 'int i;' > conftest.$ac_ext
9702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9703 (eval $ac_compile) 2>&5
9705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9706 test $ac_status = 0; }; then
9707 case `/usr/bin/file conftest.$ac_objext` in
9719 # Find out what ABI is being produced by ac_compile, and set linker
9720 # options accordingly.
9721 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9723 (eval $ac_compile) 2>&5
9725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9726 test $ac_status = 0; }; then
9727 if test yes = "$lt_cv_prog_gnu_ld"; then
9728 case `/usr/bin/file conftest.$ac_objext` in
9730 LD="${LD-ld} -melf32bsmip"
9733 LD="${LD-ld} -melf32bmipn32"
9736 LD="${LD-ld} -melf64bmip"
9740 case `/usr/bin/file conftest.$ac_objext` in
9757 # Find out what ABI is being produced by ac_compile, and set linker
9758 # options accordingly.
9759 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9761 (eval $ac_compile) 2>&5
9763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9764 test $ac_status = 0; }; then
9766 case `/usr/bin/file conftest.$ac_objext` in
9774 case `/usr/bin/file conftest.$ac_objext` in
9776 emul="${emul}btsmip"
9779 emul="${emul}ltsmip"
9782 case `/usr/bin/file conftest.$ac_objext` in
9787 LD="${LD-ld} -m $emul"
9792 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9793 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9794 # Find out what ABI is being produced by ac_compile, and set linker
9795 # options accordingly. Note that the listed cases only cover the
9796 # situations where additional linker options are needed (such as when
9797 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9798 # vice versa); the common cases where no linker options are needed do
9799 # not appear in the list.
9800 echo 'int i;' > conftest.$ac_ext
9801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9802 (eval $ac_compile) 2>&5
9804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805 test $ac_status = 0; }; then
9806 case `/usr/bin/file conftest.o` in
9809 x86_64-*kfreebsd*-gnu)
9810 LD="${LD-ld} -m elf_i386_fbsd"
9813 case `/usr/bin/file conftest.o` in
9815 LD="${LD-ld} -m elf32_x86_64"
9818 LD="${LD-ld} -m elf_i386"
9822 powerpc64le-*linux*)
9823 LD="${LD-ld} -m elf32lppclinux"
9826 LD="${LD-ld} -m elf32ppclinux"
9829 LD="${LD-ld} -m elf_s390"
9832 LD="${LD-ld} -m elf32_sparc"
9838 x86_64-*kfreebsd*-gnu)
9839 LD="${LD-ld} -m elf_x86_64_fbsd"
9842 LD="${LD-ld} -m elf_x86_64"
9845 LD="${LD-ld} -m elf64lppc"
9848 LD="${LD-ld} -m elf64ppc"
9850 s390*-*linux*|s390*-*tpf*)
9851 LD="${LD-ld} -m elf64_s390"
9854 LD="${LD-ld} -m elf64_sparc"
9864 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9866 CFLAGS="$CFLAGS -belf"
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9868 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9869 if ${lt_cv_cc_needs_belf+:} false; then :
9870 $as_echo_n "(cached) " >&6
9873 ac_cpp='$CPP $CPPFLAGS'
9874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9888 if ac_fn_c_try_link "$LINENO"; then :
9889 lt_cv_cc_needs_belf=yes
9891 lt_cv_cc_needs_belf=no
9893 rm -f core conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9896 ac_cpp='$CPP $CPPFLAGS'
9897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9903 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9904 if test yes != "$lt_cv_cc_needs_belf"; then
9905 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9910 # Find out what ABI is being produced by ac_compile, and set linker
9911 # options accordingly.
9912 echo 'int i;' > conftest.$ac_ext
9913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9914 (eval $ac_compile) 2>&5
9916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9917 test $ac_status = 0; }; then
9918 case `/usr/bin/file conftest.o` in
9920 case $lt_cv_prog_gnu_ld in
9923 i?86-*-solaris*|x86_64-*-solaris*)
9924 LD="${LD-ld} -m elf_x86_64"
9927 LD="${LD-ld} -m elf64_sparc"
9930 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9931 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9936 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9948 need_locks=$enable_libtool_lock
9950 if test -n "$ac_tool_prefix"; then
9951 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9952 set dummy ${ac_tool_prefix}mt; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9956 $as_echo_n "(cached) " >&6
9958 if test -n "$MANIFEST_TOOL"; then
9959 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9979 if test -n "$MANIFEST_TOOL"; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9981 $as_echo "$MANIFEST_TOOL" >&6; }
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9989 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9990 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9991 # Extract the first word of "mt", so it can be a program name with args.
9992 set dummy mt; ac_word=$2
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994 $as_echo_n "checking for $ac_word... " >&6; }
9995 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9996 $as_echo_n "(cached) " >&6
9998 if test -n "$ac_ct_MANIFEST_TOOL"; then
9999 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10019 if test -n "$ac_ct_MANIFEST_TOOL"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10021 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10027 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10030 case $cross_compiling:$ac_tool_warned in
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10034 ac_tool_warned=yes ;;
10036 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10039 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10042 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10044 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10045 if ${lt_cv_path_mainfest_tool+:} false; then :
10046 $as_echo_n "(cached) " >&6
10048 lt_cv_path_mainfest_tool=no
10049 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10050 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10051 cat conftest.err >&5
10052 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10053 lt_cv_path_mainfest_tool=yes
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10058 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10059 if test yes != "$lt_cv_path_mainfest_tool"; then
10069 rhapsody* | darwin*)
10070 if test -n "$ac_tool_prefix"; then
10071 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10072 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074 $as_echo_n "checking for $ac_word... " >&6; }
10075 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10076 $as_echo_n "(cached) " >&6
10078 if test -n "$DSYMUTIL"; then
10079 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082 for as_dir in $PATH
10085 test -z "$as_dir" && as_dir=.
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10099 if test -n "$DSYMUTIL"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10101 $as_echo "$DSYMUTIL" >&6; }
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10109 if test -z "$ac_cv_prog_DSYMUTIL"; then
10110 ac_ct_DSYMUTIL=$DSYMUTIL
10111 # Extract the first word of "dsymutil", so it can be a program name with args.
10112 set dummy dsymutil; ac_word=$2
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114 $as_echo_n "checking for $ac_word... " >&6; }
10115 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10116 $as_echo_n "(cached) " >&6
10118 if test -n "$ac_ct_DSYMUTIL"; then
10119 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122 for as_dir in $PATH
10125 test -z "$as_dir" && as_dir=.
10126 for ac_exec_ext in '' $ac_executable_extensions; do
10127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10128 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10139 if test -n "$ac_ct_DSYMUTIL"; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10141 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10147 if test "x$ac_ct_DSYMUTIL" = x; then
10150 case $cross_compiling:$ac_tool_warned in
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10154 ac_tool_warned=yes ;;
10156 DSYMUTIL=$ac_ct_DSYMUTIL
10159 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10162 if test -n "$ac_tool_prefix"; then
10163 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10164 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if ${ac_cv_prog_NMEDIT+:} false; then :
10168 $as_echo_n "(cached) " >&6
10170 if test -n "$NMEDIT"; then
10171 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 NMEDIT=$ac_cv_prog_NMEDIT
10191 if test -n "$NMEDIT"; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10193 $as_echo "$NMEDIT" >&6; }
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10201 if test -z "$ac_cv_prog_NMEDIT"; then
10202 ac_ct_NMEDIT=$NMEDIT
10203 # Extract the first word of "nmedit", so it can be a program name with args.
10204 set dummy nmedit; ac_word=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10208 $as_echo_n "(cached) " >&6
10210 if test -n "$ac_ct_NMEDIT"; then
10211 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214 for as_dir in $PATH
10217 test -z "$as_dir" && as_dir=.
10218 for ac_exec_ext in '' $ac_executable_extensions; do
10219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10220 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10231 if test -n "$ac_ct_NMEDIT"; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10233 $as_echo "$ac_ct_NMEDIT" >&6; }
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10239 if test "x$ac_ct_NMEDIT" = x; then
10242 case $cross_compiling:$ac_tool_warned in
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10246 ac_tool_warned=yes ;;
10248 NMEDIT=$ac_ct_NMEDIT
10251 NMEDIT="$ac_cv_prog_NMEDIT"
10254 if test -n "$ac_tool_prefix"; then
10255 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10256 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if ${ac_cv_prog_LIPO+:} false; then :
10260 $as_echo_n "(cached) " >&6
10262 if test -n "$LIPO"; then
10263 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10269 test -z "$as_dir" && as_dir=.
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10272 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10282 LIPO=$ac_cv_prog_LIPO
10283 if test -n "$LIPO"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10285 $as_echo "$LIPO" >&6; }
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10293 if test -z "$ac_cv_prog_LIPO"; then
10295 # Extract the first word of "lipo", so it can be a program name with args.
10296 set dummy lipo; ac_word=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10300 $as_echo_n "(cached) " >&6
10302 if test -n "$ac_ct_LIPO"; then
10303 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306 for as_dir in $PATH
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10312 ac_cv_prog_ac_ct_LIPO="lipo"
10313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10323 if test -n "$ac_ct_LIPO"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10325 $as_echo "$ac_ct_LIPO" >&6; }
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10331 if test "x$ac_ct_LIPO" = x; then
10334 case $cross_compiling:$ac_tool_warned in
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10338 ac_tool_warned=yes ;;
10343 LIPO="$ac_cv_prog_LIPO"
10346 if test -n "$ac_tool_prefix"; then
10347 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10348 set dummy ${ac_tool_prefix}otool; ac_word=$2
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 $as_echo_n "checking for $ac_word... " >&6; }
10351 if ${ac_cv_prog_OTOOL+:} false; then :
10352 $as_echo_n "(cached) " >&6
10354 if test -n "$OTOOL"; then
10355 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 OTOOL=$ac_cv_prog_OTOOL
10375 if test -n "$OTOOL"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10377 $as_echo "$OTOOL" >&6; }
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10385 if test -z "$ac_cv_prog_OTOOL"; then
10387 # Extract the first word of "otool", so it can be a program name with args.
10388 set dummy otool; ac_word=$2
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390 $as_echo_n "checking for $ac_word... " >&6; }
10391 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10392 $as_echo_n "(cached) " >&6
10394 if test -n "$ac_ct_OTOOL"; then
10395 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398 for as_dir in $PATH
10401 test -z "$as_dir" && as_dir=.
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10404 ac_cv_prog_ac_ct_OTOOL="otool"
10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10415 if test -n "$ac_ct_OTOOL"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10417 $as_echo "$ac_ct_OTOOL" >&6; }
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10423 if test "x$ac_ct_OTOOL" = x; then
10426 case $cross_compiling:$ac_tool_warned in
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10430 ac_tool_warned=yes ;;
10435 OTOOL="$ac_cv_prog_OTOOL"
10438 if test -n "$ac_tool_prefix"; then
10439 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10440 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 $as_echo_n "checking for $ac_word... " >&6; }
10443 if ${ac_cv_prog_OTOOL64+:} false; then :
10444 $as_echo_n "(cached) " >&6
10446 if test -n "$OTOOL64"; then
10447 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 OTOOL64=$ac_cv_prog_OTOOL64
10467 if test -n "$OTOOL64"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10469 $as_echo "$OTOOL64" >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10477 if test -z "$ac_cv_prog_OTOOL64"; then
10478 ac_ct_OTOOL64=$OTOOL64
10479 # Extract the first word of "otool64", so it can be a program name with args.
10480 set dummy otool64; ac_word=$2
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482 $as_echo_n "checking for $ac_word... " >&6; }
10483 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10484 $as_echo_n "(cached) " >&6
10486 if test -n "$ac_ct_OTOOL64"; then
10487 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_prog_ac_ct_OTOOL64="otool64"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10506 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10507 if test -n "$ac_ct_OTOOL64"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10509 $as_echo "$ac_ct_OTOOL64" >&6; }
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10515 if test "x$ac_ct_OTOOL64" = x; then
10518 case $cross_compiling:$ac_tool_warned in
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10522 ac_tool_warned=yes ;;
10524 OTOOL64=$ac_ct_OTOOL64
10527 OTOOL64="$ac_cv_prog_OTOOL64"
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10557 $as_echo_n "checking for -single_module linker flag... " >&6; }
10558 if ${lt_cv_apple_cc_single_mod+:} false; then :
10559 $as_echo_n "(cached) " >&6
10561 lt_cv_apple_cc_single_mod=no
10562 if test -z "$LT_MULTI_MODULE"; then
10563 # By default we will add the -single_module flag. You can override
10564 # by either setting the environment variable LT_MULTI_MODULE
10565 # non-empty at configure time, or by adding -multi_module to the
10567 rm -rf libconftest.dylib*
10568 echo "int foo(void){return 1;}" > conftest.c
10569 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10570 -dynamiclib -Wl,-single_module conftest.c" >&5
10571 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10572 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10574 # If there is a non-empty error log, and "single_module"
10575 # appears in it, assume the flag caused a linker warning
10576 if test -s conftest.err && $GREP single_module conftest.err; then
10577 cat conftest.err >&5
10578 # Otherwise, if the output was created with a 0 exit code from
10579 # the compiler, it worked.
10580 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10581 lt_cv_apple_cc_single_mod=yes
10583 cat conftest.err >&5
10585 rm -rf libconftest.dylib*
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10590 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10593 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10594 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10595 $as_echo_n "(cached) " >&6
10597 lt_cv_ld_exported_symbols_list=no
10598 save_LDFLAGS=$LDFLAGS
10599 echo "_main" > conftest.sym
10600 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10611 if ac_fn_c_try_link "$LINENO"; then :
10612 lt_cv_ld_exported_symbols_list=yes
10614 lt_cv_ld_exported_symbols_list=no
10616 rm -f core conftest.err conftest.$ac_objext \
10617 conftest$ac_exeext conftest.$ac_ext
10618 LDFLAGS=$save_LDFLAGS
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10622 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10625 $as_echo_n "checking for -force_load linker flag... " >&6; }
10626 if ${lt_cv_ld_force_load+:} false; then :
10627 $as_echo_n "(cached) " >&6
10629 lt_cv_ld_force_load=no
10630 cat > conftest.c << _LT_EOF
10631 int forced_loaded() { return 2;}
10633 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10634 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10635 echo "$AR cru libconftest.a conftest.o" >&5
10636 $AR cru libconftest.a conftest.o 2>&5
10637 echo "$RANLIB libconftest.a" >&5
10638 $RANLIB libconftest.a 2>&5
10639 cat > conftest.c << _LT_EOF
10640 int main() { return 0;}
10642 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10643 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10645 if test -s conftest.err && $GREP force_load conftest.err; then
10646 cat conftest.err >&5
10647 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10648 lt_cv_ld_force_load=yes
10650 cat conftest.err >&5
10652 rm -f conftest.err libconftest.a conftest conftest.c
10653 rm -rf conftest.dSYM
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10657 $as_echo "$lt_cv_ld_force_load" >&6; }
10659 rhapsody* | darwin1.[012])
10660 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10662 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10663 darwin*) # darwin 5.x on
10664 # if running on 10.5 or later, the deployment target defaults
10665 # to the OS version, if on x86, and 10.4, the deployment
10666 # target defaults to 10.4. Don't you love it?
10667 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10668 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10669 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10671 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10673 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10677 if test yes = "$lt_cv_apple_cc_single_mod"; then
10678 _lt_dar_single_mod='$single_module'
10680 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10681 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10683 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10685 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10686 _lt_dsymutil='~$DSYMUTIL $lib || :'
10693 # func_munge_path_list VARIABLE PATH
10694 # -----------------------------------
10695 # VARIABLE is name of variable containing _space_ separated list of
10696 # directories to be munged by the contents of PATH, which is string
10699 # string "DIR[ DIR]" will be prepended to VARIABLE
10701 # string "DIR[ DIR]" will be appended to VARIABLE
10702 # "DIRP[:DIRP]::[DIRA:]DIRA"
10703 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10704 # "DIRA[ DIRA]" will be appended to VARIABLE
10706 # VARIABLE will be replaced by "DIR[ DIR]"
10707 func_munge_path_list ()
10713 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10716 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10719 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10720 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10723 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10729 $as_echo_n "checking for ANSI C header files... " >&6; }
10730 if ${ac_cv_header_stdc+:} false; then :
10731 $as_echo_n "(cached) " >&6
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735 #include <stdlib.h>
10736 #include <stdarg.h>
10737 #include <string.h>
10747 if ac_fn_c_try_compile "$LINENO"; then :
10748 ac_cv_header_stdc=yes
10750 ac_cv_header_stdc=no
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10754 if test $ac_cv_header_stdc = yes; then
10755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10758 #include <string.h>
10761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10762 $EGREP "memchr" >/dev/null 2>&1; then :
10765 ac_cv_header_stdc=no
10771 if test $ac_cv_header_stdc = yes; then
10772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775 #include <stdlib.h>
10778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10779 $EGREP "free" >/dev/null 2>&1; then :
10782 ac_cv_header_stdc=no
10788 if test $ac_cv_header_stdc = yes; then
10789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10790 if test "$cross_compiling" = yes; then :
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10796 #include <stdlib.h>
10797 #if ((' ' & 0x0FF) == 0x020)
10798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10801 # define ISLOWER(c) \
10802 (('a' <= (c) && (c) <= 'i') \
10803 || ('j' <= (c) && (c) <= 'r') \
10804 || ('s' <= (c) && (c) <= 'z'))
10805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10813 for (i = 0; i < 256; i++)
10814 if (XOR (islower (i), ISLOWER (i))
10815 || toupper (i) != TOUPPER (i))
10820 if ac_fn_c_try_run "$LINENO"; then :
10823 ac_cv_header_stdc=no
10825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10826 conftest.$ac_objext conftest.beam conftest.$ac_ext
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10832 $as_echo "$ac_cv_header_stdc" >&6; }
10833 if test $ac_cv_header_stdc = yes; then
10835 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10839 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10840 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10841 inttypes.h stdint.h unistd.h
10843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10844 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10847 cat >>confdefs.h <<_ACEOF
10848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10856 for ac_header in dlfcn.h
10858 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10860 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10861 cat >>confdefs.h <<_ACEOF
10862 #define HAVE_DLFCN_H 1
10869 # ------------------------------------ #
10870 # Determine libtool default behavior #
10871 # ------------------------------------ #
10874 # Default behavior is to enable shared and static libraries on systems
10875 # where libtool knows how to build both library versions, and does not
10876 # require separate configuration and build runs for each flavor.
10879 xc_lt_want_enable_shared='yes'
10880 xc_lt_want_enable_static='yes'
10883 # User may have disabled shared or static libraries.
10885 case "x$enable_shared" in # (
10887 xc_lt_want_enable_shared='no'
10890 case "x$enable_static" in # (
10892 xc_lt_want_enable_static='no'
10895 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10896 test "x$xc_lt_want_enable_static" = 'xno'; then
10897 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10901 # Default behavior on systems that require independent configuration
10902 # and build runs for shared and static is to enable shared libraries
10903 # and disable static ones. On these systems option '--disable-shared'
10904 # must be used in order to build a proper static library.
10907 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10908 test "x$xc_lt_want_enable_static" = 'xyes'; then
10909 case $host_os in # (
10910 pw32* | cegcc* | os2* | aix*)
10911 xc_lt_want_enable_static='no'
10917 # Make libtool aware of current shared and static library preferences
10918 # taking in account that, depending on host characteristics, libtool
10919 # may modify these option preferences later in this configure script.
10922 enable_shared=$xc_lt_want_enable_shared
10923 enable_static=$xc_lt_want_enable_static
10926 # Default behavior is to build PIC objects for shared libraries and
10927 # non-PIC objects for static libraries.
10930 xc_lt_want_with_pic='default'
10933 # User may have specified PIC preference.
10936 case "x$with_pic" in # ((
10938 xc_lt_want_with_pic='no'
10941 xc_lt_want_with_pic='yes'
10946 # Default behavior on some systems where building a shared library out
10947 # of non-PIC compiled objects will fail with following linker error
10948 # "relocation R_X86_64_32 can not be used when making a shared object"
10949 # is to build PIC objects even for static libraries. This behavior may
10950 # be overridden using 'configure --disable-shared --without-pic'.
10953 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10954 case $host_cpu in # (
10955 x86_64 | amd64 | ia64)
10956 case $host_os in # (
10958 xc_lt_want_with_pic='yes'
10966 # Make libtool aware of current PIC preference taking in account that,
10967 # depending on host characteristics, libtool may modify PIC default
10968 # behavior to fit host system idiosyncrasies later in this script.
10971 with_pic=$xc_lt_want_with_pic
10973 ## ----------------------- ##
10974 ## Start of libtool code ##
10975 ## ----------------------- ##
10981 enable_win32_dll=yes
10984 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10985 if test -n "$ac_tool_prefix"; then
10986 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10987 set dummy ${ac_tool_prefix}as; ac_word=$2
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989 $as_echo_n "checking for $ac_word... " >&6; }
10990 if ${ac_cv_prog_AS+:} false; then :
10991 $as_echo_n "(cached) " >&6
10993 if test -n "$AS"; then
10994 ac_cv_prog_AS="$AS" # Let the user override the test.
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
11000 test -z "$as_dir" && as_dir=.
11001 for ac_exec_ext in '' $ac_executable_extensions; do
11002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11003 ac_cv_prog_AS="${ac_tool_prefix}as"
11004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 if test -n "$AS"; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11016 $as_echo "$AS" >&6; }
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11024 if test -z "$ac_cv_prog_AS"; then
11026 # Extract the first word of "as", so it can be a program name with args.
11027 set dummy as; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11031 $as_echo_n "(cached) " >&6
11033 if test -n "$ac_ct_AS"; then
11034 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043 ac_cv_prog_ac_ct_AS="as"
11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11053 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11054 if test -n "$ac_ct_AS"; then
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11056 $as_echo "$ac_ct_AS" >&6; }
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11062 if test "x$ac_ct_AS" = x; then
11065 case $cross_compiling:$ac_tool_warned in
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11069 ac_tool_warned=yes ;;
11074 AS="$ac_cv_prog_AS"
11077 if test -n "$ac_tool_prefix"; then
11078 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11079 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 $as_echo_n "checking for $ac_word... " >&6; }
11082 if ${ac_cv_prog_DLLTOOL+:} false; then :
11083 $as_echo_n "(cached) " >&6
11085 if test -n "$DLLTOOL"; then
11086 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11105 DLLTOOL=$ac_cv_prog_DLLTOOL
11106 if test -n "$DLLTOOL"; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11108 $as_echo "$DLLTOOL" >&6; }
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11116 if test -z "$ac_cv_prog_DLLTOOL"; then
11117 ac_ct_DLLTOOL=$DLLTOOL
11118 # Extract the first word of "dlltool", so it can be a program name with args.
11119 set dummy dlltool; ac_word=$2
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121 $as_echo_n "checking for $ac_word... " >&6; }
11122 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11123 $as_echo_n "(cached) " >&6
11125 if test -n "$ac_ct_DLLTOOL"; then
11126 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $PATH
11132 test -z "$as_dir" && as_dir=.
11133 for ac_exec_ext in '' $ac_executable_extensions; do
11134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11146 if test -n "$ac_ct_DLLTOOL"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11148 $as_echo "$ac_ct_DLLTOOL" >&6; }
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11154 if test "x$ac_ct_DLLTOOL" = x; then
11157 case $cross_compiling:$ac_tool_warned in
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11161 ac_tool_warned=yes ;;
11163 DLLTOOL=$ac_ct_DLLTOOL
11166 DLLTOOL="$ac_cv_prog_DLLTOOL"
11169 if test -n "$ac_tool_prefix"; then
11170 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11171 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173 $as_echo_n "checking for $ac_word... " >&6; }
11174 if ${ac_cv_prog_OBJDUMP+:} false; then :
11175 $as_echo_n "(cached) " >&6
11177 if test -n "$OBJDUMP"; then
11178 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $PATH
11184 test -z "$as_dir" && as_dir=.
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197 OBJDUMP=$ac_cv_prog_OBJDUMP
11198 if test -n "$OBJDUMP"; then
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11200 $as_echo "$OBJDUMP" >&6; }
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 $as_echo "no" >&6; }
11208 if test -z "$ac_cv_prog_OBJDUMP"; then
11209 ac_ct_OBJDUMP=$OBJDUMP
11210 # Extract the first word of "objdump", so it can be a program name with args.
11211 set dummy objdump; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11215 $as_echo_n "(cached) " >&6
11217 if test -n "$ac_ct_OBJDUMP"; then
11218 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11227 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11238 if test -n "$ac_ct_OBJDUMP"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11240 $as_echo "$ac_ct_OBJDUMP" >&6; }
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11246 if test "x$ac_ct_OBJDUMP" = x; then
11249 case $cross_compiling:$ac_tool_warned in
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11253 ac_tool_warned=yes ;;
11255 OBJDUMP=$ac_ct_OBJDUMP
11258 OBJDUMP="$ac_cv_prog_OBJDUMP"
11264 test -z "$AS" && AS=as
11270 test -z "$DLLTOOL" && DLLTOOL=dlltool
11276 test -z "$OBJDUMP" && OBJDUMP=objdump
11288 # Check whether --enable-shared was given.
11289 if test "${enable_shared+set}" = set; then :
11290 enableval=$enable_shared; p=${PACKAGE-default}
11292 yes) enable_shared=yes ;;
11293 no) enable_shared=no ;;
11296 # Look at the argument we got. We use all the common list separators.
11297 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11298 for pkg in $enableval; do
11300 if test "X$pkg" = "X$p"; then
11319 # Check whether --enable-static was given.
11320 if test "${enable_static+set}" = set; then :
11321 enableval=$enable_static; p=${PACKAGE-default}
11323 yes) enable_static=yes ;;
11324 no) enable_static=no ;;
11327 # Look at the argument we got. We use all the common list separators.
11328 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11329 for pkg in $enableval; do
11331 if test "X$pkg" = "X$p"; then
11351 # Check whether --with-pic was given.
11352 if test "${with_pic+set}" = set; then :
11353 withval=$with_pic; lt_p=${PACKAGE-default}
11355 yes|no) pic_mode=$withval ;;
11358 # Look at the argument we got. We use all the common list separators.
11359 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11360 for lt_pkg in $withval; do
11362 if test "X$lt_pkg" = "X$lt_p"; then
11380 # Check whether --enable-fast-install was given.
11381 if test "${enable_fast_install+set}" = set; then :
11382 enableval=$enable_fast_install; p=${PACKAGE-default}
11384 yes) enable_fast_install=yes ;;
11385 no) enable_fast_install=no ;;
11387 enable_fast_install=no
11388 # Look at the argument we got. We use all the common list separators.
11389 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11390 for pkg in $enableval; do
11392 if test "X$pkg" = "X$p"; then
11393 enable_fast_install=yes
11400 enable_fast_install=yes
11410 shared_archive_member_spec=
11411 case $host,$enable_shared in
11412 power*-*-aix[5-9]*,yes)
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11414 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11416 # Check whether --with-aix-soname was given.
11417 if test "${with_aix_soname+set}" = set; then :
11418 withval=$with_aix_soname; case $withval in
11422 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11425 lt_cv_with_aix_soname=$with_aix_soname
11427 if ${lt_cv_with_aix_soname+:} false; then :
11428 $as_echo_n "(cached) " >&6
11430 lt_cv_with_aix_soname=aix
11433 with_aix_soname=$lt_cv_with_aix_soname
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11437 $as_echo "$with_aix_soname" >&6; }
11438 if test aix != "$with_aix_soname"; then
11439 # For the AIX way of multilib, we name the shared archive member
11440 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11441 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11442 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11443 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11444 if test 64 = "${OBJECT_MODE-32}"; then
11445 shared_archive_member_spec=shr_64
11447 shared_archive_member_spec=shr
11452 with_aix_soname=aix
11465 # This can be used to rebuild libtool when needed
11466 LIBTOOL_DEPS=$ltmain
11468 # Always use our own libtool.
11469 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11500 test -z "$LN_S" && LN_S="ln -s"
11515 if test -n "${ZSH_VERSION+set}"; then
11516 setopt NO_GLOB_SUBST
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11520 $as_echo_n "checking for objdir... " >&6; }
11521 if ${lt_cv_objdir+:} false; then :
11522 $as_echo_n "(cached) " >&6
11524 rm -f .libs 2>/dev/null
11525 mkdir .libs 2>/dev/null
11526 if test -d .libs; then
11529 # MS-DOS does not allow filenames that begin with a dot.
11532 rmdir .libs 2>/dev/null
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11535 $as_echo "$lt_cv_objdir" >&6; }
11536 objdir=$lt_cv_objdir
11542 cat >>confdefs.h <<_ACEOF
11543 #define LT_OBJDIR "$lt_cv_objdir/"
11551 # AIX sometimes has problems with the GCC collect2 program. For some
11552 # reason, if we set the COLLECT_NAMES environment variable, the problems
11553 # vanish in a puff of smoke.
11554 if test set != "${COLLECT_NAMES+set}"; then
11556 export COLLECT_NAMES
11561 # Global variables:
11563 can_build_shared=yes
11565 # All known linkers require a '.a' archive for static linking (except MSVC,
11566 # which needs '.lib').
11569 with_gnu_ld=$lt_cv_prog_gnu_ld
11574 # Set sane defaults for various variables
11575 test -z "$CC" && CC=cc
11576 test -z "$LTCC" && LTCC=$CC
11577 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11578 test -z "$LD" && LD=ld
11579 test -z "$ac_objext" && ac_objext=o
11581 func_cc_basename $compiler
11582 cc_basename=$func_cc_basename_result
11585 # Only perform the check for file, if the check method requires it
11586 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11587 case $deplibs_check_method in
11589 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11591 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11592 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11593 $as_echo_n "(cached) " >&6
11597 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11600 lt_save_MAGIC_CMD=$MAGIC_CMD
11601 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11603 for ac_dir in $ac_dummy; do
11605 test -z "$ac_dir" && ac_dir=.
11606 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11607 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11608 if test -n "$file_magic_test_file"; then
11609 case $deplibs_check_method in
11611 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11612 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11614 $EGREP "$file_magic_regex" > /dev/null; then
11619 *** Warning: the command libtool uses to detect shared libraries,
11620 *** $file_magic_cmd, produces output that libtool cannot recognize.
11621 *** The result is that libtool may fail to recognize shared libraries
11622 *** as such. This will affect the creation of libtool libraries that
11623 *** depend on shared libraries, but programs linked with such libtool
11624 *** libraries will work regardless of this problem. Nevertheless, you
11625 *** may want to report the problem to your system manager and/or to
11626 *** bug-libtool@gnu.org
11636 MAGIC_CMD=$lt_save_MAGIC_CMD
11641 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11642 if test -n "$MAGIC_CMD"; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11644 $as_echo "$MAGIC_CMD" >&6; }
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11654 if test -z "$lt_cv_path_MAGIC_CMD"; then
11655 if test -n "$ac_tool_prefix"; then
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11657 $as_echo_n "checking for file... " >&6; }
11658 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11659 $as_echo_n "(cached) " >&6
11663 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11666 lt_save_MAGIC_CMD=$MAGIC_CMD
11667 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11668 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11669 for ac_dir in $ac_dummy; do
11671 test -z "$ac_dir" && ac_dir=.
11672 if test -f "$ac_dir/file"; then
11673 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11674 if test -n "$file_magic_test_file"; then
11675 case $deplibs_check_method in
11677 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11678 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11679 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11680 $EGREP "$file_magic_regex" > /dev/null; then
11685 *** Warning: the command libtool uses to detect shared libraries,
11686 *** $file_magic_cmd, produces output that libtool cannot recognize.
11687 *** The result is that libtool may fail to recognize shared libraries
11688 *** as such. This will affect the creation of libtool libraries that
11689 *** depend on shared libraries, but programs linked with such libtool
11690 *** libraries will work regardless of this problem. Nevertheless, you
11691 *** may want to report the problem to your system manager and/or to
11692 *** bug-libtool@gnu.org
11702 MAGIC_CMD=$lt_save_MAGIC_CMD
11707 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11708 if test -n "$MAGIC_CMD"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11710 $as_echo "$MAGIC_CMD" >&6; }
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11726 # Use C for the default configuration in the libtool script
11730 ac_cpp='$CPP $CPPFLAGS'
11731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11736 # Source file extension for C test sources.
11739 # Object file extension for compiled C test sources.
11743 # Code to be used in simple compile tests
11744 lt_simple_compile_test_code="int some_variable = 0;"
11746 # Code to be used in simple link tests
11747 lt_simple_link_test_code='int main(){return(0);}'
11755 # If no C compiler was specified, use CC.
11758 # If no C compiler flags were specified, use CFLAGS.
11759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11761 # Allow CC to be a program name with arguments.
11764 # Save the default compiler, since it gets overwritten when the other
11765 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11766 compiler_DEFAULT=$CC
11768 # save warnings/boilerplate of simple test code
11769 ac_outfile=conftest.$ac_objext
11770 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11771 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11772 _lt_compiler_boilerplate=`cat conftest.err`
11775 ac_outfile=conftest.$ac_objext
11776 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11777 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11778 _lt_linker_boilerplate=`cat conftest.err`
11783 ## There is no encapsulation within the following macros, do not change
11784 ## the running order or otherwise move them around unless you know exactly
11785 ## what you are doing...
11786 if test -n "$compiler"; then
11788 lt_prog_compiler_no_builtin_flag=
11790 if test yes = "$GCC"; then
11791 case $cc_basename in
11793 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11795 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11799 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11800 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11801 $as_echo_n "(cached) " >&6
11803 lt_cv_prog_compiler_rtti_exceptions=no
11804 ac_outfile=conftest.$ac_objext
11805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11806 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11807 # Insert the option either (1) after the last *FLAGS variable, or
11808 # (2) before a word containing "conftest.", or (3) at the end.
11809 # Note that $ac_compile itself does not contain backslashes and begins
11810 # with a dollar sign (not a hyphen), so the echo should work correctly.
11811 # The option is referenced via a variable to avoid confusing sed.
11812 lt_compile=`echo "$ac_compile" | $SED \
11813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11815 -e 's:$: $lt_compiler_flag:'`
11816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11817 (eval "$lt_compile" 2>conftest.err)
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 if (exit $ac_status) && test -s "$ac_outfile"; then
11822 # The compiler can only warn and ignore the option if not recognized
11823 # So say no if there are warnings other than the usual output.
11824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11827 lt_cv_prog_compiler_rtti_exceptions=yes
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11834 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11836 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11837 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11849 lt_prog_compiler_wl=
11850 lt_prog_compiler_pic=
11851 lt_prog_compiler_static=
11854 if test yes = "$GCC"; then
11855 lt_prog_compiler_wl='-Wl,'
11856 lt_prog_compiler_static='-static'
11860 # All AIX code is PIC.
11861 if test ia64 = "$host_cpu"; then
11862 # AIX 5 now supports IA64 processor
11863 lt_prog_compiler_static='-Bstatic'
11865 lt_prog_compiler_pic='-fPIC'
11871 # see comment about AmigaOS4 .so support
11872 lt_prog_compiler_pic='-fPIC'
11875 # FIXME: we need at least 68020 code to build shared libraries, but
11876 # adding the '-m68020' flag to GCC prevents building anything better,
11878 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11884 # PIC is the default for these OSes.
11887 mingw* | cygwin* | pw32* | os2* | cegcc*)
11888 # This hack is so that the source file can tell whether it is being
11889 # built for inclusion in a dll (and should export symbols for example).
11890 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11891 # (--disable-auto-import) libraries
11892 lt_prog_compiler_pic='-DDLL_EXPORT'
11895 lt_prog_compiler_static='$wl-static'
11900 darwin* | rhapsody*)
11901 # PIC is the default on this platform
11902 # Common symbols not allowed in MH_DYLIB files
11903 lt_prog_compiler_pic='-fno-common'
11907 # PIC is the default for Haiku.
11908 # The "-static" flag exists, but is broken.
11909 lt_prog_compiler_static=
11913 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11914 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11915 # sets the default TLS model and affects inlining.
11921 lt_prog_compiler_pic='-fPIC'
11927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11928 # Instead, we relocate shared libraries at runtime.
11932 # Just because we use GCC doesn't mean we suddenly get shared libraries
11933 # on systems that don't support them.
11934 lt_prog_compiler_can_build_shared=no
11939 # QNX uses GNU C++, but need to define -shared option too, otherwise
11940 # it will coredump.
11941 lt_prog_compiler_pic='-fPIC -shared'
11945 if test -d /usr/nec; then
11946 lt_prog_compiler_pic=-Kconform_pic
11951 lt_prog_compiler_pic='-fPIC'
11955 case $cc_basename in
11956 nvcc*) # Cuda Compiler Driver 2.2
11957 lt_prog_compiler_wl='-Xlinker '
11958 if test -n "$lt_prog_compiler_pic"; then
11959 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11964 # PORTME Check for flag to pass linker flags through the system compiler.
11967 lt_prog_compiler_wl='-Wl,'
11968 if test ia64 = "$host_cpu"; then
11969 # AIX 5 now supports IA64 processor
11970 lt_prog_compiler_static='-Bstatic'
11972 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11976 darwin* | rhapsody*)
11977 # PIC is the default on this platform
11978 # Common symbols not allowed in MH_DYLIB files
11979 lt_prog_compiler_pic='-fno-common'
11980 case $cc_basename in
11982 # NAG Fortran compiler
11983 lt_prog_compiler_wl='-Wl,-Wl,,'
11984 lt_prog_compiler_pic='-PIC'
11985 lt_prog_compiler_static='-Bstatic'
11990 mingw* | cygwin* | pw32* | os2* | cegcc*)
11991 # This hack is so that the source file can tell whether it is being
11992 # built for inclusion in a dll (and should export symbols for example).
11993 lt_prog_compiler_pic='-DDLL_EXPORT'
11996 lt_prog_compiler_static='$wl-static'
12001 hpux9* | hpux10* | hpux11*)
12002 lt_prog_compiler_wl='-Wl,'
12003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12004 # not for PA HP-UX.
12010 lt_prog_compiler_pic='+Z'
12013 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12014 lt_prog_compiler_static='$wl-a ${wl}archive'
12017 irix5* | irix6* | nonstopux*)
12018 lt_prog_compiler_wl='-Wl,'
12019 # PIC (with -KPIC) is the default.
12020 lt_prog_compiler_static='-non_shared'
12023 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12024 case $cc_basename in
12025 # old Intel for x86_64, which still supported -KPIC.
12027 lt_prog_compiler_wl='-Wl,'
12028 lt_prog_compiler_pic='-KPIC'
12029 lt_prog_compiler_static='-static'
12031 # icc used to be incompatible with GCC.
12032 # ICC 10 doesn't accept -KPIC any more.
12034 lt_prog_compiler_wl='-Wl,'
12035 lt_prog_compiler_pic='-fPIC'
12036 lt_prog_compiler_static='-static'
12038 # Lahey Fortran 8.1.
12040 lt_prog_compiler_wl='-Wl,'
12041 lt_prog_compiler_pic='--shared'
12042 lt_prog_compiler_static='--static'
12045 # NAG Fortran compiler
12046 lt_prog_compiler_wl='-Wl,-Wl,,'
12047 lt_prog_compiler_pic='-PIC'
12048 lt_prog_compiler_static='-Bstatic'
12051 # Fabrice Bellard et al's Tiny C Compiler
12052 lt_prog_compiler_wl='-Wl,'
12053 lt_prog_compiler_pic='-fPIC'
12054 lt_prog_compiler_static='-static'
12056 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12057 # Portland Group compilers (*not* the Pentium gcc compiler,
12058 # which looks to be a dead project)
12059 lt_prog_compiler_wl='-Wl,'
12060 lt_prog_compiler_pic='-fpic'
12061 lt_prog_compiler_static='-Bstatic'
12064 lt_prog_compiler_wl='-Wl,'
12065 # All Alpha code is PIC.
12066 lt_prog_compiler_static='-non_shared'
12068 xl* | bgxl* | bgf* | mpixl*)
12069 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12070 lt_prog_compiler_wl='-Wl,'
12071 lt_prog_compiler_pic='-qpic'
12072 lt_prog_compiler_static='-qstaticlink'
12075 case `$CC -V 2>&1 | sed 5q` in
12076 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12077 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12078 lt_prog_compiler_pic='-KPIC'
12079 lt_prog_compiler_static='-Bstatic'
12080 lt_prog_compiler_wl=''
12082 *Sun\ F* | *Sun*Fortran*)
12083 lt_prog_compiler_pic='-KPIC'
12084 lt_prog_compiler_static='-Bstatic'
12085 lt_prog_compiler_wl='-Qoption ld '
12089 lt_prog_compiler_pic='-KPIC'
12090 lt_prog_compiler_static='-Bstatic'
12091 lt_prog_compiler_wl='-Wl,'
12093 *Intel*\ [CF]*Compiler*)
12094 lt_prog_compiler_wl='-Wl,'
12095 lt_prog_compiler_pic='-fPIC'
12096 lt_prog_compiler_static='-static'
12099 lt_prog_compiler_wl='-Wl,'
12100 lt_prog_compiler_pic='-fpic'
12101 lt_prog_compiler_static='-Bstatic'
12109 lt_prog_compiler_pic='-KPIC'
12110 lt_prog_compiler_static='-Bstatic'
12114 # QNX uses GNU C++, but need to define -shared option too, otherwise
12115 # it will coredump.
12116 lt_prog_compiler_pic='-fPIC -shared'
12119 osf3* | osf4* | osf5*)
12120 lt_prog_compiler_wl='-Wl,'
12121 # All OSF/1 code is PIC.
12122 lt_prog_compiler_static='-non_shared'
12126 lt_prog_compiler_static='-non_shared'
12130 lt_prog_compiler_pic='-KPIC'
12131 lt_prog_compiler_static='-Bstatic'
12132 case $cc_basename in
12133 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12134 lt_prog_compiler_wl='-Qoption ld ';;
12136 lt_prog_compiler_wl='-Wl,';;
12141 lt_prog_compiler_wl='-Qoption ld '
12142 lt_prog_compiler_pic='-PIC'
12143 lt_prog_compiler_static='-Bstatic'
12146 sysv4 | sysv4.2uw2* | sysv4.3*)
12147 lt_prog_compiler_wl='-Wl,'
12148 lt_prog_compiler_pic='-KPIC'
12149 lt_prog_compiler_static='-Bstatic'
12153 if test -d /usr/nec; then
12154 lt_prog_compiler_pic='-Kconform_pic'
12155 lt_prog_compiler_static='-Bstatic'
12159 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12160 lt_prog_compiler_wl='-Wl,'
12161 lt_prog_compiler_pic='-KPIC'
12162 lt_prog_compiler_static='-Bstatic'
12166 lt_prog_compiler_wl='-Wl,'
12167 lt_prog_compiler_can_build_shared=no
12171 lt_prog_compiler_pic='-pic'
12172 lt_prog_compiler_static='-Bstatic'
12176 lt_prog_compiler_can_build_shared=no
12182 # For platforms that do not support PIC, -DPIC is meaningless:
12184 lt_prog_compiler_pic=
12187 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12192 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12193 if ${lt_cv_prog_compiler_pic+:} false; then :
12194 $as_echo_n "(cached) " >&6
12196 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12199 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12200 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12203 # Check to make sure the PIC flag actually works.
12205 if test -n "$lt_prog_compiler_pic"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12207 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12208 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12209 $as_echo_n "(cached) " >&6
12211 lt_cv_prog_compiler_pic_works=no
12212 ac_outfile=conftest.$ac_objext
12213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12214 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12215 # Insert the option either (1) after the last *FLAGS variable, or
12216 # (2) before a word containing "conftest.", or (3) at the end.
12217 # Note that $ac_compile itself does not contain backslashes and begins
12218 # with a dollar sign (not a hyphen), so the echo should work correctly.
12219 # The option is referenced via a variable to avoid confusing sed.
12220 lt_compile=`echo "$ac_compile" | $SED \
12221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12223 -e 's:$: $lt_compiler_flag:'`
12224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12225 (eval "$lt_compile" 2>conftest.err)
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 if (exit $ac_status) && test -s "$ac_outfile"; then
12230 # The compiler can only warn and ignore the option if not recognized
12231 # So say no if there are warnings other than the usual output.
12232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12234 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12235 lt_cv_prog_compiler_pic_works=yes
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12242 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12244 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12245 case $lt_prog_compiler_pic in
12247 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12250 lt_prog_compiler_pic=
12251 lt_prog_compiler_can_build_shared=no
12267 # Check to make sure the static flag actually works.
12269 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12271 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12272 if ${lt_cv_prog_compiler_static_works+:} false; then :
12273 $as_echo_n "(cached) " >&6
12275 lt_cv_prog_compiler_static_works=no
12276 save_LDFLAGS=$LDFLAGS
12277 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12278 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12279 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12280 # The linker can only warn and ignore the option if not recognized
12281 # So say no if there are warnings
12282 if test -s conftest.err; then
12283 # Append any errors to the config.log.
12284 cat conftest.err 1>&5
12285 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12287 if diff conftest.exp conftest.er2 >/dev/null; then
12288 lt_cv_prog_compiler_static_works=yes
12291 lt_cv_prog_compiler_static_works=yes
12295 LDFLAGS=$save_LDFLAGS
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12299 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12301 if test yes = "$lt_cv_prog_compiler_static_works"; then
12304 lt_prog_compiler_static=
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12315 if ${lt_cv_prog_compiler_c_o+:} false; then :
12316 $as_echo_n "(cached) " >&6
12318 lt_cv_prog_compiler_c_o=no
12319 $RM -r conftest 2>/dev/null
12323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12325 lt_compiler_flag="-o out/conftest2.$ac_objext"
12326 # Insert the option either (1) after the last *FLAGS variable, or
12327 # (2) before a word containing "conftest.", or (3) at the end.
12328 # Note that $ac_compile itself does not contain backslashes and begins
12329 # with a dollar sign (not a hyphen), so the echo should work correctly.
12330 lt_compile=`echo "$ac_compile" | $SED \
12331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12333 -e 's:$: $lt_compiler_flag:'`
12334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12335 (eval "$lt_compile" 2>out/conftest.err)
12337 cat out/conftest.err >&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12341 # The compiler can only warn and ignore the option if not recognized
12342 # So say no if there are warnings
12343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12346 lt_cv_prog_compiler_c_o=yes
12351 # SGI C++ compiler will create directory out/ii_files/ for
12352 # template instantiation
12353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12354 $RM out/* && rmdir out
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12370 if ${lt_cv_prog_compiler_c_o+:} false; then :
12371 $as_echo_n "(cached) " >&6
12373 lt_cv_prog_compiler_c_o=no
12374 $RM -r conftest 2>/dev/null
12378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12380 lt_compiler_flag="-o out/conftest2.$ac_objext"
12381 # Insert the option either (1) after the last *FLAGS variable, or
12382 # (2) before a word containing "conftest.", or (3) at the end.
12383 # Note that $ac_compile itself does not contain backslashes and begins
12384 # with a dollar sign (not a hyphen), so the echo should work correctly.
12385 lt_compile=`echo "$ac_compile" | $SED \
12386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12388 -e 's:$: $lt_compiler_flag:'`
12389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12390 (eval "$lt_compile" 2>out/conftest.err)
12392 cat out/conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12396 # The compiler can only warn and ignore the option if not recognized
12397 # So say no if there are warnings
12398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12399 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12400 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12401 lt_cv_prog_compiler_c_o=yes
12406 # SGI C++ compiler will create directory out/ii_files/ for
12407 # template instantiation
12408 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12409 $RM out/* && rmdir out
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12416 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12421 hard_links=nottested
12422 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12423 # do not overwrite the value of need_locks provided by the user
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12425 $as_echo_n "checking if we can lock with hard links... " >&6; }
12428 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12430 ln conftest.a conftest.b 2>&5 || hard_links=no
12431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12433 $as_echo "$hard_links" >&6; }
12434 if test no = "$hard_links"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12436 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12449 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12452 allow_undefined_flag=
12453 always_export_symbols=no
12455 archive_expsym_cmds=
12456 compiler_needs_object=no
12457 enable_shared_with_static_runtimes=no
12458 export_dynamic_flag_spec=
12459 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12460 hardcode_automatic=no
12462 hardcode_direct_absolute=no
12463 hardcode_libdir_flag_spec=
12464 hardcode_libdir_separator=
12465 hardcode_minus_L=no
12466 hardcode_shlibpath_var=unsupported
12468 link_all_deplibs=unknown
12470 module_expsym_cmds=
12471 old_archive_from_new_cmds=
12472 old_archive_from_expsyms_cmds=
12473 thread_safe_flag_spec=
12474 whole_archive_flag_spec=
12475 # include_expsyms should be a list of space-separated symbols to be *always*
12476 # included in the symbol list
12478 # exclude_expsyms can be an extended regexp of symbols to exclude
12479 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12480 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12481 # as well as any symbol that contains 'd'.
12482 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12483 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12484 # platforms (ab)use it in PIC code, but their linkers get confused if
12485 # the symbol is explicitly referenced. Since portable code cannot
12486 # rely on this symbol name, it's probably fine to never include it in
12487 # preloaded symbol tables.
12488 # Exclude shared library initialization/finalization symbols.
12489 extract_expsyms_cmds=
12492 cygwin* | mingw* | pw32* | cegcc*)
12493 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12494 # When not using gcc, we currently assume that we are using
12495 # Microsoft Visual C++.
12496 if test yes != "$GCC"; then
12501 # we just hope/assume this is gcc and not c89 (= MSVC++)
12504 openbsd* | bitrig*)
12507 linux* | k*bsd*-gnu | gnu*)
12508 link_all_deplibs=no
12514 # On some targets, GNU ld is compatible enough with the native linker
12515 # that we're better off using the native interface for both.
12516 lt_use_gnu_ld_interface=no
12517 if test yes = "$with_gnu_ld"; then
12520 # The AIX port of GNU ld has always aspired to compatibility
12521 # with the native linker. However, as the warning in the GNU ld
12522 # block says, versions before 2.19.5* couldn't really create working
12523 # shared libraries, regardless of the interface used.
12524 case `$LD -v 2>&1` in
12525 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12526 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12527 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12529 lt_use_gnu_ld_interface=yes
12534 lt_use_gnu_ld_interface=yes
12539 if test yes = "$lt_use_gnu_ld_interface"; then
12540 # If archive_cmds runs LD, not CC, wlarc should be empty
12543 # Set some defaults for GNU ld with shared library support. These
12544 # are reset later if shared libraries are not supported. Putting them
12545 # here allows them to be overridden if necessary.
12546 runpath_var=LD_RUN_PATH
12547 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12548 export_dynamic_flag_spec='$wl--export-dynamic'
12549 # ancient GNU ld didn't support --whole-archive et. al.
12550 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12551 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12553 whole_archive_flag_spec=
12555 supports_anon_versioning=no
12556 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12557 *GNU\ gold*) supports_anon_versioning=yes ;;
12558 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12559 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12560 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12561 *\ 2.11.*) ;; # other 2.11 versions
12562 *) supports_anon_versioning=yes ;;
12565 # See if GNU ld supports shared libraries.
12568 # On AIX/PPC, the GNU linker is very broken
12569 if test ia64 != "$host_cpu"; then
12573 *** Warning: the GNU linker, at least up to release 2.19, is reported
12574 *** to be unable to reliably create shared libraries on AIX.
12575 *** Therefore, libtool is disabling shared libraries support. If you
12576 *** really care for shared libraries, you may want to install binutils
12577 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12578 *** You will then need to restart the configuration process.
12587 # see comment about AmigaOS4 .so support
12588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12589 archive_expsym_cmds=''
12592 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)'
12593 hardcode_libdir_flag_spec='-L$libdir'
12594 hardcode_minus_L=yes
12600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12601 allow_undefined_flag=unsupported
12602 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12603 # support --undefined. This deserves some investigation. FIXME
12604 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12610 cygwin* | mingw* | pw32* | cegcc*)
12611 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12612 # as there is no search path for DLLs.
12613 hardcode_libdir_flag_spec='-L$libdir'
12614 export_dynamic_flag_spec='$wl--export-all-symbols'
12615 allow_undefined_flag=unsupported
12616 always_export_symbols=no
12617 enable_shared_with_static_runtimes=yes
12618 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'
12619 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12621 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12623 # If the export-symbols file already is a .def file, use it as
12624 # is; otherwise, prepend EXPORTS...
12625 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12626 cp $export_symbols $output_objdir/$soname.def;
12628 echo EXPORTS > $output_objdir/$soname.def;
12629 cat $export_symbols >> $output_objdir/$soname.def;
12631 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12639 link_all_deplibs=yes
12643 hardcode_libdir_flag_spec='-L$libdir'
12644 hardcode_minus_L=yes
12645 allow_undefined_flag=unsupported
12647 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12648 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12649 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12650 $ECHO EXPORTS >> $output_objdir/$libname.def~
12651 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12652 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12653 emximp -o $lib $output_objdir/$libname.def'
12654 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12655 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12656 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12657 $ECHO EXPORTS >> $output_objdir/$libname.def~
12658 prefix_cmds="$SED"~
12659 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12660 prefix_cmds="$prefix_cmds -e 1d";
12662 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12663 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12664 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12665 emximp -o $lib $output_objdir/$libname.def'
12666 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12667 enable_shared_with_static_runtimes=yes
12672 hardcode_shlibpath_var=no
12673 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12674 export_dynamic_flag_spec='$wl-E'
12675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12676 # Instead, shared libraries are loaded at an image base (0x10000000 by
12677 # default) and relocated if they conflict, which is a slow very memory
12678 # consuming and fragmenting process. To avoid this, we pick a random,
12679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12682 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'
12685 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12687 if test linux-dietlibc = "$host_os"; then
12688 case $cc_basename in
12689 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12692 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12693 && test no = "$tmp_diet"
12695 tmp_addflag=' $pic_flag'
12696 tmp_sharedflag='-shared'
12697 case $cc_basename,$host_cpu in
12698 pgcc*) # Portland Group C compiler
12699 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'
12700 tmp_addflag=' $pic_flag'
12702 pgf77* | pgf90* | pgf95* | pgfortran*)
12703 # Portland Group f77 and f90 compilers
12704 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'
12705 tmp_addflag=' $pic_flag -Mnomain' ;;
12706 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12707 tmp_addflag=' -i_dynamic' ;;
12708 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12709 tmp_addflag=' -i_dynamic -nofor_main' ;;
12710 ifc* | ifort*) # Intel Fortran compiler
12711 tmp_addflag=' -nofor_main' ;;
12712 lf95*) # Lahey Fortran 8.1
12713 whole_archive_flag_spec=
12714 tmp_sharedflag='--shared' ;;
12715 nagfor*) # NAGFOR 5.3
12716 tmp_sharedflag='-Wl,-shared' ;;
12717 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12718 tmp_sharedflag='-qmkshrobj'
12720 nvcc*) # Cuda Compiler Driver 2.2
12721 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'
12722 compiler_needs_object=yes
12725 case `$CC -V 2>&1 | sed 5q` in
12726 *Sun\ C*) # Sun C 5.9
12727 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'
12728 compiler_needs_object=yes
12729 tmp_sharedflag='-G' ;;
12730 *Sun\ F*) # Sun Fortran 8.3
12731 tmp_sharedflag='-G' ;;
12733 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12735 if test yes = "$supports_anon_versioning"; then
12736 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12738 echo "local: *; };" >> $output_objdir/$libname.ver~
12739 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12742 case $cc_basename in
12744 export_dynamic_flag_spec='-rdynamic'
12746 xlf* | bgf* | bgxlf* | mpixlf*)
12747 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12748 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12749 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12750 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12751 if test yes = "$supports_anon_versioning"; then
12752 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12753 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12754 echo "local: *; };" >> $output_objdir/$libname.ver~
12755 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12764 netbsd* | netbsdelf*-gnu)
12765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12766 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12770 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12775 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12779 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12780 *** create shared libraries on Solaris systems. Therefore, libtool
12781 *** is disabling shared libraries support. We urge you to upgrade GNU
12782 *** binutils to release 2.9.1 or newer. Another option is to modify
12783 *** your PATH or compiler configuration so that the native linker is
12784 *** used, and then restart.
12787 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12789 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12796 case `$LD -v 2>&1` in
12797 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12801 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12802 *** reliably create shared libraries on SCO systems. Therefore, libtool
12803 *** is disabling shared libraries support. We urge you to upgrade GNU
12804 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12805 *** your PATH or compiler configuration so that the native linker is
12806 *** used, and then restart.
12811 # For security reasons, it is highly recommended that you always
12812 # use absolute paths for naming shared libraries, and exclude the
12813 # DT_RUNPATH tag from executables and libraries. But doing so
12814 # requires that you compile everything twice, which is a pain.
12815 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12816 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12827 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12829 hardcode_direct=yes
12830 hardcode_shlibpath_var=no
12834 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12835 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12836 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12843 if test no = "$ld_shlibs"; then
12845 hardcode_libdir_flag_spec=
12846 export_dynamic_flag_spec=
12847 whole_archive_flag_spec=
12850 # PORTME fill in a description of your system's linker (not GNU ld)
12853 allow_undefined_flag=unsupported
12854 always_export_symbols=yes
12855 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'
12856 # Note: this linker hardcodes the directories in LIBPATH if there
12857 # are no directories specified by -L.
12858 hardcode_minus_L=yes
12859 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12860 # Neither direct hardcoding nor static linking is supported with a
12862 hardcode_direct=unsupported
12867 if test ia64 = "$host_cpu"; then
12868 # On IA64, the linker does run time linking by default, so we don't
12869 # have to do anything special.
12870 aix_use_runtimelinking=no
12871 exp_sym_flag='-Bexport'
12874 # If we're using GNU nm, then we don't want the "-C" option.
12875 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12876 # Without the "-l" option, or with the "-B" option, AIX nm treats
12877 # weak defined symbols like other global defined symbols, whereas
12878 # GNU nm marks them as "W".
12879 # While the 'weak' keyword is ignored in the Export File, we need
12880 # it in the Import File for the 'aix-soname' feature, so we have
12881 # to replace the "-B" option with "-P" for AIX nm.
12882 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12883 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'
12885 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 == "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'
12887 aix_use_runtimelinking=no
12889 # Test if we are trying to use run time linking or normal
12890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12891 # have runtime linking enabled, and use it for executables.
12892 # For shared libraries, we enable/disable runtime linking
12893 # depending on the kind of the shared library created -
12894 # when "with_aix_soname,aix_use_runtimelinking" is:
12895 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12896 # "aix,yes" lib.so shared, rtl:yes, for executables
12897 # lib.a static archive
12898 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12899 # lib.a(lib.so.V) shared, rtl:no, for executables
12900 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12901 # lib.a(lib.so.V) shared, rtl:no
12902 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12903 # lib.a static archive
12904 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12905 for ld_flag in $LDFLAGS; do
12906 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12907 aix_use_runtimelinking=yes
12911 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12912 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12913 # so we don't have lib.a shared libs to link our executables.
12914 # We have to force runtime linking in this case.
12915 aix_use_runtimelinking=yes
12916 LDFLAGS="$LDFLAGS -Wl,-brtl"
12921 exp_sym_flag='-bexport'
12922 no_entry_flag='-bnoentry'
12925 # When large executables or shared objects are built, AIX ld can
12926 # have problems creating the table of contents. If linking a library
12927 # or program results in "error TOC overflow" add -mminimal-toc to
12928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12932 hardcode_direct=yes
12933 hardcode_direct_absolute=yes
12934 hardcode_libdir_separator=':'
12935 link_all_deplibs=yes
12936 file_list_spec='$wl-f,'
12937 case $with_aix_soname,$aix_use_runtimelinking in
12938 aix,*) ;; # traditional, no import file
12939 svr4,* | *,yes) # use import file
12940 # The Import File defines what to hardcode.
12942 hardcode_direct_absolute=no
12946 if test yes = "$GCC"; then
12947 case $host_os in aix4.[012]|aix4.[012].*)
12948 # We only want to do this on AIX 4.2 and lower, the check
12949 # below for broken collect2 doesn't work under 4.3+
12950 collect2name=`$CC -print-prog-name=collect2`
12951 if test -f "$collect2name" &&
12952 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12954 # We have reworked collect2
12957 # We have old collect2
12958 hardcode_direct=unsupported
12959 # It fails to find uninstalled libraries when the uninstalled
12960 # path is not listed in the libpath. Setting hardcode_minus_L
12961 # to unsupported forces relinking
12962 hardcode_minus_L=yes
12963 hardcode_libdir_flag_spec='-L$libdir'
12964 hardcode_libdir_separator=
12968 shared_flag='-shared'
12969 if test yes = "$aix_use_runtimelinking"; then
12970 shared_flag="$shared_flag "'$wl-G'
12972 # Need to ensure runtime linking is disabled for the traditional
12973 # shared library, or the linker may eventually find shared libraries
12974 # /with/ Import File - we do not want to mix them.
12975 shared_flag_aix='-shared'
12976 shared_flag_svr4='-shared $wl-G'
12979 if test ia64 = "$host_cpu"; then
12980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12981 # chokes on -Wl,-G. The following line is correct:
12984 if test yes = "$aix_use_runtimelinking"; then
12985 shared_flag='$wl-G'
12987 shared_flag='$wl-bM:SRE'
12989 shared_flag_aix='$wl-bM:SRE'
12990 shared_flag_svr4='$wl-G'
12994 export_dynamic_flag_spec='$wl-bexpall'
12995 # It seems that -bexpall does not export symbols beginning with
12996 # underscore (_), so it is better to generate a list of symbols to export.
12997 always_export_symbols=yes
12998 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12999 # Warning - without using the other runtime loading flags (-brtl),
13000 # -berok will link without error, but may produce a broken library.
13001 allow_undefined_flag='-berok'
13002 # Determine the default libpath from the value encoded in an
13003 # empty executable.
13004 if test set = "${lt_cv_aix_libpath+set}"; then
13005 aix_libpath=$lt_cv_aix_libpath
13007 if ${lt_cv_aix_libpath_+:} false; then :
13008 $as_echo_n "(cached) " >&6
13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13020 if ac_fn_c_try_link "$LINENO"; then :
13022 lt_aix_libpath_sed='
13023 /Import File Strings/,/^$/ {
13025 s/^0 *\([^ ]*\) *$/\1/
13029 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13030 # Check for a 64-bit object if we didn't find anything.
13031 if test -z "$lt_cv_aix_libpath_"; then
13032 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13035 rm -f core conftest.err conftest.$ac_objext \
13036 conftest$ac_exeext conftest.$ac_ext
13037 if test -z "$lt_cv_aix_libpath_"; then
13038 lt_cv_aix_libpath_=/usr/lib:/lib
13043 aix_libpath=$lt_cv_aix_libpath_
13046 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13047 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
13049 if test ia64 = "$host_cpu"; then
13050 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13051 allow_undefined_flag="-z nodefs"
13052 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"
13054 # Determine the default libpath from the value encoded in an
13055 # empty executable.
13056 if test set = "${lt_cv_aix_libpath+set}"; then
13057 aix_libpath=$lt_cv_aix_libpath
13059 if ${lt_cv_aix_libpath_+:} false; then :
13060 $as_echo_n "(cached) " >&6
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13072 if ac_fn_c_try_link "$LINENO"; then :
13074 lt_aix_libpath_sed='
13075 /Import File Strings/,/^$/ {
13077 s/^0 *\([^ ]*\) *$/\1/
13081 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082 # Check for a 64-bit object if we didn't find anything.
13083 if test -z "$lt_cv_aix_libpath_"; then
13084 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13089 if test -z "$lt_cv_aix_libpath_"; then
13090 lt_cv_aix_libpath_=/usr/lib:/lib
13095 aix_libpath=$lt_cv_aix_libpath_
13098 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13099 # Warning - without using the other run time loading flags,
13100 # -berok will link without error, but may produce a broken library.
13101 no_undefined_flag=' $wl-bernotok'
13102 allow_undefined_flag=' $wl-berok'
13103 if test yes = "$with_gnu_ld"; then
13104 # We only use this code for GNU lds that support --whole-archive.
13105 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13107 # Exported symbols can be pulled into shared objects from archives
13108 whole_archive_flag_spec='$convenience'
13110 archive_cmds_need_lc=yes
13111 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13112 # -brtl affects multiple linker settings, -berok does not and is overridden later
13113 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13114 if test svr4 != "$with_aix_soname"; then
13115 # This is similar to how AIX traditionally builds its shared libraries.
13116 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'
13118 if test aix != "$with_aix_soname"; then
13119 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'
13121 # used by -dlpreopen to get the symbols
13122 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13124 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13132 # see comment about AmigaOS4 .so support
13133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13134 archive_expsym_cmds=''
13137 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)'
13138 hardcode_libdir_flag_spec='-L$libdir'
13139 hardcode_minus_L=yes
13145 export_dynamic_flag_spec=-rdynamic
13148 cygwin* | mingw* | pw32* | cegcc*)
13149 # When not using gcc, we currently assume that we are using
13150 # Microsoft Visual C++.
13151 # hardcode_libdir_flag_spec is actually meaningless, as there is
13152 # no search path for DLLs.
13153 case $cc_basename in
13156 hardcode_libdir_flag_spec=' '
13157 allow_undefined_flag=unsupported
13158 always_export_symbols=yes
13160 # Tell ltmain to make .lib files, not .a files.
13162 # Tell ltmain to make .dll files, not .so files.
13164 # FIXME: Setting linknames here is a bad hack.
13165 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13166 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13167 cp "$export_symbols" "$output_objdir/$soname.def";
13168 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13170 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13172 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13174 # The linker will not automatically build a static lib if we build a DLL.
13175 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13176 enable_shared_with_static_runtimes=yes
13177 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13178 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13180 old_postinstall_cmds='chmod 644 $oldlib'
13181 postlink_cmds='lt_outputfile="@OUTPUT@"~
13182 lt_tool_outputfile="@TOOL_OUTPUT@"~
13183 case $lt_outputfile in
13186 lt_outputfile=$lt_outputfile.exe
13187 lt_tool_outputfile=$lt_tool_outputfile.exe
13190 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13191 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13192 $RM "$lt_outputfile.manifest";
13196 # Assume MSVC wrapper
13197 hardcode_libdir_flag_spec=' '
13198 allow_undefined_flag=unsupported
13199 # Tell ltmain to make .lib files, not .a files.
13201 # Tell ltmain to make .dll files, not .so files.
13203 # FIXME: Setting linknames here is a bad hack.
13204 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13205 # The linker will automatically build a .lib file if we build a DLL.
13206 old_archive_from_new_cmds='true'
13207 # FIXME: Should let the user specify the lib program.
13208 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13209 enable_shared_with_static_runtimes=yes
13214 darwin* | rhapsody*)
13217 archive_cmds_need_lc=no
13219 hardcode_automatic=yes
13220 hardcode_shlibpath_var=unsupported
13221 if test yes = "$lt_cv_ld_force_load"; then
13222 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\"`'
13225 whole_archive_flag_spec=''
13227 link_all_deplibs=yes
13228 allow_undefined_flag=$_lt_dar_allow_undefined
13229 case $cc_basename in
13230 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13231 *) _lt_dar_can_shared=$GCC ;;
13233 if test yes = "$_lt_dar_can_shared"; then
13234 output_verbose_link_cmd=func_echo_all
13235 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13236 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13237 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"
13238 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"
13247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13248 hardcode_libdir_flag_spec='-L$libdir'
13249 hardcode_shlibpath_var=no
13252 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13253 # support. Future versions do this automatically, but an explicit c++rt0.o
13254 # does not break anything, and helps significantly (at the cost of a little
13257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13258 hardcode_libdir_flag_spec='-R$libdir'
13259 hardcode_direct=yes
13260 hardcode_shlibpath_var=no
13263 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13266 hardcode_direct=yes
13267 hardcode_minus_L=yes
13268 hardcode_shlibpath_var=no
13271 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13272 freebsd* | dragonfly*)
13273 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13274 hardcode_libdir_flag_spec='-R$libdir'
13275 hardcode_direct=yes
13276 hardcode_shlibpath_var=no
13280 if test yes = "$GCC"; then
13281 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 -f $output_objdir/$soname $lib'
13283 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 -f $output_objdir/$soname $lib'
13285 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13286 hardcode_libdir_separator=:
13287 hardcode_direct=yes
13289 # hardcode_minus_L: Not really in the search PATH,
13290 # but as the default location of the library.
13291 hardcode_minus_L=yes
13292 export_dynamic_flag_spec='$wl-E'
13296 if test yes,no = "$GCC,$with_gnu_ld"; then
13297 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13299 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13301 if test no = "$with_gnu_ld"; then
13302 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13303 hardcode_libdir_separator=:
13304 hardcode_direct=yes
13305 hardcode_direct_absolute=yes
13306 export_dynamic_flag_spec='$wl-E'
13307 # hardcode_minus_L: Not really in the search PATH,
13308 # but as the default location of the library.
13309 hardcode_minus_L=yes
13314 if test yes,no = "$GCC,$with_gnu_ld"; then
13317 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13320 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13323 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13329 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13336 # Older versions of the 11.00 compiler do not understand -b yet
13337 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13339 $as_echo_n "checking if $CC understands -b... " >&6; }
13340 if ${lt_cv_prog_compiler__b+:} false; then :
13341 $as_echo_n "(cached) " >&6
13343 lt_cv_prog_compiler__b=no
13344 save_LDFLAGS=$LDFLAGS
13345 LDFLAGS="$LDFLAGS -b"
13346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13348 # The linker can only warn and ignore the option if not recognized
13349 # So say no if there are warnings
13350 if test -s conftest.err; then
13351 # Append any errors to the config.log.
13352 cat conftest.err 1>&5
13353 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13355 if diff conftest.exp conftest.er2 >/dev/null; then
13356 lt_cv_prog_compiler__b=yes
13359 lt_cv_prog_compiler__b=yes
13363 LDFLAGS=$save_LDFLAGS
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13367 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13369 if test yes = "$lt_cv_prog_compiler__b"; then
13370 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13372 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13378 if test no = "$with_gnu_ld"; then
13379 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13380 hardcode_libdir_separator=:
13385 hardcode_shlibpath_var=no
13388 hardcode_direct=yes
13389 hardcode_direct_absolute=yes
13390 export_dynamic_flag_spec='$wl-E'
13392 # hardcode_minus_L: Not really in the search PATH,
13393 # but as the default location of the library.
13394 hardcode_minus_L=yes
13400 irix5* | irix6* | nonstopux*)
13401 if test yes = "$GCC"; then
13402 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'
13403 # Try to use the -exported_symbol ld option, if it does not
13404 # work, assume that -exports_file does not work either and
13405 # implicitly export all symbols.
13406 # This should be the same for all languages, so no per-tag cache variable.
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13408 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13409 if ${lt_cv_irix_exported_symbol+:} false; then :
13410 $as_echo_n "(cached) " >&6
13412 save_LDFLAGS=$LDFLAGS
13413 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h. */
13416 int foo (void) { return 0; }
13418 if ac_fn_c_try_link "$LINENO"; then :
13419 lt_cv_irix_exported_symbol=yes
13421 lt_cv_irix_exported_symbol=no
13423 rm -f core conftest.err conftest.$ac_objext \
13424 conftest$ac_exeext conftest.$ac_ext
13425 LDFLAGS=$save_LDFLAGS
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13428 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13429 if test yes = "$lt_cv_irix_exported_symbol"; then
13430 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'
13432 link_all_deplibs=no
13434 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'
13435 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'
13437 archive_cmds_need_lc='no'
13438 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13439 hardcode_libdir_separator=:
13441 link_all_deplibs=yes
13445 case $cc_basename in
13447 # Fabrice Bellard et al's Tiny C Compiler
13449 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13454 netbsd* | netbsdelf*-gnu)
13455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13458 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13460 hardcode_libdir_flag_spec='-R$libdir'
13461 hardcode_direct=yes
13462 hardcode_shlibpath_var=no
13466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_direct=yes
13468 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13469 hardcode_libdir_separator=:
13470 hardcode_shlibpath_var=no
13476 openbsd* | bitrig*)
13477 if test -f /usr/libexec/ld.so; then
13478 hardcode_direct=yes
13479 hardcode_shlibpath_var=no
13480 hardcode_direct_absolute=yes
13481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13483 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13484 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13485 export_dynamic_flag_spec='$wl-E'
13487 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13488 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13496 hardcode_libdir_flag_spec='-L$libdir'
13497 hardcode_minus_L=yes
13498 allow_undefined_flag=unsupported
13500 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13501 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13502 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13503 $ECHO EXPORTS >> $output_objdir/$libname.def~
13504 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13505 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13506 emximp -o $lib $output_objdir/$libname.def'
13507 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13508 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13509 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13510 $ECHO EXPORTS >> $output_objdir/$libname.def~
13511 prefix_cmds="$SED"~
13512 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13513 prefix_cmds="$prefix_cmds -e 1d";
13515 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13516 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13517 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13518 emximp -o $lib $output_objdir/$libname.def'
13519 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13520 enable_shared_with_static_runtimes=yes
13524 if test yes = "$GCC"; then
13525 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13526 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'
13528 allow_undefined_flag=' -expect_unresolved \*'
13529 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'
13531 archive_cmds_need_lc='no'
13532 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13533 hardcode_libdir_separator=:
13536 osf4* | osf5*) # as osf3* with the addition of -msym flag
13537 if test yes = "$GCC"; then
13538 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13539 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'
13540 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13542 allow_undefined_flag=' -expect_unresolved \*'
13543 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'
13544 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~
13545 $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'
13547 # Both c and cxx compiler support -rpath directly
13548 hardcode_libdir_flag_spec='-rpath $libdir'
13550 archive_cmds_need_lc='no'
13551 hardcode_libdir_separator=:
13555 no_undefined_flag=' -z defs'
13556 if test yes = "$GCC"; then
13558 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560 $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'
13562 case `$CC -V 2>&1` in
13565 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13567 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13571 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13572 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13573 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13577 hardcode_libdir_flag_spec='-R$libdir'
13578 hardcode_shlibpath_var=no
13580 solaris2.[0-5] | solaris2.[0-5].*) ;;
13582 # The compiler driver will combine and reorder linker options,
13583 # but understands '-z linker_flag'. GCC discards it without '$wl',
13584 # but is careful enough not to reorder.
13585 # Supported since Solaris 2.6 (maybe 2.5.1?)
13586 if test yes = "$GCC"; then
13587 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13589 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13593 link_all_deplibs=yes
13597 if test sequent = "$host_vendor"; then
13598 # Use $CC to link under sequent, because it throws in some extra .o
13599 # files that make .init and .fini sections work.
13600 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13602 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13604 hardcode_libdir_flag_spec='-L$libdir'
13605 hardcode_direct=yes
13606 hardcode_minus_L=yes
13607 hardcode_shlibpath_var=no
13611 case $host_vendor in
13613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13614 hardcode_direct=yes # is this really true???
13617 ## LD is ld it makes a PLAMLIB
13618 ## CC just makes a GrossModule.
13619 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13620 reload_cmds='$CC -r -o $output$reload_objs'
13624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13628 runpath_var='LD_RUN_PATH'
13629 hardcode_shlibpath_var=no
13633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13634 hardcode_shlibpath_var=no
13635 export_dynamic_flag_spec='-Bexport'
13639 if test -d /usr/nec; then
13640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13641 hardcode_shlibpath_var=no
13642 runpath_var=LD_RUN_PATH
13643 hardcode_runpath_var=yes
13648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13649 no_undefined_flag='$wl-z,text'
13650 archive_cmds_need_lc=no
13651 hardcode_shlibpath_var=no
13652 runpath_var='LD_RUN_PATH'
13654 if test yes = "$GCC"; then
13655 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13656 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13658 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13663 sysv5* | sco3.2v5* | sco5v6*)
13664 # Note: We CANNOT use -z defs as we might desire, because we do not
13665 # link with -lc, and that would cause any symbols used from libc to
13666 # always be unresolved, which means just about no library would
13667 # ever link correctly. If we're not using GNU ld we use -z text
13668 # though, which does catch some bad symbols but isn't as heavy-handed
13670 no_undefined_flag='$wl-z,text'
13671 allow_undefined_flag='$wl-z,nodefs'
13672 archive_cmds_need_lc=no
13673 hardcode_shlibpath_var=no
13674 hardcode_libdir_flag_spec='$wl-R,$libdir'
13675 hardcode_libdir_separator=':'
13676 link_all_deplibs=yes
13677 export_dynamic_flag_spec='$wl-Bexport'
13678 runpath_var='LD_RUN_PATH'
13680 if test yes = "$GCC"; then
13681 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13684 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13685 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13691 hardcode_libdir_flag_spec='-L$libdir'
13692 hardcode_shlibpath_var=no
13700 if test sni = "$host_vendor"; then
13702 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13703 export_dynamic_flag_spec='$wl-Blargedynsym'
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13710 $as_echo "$ld_shlibs" >&6; }
13711 test no = "$ld_shlibs" && can_build_shared=no
13713 with_gnu_ld=$with_gnu_ld
13730 # Do we need to explicitly link libc?
13732 case "x$archive_cmds_need_lc" in
13734 # Assume -lc should be added
13735 archive_cmds_need_lc=yes
13737 if test yes,yes = "$GCC,$enable_shared"; then
13738 case $archive_cmds in
13740 # FIXME: we may have to deal with multi-command sequences.
13743 # Test whether the compiler implicitly links with -lc since on some
13744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13745 # to ld, don't add -lc before -lgcc.
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13747 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13748 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13749 $as_echo_n "(cached) " >&6
13752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13755 (eval $ac_compile) 2>&5
13757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13758 test $ac_status = 0; } 2>conftest.err; then
13761 libobjs=conftest.$ac_objext
13763 wl=$lt_prog_compiler_wl
13764 pic_flag=$lt_prog_compiler_pic
13770 lt_save_allow_undefined_flag=$allow_undefined_flag
13771 allow_undefined_flag=
13772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13773 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776 test $ac_status = 0; }
13778 lt_cv_archive_cmds_need_lc=no
13780 lt_cv_archive_cmds_need_lc=yes
13782 allow_undefined_flag=$lt_save_allow_undefined_flag
13784 cat conftest.err 1>&5
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13790 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13791 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13950 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13952 if test yes = "$GCC"; then
13954 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13955 *) lt_awk_arg='/^libraries:/' ;;
13958 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13959 *) lt_sed_strip_eq='s|=/|/|g' ;;
13961 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13962 case $lt_search_path_spec in
13964 # if the path contains ";" then we assume it to be the separator
13965 # otherwise default to the standard path separator (i.e. ":") - it is
13966 # assumed that no part of a normal pathname contains ";" but that should
13967 # okay in the real world where ";" in dirpaths is itself problematic.
13968 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13971 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13974 # Ok, now we have the path, separated by spaces, we can step through it
13975 # and add multilib dir if necessary...
13976 lt_tmp_lt_search_path_spec=
13977 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13978 # ...but if some path component already ends with the multilib dir we assume
13979 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13980 case "$lt_multi_os_dir; $lt_search_path_spec " in
13981 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13985 for lt_sys_path in $lt_search_path_spec; do
13986 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13987 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13988 elif test -n "$lt_multi_os_dir"; then
13989 test -d "$lt_sys_path" && \
13990 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13993 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13994 BEGIN {RS = " "; FS = "/|\n";} {
13997 for (lt_i = NF; lt_i > 0; lt_i--) {
13998 if ($lt_i != "" && $lt_i != ".") {
13999 if ($lt_i == "..") {
14002 if (lt_count == 0) {
14003 lt_foo = "/" $lt_i lt_foo;
14010 if (lt_foo != "") { lt_freq[lt_foo]++; }
14011 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14013 # AWK program above erroneously prepends '/' to C:/dos/paths
14016 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14017 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14019 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14021 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14023 library_names_spec=
14024 libname_spec='lib$name'
14028 postuninstall_cmds=
14032 shlibpath_overrides_runpath=unknown
14034 dynamic_linker="$host_os ld.so"
14035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14036 need_lib_prefix=unknown
14037 hardcode_into_libs=no
14039 # when you set need_version to no, make sure it does not cause -set_version
14040 # flags to be left without arguments
14041 need_version=unknown
14047 version_type=linux # correct to gnu/linux during the next big refactor
14048 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14049 shlibpath_var=LIBPATH
14051 # AIX 3 has no versioning support, so we append a major version to the name.
14052 soname_spec='$libname$release$shared_ext$major'
14056 version_type=linux # correct to gnu/linux during the next big refactor
14059 hardcode_into_libs=yes
14060 if test ia64 = "$host_cpu"; then
14061 # AIX 5 supports IA64
14062 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14063 shlibpath_var=LD_LIBRARY_PATH
14065 # With GCC up to 2.95.x, collect2 would create an import file
14066 # for dependence libraries. The import file would start with
14067 # the line '#! .'. This would cause the generated library to
14068 # depend on '.', always an invalid library. This was fixed in
14069 # development snapshots of GCC prior to 3.0.
14071 aix4 | aix4.[01] | aix4.[01].*)
14072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14074 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14077 can_build_shared=no
14081 # Using Import Files as archive members, it is possible to support
14082 # filename-based versioning of shared library archives on AIX. While
14083 # this would work for both with and without runtime linking, it will
14084 # prevent static linking of such archives. So we do filename-based
14085 # shared library versioning with .so extension only, which is used
14086 # when both runtime linking and shared linking is enabled.
14087 # Unfortunately, runtime linking may impact performance, so we do
14088 # not want this to be the default eventually. Also, we use the
14089 # versioned .so libs for executables only if there is the -brtl
14090 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14091 # To allow for filename-based versioning support, we need to create
14092 # libNAME.so.V as an archive file, containing:
14093 # *) an Import File, referring to the versioned filename of the
14094 # archive as well as the shared archive member, telling the
14095 # bitwidth (32 or 64) of that shared object, and providing the
14096 # list of exported symbols of that shared object, eventually
14097 # decorated with the 'weak' keyword
14098 # *) the shared object with the F_LOADONLY flag set, to really avoid
14099 # it being seen by the linker.
14100 # At run time we better use the real file rather than another symlink,
14101 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14103 case $with_aix_soname,$aix_use_runtimelinking in
14104 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14105 # soname into executable. Probably we can add versioning support to
14106 # collect2, so additional links can be useful in future.
14107 aix,yes) # traditional libtool
14108 dynamic_linker='AIX unversionable lib.so'
14109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14110 # instead of lib<name>.a to let people know that these are not
14111 # typical AIX shared libraries.
14112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14114 aix,no) # traditional AIX only
14115 dynamic_linker='AIX lib.a(lib.so.V)'
14116 # We preserve .a as extension for shared libraries through AIX4.2
14117 # and later when we are not doing run time linking.
14118 library_names_spec='$libname$release.a $libname.a'
14119 soname_spec='$libname$release$shared_ext$major'
14121 svr4,*) # full svr4 only
14122 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14123 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14124 # We do not specify a path in Import Files, so LIBPATH fires.
14125 shlibpath_overrides_runpath=yes
14127 *,yes) # both, prefer svr4
14128 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14129 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14130 # unpreferred sharedlib libNAME.a needs extra handling
14131 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"'
14132 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"'
14133 # We do not specify a path in Import Files, so LIBPATH fires.
14134 shlibpath_overrides_runpath=yes
14136 *,no) # both, prefer aix
14137 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14138 library_names_spec='$libname$release.a $libname.a'
14139 soname_spec='$libname$release$shared_ext$major'
14140 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14141 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)'
14142 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"'
14145 shlibpath_var=LIBPATH
14152 # Since July 2007 AmigaOS4 officially supports .so libraries.
14153 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14157 library_names_spec='$libname.ixlibrary $libname.a'
14158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14159 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'
14165 library_names_spec='$libname$shared_ext'
14166 dynamic_linker="$host_os ld.so"
14167 shlibpath_var=LIBRARY_PATH
14171 version_type=linux # correct to gnu/linux during the next big refactor
14173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14174 soname_spec='$libname$release$shared_ext$major'
14175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14176 shlibpath_var=LD_LIBRARY_PATH
14177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14179 # the default ld.so.conf also contains /usr/contrib/lib and
14180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14181 # libtool to hard-code these into programs
14184 cygwin* | mingw* | pw32* | cegcc*)
14185 version_type=windows
14190 case $GCC,$cc_basename in
14193 library_names_spec='$libname.dll.a'
14194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14195 postinstall_cmds='base_file=`basename \$file`~
14196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14197 dldir=$destdir/`dirname \$dlpath`~
14198 test -d \$dldir || mkdir -p \$dldir~
14199 $install_prog $dir/$dlname \$dldir/$dlname~
14200 chmod a+x \$dldir/$dlname~
14201 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14202 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14205 dlpath=$dir/\$dldll~
14207 shlibpath_overrides_runpath=yes
14211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14212 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14214 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14217 # MinGW DLLs use traditional 'lib' prefix
14218 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14221 # pw32 DLLs use 'pw' prefix rather than 'lib'
14222 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14225 dynamic_linker='Win32 ld.exe'
14230 libname_spec='$name'
14231 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14232 library_names_spec='$libname.dll.lib'
14236 sys_lib_search_path_spec=
14239 for lt_path in $LIB
14242 # Let DOS variable expansion print the short 8.3 style file name.
14243 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14244 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14247 # Convert to MSYS style.
14248 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14251 # Convert to unix form, then to dos form, then back to unix form
14252 # but this time dos style (no spaces!) so that the unix form looks
14253 # like /cygdrive/c/PROGRA~1:/cygdr...
14254 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14255 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14256 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14259 sys_lib_search_path_spec=$LIB
14260 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14261 # It is most probably a Windows format PATH.
14262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14266 # FIXME: find the short name or the path components, as spaces are
14267 # common. (e.g. "Program Files" -> "PROGRA~1")
14271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14272 postinstall_cmds='base_file=`basename \$file`~
14273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14274 dldir=$destdir/`dirname \$dlpath`~
14275 test -d \$dldir || mkdir -p \$dldir~
14276 $install_prog $dir/$dlname \$dldir/$dlname'
14277 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14278 dlpath=$dir/\$dldll~
14280 shlibpath_overrides_runpath=yes
14281 dynamic_linker='Win32 link.exe'
14285 # Assume MSVC wrapper
14286 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14287 dynamic_linker='Win32 ld.exe'
14290 # FIXME: first we should search . and the directory the executable is in
14294 darwin* | rhapsody*)
14295 dynamic_linker="$host_os dyld"
14296 version_type=darwin
14299 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14300 soname_spec='$libname$release$major$shared_ext'
14301 shlibpath_overrides_runpath=yes
14302 shlibpath_var=DYLD_LIBRARY_PATH
14303 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14305 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14306 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14310 version_type=linux # correct to gnu/linux during the next big refactor
14313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14314 soname_spec='$libname$release$shared_ext$major'
14315 shlibpath_var=LD_LIBRARY_PATH
14318 freebsd* | dragonfly*)
14319 # DragonFly does not have aout. When/if they implement a new
14320 # versioning mechanism, adjust this.
14321 if test -x /usr/bin/objformat; then
14322 objformat=`/usr/bin/objformat`
14325 freebsd[23].*) objformat=aout ;;
14326 *) objformat=elf ;;
14329 version_type=freebsd-$objformat
14330 case $version_type in
14332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14333 soname_spec='$libname$release$shared_ext$major'
14338 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14342 shlibpath_var=LD_LIBRARY_PATH
14345 shlibpath_overrides_runpath=yes
14347 freebsd3.[01]* | freebsdelf3.[01]*)
14348 shlibpath_overrides_runpath=yes
14349 hardcode_into_libs=yes
14351 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14352 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14353 shlibpath_overrides_runpath=no
14354 hardcode_into_libs=yes
14356 *) # from 4.6 on, and DragonFly
14357 shlibpath_overrides_runpath=yes
14358 hardcode_into_libs=yes
14364 version_type=linux # correct to gnu/linux during the next big refactor
14367 dynamic_linker="$host_os runtime_loader"
14368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14369 soname_spec='$libname$release$shared_ext$major'
14370 shlibpath_var=LIBRARY_PATH
14371 shlibpath_overrides_runpath=no
14372 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14373 hardcode_into_libs=yes
14376 hpux9* | hpux10* | hpux11*)
14377 # Give a soname corresponding to the major version so that dld.sl refuses to
14378 # link against other versions.
14385 hardcode_into_libs=yes
14386 dynamic_linker="$host_os dld.so"
14387 shlibpath_var=LD_LIBRARY_PATH
14388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14390 soname_spec='$libname$release$shared_ext$major'
14391 if test 32 = "$HPUX_IA64_MODE"; then
14392 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14393 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14395 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14396 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14401 hardcode_into_libs=yes
14402 dynamic_linker="$host_os dld.sl"
14403 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14406 soname_spec='$libname$release$shared_ext$major'
14407 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14412 dynamic_linker="$host_os dld.sl"
14413 shlibpath_var=SHLIB_PATH
14414 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14416 soname_spec='$libname$release$shared_ext$major'
14419 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14420 postinstall_cmds='chmod 555 $lib'
14421 # or fails outright, so override atomically:
14422 install_override_mode=555
14426 version_type=linux # correct to gnu/linux during the next big refactor
14429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14430 soname_spec='$libname$release$shared_ext$major'
14431 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14432 shlibpath_var=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath=no
14434 hardcode_into_libs=yes
14437 irix5* | irix6* | nonstopux*)
14439 nonstopux*) version_type=nonstopux ;;
14441 if test yes = "$lt_cv_prog_gnu_ld"; then
14442 version_type=linux # correct to gnu/linux during the next big refactor
14449 soname_spec='$libname$release$shared_ext$major'
14450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14452 irix5* | nonstopux*)
14453 libsuff= shlibsuff=
14456 case $LD in # libtool.m4 will add one of these switches to LD
14457 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14458 libsuff= shlibsuff= libmagic=32-bit;;
14459 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14460 libsuff=32 shlibsuff=N32 libmagic=N32;;
14461 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14462 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14463 *) libsuff= shlibsuff= libmagic=never-match;;
14467 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14468 shlibpath_overrides_runpath=no
14469 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14470 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14471 hardcode_into_libs=yes
14474 # No shared lib support for Linux oldld, aout, or coff.
14475 linux*oldld* | linux*aout* | linux*coff*)
14480 version_type=none # Android doesn't support versioned libraries.
14483 library_names_spec='$libname$release$shared_ext'
14484 soname_spec='$libname$release$shared_ext'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 shlibpath_overrides_runpath=yes
14489 # This implies no fast_install, which is unacceptable.
14490 # Some rework will be needed to allow for fast_install
14491 # before this can be enabled.
14492 hardcode_into_libs=yes
14494 dynamic_linker='Android linker'
14495 # Don't embed -rpath directories since the linker doesn't support them.
14496 hardcode_libdir_flag_spec='-L$libdir'
14499 # This must be glibc/ELF.
14500 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14501 version_type=linux # correct to gnu/linux during the next big refactor
14504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14505 soname_spec='$libname$release$shared_ext$major'
14506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=no
14510 # Some binutils ld are patched to set DT_RUNPATH
14511 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14512 $as_echo_n "(cached) " >&6
14514 lt_cv_shlibpath_overrides_runpath=no
14515 save_LDFLAGS=$LDFLAGS
14516 save_libdir=$libdir
14517 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14518 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14529 if ac_fn_c_try_link "$LINENO"; then :
14530 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14531 lt_cv_shlibpath_overrides_runpath=yes
14534 rm -f core conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 LDFLAGS=$save_LDFLAGS
14537 libdir=$save_libdir
14541 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14543 # This implies no fast_install, which is unacceptable.
14544 # Some rework will be needed to allow for fast_install
14545 # before this can be enabled.
14546 hardcode_into_libs=yes
14548 # Ideally, we could use ldconfig to report *all* directores which are
14549 # searched for libraries, however this is still not possible. Aside from not
14550 # being certain /sbin/ldconfig is available, command
14551 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14552 # even though it is searched at run-time. Try to do the best guess by
14553 # appending ld.so.conf contents (and includes) to the search path.
14554 if test -f /etc/ld.so.conf; then
14555 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' ' '`
14556 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14559 # We used to test for /lib/ld.so.1 and disable shared libraries on
14560 # powerpc, because MkLinux only supported shared libraries with the
14561 # GNU dynamic linker. Since this was broken with cross compilers,
14562 # most powerpc-linux boxes support dynamic linking these days and
14563 # people can always --disable-shared, the test was removed, and we
14564 # assume the GNU/Linux dynamic linker is in use.
14565 dynamic_linker='GNU/Linux ld.so'
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 shlibpath_overrides_runpath=no
14576 hardcode_into_libs=yes
14577 dynamic_linker='NetBSD ld.elf_so'
14584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14585 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14587 dynamic_linker='NetBSD (a.out) ld.so'
14589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14590 soname_spec='$libname$release$shared_ext$major'
14591 dynamic_linker='NetBSD ld.elf_so'
14593 shlibpath_var=LD_LIBRARY_PATH
14594 shlibpath_overrides_runpath=yes
14595 hardcode_into_libs=yes
14599 version_type=linux # correct to gnu/linux during the next big refactor
14600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14601 shlibpath_var=LD_LIBRARY_PATH
14602 shlibpath_overrides_runpath=yes
14609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14610 soname_spec='$libname$release$shared_ext$major'
14611 shlibpath_var=LD_LIBRARY_PATH
14612 shlibpath_overrides_runpath=no
14613 hardcode_into_libs=yes
14614 dynamic_linker='ldqnx.so'
14617 openbsd* | bitrig*)
14619 sys_lib_dlsearch_path_spec=/usr/lib
14621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14626 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14628 shlibpath_var=LD_LIBRARY_PATH
14629 shlibpath_overrides_runpath=yes
14633 libname_spec='$name'
14634 version_type=windows
14638 # OS/2 can only load a DLL with a base name of 8 characters or less.
14639 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14640 v=$($ECHO $release$versuffix | tr -d .-);
14641 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14642 $ECHO $n$v`$shared_ext'
14643 library_names_spec='${libname}_dll.$libext'
14644 dynamic_linker='OS/2 ld.exe'
14645 shlibpath_var=BEGINLIBPATH
14646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14648 postinstall_cmds='base_file=`basename \$file`~
14649 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14650 dldir=$destdir/`dirname \$dlpath`~
14651 test -d \$dldir || mkdir -p \$dldir~
14652 $install_prog $dir/$dlname \$dldir/$dlname~
14653 chmod a+x \$dldir/$dlname~
14654 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14655 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14658 dlpath=$dir/\$dldll~
14662 osf3* | osf4* | osf5*)
14666 soname_spec='$libname$release$shared_ext$major'
14667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14678 version_type=linux # correct to gnu/linux during the next big refactor
14681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14682 soname_spec='$libname$release$shared_ext$major'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath=yes
14685 hardcode_into_libs=yes
14686 # ldd complains unless libraries are executable
14687 postinstall_cmds='chmod +x $lib'
14692 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14694 shlibpath_var=LD_LIBRARY_PATH
14695 shlibpath_overrides_runpath=yes
14696 if test yes = "$with_gnu_ld"; then
14703 version_type=linux # correct to gnu/linux during the next big refactor
14704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14705 soname_spec='$libname$release$shared_ext$major'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 case $host_vendor in
14709 shlibpath_overrides_runpath=no
14711 runpath_var=LD_RUN_PATH
14719 shlibpath_overrides_runpath=no
14720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14726 if test -d /usr/nec; then
14727 version_type=linux # correct to gnu/linux during the next big refactor
14728 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14729 soname_spec='$libname$shared_ext.$major'
14730 shlibpath_var=LD_LIBRARY_PATH
14734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14739 soname_spec='$libname$release$shared_ext$major'
14740 shlibpath_var=LD_LIBRARY_PATH
14741 shlibpath_overrides_runpath=yes
14742 hardcode_into_libs=yes
14743 if test yes = "$with_gnu_ld"; then
14744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14749 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14753 sys_lib_dlsearch_path_spec='/usr/lib'
14757 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14758 version_type=linux # correct to gnu/linux during the next big refactor
14761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14762 shlibpath_var=LD_LIBRARY_PATH
14763 shlibpath_overrides_runpath=no
14764 hardcode_into_libs=yes
14768 version_type=linux # correct to gnu/linux during the next big refactor
14769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14770 soname_spec='$libname$release$shared_ext$major'
14771 shlibpath_var=LD_LIBRARY_PATH
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14779 $as_echo "$dynamic_linker" >&6; }
14780 test no = "$dynamic_linker" && can_build_shared=no
14782 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14783 if test yes = "$GCC"; then
14784 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14787 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14788 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14791 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14792 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14795 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14796 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14798 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14799 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14801 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14802 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14901 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14903 if test -n "$hardcode_libdir_flag_spec" ||
14904 test -n "$runpath_var" ||
14905 test yes = "$hardcode_automatic"; then
14907 # We can hardcode non-existent directories.
14908 if test no != "$hardcode_direct" &&
14909 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14910 # have to relink, otherwise we might link with an installed library
14911 # when we should be linking with a yet-to-be-installed one
14912 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14913 test no != "$hardcode_minus_L"; then
14914 # Linking always hardcodes the temporary library directory.
14915 hardcode_action=relink
14917 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14918 hardcode_action=immediate
14921 # We cannot hardcode anything, or else we can only hardcode existing
14923 hardcode_action=unsupported
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14926 $as_echo "$hardcode_action" >&6; }
14928 if test relink = "$hardcode_action" ||
14929 test yes = "$inherit_rpath"; then
14930 # Fast installation is not supported
14931 enable_fast_install=no
14932 elif test yes = "$shlibpath_overrides_runpath" ||
14933 test no = "$enable_shared"; then
14934 # Fast installation is not necessary
14935 enable_fast_install=needless
14943 if test yes != "$enable_dlopen"; then
14944 enable_dlopen=unknown
14945 enable_dlopen_self=unknown
14946 enable_dlopen_self_static=unknown
14953 lt_cv_dlopen=load_add_on
14955 lt_cv_dlopen_self=yes
14958 mingw* | pw32* | cegcc*)
14959 lt_cv_dlopen=LoadLibrary
14964 lt_cv_dlopen=dlopen
14969 # if libdl is installed we need to link against it
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14971 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14972 if ${ac_cv_lib_dl_dlopen+:} false; then :
14973 $as_echo_n "(cached) " >&6
14975 ac_check_lib_save_LIBS=$LIBS
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14992 if ac_fn_c_try_link "$LINENO"; then :
14993 ac_cv_lib_dl_dlopen=yes
14995 ac_cv_lib_dl_dlopen=no
14997 rm -f core conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15002 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15003 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15004 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15009 lt_cv_dlopen_self=yes
15016 # Don't try to run any link tests for TPF. We know it's impossible
15017 # because TPF is a cross-compiler, and we know how we open DSOs.
15018 lt_cv_dlopen=dlopen
15020 lt_cv_dlopen_self=no
15024 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15025 if test "x$ac_cv_func_shl_load" = xyes; then :
15026 lt_cv_dlopen=shl_load
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15029 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15030 if ${ac_cv_lib_dld_shl_load+:} false; then :
15031 $as_echo_n "(cached) " >&6
15033 ac_check_lib_save_LIBS=$LIBS
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15045 return shl_load ();
15050 if ac_fn_c_try_link "$LINENO"; then :
15051 ac_cv_lib_dld_shl_load=yes
15053 ac_cv_lib_dld_shl_load=no
15055 rm -f core conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15057 LIBS=$ac_check_lib_save_LIBS
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15060 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15061 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15062 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15064 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15065 if test "x$ac_cv_func_dlopen" = xyes; then :
15066 lt_cv_dlopen=dlopen
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15069 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15070 if ${ac_cv_lib_dl_dlopen+:} false; then :
15071 $as_echo_n "(cached) " >&6
15073 ac_check_lib_save_LIBS=$LIBS
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15090 if ac_fn_c_try_link "$LINENO"; then :
15091 ac_cv_lib_dl_dlopen=yes
15093 ac_cv_lib_dl_dlopen=no
15095 rm -f core conftest.err conftest.$ac_objext \
15096 conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15101 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15102 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15105 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15106 if ${ac_cv_lib_svld_dlopen+:} false; then :
15107 $as_echo_n "(cached) " >&6
15109 ac_check_lib_save_LIBS=$LIBS
15110 LIBS="-lsvld $LIBS"
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15126 if ac_fn_c_try_link "$LINENO"; then :
15127 ac_cv_lib_svld_dlopen=yes
15129 ac_cv_lib_svld_dlopen=no
15131 rm -f core conftest.err conftest.$ac_objext \
15132 conftest$ac_exeext conftest.$ac_ext
15133 LIBS=$ac_check_lib_save_LIBS
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15136 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15137 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15138 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15141 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15142 if ${ac_cv_lib_dld_dld_link+:} false; then :
15143 $as_echo_n "(cached) " >&6
15145 ac_check_lib_save_LIBS=$LIBS
15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h. */
15157 return dld_link ();
15162 if ac_fn_c_try_link "$LINENO"; then :
15163 ac_cv_lib_dld_dld_link=yes
15165 ac_cv_lib_dld_dld_link=no
15167 rm -f core conftest.err conftest.$ac_objext \
15168 conftest$ac_exeext conftest.$ac_ext
15169 LIBS=$ac_check_lib_save_LIBS
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15172 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15173 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15174 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15195 if test no = "$lt_cv_dlopen"; then
15201 case $lt_cv_dlopen in
15203 save_CPPFLAGS=$CPPFLAGS
15204 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15206 save_LDFLAGS=$LDFLAGS
15207 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15210 LIBS="$lt_cv_dlopen_libs $LIBS"
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15213 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15214 if ${lt_cv_dlopen_self+:} false; then :
15215 $as_echo_n "(cached) " >&6
15217 if test yes = "$cross_compiling"; then :
15218 lt_cv_dlopen_self=cross
15220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15221 lt_status=$lt_dlunknown
15222 cat > conftest.$ac_ext <<_LT_EOF
15223 #line $LINENO "configure"
15224 #include "confdefs.h"
15233 # define LT_DLGLOBAL RTLD_GLOBAL
15236 # define LT_DLGLOBAL DL_GLOBAL
15238 # define LT_DLGLOBAL 0
15242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15243 find out it does not work in some platform. */
15244 #ifndef LT_DLLAZY_OR_NOW
15246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15249 # define LT_DLLAZY_OR_NOW DL_LAZY
15252 # define LT_DLLAZY_OR_NOW RTLD_NOW
15255 # define LT_DLLAZY_OR_NOW DL_NOW
15257 # define LT_DLLAZY_OR_NOW 0
15264 /* When -fvisibility=hidden is used, assume the code has been annotated
15265 correspondingly for the symbols needed. */
15266 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15267 int fnord () __attribute__((visibility("default")));
15270 int fnord () { return 42; }
15273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15274 int status = $lt_dlunknown;
15278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15281 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15282 else puts (dlerror ());
15284 /* dlclose (self); */
15292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15293 (eval $ac_link) 2>&5
15295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15296 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15297 (./conftest; exit; ) >&5 2>/dev/null
15299 case x$lt_status in
15300 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15301 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15302 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15305 # compilation failed
15306 lt_cv_dlopen_self=no
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15314 $as_echo "$lt_cv_dlopen_self" >&6; }
15316 if test yes = "$lt_cv_dlopen_self"; then
15317 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15319 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15320 if ${lt_cv_dlopen_self_static+:} false; then :
15321 $as_echo_n "(cached) " >&6
15323 if test yes = "$cross_compiling"; then :
15324 lt_cv_dlopen_self_static=cross
15326 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15327 lt_status=$lt_dlunknown
15328 cat > conftest.$ac_ext <<_LT_EOF
15329 #line $LINENO "configure"
15330 #include "confdefs.h"
15339 # define LT_DLGLOBAL RTLD_GLOBAL
15342 # define LT_DLGLOBAL DL_GLOBAL
15344 # define LT_DLGLOBAL 0
15348 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15349 find out it does not work in some platform. */
15350 #ifndef LT_DLLAZY_OR_NOW
15352 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15355 # define LT_DLLAZY_OR_NOW DL_LAZY
15358 # define LT_DLLAZY_OR_NOW RTLD_NOW
15361 # define LT_DLLAZY_OR_NOW DL_NOW
15363 # define LT_DLLAZY_OR_NOW 0
15370 /* When -fvisibility=hidden is used, assume the code has been annotated
15371 correspondingly for the symbols needed. */
15372 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15373 int fnord () __attribute__((visibility("default")));
15376 int fnord () { return 42; }
15379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15380 int status = $lt_dlunknown;
15384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15387 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15388 else puts (dlerror ());
15390 /* dlclose (self); */
15398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15399 (eval $ac_link) 2>&5
15401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15402 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15403 (./conftest; exit; ) >&5 2>/dev/null
15405 case x$lt_status in
15406 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15407 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15408 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15411 # compilation failed
15412 lt_cv_dlopen_self_static=no
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15420 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15423 CPPFLAGS=$save_CPPFLAGS
15424 LDFLAGS=$save_LDFLAGS
15429 case $lt_cv_dlopen_self in
15430 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15431 *) enable_dlopen_self=unknown ;;
15434 case $lt_cv_dlopen_self_static in
15435 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15436 *) enable_dlopen_self_static=unknown ;;
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15459 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15460 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15461 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15462 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15464 $as_echo "yes" >&6; }
15466 # FIXME - insert some real tests, host_os isn't really good enough
15469 if test -n "$STRIP"; then
15470 striplib="$STRIP -x"
15471 old_striplib="$STRIP -S"
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15473 $as_echo "yes" >&6; }
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15476 $as_echo "no" >&6; }
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15481 $as_echo "no" >&6; }
15497 # Report what library types will actually be built
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15499 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15501 $as_echo "$can_build_shared" >&6; }
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15504 $as_echo_n "checking whether to build shared libraries... " >&6; }
15505 test no = "$can_build_shared" && enable_shared=no
15507 # On AIX, shared libraries and static libraries use the same namespace, and
15508 # are all built from PIC.
15511 test yes = "$enable_shared" && enable_static=no
15512 if test -n "$RANLIB"; then
15513 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15514 postinstall_cmds='$RANLIB $lib'
15519 if test ia64 != "$host_cpu"; then
15520 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15521 yes,aix,yes) ;; # shared object as lib.so file only
15522 yes,svr4,*) ;; # shared object as lib.so archive member only
15523 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15529 $as_echo "$enable_shared" >&6; }
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15532 $as_echo_n "checking whether to build static libraries... " >&6; }
15533 # Make sure either enable_shared or enable_static is yes.
15534 test yes = "$enable_shared" || enable_static=yes
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15536 $as_echo "$enable_static" >&6; }
15543 ac_cpp='$CPP $CPPFLAGS'
15544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15564 ac_config_commands="$ac_config_commands libtool"
15569 # Only expand once:
15572 ## --------------------- ##
15573 ## End of libtool code ##
15574 ## --------------------- ##
15577 # Verify if finally libtool shared libraries will be built
15580 case "x$enable_shared" in # ((
15582 xc_lt_build_shared=$enable_shared
15585 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15590 # Verify if finally libtool static libraries will be built
15593 case "x$enable_static" in # ((
15595 xc_lt_build_static=$enable_static
15598 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15603 # Verify if libtool shared libraries should be linked using flag -version-info
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15607 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15608 xc_lt_shlib_use_version_info='yes'
15609 if test "x$version_type" = 'xnone'; then
15610 xc_lt_shlib_use_version_info='no'
15612 case $host_os in # (
15614 xc_lt_shlib_use_version_info='yes'
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15618 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15621 # Verify if libtool shared libraries should be linked using flag -no-undefined
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15625 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15626 xc_lt_shlib_use_no_undefined='no'
15627 if test "x$allow_undefined" = 'xno'; then
15628 xc_lt_shlib_use_no_undefined='yes'
15629 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15630 xc_lt_shlib_use_no_undefined='yes'
15632 case $host_os in # (
15633 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15634 xc_lt_shlib_use_no_undefined='yes'
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15638 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15641 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15645 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15646 xc_lt_shlib_use_mimpure_text='no'
15647 case $host_os in # (
15649 if test "x$GCC" = 'xyes'; then
15650 xc_lt_shlib_use_mimpure_text='yes'
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15655 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15658 # Find out whether libtool libraries would be built wit PIC
15661 case "x$pic_mode" in # ((((
15663 xc_lt_build_shared_with_pic='yes'
15664 xc_lt_build_static_with_pic='no'
15667 xc_lt_build_shared_with_pic='yes'
15668 xc_lt_build_static_with_pic='yes'
15671 xc_lt_build_shared_with_pic='no'
15672 xc_lt_build_static_with_pic='no'
15675 xc_lt_build_shared_with_pic='unknown'
15676 xc_lt_build_static_with_pic='unknown'
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15678 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15682 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15684 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15686 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15688 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15691 # Verify if libtool shared libraries will be built while static not built
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15695 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15696 if test "$xc_lt_build_shared" = 'yes' &&
15697 test "$xc_lt_build_static" = 'no'; then
15698 xc_lt_build_shared_only='yes'
15700 xc_lt_build_shared_only='no'
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15703 $as_echo "$xc_lt_build_shared_only" >&6; }
15706 # Verify if libtool static libraries will be built while shared not built
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15710 $as_echo_n "checking whether to build static libraries only... " >&6; }
15711 if test "$xc_lt_build_static" = 'yes' &&
15712 test "$xc_lt_build_shared" = 'no'; then
15713 xc_lt_build_static_only='yes'
15715 xc_lt_build_static_only='no'
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15718 $as_echo "$xc_lt_build_static_only" >&6; }
15724 # Automake conditionals based on libtool related checks
15727 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15728 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15729 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15731 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15732 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15735 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15736 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15737 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15739 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15740 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15743 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15744 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15745 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15747 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15748 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15753 # Due to libtool and automake machinery limitations of not allowing
15754 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15755 # inclusion of these in shared or static libraries, we are forced to
15756 # build using separate configure runs for shared and static libraries
15757 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15758 # to compile objects for each kind of library. Notice that relying on
15759 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15760 # user might for example choose to build static libraries with PIC.
15764 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15765 # targeting a static library and not building its shared counterpart.
15768 if test "x$xc_lt_build_static_only" = 'xyes'; then
15769 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15770 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15772 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15773 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15778 # Make staticlib CPPFLAG variable and its definition visible in output
15779 # files unconditionally, providing an empty definition unless strictly
15780 # targeting a static library and not building its shared counterpart.
15783 CPPFLAG_CURL_STATICLIB=
15784 if test "x$xc_lt_build_static_only" = 'xyes'; then
15785 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15790 # Determine whether all dependent libraries must be specified when linking
15791 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15793 REQUIRE_LIB_DEPS=no
15795 REQUIRE_LIB_DEPS=yes
15798 if test x$REQUIRE_LIB_DEPS = xyes; then
15799 USE_EXPLICIT_LIB_DEPS_TRUE=
15800 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15802 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15803 USE_EXPLICIT_LIB_DEPS_FALSE=
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15808 $as_echo_n "checking for inline... " >&6; }
15809 if ${ac_cv_c_inline+:} false; then :
15810 $as_echo_n "(cached) " >&6
15813 for ac_kw in inline __inline__ __inline; do
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816 #ifndef __cplusplus
15818 static $ac_kw foo_t static_foo () {return 0; }
15819 $ac_kw foo_t foo () {return 0; }
15823 if ac_fn_c_try_compile "$LINENO"; then :
15824 ac_cv_c_inline=$ac_kw
15826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827 test "$ac_cv_c_inline" != no && break
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15832 $as_echo "$ac_cv_c_inline" >&6; }
15834 case $ac_cv_c_inline in
15837 case $ac_cv_c_inline in
15839 *) ac_val=$ac_cv_c_inline;;
15841 cat >>confdefs.h <<_ACEOF
15842 #ifndef __cplusplus
15843 #define inline $ac_val
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15853 $as_echo_n "checking if cpp -P is needed... " >&6; }
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15862 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15870 $as_echo "$cpp" >&6; }
15872 if test "x$cpp" = "xyes"; then
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15874 $as_echo_n "checking if cpp -P works... " >&6; }
15875 OLDCPPFLAGS=$CPPFLAGS
15876 CPPFLAGS="$CPPFLAGS -P"
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15885 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15893 $as_echo "$cpp_p" >&6; }
15895 if test "x$cpp_p" = "xno"; then
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15897 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15904 CPPFLAGS=$OLDCPPFLAGS
15912 compiler_id="unknown"
15915 flags_dbg_all="unknown"
15916 flags_dbg_yes="unknown"
15917 flags_dbg_off="unknown"
15918 flags_opt_all="unknown"
15919 flags_opt_yes="unknown"
15920 flags_opt_off="unknown"
15922 flags_prefer_cppflags="no"
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15926 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15928 OLDCPPFLAGS=$CPPFLAGS
15929 # CPPPFLAG comes from CURL_CPP_P
15930 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15931 if test -z "$SED"; then
15932 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15934 if test -z "$GREP"; then
15935 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15944 CURL_DEF_TOKEN __DECC
15949 if ac_fn_c_try_cpp "$LINENO"; then :
15951 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15952 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15953 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15954 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15955 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15960 rm -f conftest.err conftest.i conftest.$ac_ext
15961 if test -z "$tmp_exp"; then
15962 curl_cv_have_def___DECC=no
15965 curl_cv_have_def___DECC=yes
15966 curl_cv_def___DECC=$tmp_exp
15969 CPPFLAGS=$OLDCPPFLAGS
15972 OLDCPPFLAGS=$CPPFLAGS
15973 # CPPPFLAG comes from CURL_CPP_P
15974 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15975 if test -z "$SED"; then
15976 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15978 if test -z "$GREP"; then
15979 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15988 CURL_DEF_TOKEN __DECC_VER
15993 if ac_fn_c_try_cpp "$LINENO"; then :
15995 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15996 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15997 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15998 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15999 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16004 rm -f conftest.err conftest.i conftest.$ac_ext
16005 if test -z "$tmp_exp"; then
16006 curl_cv_have_def___DECC_VER=no
16009 curl_cv_have_def___DECC_VER=yes
16010 curl_cv_def___DECC_VER=$tmp_exp
16013 CPPFLAGS=$OLDCPPFLAGS
16015 if test "$curl_cv_have_def___DECC" = "yes" &&
16016 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16018 $as_echo "yes" >&6; }
16019 compiler_id="DEC_C"
16020 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16021 flags_dbg_yes="-g2"
16023 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16024 flags_opt_yes="-O1"
16025 flags_opt_off="-O0"
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16028 $as_echo "no" >&6; }
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16033 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16035 OLDCPPFLAGS=$CPPFLAGS
16036 # CPPPFLAG comes from CURL_CPP_P
16037 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16038 if test -z "$SED"; then
16039 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16041 if test -z "$GREP"; then
16042 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h. */
16051 CURL_DEF_TOKEN __HP_cc
16056 if ac_fn_c_try_cpp "$LINENO"; then :
16058 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16059 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16060 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16061 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16062 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16067 rm -f conftest.err conftest.i conftest.$ac_ext
16068 if test -z "$tmp_exp"; then
16069 curl_cv_have_def___HP_cc=no
16072 curl_cv_have_def___HP_cc=yes
16073 curl_cv_def___HP_cc=$tmp_exp
16076 CPPFLAGS=$OLDCPPFLAGS
16078 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16080 $as_echo "yes" >&6; }
16081 compiler_id="HP_UX_C"
16082 flags_dbg_all="-g -s"
16085 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16086 flags_opt_yes="+O2"
16087 flags_opt_off="+O0"
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16090 $as_echo "no" >&6; }
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16095 $as_echo_n "checking if compiler is IBM C... " >&6; }
16097 OLDCPPFLAGS=$CPPFLAGS
16098 # CPPPFLAG comes from CURL_CPP_P
16099 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16100 if test -z "$SED"; then
16101 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16103 if test -z "$GREP"; then
16104 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16113 CURL_DEF_TOKEN __IBMC__
16118 if ac_fn_c_try_cpp "$LINENO"; then :
16120 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16121 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16122 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16123 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16124 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16129 rm -f conftest.err conftest.i conftest.$ac_ext
16130 if test -z "$tmp_exp"; then
16131 curl_cv_have_def___IBMC__=no
16134 curl_cv_have_def___IBMC__=yes
16135 curl_cv_def___IBMC__=$tmp_exp
16138 CPPFLAGS=$OLDCPPFLAGS
16140 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16142 $as_echo "yes" >&6; }
16143 compiler_id="IBM_C"
16144 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16147 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16148 flags_opt_all="$flags_opt_all -qnooptimize"
16149 flags_opt_all="$flags_opt_all -qoptimize=0"
16150 flags_opt_all="$flags_opt_all -qoptimize=1"
16151 flags_opt_all="$flags_opt_all -qoptimize=2"
16152 flags_opt_all="$flags_opt_all -qoptimize=3"
16153 flags_opt_all="$flags_opt_all -qoptimize=4"
16154 flags_opt_all="$flags_opt_all -qoptimize=5"
16155 flags_opt_yes="-O2"
16156 flags_opt_off="-qnooptimize"
16157 flags_prefer_cppflags="yes"
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160 $as_echo "no" >&6; }
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16165 $as_echo_n "checking if compiler is Intel C... " >&6; }
16167 OLDCPPFLAGS=$CPPFLAGS
16168 # CPPPFLAG comes from CURL_CPP_P
16169 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16170 if test -z "$SED"; then
16171 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16173 if test -z "$GREP"; then
16174 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16179 /* end confdefs.h. */
16182 #ifdef __INTEL_COMPILER
16183 CURL_DEF_TOKEN __INTEL_COMPILER
16188 if ac_fn_c_try_cpp "$LINENO"; then :
16190 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16191 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16192 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16193 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16194 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16199 rm -f conftest.err conftest.i conftest.$ac_ext
16200 if test -z "$tmp_exp"; then
16201 curl_cv_have_def___INTEL_COMPILER=no
16204 curl_cv_have_def___INTEL_COMPILER=yes
16205 curl_cv_def___INTEL_COMPILER=$tmp_exp
16208 CPPFLAGS=$OLDCPPFLAGS
16210 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16212 $as_echo "yes" >&6; }
16213 compiler_num="$curl_cv_def___INTEL_COMPILER"
16215 OLDCPPFLAGS=$CPPFLAGS
16216 # CPPPFLAG comes from CURL_CPP_P
16217 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16218 if test -z "$SED"; then
16219 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16221 if test -z "$GREP"; then
16222 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h. */
16231 CURL_DEF_TOKEN __unix__
16236 if ac_fn_c_try_cpp "$LINENO"; then :
16238 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16239 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16240 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16241 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16242 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16247 rm -f conftest.err conftest.i conftest.$ac_ext
16248 if test -z "$tmp_exp"; then
16249 curl_cv_have_def___unix__=no
16252 curl_cv_have_def___unix__=yes
16253 curl_cv_def___unix__=$tmp_exp
16256 CPPFLAGS=$OLDCPPFLAGS
16258 if test "$curl_cv_have_def___unix__" = "yes"; then
16259 compiler_id="INTEL_UNIX_C"
16260 flags_dbg_all="-g -g0"
16263 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16264 flags_opt_yes="-O2"
16265 flags_opt_off="-O0"
16267 compiler_id="INTEL_WINDOWS_C"
16268 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16269 flags_dbg_all="$flags_dbg_all /debug"
16270 flags_dbg_all="$flags_dbg_all /debug:none"
16271 flags_dbg_all="$flags_dbg_all /debug:minimal"
16272 flags_dbg_all="$flags_dbg_all /debug:partial"
16273 flags_dbg_all="$flags_dbg_all /debug:full"
16274 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16275 flags_dbg_all="$flags_dbg_all /debug:extended"
16276 flags_dbg_yes="/Zi /Oy-"
16277 flags_dbg_off="/debug:none /Oy-"
16278 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16279 flags_opt_yes="/O2"
16280 flags_opt_off="/Od"
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 $as_echo "no" >&6; }
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16289 $as_echo_n "checking if compiler is clang... " >&6; }
16291 OLDCPPFLAGS=$CPPFLAGS
16292 # CPPPFLAG comes from CURL_CPP_P
16293 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16294 if test -z "$SED"; then
16295 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16297 if test -z "$GREP"; then
16298 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16307 CURL_DEF_TOKEN __clang__
16312 if ac_fn_c_try_cpp "$LINENO"; then :
16314 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16315 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16316 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16317 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16318 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16323 rm -f conftest.err conftest.i conftest.$ac_ext
16324 if test -z "$tmp_exp"; then
16325 curl_cv_have_def___clang__=no
16328 curl_cv_have_def___clang__=yes
16329 curl_cv_def___clang__=$tmp_exp
16332 CPPFLAGS=$OLDCPPFLAGS
16334 if test "$curl_cv_have_def___clang__" = "yes"; then
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16336 $as_echo "yes" >&6; }
16337 compiler_id="CLANG"
16338 fullclangver=`$CC -v 2>&1 | grep version`
16339 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16340 if test -z "$clangver"; then
16341 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
16344 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16347 clangvhi=`echo $clangver | cut -d . -f1`
16348 clangvlo=`echo $clangver | cut -d . -f2`
16349 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16350 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16351 flags_dbg_all="$flags_dbg_all -ggdb"
16352 flags_dbg_all="$flags_dbg_all -gstabs"
16353 flags_dbg_all="$flags_dbg_all -gstabs+"
16354 flags_dbg_all="$flags_dbg_all -gcoff"
16355 flags_dbg_all="$flags_dbg_all -gxcoff"
16356 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16357 flags_dbg_all="$flags_dbg_all -gvms"
16360 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16361 flags_opt_yes="-Os"
16362 flags_opt_off="-O0"
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16370 $as_echo_n "checking if compiler is GNU C... " >&6; }
16372 OLDCPPFLAGS=$CPPFLAGS
16373 # CPPPFLAG comes from CURL_CPP_P
16374 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16375 if test -z "$SED"; then
16376 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16378 if test -z "$GREP"; then
16379 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16388 CURL_DEF_TOKEN __GNUC__
16393 if ac_fn_c_try_cpp "$LINENO"; then :
16395 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16396 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16397 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16398 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16399 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16404 rm -f conftest.err conftest.i conftest.$ac_ext
16405 if test -z "$tmp_exp"; then
16406 curl_cv_have_def___GNUC__=no
16409 curl_cv_have_def___GNUC__=yes
16410 curl_cv_def___GNUC__=$tmp_exp
16413 CPPFLAGS=$OLDCPPFLAGS
16415 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16416 test "$compiler_id" = "unknown"; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16418 $as_echo "yes" >&6; }
16419 compiler_id="GNU_C"
16420 gccver=`$CC -dumpversion`
16421 gccvhi=`echo $gccver | cut -d . -f1`
16422 gccvlo=`echo $gccver | cut -d . -f2`
16423 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16424 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16425 flags_dbg_all="$flags_dbg_all -ggdb"
16426 flags_dbg_all="$flags_dbg_all -gstabs"
16427 flags_dbg_all="$flags_dbg_all -gstabs+"
16428 flags_dbg_all="$flags_dbg_all -gcoff"
16429 flags_dbg_all="$flags_dbg_all -gxcoff"
16430 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16431 flags_dbg_all="$flags_dbg_all -gvms"
16434 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16435 flags_opt_yes="-O2"
16436 flags_opt_off="-O0"
16438 OLDCPPFLAGS=$CPPFLAGS
16439 # CPPPFLAG comes from CURL_CPP_P
16440 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16441 if test -z "$SED"; then
16442 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16444 if test -z "$GREP"; then
16445 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16454 CURL_DEF_TOKEN _WIN32
16459 if ac_fn_c_try_cpp "$LINENO"; then :
16461 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16462 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16463 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16464 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16465 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16470 rm -f conftest.err conftest.i conftest.$ac_ext
16471 if test -z "$tmp_exp"; then
16472 curl_cv_have_def__WIN32=no
16475 curl_cv_have_def__WIN32=yes
16476 curl_cv_def__WIN32=$tmp_exp
16479 CPPFLAGS=$OLDCPPFLAGS
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16483 $as_echo "no" >&6; }
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16488 $as_echo_n "checking if compiler is LCC... " >&6; }
16490 OLDCPPFLAGS=$CPPFLAGS
16491 # CPPPFLAG comes from CURL_CPP_P
16492 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16493 if test -z "$SED"; then
16494 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16496 if test -z "$GREP"; then
16497 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16506 CURL_DEF_TOKEN __LCC__
16511 if ac_fn_c_try_cpp "$LINENO"; then :
16513 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16514 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16515 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16516 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16517 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16522 rm -f conftest.err conftest.i conftest.$ac_ext
16523 if test -z "$tmp_exp"; then
16524 curl_cv_have_def___LCC__=no
16527 curl_cv_have_def___LCC__=yes
16528 curl_cv_def___LCC__=$tmp_exp
16531 CPPFLAGS=$OLDCPPFLAGS
16533 if test "$curl_cv_have_def___LCC__" = "yes"; then
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16535 $as_echo "yes" >&6; }
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545 $as_echo "no" >&6; }
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16550 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16552 OLDCPPFLAGS=$CPPFLAGS
16553 # CPPPFLAG comes from CURL_CPP_P
16554 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16555 if test -z "$SED"; then
16556 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16558 if test -z "$GREP"; then
16559 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16568 CURL_DEF_TOKEN __GNUC__
16573 if ac_fn_c_try_cpp "$LINENO"; then :
16575 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16576 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16577 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16578 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16579 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16584 rm -f conftest.err conftest.i conftest.$ac_ext
16585 if test -z "$tmp_exp"; then
16586 curl_cv_have_def___GNUC__=no
16589 curl_cv_have_def___GNUC__=yes
16590 curl_cv_def___GNUC__=$tmp_exp
16593 CPPFLAGS=$OLDCPPFLAGS
16596 OLDCPPFLAGS=$CPPFLAGS
16597 # CPPPFLAG comes from CURL_CPP_P
16598 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16599 if test -z "$SED"; then
16600 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16602 if test -z "$GREP"; then
16603 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16611 #ifdef _COMPILER_VERSION
16612 CURL_DEF_TOKEN _COMPILER_VERSION
16617 if ac_fn_c_try_cpp "$LINENO"; then :
16619 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16620 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16621 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16622 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16623 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16628 rm -f conftest.err conftest.i conftest.$ac_ext
16629 if test -z "$tmp_exp"; then
16630 curl_cv_have_def__COMPILER_VERSION=no
16633 curl_cv_have_def__COMPILER_VERSION=yes
16634 curl_cv_def__COMPILER_VERSION=$tmp_exp
16637 CPPFLAGS=$OLDCPPFLAGS
16640 OLDCPPFLAGS=$CPPFLAGS
16641 # CPPPFLAG comes from CURL_CPP_P
16642 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16643 if test -z "$SED"; then
16644 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16646 if test -z "$GREP"; then
16647 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16655 #ifdef _SGI_COMPILER_VERSION
16656 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16661 if ac_fn_c_try_cpp "$LINENO"; then :
16663 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16664 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16665 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16666 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16667 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16672 rm -f conftest.err conftest.i conftest.$ac_ext
16673 if test -z "$tmp_exp"; then
16674 curl_cv_have_def__SGI_COMPILER_VERSION=no
16677 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16678 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16681 CPPFLAGS=$OLDCPPFLAGS
16683 if test "$curl_cv_have_def___GNUC__" = "no" &&
16684 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16685 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16687 $as_echo "yes" >&6; }
16688 compiler_id="SGI_MIPSPRO_C"
16689 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16692 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16693 flags_opt_yes="-O2"
16694 flags_opt_off="-O0"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16702 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16704 OLDCPPFLAGS=$CPPFLAGS
16705 # CPPPFLAG comes from CURL_CPP_P
16706 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16707 if test -z "$SED"; then
16708 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16710 if test -z "$GREP"; then
16711 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16720 CURL_DEF_TOKEN __GNUC__
16725 if ac_fn_c_try_cpp "$LINENO"; then :
16727 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16728 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16729 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16730 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16731 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16736 rm -f conftest.err conftest.i conftest.$ac_ext
16737 if test -z "$tmp_exp"; then
16738 curl_cv_have_def___GNUC__=no
16741 curl_cv_have_def___GNUC__=yes
16742 curl_cv_def___GNUC__=$tmp_exp
16745 CPPFLAGS=$OLDCPPFLAGS
16748 OLDCPPFLAGS=$CPPFLAGS
16749 # CPPPFLAG comes from CURL_CPP_P
16750 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16751 if test -z "$SED"; then
16752 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16754 if test -z "$GREP"; then
16755 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16764 CURL_DEF_TOKEN __sgi
16769 if ac_fn_c_try_cpp "$LINENO"; then :
16771 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16772 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16773 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16774 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16775 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16780 rm -f conftest.err conftest.i conftest.$ac_ext
16781 if test -z "$tmp_exp"; then
16782 curl_cv_have_def___sgi=no
16785 curl_cv_have_def___sgi=yes
16786 curl_cv_def___sgi=$tmp_exp
16789 CPPFLAGS=$OLDCPPFLAGS
16791 if test "$curl_cv_have_def___GNUC__" = "no" &&
16792 test "$curl_cv_have_def___sgi" = "yes" &&
16793 test "$compiler_id" = "unknown"; then
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16795 $as_echo "yes" >&6; }
16796 compiler_id="SGI_MIPS_C"
16797 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16800 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16801 flags_opt_yes="-O2"
16802 flags_opt_off="-O0"
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805 $as_echo "no" >&6; }
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16810 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16812 OLDCPPFLAGS=$CPPFLAGS
16813 # CPPPFLAG comes from CURL_CPP_P
16814 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16815 if test -z "$SED"; then
16816 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16818 if test -z "$GREP"; then
16819 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16828 CURL_DEF_TOKEN __SUNPRO_C
16833 if ac_fn_c_try_cpp "$LINENO"; then :
16835 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16836 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16837 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16838 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16839 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16844 rm -f conftest.err conftest.i conftest.$ac_ext
16845 if test -z "$tmp_exp"; then
16846 curl_cv_have_def___SUNPRO_C=no
16849 curl_cv_have_def___SUNPRO_C=yes
16850 curl_cv_def___SUNPRO_C=$tmp_exp
16853 CPPFLAGS=$OLDCPPFLAGS
16855 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16857 $as_echo "yes" >&6; }
16858 compiler_id="SUNPRO_C"
16859 flags_dbg_all="-g -s"
16862 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16863 flags_opt_yes="-xO2"
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16867 $as_echo "no" >&6; }
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16872 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16874 OLDCPPFLAGS=$CPPFLAGS
16875 # CPPPFLAG comes from CURL_CPP_P
16876 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16877 if test -z "$SED"; then
16878 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16880 if test -z "$GREP"; then
16881 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16890 CURL_DEF_TOKEN __TINYC__
16895 if ac_fn_c_try_cpp "$LINENO"; then :
16897 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16898 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16899 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16900 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16901 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16906 rm -f conftest.err conftest.i conftest.$ac_ext
16907 if test -z "$tmp_exp"; then
16908 curl_cv_have_def___TINYC__=no
16911 curl_cv_have_def___TINYC__=yes
16912 curl_cv_def___TINYC__=$tmp_exp
16915 CPPFLAGS=$OLDCPPFLAGS
16917 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16919 $as_echo "yes" >&6; }
16920 compiler_id="TINY_C"
16921 flags_dbg_all="-g -b"
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16929 $as_echo "no" >&6; }
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16934 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16936 OLDCPPFLAGS=$CPPFLAGS
16937 # CPPPFLAG comes from CURL_CPP_P
16938 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16939 if test -z "$SED"; then
16940 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16942 if test -z "$GREP"; then
16943 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h. */
16952 CURL_DEF_TOKEN __WATCOMC__
16957 if ac_fn_c_try_cpp "$LINENO"; then :
16959 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16960 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16961 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16962 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16963 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16968 rm -f conftest.err conftest.i conftest.$ac_ext
16969 if test -z "$tmp_exp"; then
16970 curl_cv_have_def___WATCOMC__=no
16973 curl_cv_have_def___WATCOMC__=yes
16974 curl_cv_def___WATCOMC__=$tmp_exp
16977 CPPFLAGS=$OLDCPPFLAGS
16979 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16981 $as_echo "yes" >&6; }
16983 OLDCPPFLAGS=$CPPFLAGS
16984 # CPPPFLAG comes from CURL_CPP_P
16985 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16986 if test -z "$SED"; then
16987 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16989 if test -z "$GREP"; then
16990 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16999 CURL_DEF_TOKEN __UNIX__
17004 if ac_fn_c_try_cpp "$LINENO"; then :
17006 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17007 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17008 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17009 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17010 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17015 rm -f conftest.err conftest.i conftest.$ac_ext
17016 if test -z "$tmp_exp"; then
17017 curl_cv_have_def___UNIX__=no
17020 curl_cv_have_def___UNIX__=yes
17021 curl_cv_def___UNIX__=$tmp_exp
17024 CPPFLAGS=$OLDCPPFLAGS
17026 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17027 compiler_id="WATCOM_UNIX_C"
17028 flags_dbg_all="-g1 -g1+ -g2 -g3"
17029 flags_dbg_yes="-g2"
17031 flags_opt_all="-O0 -O1 -O2 -O3"
17032 flags_opt_yes="-O2"
17033 flags_opt_off="-O0"
17035 compiler_id="WATCOM_WINDOWS_C"
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045 $as_echo "no" >&6; }
17049 if test "$compiler_id" = "unknown"; then
17052 *** Warning: This configure script does not have information about the
17053 *** compiler you are using, relative to the flags required to enable or
17054 *** disable generation of debug info, optimization options or warnings.
17056 *** Whatever settings are present in CFLAGS will be used for this run.
17058 *** If you wish to help the curl project to better support your compiler
17059 *** you can report this and the required info on the libcurl development
17060 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17068 eval _sqz_input=\$$1
17069 for _sqz_token in $_sqz_input; do
17070 if test -z "$_sqz_result"; then
17071 _sqz_result="$_sqz_token"
17073 _sqz_result="$_sqz_result $_sqz_token"
17076 eval $1=\$_sqz_result
17082 if test "$compiler_id" != "unknown"; then
17084 if test "$compiler_id" = "GNU_C" ||
17085 test "$compiler_id" = "CLANG"; then
17087 if test "$compiler_id" = "GNU_C" ||
17088 test "$compiler_id" = "CLANG"; then
17089 tmp_has_include="no"
17090 tmp_chg_FLAGS="$CFLAGS"
17091 for word1 in $tmp_chg_FLAGS; do
17094 tmp_has_include="yes"
17098 if test "$tmp_has_include" = "yes"; then
17099 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17100 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17101 CFLAGS="$tmp_chg_FLAGS"
17104 tmp_has_include="no"
17105 tmp_chg_FLAGS="$CPPFLAGS"
17106 for word1 in $tmp_chg_FLAGS; do
17109 tmp_has_include="yes"
17113 if test "$tmp_has_include" = "yes"; then
17114 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17115 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17116 CPPFLAGS="$tmp_chg_FLAGS"
17123 tmp_save_CPPFLAGS="$CPPFLAGS"
17124 tmp_save_CFLAGS="$CFLAGS"
17128 case "$compiler_id" in
17132 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17137 tmp_CFLAGS="$tmp_CFLAGS -std1"
17138 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17139 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17140 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17145 if test "$compiler_num" -ge "295"; then
17146 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17152 tmp_CFLAGS="$tmp_CFLAGS -z"
17153 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17158 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17159 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17160 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17165 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17166 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17167 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17172 tmp_CFLAGS="$tmp_CFLAGS"
17177 tmp_CFLAGS="$tmp_CFLAGS -n"
17182 tmp_CFLAGS="$tmp_CFLAGS"
17187 tmp_CFLAGS="$tmp_CFLAGS"
17192 tmp_CFLAGS="$tmp_CFLAGS"
17197 tmp_CFLAGS="$tmp_CFLAGS"
17202 tmp_CFLAGS="$tmp_CFLAGS"
17207 tmp_CFLAGS="$tmp_CFLAGS"
17212 squeeze tmp_CPPFLAGS
17215 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17217 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17218 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17219 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17223 tmp_compiler_works="unknown"
17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h. */
17240 if ac_fn_c_try_compile "$LINENO"; then :
17242 tmp_compiler_works="yes"
17246 tmp_compiler_works="no"
17248 sed 's/^/cc-fail: /' conftest.err >&6
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253 if test "$tmp_compiler_works" = "yes"; then
17254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h. */
17270 if ac_fn_c_try_link "$LINENO"; then :
17272 tmp_compiler_works="yes"
17276 tmp_compiler_works="no"
17278 sed 's/^/link-fail: /' conftest.err >&6
17282 rm -f core conftest.err conftest.$ac_objext \
17283 conftest$ac_exeext conftest.$ac_ext
17285 if test "x$cross_compiling" != "xyes" &&
17286 test "$tmp_compiler_works" = "yes"; then
17289 old=$LD_LIBRARY_PATH
17290 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17291 export LD_LIBRARY_PATH
17292 if test "$cross_compiling" = yes; then :
17293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17295 as_fn_error $? "cannot run test program while cross compiling
17296 See \`config.log' for more details" "$LINENO" 5; }
17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h. */
17303 # include <stdlib.h>
17317 if ac_fn_c_try_run "$LINENO"; then :
17318 tmp_compiler_works="yes"
17321 tmp_compiler_works="no"
17323 echo "run-fail: test program exited with status $ac_status" >&6
17327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17328 conftest.$ac_objext conftest.beam conftest.$ac_ext
17331 LD_LIBRARY_PATH=$old # restore
17334 if test "$tmp_compiler_works" = "yes"; then
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17337 $as_echo "yes" >&6; }
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17339 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17344 $as_echo "no" >&6; }
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17346 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17347 CPPFLAGS="$tmp_save_CPPFLAGS"
17348 CFLAGS="$tmp_save_CFLAGS"
17358 if test "$compiler_id" != "unknown"; then
17360 tmp_save_CFLAGS="$CFLAGS"
17361 tmp_save_CPPFLAGS="$CPPFLAGS"
17364 tmp_CFLAGS="$CFLAGS"
17365 tmp_CPPFLAGS="$CPPFLAGS"
17368 for word1 in $tmp_CFLAGS; do
17369 ac_var_strip_word="no"
17370 for word2 in $flags_dbg_all; do
17371 if test "$word1" = "$word2"; then
17372 ac_var_strip_word="yes"
17375 if test "$ac_var_strip_word" = "no"; then
17376 ac_var_stripped="$ac_var_stripped $word1"
17379 tmp_CFLAGS="$ac_var_stripped"
17384 for word1 in $tmp_CPPFLAGS; do
17385 ac_var_strip_word="no"
17386 for word2 in $flags_dbg_all; do
17387 if test "$word1" = "$word2"; then
17388 ac_var_strip_word="yes"
17391 if test "$ac_var_strip_word" = "no"; then
17392 ac_var_stripped="$ac_var_stripped $word1"
17395 tmp_CPPFLAGS="$ac_var_stripped"
17396 squeeze tmp_CPPFLAGS
17399 if test "$want_debug" = "yes"; then
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17401 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17402 tmp_options="$flags_dbg_yes"
17404 if test "$want_debug" = "no"; then
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17406 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17407 tmp_options="$flags_dbg_off"
17410 if test "$flags_prefer_cppflags" = "yes"; then
17411 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17412 CFLAGS="$tmp_CFLAGS"
17414 CPPFLAGS="$tmp_CPPFLAGS"
17415 CFLAGS="$tmp_CFLAGS $tmp_options"
17420 tmp_compiler_works="unknown"
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17437 if ac_fn_c_try_compile "$LINENO"; then :
17439 tmp_compiler_works="yes"
17443 tmp_compiler_works="no"
17445 sed 's/^/cc-fail: /' conftest.err >&6
17449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450 if test "$tmp_compiler_works" = "yes"; then
17451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452 /* end confdefs.h. */
17467 if ac_fn_c_try_link "$LINENO"; then :
17469 tmp_compiler_works="yes"
17473 tmp_compiler_works="no"
17475 sed 's/^/link-fail: /' conftest.err >&6
17479 rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
17482 if test "x$cross_compiling" != "xyes" &&
17483 test "$tmp_compiler_works" = "yes"; then
17486 old=$LD_LIBRARY_PATH
17487 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17488 export LD_LIBRARY_PATH
17489 if test "$cross_compiling" = yes; then :
17490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17492 as_fn_error $? "cannot run test program while cross compiling
17493 See \`config.log' for more details" "$LINENO" 5; }
17495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496 /* end confdefs.h. */
17500 # include <stdlib.h>
17514 if ac_fn_c_try_run "$LINENO"; then :
17515 tmp_compiler_works="yes"
17518 tmp_compiler_works="no"
17520 echo "run-fail: test program exited with status $ac_status" >&6
17524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17525 conftest.$ac_objext conftest.beam conftest.$ac_ext
17528 LD_LIBRARY_PATH=$old # restore
17531 if test "$tmp_compiler_works" = "yes"; then
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17534 $as_echo "yes" >&6; }
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17536 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17541 $as_echo "no" >&6; }
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17543 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17544 CPPFLAGS="$tmp_save_CPPFLAGS"
17545 CFLAGS="$tmp_save_CFLAGS"
17554 if test "$compiler_id" != "unknown"; then
17556 tmp_save_CFLAGS="$CFLAGS"
17557 tmp_save_CPPFLAGS="$CPPFLAGS"
17560 tmp_CFLAGS="$CFLAGS"
17561 tmp_CPPFLAGS="$CPPFLAGS"
17562 honor_optimize_option="yes"
17565 if test "$want_optimize" = "assume_no" ||
17566 test "$want_optimize" = "assume_yes"; then
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17568 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17571 ac_var_match_word="no"
17572 for word1 in $tmp_CFLAGS; do
17573 for word2 in $flags_opt_all; do
17574 if test "$word1" = "$word2"; then
17575 ac_var_match_word="yes"
17580 if test "$ac_var_match_word" = "yes"; then
17582 honor_optimize_option="no"
17589 ac_var_match_word="no"
17590 for word1 in $tmp_CPPFLAGS; do
17591 for word2 in $flags_opt_all; do
17592 if test "$word1" = "$word2"; then
17593 ac_var_match_word="yes"
17598 if test "$ac_var_match_word" = "yes"; then
17600 honor_optimize_option="no"
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17606 $as_echo "$honor_optimize_option" >&6; }
17607 if test "$honor_optimize_option" = "yes"; then
17608 if test "$want_optimize" = "assume_yes"; then
17609 want_optimize="yes"
17611 if test "$want_optimize" = "assume_no"; then
17617 if test "$honor_optimize_option" = "yes"; then
17620 for word1 in $tmp_CFLAGS; do
17621 ac_var_strip_word="no"
17622 for word2 in $flags_opt_all; do
17623 if test "$word1" = "$word2"; then
17624 ac_var_strip_word="yes"
17627 if test "$ac_var_strip_word" = "no"; then
17628 ac_var_stripped="$ac_var_stripped $word1"
17631 tmp_CFLAGS="$ac_var_stripped"
17636 for word1 in $tmp_CPPFLAGS; do
17637 ac_var_strip_word="no"
17638 for word2 in $flags_opt_all; do
17639 if test "$word1" = "$word2"; then
17640 ac_var_strip_word="yes"
17643 if test "$ac_var_strip_word" = "no"; then
17644 ac_var_stripped="$ac_var_stripped $word1"
17647 tmp_CPPFLAGS="$ac_var_stripped"
17648 squeeze tmp_CPPFLAGS
17650 if test "$want_optimize" = "yes"; then
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17652 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17653 tmp_options="$flags_opt_yes"
17655 if test "$want_optimize" = "no"; then
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17657 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17658 tmp_options="$flags_opt_off"
17660 if test "$flags_prefer_cppflags" = "yes"; then
17661 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17662 CFLAGS="$tmp_CFLAGS"
17664 CPPFLAGS="$tmp_CPPFLAGS"
17665 CFLAGS="$tmp_CFLAGS $tmp_options"
17670 tmp_compiler_works="unknown"
17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h. */
17687 if ac_fn_c_try_compile "$LINENO"; then :
17689 tmp_compiler_works="yes"
17693 tmp_compiler_works="no"
17695 sed 's/^/cc-fail: /' conftest.err >&6
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 if test "$tmp_compiler_works" = "yes"; then
17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h. */
17717 if ac_fn_c_try_link "$LINENO"; then :
17719 tmp_compiler_works="yes"
17723 tmp_compiler_works="no"
17725 sed 's/^/link-fail: /' conftest.err >&6
17729 rm -f core conftest.err conftest.$ac_objext \
17730 conftest$ac_exeext conftest.$ac_ext
17732 if test "x$cross_compiling" != "xyes" &&
17733 test "$tmp_compiler_works" = "yes"; then
17736 old=$LD_LIBRARY_PATH
17737 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17738 export LD_LIBRARY_PATH
17739 if test "$cross_compiling" = yes; then :
17740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17742 as_fn_error $? "cannot run test program while cross compiling
17743 See \`config.log' for more details" "$LINENO" 5; }
17745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h. */
17750 # include <stdlib.h>
17764 if ac_fn_c_try_run "$LINENO"; then :
17765 tmp_compiler_works="yes"
17768 tmp_compiler_works="no"
17770 echo "run-fail: test program exited with status $ac_status" >&6
17774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17775 conftest.$ac_objext conftest.beam conftest.$ac_ext
17778 LD_LIBRARY_PATH=$old # restore
17781 if test "$tmp_compiler_works" = "yes"; then
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17784 $as_echo "yes" >&6; }
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17786 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17791 $as_echo "no" >&6; }
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17793 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17794 CPPFLAGS="$tmp_save_CPPFLAGS"
17795 CFLAGS="$tmp_save_CFLAGS"
17805 if test "$compiler_id" != "unknown"; then
17807 tmp_save_CPPFLAGS="$CPPFLAGS"
17808 tmp_save_CFLAGS="$CFLAGS"
17812 case "$compiler_id" in
17816 if test "$want_warnings" = "yes"; then
17817 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17818 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17819 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17820 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17821 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17822 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17823 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17824 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17825 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17826 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17827 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17828 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17829 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17830 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17831 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17832 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17833 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17835 if test "$compiler_num" -ge "101"; then
17836 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17839 if test "$compiler_num" -ge "208"; then
17840 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17843 if test "$compiler_num" -ge "209"; then
17844 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17847 if test "$compiler_num" -ge "302"; then
17852 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17857 if test "$compiler_num" -ge "306"; then
17858 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17861 if test "$compiler_num" -ge "309"; then
17862 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
17863 # avoid the varargs warning, fixed in 4.0
17864 # https://bugs.llvm.org/show_bug.cgi?id=29140
17865 if test "$compiler_num" -lt "400"; then
17866 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17874 if test "$want_warnings" = "yes"; then
17875 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17881 if test "$want_warnings" = "yes"; then
17883 if test "x$cross_compiling" != "xyes" ||
17884 test "$compiler_num" -ge "300"; then
17885 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17888 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17890 if test "$compiler_num" -ge "104"; then
17891 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17892 if test "x$cross_compiling" != "xyes" ||
17893 test "$compiler_num" -ge "300"; then
17894 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17898 if test "$compiler_num" -ge "207"; then
17899 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17900 if test "x$cross_compiling" != "xyes" ||
17901 test "$compiler_num" -ge "300"; then
17902 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17903 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17907 if test "$compiler_num" -ge "295"; then
17908 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17909 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
17912 if test "$compiler_num" -ge "296"; then
17913 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17914 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17915 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17918 if test "$compiler_num" -ge "297"; then
17919 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17922 if test "$compiler_num" -ge "300"; then
17923 tmp_CFLAGS="$tmp_CFLAGS"
17926 if test "$compiler_num" -ge "303"; then
17927 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17930 if test "$compiler_num" -ge "304"; then
17931 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17932 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
17935 if test "$compiler_num" -ge "400"; then
17936 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17939 if test "$compiler_num" -ge "402"; then
17940 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17943 if test "$compiler_num" -ge "403"; then
17944 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17945 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17946 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17947 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17948 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
17951 if test "$compiler_num" -ge "405"; then
17952 if test "$curl_cv_have_def__WIN32" = "yes"; then
17953 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17957 if test "$compiler_num" -ge "406"; then
17958 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17961 if test "$compiler_num" -ge "408"; then
17962 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17965 if test "$compiler_num" -ge "500"; then
17966 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17969 if test "$compiler_num" -ge "600"; then
17970 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17971 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
17972 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
17973 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
17974 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
17977 if test "$compiler_num" -ge "700"; then
17978 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17979 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17980 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17981 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17982 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
17983 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
17988 if test "$compiler_num" -ge "300"; then
17989 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17991 if test "x$cross_compiling" = "xyes"; then
17992 if test "$compiler_num" -ge "104"; then
17993 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17995 if test "$compiler_num" -ge "207"; then
17996 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17997 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18005 if test "$want_warnings" = "yes"; then
18006 tmp_CFLAGS="$tmp_CFLAGS +w1"
18012 tmp_CFLAGS="$tmp_CFLAGS"
18017 if test "$want_warnings" = "yes"; then
18018 if test "$compiler_num" -gt "600"; then
18019 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18020 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18021 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18022 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18023 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18024 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18025 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18026 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18027 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18028 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18029 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18032 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18033 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18034 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18035 if test "$compiler_num" -ge "1000"; then
18036 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18042 tmp_CFLAGS="$tmp_CFLAGS"
18047 if test "$want_warnings" = "yes"; then
18048 tmp_CFLAGS="$tmp_CFLAGS"
18054 if test "$want_warnings" = "yes"; then
18055 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18061 if test "$want_warnings" = "yes"; then
18062 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18063 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18069 if test "$want_warnings" = "yes"; then
18070 tmp_CFLAGS="$tmp_CFLAGS -v"
18076 if test "$want_warnings" = "yes"; then
18077 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18078 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18079 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18085 if test "$want_warnings" = "yes"; then
18086 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18092 tmp_CFLAGS="$tmp_CFLAGS"
18097 squeeze tmp_CPPFLAGS
18100 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18102 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18103 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18104 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18108 tmp_compiler_works="unknown"
18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h. */
18125 if ac_fn_c_try_compile "$LINENO"; then :
18127 tmp_compiler_works="yes"
18131 tmp_compiler_works="no"
18133 sed 's/^/cc-fail: /' conftest.err >&6
18137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18138 if test "$tmp_compiler_works" = "yes"; then
18139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h. */
18155 if ac_fn_c_try_link "$LINENO"; then :
18157 tmp_compiler_works="yes"
18161 tmp_compiler_works="no"
18163 sed 's/^/link-fail: /' conftest.err >&6
18167 rm -f core conftest.err conftest.$ac_objext \
18168 conftest$ac_exeext conftest.$ac_ext
18170 if test "x$cross_compiling" != "xyes" &&
18171 test "$tmp_compiler_works" = "yes"; then
18174 old=$LD_LIBRARY_PATH
18175 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18176 export LD_LIBRARY_PATH
18177 if test "$cross_compiling" = yes; then :
18178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18180 as_fn_error $? "cannot run test program while cross compiling
18181 See \`config.log' for more details" "$LINENO" 5; }
18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h. */
18188 # include <stdlib.h>
18202 if ac_fn_c_try_run "$LINENO"; then :
18203 tmp_compiler_works="yes"
18206 tmp_compiler_works="no"
18208 echo "run-fail: test program exited with status $ac_status" >&6
18212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18213 conftest.$ac_objext conftest.beam conftest.$ac_ext
18216 LD_LIBRARY_PATH=$old # restore
18219 if test "$tmp_compiler_works" = "yes"; then
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18222 $as_echo "yes" >&6; }
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18224 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18229 $as_echo "no" >&6; }
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18231 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18232 CPPFLAGS="$tmp_save_CPPFLAGS"
18233 CFLAGS="$tmp_save_CFLAGS"
18242 if test "$compiler_id" = "INTEL_UNIX_C"; then
18244 if test "$compiler_num" -ge "1000"; then
18245 CFLAGS="$CFLAGS -shared-intel"
18246 elif test "$compiler_num" -ge "900"; then
18247 CFLAGS="$CFLAGS -i-dynamic"
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18254 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18263 force compilation error
18270 if ac_fn_c_try_compile "$LINENO"; then :
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18273 $as_echo "no" >&6; }
18274 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18279 $as_echo "yes" >&6; }
18282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18286 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18291 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18303 if ac_fn_c_try_compile "$LINENO"; then :
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306 $as_echo "no" >&6; }
18307 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312 $as_echo "yes" >&6; }
18315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18319 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321 /* end confdefs.h. */
18324 # include <stdlib.h>
18338 int j = rand(i[0]);
18347 if ac_fn_c_try_compile "$LINENO"; then :
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18350 $as_echo "no" >&6; }
18351 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18356 $as_echo "yes" >&6; }
18359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18363 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18364 supports_symbol_hiding="no"
18365 symbol_hiding_CFLAGS=""
18366 symbol_hiding_EXTERN=""
18369 case "$compiler_id" in
18371 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18372 tmp_CFLAGS="-fvisibility=hidden"
18373 supports_symbol_hiding="yes"
18376 if test "$compiler_num" -ge "304"; then
18377 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18378 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18379 tmp_CFLAGS="-fvisibility=hidden"
18380 supports_symbol_hiding="yes"
18385 if test "$compiler_num" -ge "900"; then
18386 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18387 tmp_save_CFLAGS="$CFLAGS"
18388 CFLAGS="$CFLAGS -fvisibility=hidden"
18389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h. */
18393 # include <stdio.h>
18398 printf("icc fvisibility bug test");
18405 if ac_fn_c_try_link "$LINENO"; then :
18407 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18408 tmp_CFLAGS="-fvisibility=hidden"
18409 supports_symbol_hiding="yes"
18412 rm -f core conftest.err conftest.$ac_objext \
18413 conftest$ac_exeext conftest.$ac_ext
18414 CFLAGS="$tmp_save_CFLAGS"
18419 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18420 tmp_EXTERN="__global"
18421 tmp_CFLAGS="-xldscope=hidden"
18422 supports_symbol_hiding="yes"
18426 if test "$supports_symbol_hiding" = "yes"; then
18427 tmp_save_CFLAGS="$CFLAGS"
18428 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h. */
18434 $tmp_EXTERN char *dummy(char *buff);
18435 char *dummy(char *buff)
18447 char *r = dummy(&b[0]);
18456 if ac_fn_c_try_compile "$LINENO"; then :
18458 supports_symbol_hiding="yes"
18459 if test -f conftest.err; then
18460 grep 'visibility' conftest.err >/dev/null
18461 if test "$?" -eq "0"; then
18462 supports_symbol_hiding="no"
18468 supports_symbol_hiding="no"
18470 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18471 sed 's/^/cc-err: /' conftest.err >&6
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476 CFLAGS="$tmp_save_CFLAGS"
18478 if test "$supports_symbol_hiding" = "yes"; then
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18480 $as_echo "yes" >&6; }
18481 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18482 symbol_hiding_EXTERN="$tmp_EXTERN"
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18485 $as_echo "no" >&6; }
18490 supports_curldebug="unknown"
18491 if test "$want_curldebug" = "yes"; then
18492 if test "x$enable_shared" != "xno" &&
18493 test "x$enable_shared" != "xyes"; then
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18495 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18496 supports_curldebug="no"
18498 if test "x$enable_static" != "xno" &&
18499 test "x$enable_static" != "xyes"; then
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18501 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18502 supports_curldebug="no"
18504 if test "$supports_curldebug" != "no"; then
18505 if test "$enable_shared" = "yes" &&
18506 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18507 supports_curldebug="no"
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18509 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18514 if test "$want_curldebug" = "yes"; then
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18516 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18517 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18519 $as_echo "$supports_curldebug" >&6; }
18520 if test "$supports_curldebug" = "no"; then
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18522 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18523 want_curldebug="no"
18527 if test x$want_curldebug = xyes; then
18529 CURLDEBUG_FALSE='#'
18536 supports_unittests=yes
18537 # cross-compilation of unit tests static library/programs fails when
18538 # libcurl shared library is built. This might be due to a libtool or
18539 # automake issue. In this case we disable unit tests.
18540 if test "x$cross_compiling" != "xno" &&
18541 test "x$enable_shared" != "xno"; then
18542 supports_unittests=no
18545 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18546 # a problem related with OpenSSL headers and library versions not matching.
18547 # Disable unit tests while time to further investigate this is found.
18550 if test "$compiler_id" = "GNU_C"; then
18551 supports_unittests=no
18556 # All AIX autobuilds fails unit tests linking against unittests library
18557 # due to unittests library being built with no symbols or members. Libtool ?
18558 # Disable unit tests while time to further investigate this is found.
18561 supports_unittests=no
18565 if test "x$want_debug" = "xyes" &&
18566 test "x$supports_unittests" = "xyes"; then
18571 if test x$want_unittests = xyes; then
18572 BUILD_UNITTESTS_TRUE=
18573 BUILD_UNITTESTS_FALSE='#'
18575 BUILD_UNITTESTS_TRUE='#'
18576 BUILD_UNITTESTS_FALSE=
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18584 $as_echo_n "checking for windows.h... " >&6; }
18585 if ${curl_cv_header_windows_h+:} false; then :
18586 $as_echo_n "(cached) " >&6
18589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h. */
18594 #ifndef WIN32_LEAN_AND_MEAN
18595 #define WIN32_LEAN_AND_MEAN
18597 #include <windows.h>
18602 #if defined(__CYGWIN__) || defined(__CEGCC__)
18603 HAVE_WINDOWS_H shall not be defined.
18605 int dummy=2*WINVER;
18613 if ac_fn_c_try_compile "$LINENO"; then :
18615 curl_cv_header_windows_h="yes"
18619 curl_cv_header_windows_h="no"
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18626 $as_echo "$curl_cv_header_windows_h" >&6; }
18627 case "$curl_cv_header_windows_h" in
18630 cat >>confdefs.h <<_ACEOF
18631 #define HAVE_WINDOWS_H 1
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18639 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18640 if ${curl_cv_native_windows+:} false; then :
18641 $as_echo_n "(cached) " >&6
18644 if test "$curl_cv_header_windows_h" = "no"; then
18645 curl_cv_native_windows="no"
18647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18655 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18656 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18659 Not a native Windows build target.
18667 if ac_fn_c_try_compile "$LINENO"; then :
18669 curl_cv_native_windows="yes"
18673 curl_cv_native_windows="no"
18676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18681 $as_echo "$curl_cv_native_windows" >&6; }
18682 if test "x$curl_cv_native_windows" = xyes; then
18683 DOING_NATIVE_WINDOWS_TRUE=
18684 DOING_NATIVE_WINDOWS_FALSE='#'
18686 DOING_NATIVE_WINDOWS_TRUE='#'
18687 DOING_NATIVE_WINDOWS_FALSE=
18691 case X-"$curl_cv_native_windows" in
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18695 $as_echo_n "checking for winsock.h... " >&6; }
18696 if ${curl_cv_header_winsock_h+:} false; then :
18697 $as_echo_n "(cached) " >&6
18700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701 /* end confdefs.h. */
18705 #ifndef WIN32_LEAN_AND_MEAN
18706 #define WIN32_LEAN_AND_MEAN
18708 #include <windows.h>
18709 #include <winsock.h>
18714 #if defined(__CYGWIN__) || defined(__CEGCC__)
18715 HAVE_WINSOCK_H shall not be defined.
18717 int dummy=WSACleanup();
18725 if ac_fn_c_try_compile "$LINENO"; then :
18727 curl_cv_header_winsock_h="yes"
18731 curl_cv_header_winsock_h="no"
18734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18738 $as_echo "$curl_cv_header_winsock_h" >&6; }
18739 case "$curl_cv_header_winsock_h" in
18742 cat >>confdefs.h <<_ACEOF
18743 #define HAVE_WINSOCK_H 1
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18751 $as_echo_n "checking for winsock2.h... " >&6; }
18752 if ${curl_cv_header_winsock2_h+:} false; then :
18753 $as_echo_n "(cached) " >&6
18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h. */
18761 #ifndef WIN32_LEAN_AND_MEAN
18762 #define WIN32_LEAN_AND_MEAN
18764 #include <windows.h>
18765 #include <winsock2.h>
18770 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18771 HAVE_WINSOCK2_H shall not be defined.
18773 int dummy=2*IPPROTO_ESP;
18781 if ac_fn_c_try_compile "$LINENO"; then :
18783 curl_cv_header_winsock2_h="yes"
18787 curl_cv_header_winsock2_h="no"
18790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18794 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18795 case "$curl_cv_header_winsock2_h" in
18798 cat >>confdefs.h <<_ACEOF
18799 #define HAVE_WINSOCK2_H 1
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18807 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18808 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18809 $as_echo_n "(cached) " >&6
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18817 #ifndef WIN32_LEAN_AND_MEAN
18818 #define WIN32_LEAN_AND_MEAN
18820 #include <windows.h>
18821 #include <winsock2.h>
18822 #include <ws2tcpip.h>
18827 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18828 HAVE_WS2TCPIP_H shall not be defined.
18830 int dummy=2*IP_PKTINFO;
18838 if ac_fn_c_try_compile "$LINENO"; then :
18840 curl_cv_header_ws2tcpip_h="yes"
18844 curl_cv_header_ws2tcpip_h="no"
18847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18851 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18852 case "$curl_cv_header_ws2tcpip_h" in
18855 cat >>confdefs.h <<_ACEOF
18856 #define HAVE_WS2TCPIP_H 1
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18864 $as_echo_n "checking for winldap.h... " >&6; }
18865 if ${curl_cv_header_winldap_h+:} false; then :
18866 $as_echo_n "(cached) " >&6
18869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h. */
18874 #ifdef HAVE_WINDOWS_H
18875 #ifndef WIN32_LEAN_AND_MEAN
18876 #define WIN32_LEAN_AND_MEAN
18878 #include <windows.h>
18880 #include <winldap.h>
18885 #if defined(__CYGWIN__) || defined(__CEGCC__)
18886 HAVE_WINLDAP_H shall not be defined.
18888 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18889 ULONG res = ldap_unbind(ldp);
18897 if ac_fn_c_try_compile "$LINENO"; then :
18899 curl_cv_header_winldap_h="yes"
18903 curl_cv_header_winldap_h="no"
18906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18910 $as_echo "$curl_cv_header_winldap_h" >&6; }
18911 case "$curl_cv_header_winldap_h" in
18914 cat >>confdefs.h <<_ACEOF
18915 #define HAVE_WINLDAP_H 1
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18923 $as_echo_n "checking for winber.h... " >&6; }
18924 if ${curl_cv_header_winber_h+:} false; then :
18925 $as_echo_n "(cached) " >&6
18928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929 /* end confdefs.h. */
18933 #ifdef HAVE_WINDOWS_H
18934 #ifndef WIN32_LEAN_AND_MEAN
18935 #define WIN32_LEAN_AND_MEAN
18937 #include <windows.h>
18939 #include <winldap.h>
18940 #include <winber.h>
18945 #if defined(__CYGWIN__) || defined(__CEGCC__)
18946 HAVE_WINBER_H shall not be defined.
18948 BERVAL *bvp = NULL;
18949 BerElement *bep = ber_init(bvp);
18958 if ac_fn_c_try_compile "$LINENO"; then :
18960 curl_cv_header_winber_h="yes"
18964 curl_cv_header_winber_h="no"
18967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18971 $as_echo "$curl_cv_header_winber_h" >&6; }
18972 case "$curl_cv_header_winber_h" in
18975 cat >>confdefs.h <<_ACEOF
18976 #define HAVE_WINBER_H 1
18984 curl_cv_header_winsock_h="no"
18985 curl_cv_header_winsock2_h="no"
18986 curl_cv_header_ws2tcpip_h="no"
18987 curl_cv_header_winldap_h="no"
18988 curl_cv_header_winber_h="no"
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18993 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18994 curl_win32_file_api="no"
18995 if test "$curl_cv_header_windows_h" = "yes"; then
18996 if test x"$enable_largefile" != "xno"; then
18997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h. */
19005 #if !defined(_WIN32_WCE) && \
19006 (defined(__MINGW32__) || \
19007 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19010 WIN32 large file API not supported.
19018 if ac_fn_c_try_compile "$LINENO"; then :
19020 curl_win32_file_api="win32_large_files"
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19025 if test "$curl_win32_file_api" = "no"; then
19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h. */
19034 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19037 WIN32 small file API not supported.
19045 if ac_fn_c_try_compile "$LINENO"; then :
19047 curl_win32_file_api="win32_small_files"
19050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19053 case "$curl_win32_file_api" in
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19056 $as_echo "yes (large file enabled)" >&6; }
19058 cat >>confdefs.h <<_ACEOF
19059 #define USE_WIN32_LARGE_FILES 1
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19065 $as_echo "yes (large file disabled)" >&6; }
19067 cat >>confdefs.h <<_ACEOF
19068 #define USE_WIN32_SMALL_FILES 1
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19074 $as_echo "no" >&6; }
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19089 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19091 $as_echo "$tst_cflags" >&6; };
19093 if test "$tst_cflags" = "yes"; then
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19095 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19097 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19098 min="-mmacosx-version-min=10.8"
19099 CFLAGS="$CFLAGS $min"
19101 if test -z "$min"; then
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19103 $as_echo "set by user" >&6; }
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19106 $as_echo "$min set" >&6; }
19110 CFLAGS="$CFLAGS -Werror=partial-availability"
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19112 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h. */
19123 if ac_fn_c_try_compile "$LINENO"; then :
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19125 $as_echo "yes" >&6; }
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19128 $as_echo "no" >&6; }
19131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19137 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139 /* end confdefs.h. */
19142 #include <stdlib.h>
19147 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19154 if ac_fn_c_try_compile "$LINENO"; then :
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19157 $as_echo "yes" >&6; }
19159 cat >>confdefs.h <<_ACEOF
19160 #define HAVE_BUILTIN_AVAILABLE 1
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19167 $as_echo "no" >&6; }
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19174 $as_echo_n "checking whether to support http... " >&6; }
19175 # Check whether --enable-http was given.
19176 if test "${enable_http+set}" = set; then :
19177 enableval=$enable_http; case "$enableval" in
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19180 $as_echo "no" >&6; }
19182 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19186 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19187 CURL_DISABLE_HTTP=1
19190 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19192 CURL_DISABLE_RTSP=1
19195 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19196 $as_echo "yes" >&6; }
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19201 $as_echo "yes" >&6; }
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19206 $as_echo_n "checking whether to support ftp... " >&6; }
19207 # Check whether --enable-ftp was given.
19208 if test "${enable_ftp+set}" = set; then :
19209 enableval=$enable_ftp; case "$enableval" in
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 $as_echo "no" >&6; }
19214 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19219 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19220 $as_echo "yes" >&6; }
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19225 $as_echo "yes" >&6; }
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19230 $as_echo_n "checking whether to support file... " >&6; }
19231 # Check whether --enable-file was given.
19232 if test "${enable_file+set}" = set; then :
19233 enableval=$enable_file; case "$enableval" in
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19236 $as_echo "no" >&6; }
19238 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19240 CURL_DISABLE_FILE=1
19243 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19244 $as_echo "yes" >&6; }
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19249 $as_echo "yes" >&6; }
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19254 $as_echo_n "checking whether to support ldap... " >&6; }
19255 # Check whether --enable-ldap was given.
19256 if test "${enable_ldap+set}" = set; then :
19257 enableval=$enable_ldap; case "$enableval" in
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260 $as_echo "no" >&6; }
19262 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19264 CURL_DISABLE_LDAP=1
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19269 $as_echo "yes" >&6; }
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19275 $as_echo "yes" >&6; }
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19280 $as_echo_n "checking whether to support ldaps... " >&6; }
19281 # Check whether --enable-ldaps was given.
19282 if test "${enable_ldaps+set}" = set; then :
19283 enableval=$enable_ldaps; case "$enableval" in
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286 $as_echo "no" >&6; }
19288 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19290 CURL_DISABLE_LDAPS=1
19293 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19295 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19297 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19299 CURL_DISABLE_LDAPS=1
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19303 $as_echo "yes" >&6; }
19305 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19314 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19316 $as_echo "no" >&6; }
19318 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19320 CURL_DISABLE_LDAPS=1
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19324 $as_echo "yes" >&6; }
19326 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19336 $as_echo_n "checking whether to support rtsp... " >&6; }
19337 # Check whether --enable-rtsp was given.
19338 if test "${enable_rtsp+set}" = set; then :
19339 enableval=$enable_rtsp; case "$enableval" in
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19342 $as_echo "no" >&6; }
19344 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19346 CURL_DISABLE_RTSP=1
19349 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19350 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19353 $as_echo "yes" >&6; }
19354 curl_rtsp_msg="enabled"
19359 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19361 $as_echo "yes" >&6; }
19362 curl_rtsp_msg="enabled"
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19365 $as_echo "no" >&6; }
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19372 $as_echo_n "checking whether to support proxies... " >&6; }
19373 # Check whether --enable-proxy was given.
19374 if test "${enable_proxy+set}" = set; then :
19375 enableval=$enable_proxy; case "$enableval" in
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19378 $as_echo "no" >&6; }
19380 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19382 CURL_DISABLE_PROXY=1
19385 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19386 $as_echo "yes" >&6; }
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19391 $as_echo "yes" >&6; }
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19397 $as_echo_n "checking whether to support dict... " >&6; }
19398 # Check whether --enable-dict was given.
19399 if test "${enable_dict+set}" = set; then :
19400 enableval=$enable_dict; case "$enableval" in
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19403 $as_echo "no" >&6; }
19405 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19407 CURL_DISABLE_DICT=1
19410 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19411 $as_echo "yes" >&6; }
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416 $as_echo "yes" >&6; }
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19421 $as_echo_n "checking whether to support telnet... " >&6; }
19422 # Check whether --enable-telnet was given.
19423 if test "${enable_telnet+set}" = set; then :
19424 enableval=$enable_telnet; case "$enableval" in
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19427 $as_echo "no" >&6; }
19429 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19431 CURL_DISABLE_TELNET=1
19434 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19435 $as_echo "yes" >&6; }
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19440 $as_echo "yes" >&6; }
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19445 $as_echo_n "checking whether to support tftp... " >&6; }
19446 # Check whether --enable-tftp was given.
19447 if test "${enable_tftp+set}" = set; then :
19448 enableval=$enable_tftp; case "$enableval" in
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19451 $as_echo "no" >&6; }
19453 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19455 CURL_DISABLE_TFTP=1
19458 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19459 $as_echo "yes" >&6; }
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19464 $as_echo "yes" >&6; }
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19470 $as_echo_n "checking whether to support pop3... " >&6; }
19471 # Check whether --enable-pop3 was given.
19472 if test "${enable_pop3+set}" = set; then :
19473 enableval=$enable_pop3; case "$enableval" in
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19476 $as_echo "no" >&6; }
19478 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19480 CURL_DISABLE_POP3=1
19483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484 $as_echo "yes" >&6; }
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19489 $as_echo "yes" >&6; }
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19496 $as_echo_n "checking whether to support imap... " >&6; }
19497 # Check whether --enable-imap was given.
19498 if test "${enable_imap+set}" = set; then :
19499 enableval=$enable_imap; case "$enableval" in
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19502 $as_echo "no" >&6; }
19504 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19506 CURL_DISABLE_IMAP=1
19509 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19510 $as_echo "yes" >&6; }
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19515 $as_echo "yes" >&6; }
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19522 $as_echo_n "checking whether to support smb... " >&6; }
19523 # Check whether --enable-smb was given.
19524 if test "${enable_smb+set}" = set; then :
19525 enableval=$enable_smb; case "$enableval" in
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19528 $as_echo "no" >&6; }
19530 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19535 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19536 $as_echo "yes" >&6; }
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19541 $as_echo "yes" >&6; }
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19547 $as_echo_n "checking whether to support smtp... " >&6; }
19548 # Check whether --enable-smtp was given.
19549 if test "${enable_smtp+set}" = set; then :
19550 enableval=$enable_smtp; case "$enableval" in
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19553 $as_echo "no" >&6; }
19555 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19557 CURL_DISABLE_SMTP=1
19560 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19561 $as_echo "yes" >&6; }
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19566 $as_echo "yes" >&6; }
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19572 $as_echo_n "checking whether to support gopher... " >&6; }
19573 # Check whether --enable-gopher was given.
19574 if test "${enable_gopher+set}" = set; then :
19575 enableval=$enable_gopher; case "$enableval" in
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578 $as_echo "no" >&6; }
19580 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19582 CURL_DISABLE_GOPHER=1
19585 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19586 $as_echo "yes" >&6; }
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19591 $as_echo "yes" >&6; }
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19599 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19600 # Check whether --enable-manual was given.
19601 if test "${enable_manual+set}" = set; then :
19602 enableval=$enable_manual; case "$enableval" in
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19605 $as_echo "no" >&6; }
19607 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19608 $as_echo "yes" >&6; }
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19614 $as_echo "yes" >&6; }
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19621 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19622 # Check whether --enable-libcurl_option was given.
19623 if test "${enable_libcurl_option+set}" = set; then :
19624 enableval=$enable_libcurl_option; case "$enableval" in
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19627 $as_echo "no" >&6; }
19629 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19631 curl_libcurl_msg="no"
19633 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19634 $as_echo "yes" >&6; }
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19639 $as_echo "yes" >&6; }
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19646 $as_echo_n "checking whether to use libgcc... " >&6; }
19647 # Check whether --enable-libgcc was given.
19648 if test "${enable_libgcc+set}" = set; then :
19649 enableval=$enable_libgcc; case "$enableval" in
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19653 $as_echo "yes" >&6; }
19655 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19656 $as_echo "no" >&6; }
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661 $as_echo "no" >&6; }
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19668 $as_echo_n "checking if X/Open network library is required... " >&6; }
19669 tst_lib_xnet_required="no"
19670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671 /* end confdefs.h. */
19676 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19678 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19681 force compilation error
19687 if ac_fn_c_try_compile "$LINENO"; then :
19689 tst_lib_xnet_required="yes"
19690 LIBS="-lxnet $LIBS"
19693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19695 $as_echo "$tst_lib_xnet_required" >&6; }
19698 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19699 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19700 HAVE_GETHOSTBYNAME="1"
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19704 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19705 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19706 $as_echo_n "(cached) " >&6
19708 ac_check_lib_save_LIBS=$LIBS
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19717 char gethostbyname ();
19720 return gethostbyname ();
19725 if ac_fn_c_try_link "$LINENO"; then :
19726 ac_cv_lib_nsl_gethostbyname=yes
19728 ac_cv_lib_nsl_gethostbyname=no
19730 rm -f core conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext conftest.$ac_ext
19732 LIBS=$ac_check_lib_save_LIBS
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19735 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19736 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19737 HAVE_GETHOSTBYNAME="1"
19746 if test "$HAVE_GETHOSTBYNAME" != "1"
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19749 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19750 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19751 $as_echo_n "(cached) " >&6
19753 ac_check_lib_save_LIBS=$LIBS
19754 LIBS="-lsocket $LIBS"
19755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19756 /* end confdefs.h. */
19762 char gethostbyname ();
19765 return gethostbyname ();
19770 if ac_fn_c_try_link "$LINENO"; then :
19771 ac_cv_lib_socket_gethostbyname=yes
19773 ac_cv_lib_socket_gethostbyname=no
19775 rm -f core conftest.err conftest.$ac_objext \
19776 conftest$ac_exeext conftest.$ac_ext
19777 LIBS=$ac_check_lib_save_LIBS
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19780 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19781 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19782 HAVE_GETHOSTBYNAME="1"
19783 LIBS="-lsocket $LIBS"
19789 if test "$HAVE_GETHOSTBYNAME" != "1"
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19792 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19793 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19794 $as_echo_n "(cached) " >&6
19796 ac_check_lib_save_LIBS=$LIBS
19797 LIBS="-lwatt $LIBS"
19798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799 /* end confdefs.h. */
19805 char gethostbyname ();
19808 return gethostbyname ();
19813 if ac_fn_c_try_link "$LINENO"; then :
19814 ac_cv_lib_watt_gethostbyname=yes
19816 ac_cv_lib_watt_gethostbyname=no
19818 rm -f core conftest.err conftest.$ac_objext \
19819 conftest$ac_exeext conftest.$ac_ext
19820 LIBS=$ac_check_lib_save_LIBS
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19823 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19824 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19825 HAVE_GETHOSTBYNAME="1"
19826 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19827 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19828 LIBS="-lwatt $LIBS"
19834 if test "$HAVE_GETHOSTBYNAME" != "1"
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19837 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19838 my_ac_save_LIBS=$LIBS
19839 LIBS="-lnsl -lsocket $LIBS"
19840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19841 /* end confdefs.h. */
19855 if ac_fn_c_try_link "$LINENO"; then :
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19858 $as_echo "yes" >&6; }
19859 HAVE_GETHOSTBYNAME="1"
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19864 $as_echo "no" >&6; }
19865 LIBS=$my_ac_save_LIBS
19868 rm -f core conftest.err conftest.$ac_objext \
19869 conftest$ac_exeext conftest.$ac_ext
19872 if test "$HAVE_GETHOSTBYNAME" != "1"
19874 if test "$curl_cv_header_windows_h" = "yes"; then
19875 if test "$curl_cv_header_winsock_h" = "yes"; then
19878 winsock_LIB="-lwinsock"
19881 winsock_LIB="-lwsock32"
19885 if test "$curl_cv_header_winsock2_h" = "yes"; then
19886 winsock_LIB="-lws2_32"
19888 if test ! -z "$winsock_LIB"; then
19889 my_ac_save_LIBS=$LIBS
19890 LIBS="$winsock_LIB $LIBS"
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19892 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894 /* end confdefs.h. */
19897 #ifdef HAVE_WINDOWS_H
19898 #ifndef WIN32_LEAN_AND_MEAN
19899 #define WIN32_LEAN_AND_MEAN
19901 #include <windows.h>
19902 #ifdef HAVE_WINSOCK2_H
19903 #include <winsock2.h>
19905 #ifdef HAVE_WINSOCK_H
19906 #include <winsock.h>
19914 gethostbyname("www.dummysite.com");
19921 if ac_fn_c_try_link "$LINENO"; then :
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19924 $as_echo "yes" >&6; }
19925 HAVE_GETHOSTBYNAME="1"
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19930 $as_echo "no" >&6; }
19932 LIBS=$my_ac_save_LIBS
19935 rm -f core conftest.err conftest.$ac_objext \
19936 conftest$ac_exeext conftest.$ac_ext
19941 if test "$HAVE_GETHOSTBYNAME" != "1"
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19944 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946 /* end confdefs.h. */
19949 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19955 gethostbyname("www.dummysite.com");
19962 if ac_fn_c_try_link "$LINENO"; then :
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19965 $as_echo "yes" >&6; }
19966 HAVE_GETHOSTBYNAME="1"
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19971 $as_echo "no" >&6; }
19974 rm -f core conftest.err conftest.$ac_objext \
19975 conftest$ac_exeext conftest.$ac_ext
19978 if test "$HAVE_GETHOSTBYNAME" != "1"
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19981 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19992 gethostbyname("www.dummysite.com");
19999 if ac_fn_c_try_link "$LINENO"; then :
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20002 $as_echo "yes" >&6; }
20003 HAVE_GETHOSTBYNAME="1"
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20008 $as_echo "no" >&6; }
20011 rm -f core conftest.err conftest.$ac_objext \
20012 conftest$ac_exeext conftest.$ac_ext
20015 if test "$HAVE_GETHOSTBYNAME" != "1"
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20018 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20019 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20020 $as_echo_n "(cached) " >&6
20022 ac_check_lib_save_LIBS=$LIBS
20023 LIBS="-lnetwork $LIBS"
20024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20025 /* end confdefs.h. */
20031 char gethostbyname ();
20034 return gethostbyname ();
20039 if ac_fn_c_try_link "$LINENO"; then :
20040 ac_cv_lib_network_gethostbyname=yes
20042 ac_cv_lib_network_gethostbyname=no
20044 rm -f core conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
20046 LIBS=$ac_check_lib_save_LIBS
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20049 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20050 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20051 HAVE_GETHOSTBYNAME="1"
20052 LIBS="-lnetwork $LIBS"
20058 if test "$HAVE_GETHOSTBYNAME" != "1"
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20061 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20062 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20063 $as_echo_n "(cached) " >&6
20065 ac_check_lib_save_LIBS=$LIBS
20067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068 /* end confdefs.h. */
20074 char gethostbyname ();
20077 return gethostbyname ();
20082 if ac_fn_c_try_link "$LINENO"; then :
20083 ac_cv_lib_net_gethostbyname=yes
20085 ac_cv_lib_net_gethostbyname=no
20087 rm -f core conftest.err conftest.$ac_objext \
20088 conftest$ac_exeext conftest.$ac_ext
20089 LIBS=$ac_check_lib_save_LIBS
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20092 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20093 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20094 HAVE_GETHOSTBYNAME="1"
20102 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20103 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20107 curl_includes_winsock2="\
20108 /* includes start */
20109 #ifdef HAVE_WINDOWS_H
20110 # ifndef WIN32_LEAN_AND_MEAN
20111 # define WIN32_LEAN_AND_MEAN
20113 # include <windows.h>
20114 # ifdef HAVE_WINSOCK2_H
20115 # include <winsock2.h>
20117 # ifdef HAVE_WINSOCK_H
20118 # include <winsock.h>
20122 /* includes end */"
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20125 $as_echo_n "checking for windows.h... " >&6; }
20126 if ${curl_cv_header_windows_h+:} false; then :
20127 $as_echo_n "(cached) " >&6
20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20135 #ifndef WIN32_LEAN_AND_MEAN
20136 #define WIN32_LEAN_AND_MEAN
20138 #include <windows.h>
20143 #if defined(__CYGWIN__) || defined(__CEGCC__)
20144 HAVE_WINDOWS_H shall not be defined.
20146 int dummy=2*WINVER;
20154 if ac_fn_c_try_compile "$LINENO"; then :
20156 curl_cv_header_windows_h="yes"
20160 curl_cv_header_windows_h="no"
20163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20167 $as_echo "$curl_cv_header_windows_h" >&6; }
20168 case "$curl_cv_header_windows_h" in
20171 cat >>confdefs.h <<_ACEOF
20172 #define HAVE_WINDOWS_H 1
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20180 $as_echo_n "checking for winsock.h... " >&6; }
20181 if ${curl_cv_header_winsock_h+:} false; then :
20182 $as_echo_n "(cached) " >&6
20185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20186 /* end confdefs.h. */
20190 #ifndef WIN32_LEAN_AND_MEAN
20191 #define WIN32_LEAN_AND_MEAN
20193 #include <windows.h>
20194 #include <winsock.h>
20199 #if defined(__CYGWIN__) || defined(__CEGCC__)
20200 HAVE_WINSOCK_H shall not be defined.
20202 int dummy=WSACleanup();
20210 if ac_fn_c_try_compile "$LINENO"; then :
20212 curl_cv_header_winsock_h="yes"
20216 curl_cv_header_winsock_h="no"
20219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20223 $as_echo "$curl_cv_header_winsock_h" >&6; }
20224 case "$curl_cv_header_winsock_h" in
20227 cat >>confdefs.h <<_ACEOF
20228 #define HAVE_WINSOCK_H 1
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20236 $as_echo_n "checking for winsock2.h... " >&6; }
20237 if ${curl_cv_header_winsock2_h+:} false; then :
20238 $as_echo_n "(cached) " >&6
20241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242 /* end confdefs.h. */
20246 #ifndef WIN32_LEAN_AND_MEAN
20247 #define WIN32_LEAN_AND_MEAN
20249 #include <windows.h>
20250 #include <winsock2.h>
20255 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20256 HAVE_WINSOCK2_H shall not be defined.
20258 int dummy=2*IPPROTO_ESP;
20266 if ac_fn_c_try_compile "$LINENO"; then :
20268 curl_cv_header_winsock2_h="yes"
20272 curl_cv_header_winsock2_h="no"
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20279 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20280 case "$curl_cv_header_winsock2_h" in
20283 cat >>confdefs.h <<_ACEOF
20284 #define HAVE_WINSOCK2_H 1
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20293 $as_echo_n "checking for connect in libraries... " >&6; }
20294 tst_connect_save_LIBS="$LIBS"
20295 tst_connect_need_LIBS="unknown"
20296 for tst_lib in '' '-lsocket' ; do
20297 if test "$tst_connect_need_LIBS" = "unknown"; then
20298 LIBS="$tst_lib $tst_connect_save_LIBS"
20299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20300 /* end confdefs.h. */
20303 $curl_includes_winsock2
20304 #ifndef HAVE_WINDOWS_H
20305 int connect(int, void*, int);
20311 if(0 != connect(0, 0, 0))
20319 if ac_fn_c_try_link "$LINENO"; then :
20321 tst_connect_need_LIBS="$tst_lib"
20324 rm -f core conftest.err conftest.$ac_objext \
20325 conftest$ac_exeext conftest.$ac_ext
20328 LIBS="$tst_connect_save_LIBS"
20330 case X-"$tst_connect_need_LIBS" in
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20333 $as_echo "cannot find connect" >&6; }
20334 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20338 $as_echo "yes" >&6; }
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20342 $as_echo "$tst_connect_need_LIBS" >&6; }
20343 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20348 CURL_NETWORK_LIBS=$LIBS
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20351 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20352 if ${ac_cv_header_time+:} false; then :
20353 $as_echo_n "(cached) " >&6
20355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20356 /* end confdefs.h. */
20357 #include <sys/types.h>
20358 #include <sys/time.h>
20363 if ((struct tm *) 0)
20369 if ac_fn_c_try_compile "$LINENO"; then :
20370 ac_cv_header_time=yes
20372 ac_cv_header_time=no
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20377 $as_echo "$ac_cv_header_time" >&6; }
20378 if test $ac_cv_header_time = yes; then
20380 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20385 for ac_header in sys/types.h sys/time.h time.h
20387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20388 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20389 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20390 cat >>confdefs.h <<_ACEOF
20391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20399 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20401 if test "x$dontwant_rt" = "xno" ; then
20402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20403 /* end confdefs.h. */
20406 #ifdef HAVE_SYS_TYPES_H
20407 #include <sys/types.h>
20409 #ifdef HAVE_SYS_TIME_H
20410 #include <sys/time.h>
20411 #ifdef TIME_WITH_SYS_TIME
20423 struct timespec ts;
20424 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20431 if ac_fn_c_try_compile "$LINENO"; then :
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20434 $as_echo "yes" >&6; }
20435 curl_func_clock_gettime="yes"
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20440 $as_echo "no" >&6; }
20441 curl_func_clock_gettime="no"
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20449 if test "$curl_func_clock_gettime" = "yes"; then
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20452 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20454 curl_cv_save_LIBS="$LIBS"
20455 curl_cv_gclk_LIBS="unknown"
20457 for x_xlibs in '' '-lrt' '-lposix4' ; do
20458 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20459 if test -z "$x_xlibs"; then
20460 LIBS="$curl_cv_save_LIBS"
20462 LIBS="$x_xlibs $curl_cv_save_LIBS"
20464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h. */
20468 #ifdef HAVE_SYS_TYPES_H
20469 #include <sys/types.h>
20471 #ifdef HAVE_SYS_TIME_H
20472 #include <sys/time.h>
20473 #ifdef TIME_WITH_SYS_TIME
20485 struct timespec ts;
20486 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20493 if ac_fn_c_try_link "$LINENO"; then :
20495 curl_cv_gclk_LIBS="$x_xlibs"
20498 rm -f core conftest.err conftest.$ac_objext \
20499 conftest$ac_exeext conftest.$ac_ext
20503 LIBS="$curl_cv_save_LIBS"
20505 case X-"$curl_cv_gclk_LIBS" in
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20508 $as_echo "cannot find clock_gettime" >&6; }
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20510 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20511 curl_func_clock_gettime="no"
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20515 $as_echo "no additional lib required" >&6; }
20516 curl_func_clock_gettime="yes"
20519 if test -z "$curl_cv_save_LIBS"; then
20520 LIBS="$curl_cv_gclk_LIBS"
20522 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20525 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20526 curl_func_clock_gettime="yes"
20530 if test "x$cross_compiling" != "xyes" &&
20531 test "$curl_func_clock_gettime" = "yes"; then
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20533 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20536 old=$LD_LIBRARY_PATH
20537 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20538 export LD_LIBRARY_PATH
20539 if test "$cross_compiling" = yes; then :
20540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20542 as_fn_error $? "cannot run test program while cross compiling
20543 See \`config.log' for more details" "$LINENO" 5; }
20545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546 /* end confdefs.h. */
20549 #ifdef HAVE_STDLIB_H
20550 #include <stdlib.h>
20552 #ifdef HAVE_SYS_TYPES_H
20553 #include <sys/types.h>
20555 #ifdef HAVE_SYS_TIME_H
20556 #include <sys/time.h>
20557 #ifdef TIME_WITH_SYS_TIME
20569 struct timespec ts;
20570 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20580 if ac_fn_c_try_run "$LINENO"; then :
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20582 $as_echo "yes" >&6; }
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20586 $as_echo "no" >&6; }
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20588 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20589 curl_func_clock_gettime="no"
20590 LIBS="$curl_cv_save_LIBS"
20593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20594 conftest.$ac_objext conftest.beam conftest.$ac_ext
20597 LD_LIBRARY_PATH=$old # restore
20601 case "$curl_func_clock_gettime" in
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20615 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20619 clean_CPPFLAGS=$CPPFLAGS
20620 clean_LDFLAGS=$LDFLAGS
20624 # Check whether --with-zlib was given.
20625 if test "${with_zlib+set}" = set; then :
20626 withval=$with_zlib; OPT_ZLIB="$withval"
20630 if test "$OPT_ZLIB" = "no" ; then
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20632 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20634 if test "$OPT_ZLIB" = "yes" ; then
20638 if test -z "$OPT_ZLIB" ; then
20640 if test -n "$PKG_CONFIG"; then
20641 PKGCONFIG="$PKG_CONFIG"
20643 if test -n "$ac_tool_prefix"; then
20644 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20645 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20647 $as_echo_n "checking for $ac_word... " >&6; }
20648 if ${ac_cv_path_PKGCONFIG+:} false; then :
20649 $as_echo_n "(cached) " >&6
20653 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20657 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20658 for as_dir in $as_dummy
20661 test -z "$as_dir" && as_dir=.
20662 for ac_exec_ext in '' $ac_executable_extensions; do
20663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20664 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20675 PKGCONFIG=$ac_cv_path_PKGCONFIG
20676 if test -n "$PKGCONFIG"; then
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20678 $as_echo "$PKGCONFIG" >&6; }
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20681 $as_echo "no" >&6; }
20686 if test -z "$ac_cv_path_PKGCONFIG"; then
20687 ac_pt_PKGCONFIG=$PKGCONFIG
20688 # Extract the first word of "pkg-config", so it can be a program name with args.
20689 set dummy pkg-config; ac_word=$2
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20691 $as_echo_n "checking for $ac_word... " >&6; }
20692 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20693 $as_echo_n "(cached) " >&6
20695 case $ac_pt_PKGCONFIG in
20697 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20701 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20702 for as_dir in $as_dummy
20705 test -z "$as_dir" && as_dir=.
20706 for ac_exec_ext in '' $ac_executable_extensions; do
20707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20708 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20719 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20720 if test -n "$ac_pt_PKGCONFIG"; then
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20722 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725 $as_echo "no" >&6; }
20728 if test "x$ac_pt_PKGCONFIG" = x; then
20731 case $cross_compiling:$ac_tool_warned in
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20735 ac_tool_warned=yes ;;
20737 PKGCONFIG=$ac_pt_PKGCONFIG
20740 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20745 if test "x$PKGCONFIG" != "xno"; then
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20747 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20749 if test -n ""; then
20750 PKG_CONFIG_LIBDIR=""
20751 export PKG_CONFIG_LIBDIR
20753 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20755 if test -z "$itexists"; then
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20758 $as_echo "no" >&6; }
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20761 $as_echo "found" >&6; }
20766 if test "$PKGCONFIG" != "no" ; then
20767 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20768 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20769 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20774 if test -z "$HAVE_LIBZ"; then
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20778 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20779 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20780 $as_echo_n "(cached) " >&6
20782 ac_check_lib_save_LIBS=$LIBS
20784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h. */
20791 char inflateEnd ();
20794 return inflateEnd ();
20799 if ac_fn_c_try_link "$LINENO"; then :
20800 ac_cv_lib_z_inflateEnd=yes
20802 ac_cv_lib_z_inflateEnd=no
20804 rm -f core conftest.err conftest.$ac_objext \
20805 conftest$ac_exeext conftest.$ac_ext
20806 LIBS=$ac_check_lib_save_LIBS
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20809 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20810 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20814 OPT_ZLIB="/usr/local"
20820 if test -n "$OPT_ZLIB"; then
20821 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20822 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20825 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20826 if test "x$ac_cv_header_zlib_h" = xyes; then :
20829 if test "$HAVE_LIBZ" != "1"; then
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20831 $as_echo_n "checking for gzread in -lz... " >&6; }
20832 if ${ac_cv_lib_z_gzread+:} false; then :
20833 $as_echo_n "(cached) " >&6
20835 ac_check_lib_save_LIBS=$LIBS
20837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h. */
20852 if ac_fn_c_try_link "$LINENO"; then :
20853 ac_cv_lib_z_gzread=yes
20855 ac_cv_lib_z_gzread=no
20857 rm -f core conftest.err conftest.$ac_objext \
20858 conftest$ac_exeext conftest.$ac_ext
20859 LIBS=$ac_check_lib_save_LIBS
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20862 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20863 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20869 CPPFLAGS=$clean_CPPFLAGS
20870 LDFLAGS=$clean_LDFLAGS
20877 CPPFLAGS=$clean_CPPFLAGS
20878 LDFLAGS=$clean_LDFLAGS
20884 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20887 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20889 CPPFLAGS=$clean_CPPFLAGS
20890 LDFLAGS=$clean_LDFLAGS
20892 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20895 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20896 CPPFLAGS=$clean_CPPFLAGS
20897 LDFLAGS=$clean_LDFLAGS
20899 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20903 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20906 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20910 LIBS="-lz $clean_LIBS"
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20914 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20915 curl_zlib_msg="enabled"
20919 if test x"$AMFIXLIB" = x1; then
20921 HAVE_LIBZ_FALSE='#'
20933 # Check whether --with-brotli was given.
20934 if test "${with_brotli+set}" = set; then :
20935 withval=$with_brotli; OPT_BROTLI=$withval
20939 if test X"$OPT_BROTLI" != Xno; then
20940 CLEANLDFLAGS="$LDFLAGS"
20941 CLEANCPPFLAGS="$CPPFLAGS"
20944 case "$OPT_BROTLI" in
20947 if test -n "$PKG_CONFIG"; then
20948 PKGCONFIG="$PKG_CONFIG"
20950 if test -n "$ac_tool_prefix"; then
20951 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20952 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20954 $as_echo_n "checking for $ac_word... " >&6; }
20955 if ${ac_cv_path_PKGCONFIG+:} false; then :
20956 $as_echo_n "(cached) " >&6
20960 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20964 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20965 for as_dir in $as_dummy
20968 test -z "$as_dir" && as_dir=.
20969 for ac_exec_ext in '' $ac_executable_extensions; do
20970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20971 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20982 PKGCONFIG=$ac_cv_path_PKGCONFIG
20983 if test -n "$PKGCONFIG"; then
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20985 $as_echo "$PKGCONFIG" >&6; }
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20988 $as_echo "no" >&6; }
20993 if test -z "$ac_cv_path_PKGCONFIG"; then
20994 ac_pt_PKGCONFIG=$PKGCONFIG
20995 # Extract the first word of "pkg-config", so it can be a program name with args.
20996 set dummy pkg-config; ac_word=$2
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20998 $as_echo_n "checking for $ac_word... " >&6; }
20999 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21000 $as_echo_n "(cached) " >&6
21002 case $ac_pt_PKGCONFIG in
21004 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21008 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21009 for as_dir in $as_dummy
21012 test -z "$as_dir" && as_dir=.
21013 for ac_exec_ext in '' $ac_executable_extensions; do
21014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21015 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21026 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21027 if test -n "$ac_pt_PKGCONFIG"; then
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21029 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21032 $as_echo "no" >&6; }
21035 if test "x$ac_pt_PKGCONFIG" = x; then
21038 case $cross_compiling:$ac_tool_warned in
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21042 ac_tool_warned=yes ;;
21044 PKGCONFIG=$ac_pt_PKGCONFIG
21047 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21052 if test "x$PKGCONFIG" != "xno"; then
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21054 $as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21056 if test -n ""; then
21057 PKG_CONFIG_LIBDIR=""
21058 export PKG_CONFIG_LIBDIR
21060 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21062 if test -z "$itexists"; then
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21065 $as_echo "no" >&6; }
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21068 $as_echo "found" >&6; }
21073 if test "$PKGCONFIG" != "no" ; then
21074 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21075 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21076 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21077 version=`$PKGCONFIG --modversion libbrotlidec`
21078 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21085 PREFIX_BROTLI=$OPT_BROTLI
21089 if test -n "$PREFIX_BROTLI"; then
21090 LIB_BROTLI="-lbrotlidec"
21091 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21092 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21093 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21096 LDFLAGS="$LDFLAGS $LD_BROTLI"
21097 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21098 LIBS="$LIB_BROTLI $LIBS"
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21101 $as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21102 if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21103 $as_echo_n "(cached) " >&6
21105 ac_check_lib_save_LIBS=$LIBS
21106 LIBS="-lbrotlidec $LIBS"
21107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108 /* end confdefs.h. */
21114 char BrotliDecoderDecompress ();
21117 return BrotliDecoderDecompress ();
21122 if ac_fn_c_try_link "$LINENO"; then :
21123 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21125 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21127 rm -f core conftest.err conftest.$ac_objext \
21128 conftest$ac_exeext conftest.$ac_ext
21129 LIBS=$ac_check_lib_save_LIBS
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21132 $as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21133 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21134 cat >>confdefs.h <<_ACEOF
21135 #define HAVE_LIBBROTLIDEC 1
21138 LIBS="-lbrotlidec $LIBS"
21143 for ac_header in brotli/decode.h
21145 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21146 if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21147 cat >>confdefs.h <<_ACEOF
21148 #define HAVE_BROTLI_DECODE_H 1
21150 curl_brotli_msg="enabled (libbrotlidec)"
21153 $as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21163 if test X"$OPT_BROTLI" != Xoff &&
21164 test "$HAVE_BROTLI" != "1"; then
21165 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21168 if test "$HAVE_BROTLI" = "1"; then
21169 if test -n "$DIR_BROTLI"; then
21171 if test "x$cross_compiling" != "xyes"; then
21172 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21173 export CURL_LIBRARY_PATH
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21175 $as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
21179 LDFLAGS=$CLEANLDFLAGS
21180 CPPFLAGS=$CLEANCPPFLAGS
21188 # Check whether --with-ldap-lib was given.
21189 if test "${with_ldap_lib+set}" = set; then :
21190 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21196 # Check whether --with-lber-lib was given.
21197 if test "${with_lber_lib+set}" = set; then :
21198 withval=$with_lber_lib; LBERLIBNAME="$withval"
21202 if test x$CURL_DISABLE_LDAP != x1 ; then
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21206 $as_echo_n "checking for lber.h... " >&6; }
21207 if ${curl_cv_header_lber_h+:} false; then :
21208 $as_echo_n "(cached) " >&6
21211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21212 /* end confdefs.h. */
21216 #ifdef HAVE_WINDOWS_H
21217 #ifndef WIN32_LEAN_AND_MEAN
21218 #define WIN32_LEAN_AND_MEAN
21220 #include <windows.h>
21222 #ifdef HAVE_SYS_TYPES_H
21223 #include <sys/types.h>
21227 #define NULL (void *)0
21234 BerValue *bvp = NULL;
21235 BerElement *bep = ber_init(bvp);
21243 if ac_fn_c_try_compile "$LINENO"; then :
21245 curl_cv_header_lber_h="yes"
21249 curl_cv_header_lber_h="no"
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21256 $as_echo "$curl_cv_header_lber_h" >&6; }
21257 if test "$curl_cv_header_lber_h" = "yes"; then
21259 cat >>confdefs.h <<_ACEOF
21260 #define HAVE_LBER_H 1
21264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21265 /* end confdefs.h. */
21269 #ifdef HAVE_WINDOWS_H
21270 #ifndef WIN32_LEAN_AND_MEAN
21271 #define WIN32_LEAN_AND_MEAN
21273 #include <windows.h>
21275 #ifdef HAVE_SYS_TYPES_H
21276 #include <sys/types.h>
21280 #define NULL (void *)0
21282 #ifndef LDAP_DEPRECATED
21283 #define LDAP_DEPRECATED 1
21290 BerValue *bvp = NULL;
21291 BerElement *bep = ber_init(bvp);
21299 if ac_fn_c_try_compile "$LINENO"; then :
21301 curl_cv_need_header_lber_h="no"
21305 curl_cv_need_header_lber_h="yes"
21308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21310 case "$curl_cv_need_header_lber_h" in
21313 cat >>confdefs.h <<_ACEOF
21314 #define NEED_LBER_H 1
21322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21323 $as_echo_n "checking for ldap.h... " >&6; }
21324 if ${curl_cv_header_ldap_h+:} false; then :
21325 $as_echo_n "(cached) " >&6
21328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21329 /* end confdefs.h. */
21333 #ifdef HAVE_WINDOWS_H
21334 #ifndef WIN32_LEAN_AND_MEAN
21335 #define WIN32_LEAN_AND_MEAN
21337 #include <windows.h>
21339 #ifdef HAVE_SYS_TYPES_H
21340 #include <sys/types.h>
21343 #ifndef LDAP_DEPRECATED
21344 #define LDAP_DEPRECATED 1
21354 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21355 int res = ldap_unbind(ldp);
21362 if ac_fn_c_try_compile "$LINENO"; then :
21364 curl_cv_header_ldap_h="yes"
21368 curl_cv_header_ldap_h="no"
21371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21375 $as_echo "$curl_cv_header_ldap_h" >&6; }
21376 case "$curl_cv_header_ldap_h" in
21379 cat >>confdefs.h <<_ACEOF
21380 #define HAVE_LDAP_H 1
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21388 $as_echo_n "checking for ldapssl.h... " >&6; }
21389 if ${curl_cv_header_ldapssl_h+:} false; then :
21390 $as_echo_n "(cached) " >&6
21393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21394 /* end confdefs.h. */
21398 #ifdef HAVE_WINDOWS_H
21399 #ifndef WIN32_LEAN_AND_MEAN
21400 #define WIN32_LEAN_AND_MEAN
21402 #include <windows.h>
21404 #ifdef HAVE_SYS_TYPES_H
21405 #include <sys/types.h>
21409 #define NULL (void *)0
21411 #ifndef LDAP_DEPRECATED
21412 #define LDAP_DEPRECATED 1
21420 #include <ldapssl.h>
21425 char *cert_label = NULL;
21426 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21433 if ac_fn_c_try_compile "$LINENO"; then :
21435 curl_cv_header_ldapssl_h="yes"
21439 curl_cv_header_ldapssl_h="no"
21442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21446 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21447 case "$curl_cv_header_ldapssl_h" in
21450 cat >>confdefs.h <<_ACEOF
21451 #define HAVE_LDAPSSL_H 1
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21459 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21460 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21461 $as_echo_n "(cached) " >&6
21464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21465 /* end confdefs.h. */
21469 #ifdef HAVE_WINDOWS_H
21470 #ifndef WIN32_LEAN_AND_MEAN
21471 #define WIN32_LEAN_AND_MEAN
21473 #include <windows.h>
21475 #ifdef HAVE_SYS_TYPES_H
21476 #include <sys/types.h>
21479 #ifndef LDAP_DEPRECATED
21480 #define LDAP_DEPRECATED 1
21488 #include <ldap_ssl.h>
21493 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21500 if ac_fn_c_try_compile "$LINENO"; then :
21502 curl_cv_header_ldap_ssl_h="yes"
21506 curl_cv_header_ldap_ssl_h="no"
21509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21513 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21514 case "$curl_cv_header_ldap_ssl_h" in
21517 cat >>confdefs.h <<_ACEOF
21518 #define HAVE_LDAP_SSL_H 1
21525 if test -z "$LDAPLIBNAME" ; then
21526 if test "$curl_cv_native_windows" = "yes"; then
21527 LDAPLIBNAME="wldap32"
21532 if test "$LDAPLIBNAME" ; then
21533 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21535 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21536 if eval \${$as_ac_Lib+:} false; then :
21537 $as_echo_n "(cached) " >&6
21539 ac_check_lib_save_LIBS=$LIBS
21540 LIBS="-l"$LDAPLIBNAME" $LIBS"
21541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h. */
21551 return ldap_init ();
21556 if ac_fn_c_try_link "$LINENO"; then :
21557 eval "$as_ac_Lib=yes"
21559 eval "$as_ac_Lib=no"
21561 rm -f core conftest.err conftest.$ac_objext \
21562 conftest$ac_exeext conftest.$ac_ext
21563 LIBS=$ac_check_lib_save_LIBS
21565 eval ac_res=\$$as_ac_Lib
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21567 $as_echo "$ac_res" >&6; }
21568 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21569 cat >>confdefs.h <<_ACEOF
21570 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21573 LIBS="-l"$LDAPLIBNAME" $LIBS"
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21578 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21580 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21582 CURL_DISABLE_LDAP=1
21585 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21587 CURL_DISABLE_LDAPS=1
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21595 $as_echo_n "checking for LDAP libraries... " >&6; }
21601 curl_cv_save_LIBS="$LIBS"
21602 curl_cv_ldap_LIBS="unknown"
21604 for x_nlibs in '' "$u_libs" \
21608 '-lldapssl -lldapx -lldapsdk' \
21609 '-lldapsdk -lldapx -lldapssl' ; do
21610 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21611 if test -z "$x_nlibs"; then
21612 LIBS="$curl_cv_save_LIBS"
21614 LIBS="$x_nlibs $curl_cv_save_LIBS"
21616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21617 /* end confdefs.h. */
21621 #ifdef HAVE_WINDOWS_H
21622 #ifndef WIN32_LEAN_AND_MEAN
21623 #define WIN32_LEAN_AND_MEAN
21625 #include <windows.h>
21627 #ifdef HAVE_SYS_TYPES_H
21628 #include <sys/types.h>
21632 #define NULL (void *)0
21634 #ifndef LDAP_DEPRECATED
21635 #define LDAP_DEPRECATED 1
21647 BerValue *bvp = NULL;
21648 BerElement *bep = ber_init(bvp);
21649 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21650 int res = ldap_unbind(ldp);
21658 if ac_fn_c_try_link "$LINENO"; then :
21660 curl_cv_ldap_LIBS="$x_nlibs"
21663 rm -f core conftest.err conftest.$ac_objext \
21664 conftest$ac_exeext conftest.$ac_ext
21668 LIBS="$curl_cv_save_LIBS"
21670 case X-"$curl_cv_ldap_LIBS" in
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21673 $as_echo "cannot find LDAP libraries" >&6; }
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21677 $as_echo "no additional lib required" >&6; }
21680 if test -z "$curl_cv_save_LIBS"; then
21681 LIBS="$curl_cv_ldap_LIBS"
21683 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21686 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21691 case X-"$curl_cv_ldap_LIBS" in
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21694 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21696 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21698 CURL_DISABLE_LDAP=1
21701 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21703 CURL_DISABLE_LDAPS=1
21710 if test x$CURL_DISABLE_LDAP != x1 ; then
21712 if test "$LBERLIBNAME" ; then
21713 if test "$LBERLIBNAME" != "no" ; then
21714 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21716 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21717 if eval \${$as_ac_Lib+:} false; then :
21718 $as_echo_n "(cached) " >&6
21720 ac_check_lib_save_LIBS=$LIBS
21721 LIBS="-l"$LBERLIBNAME" $LIBS"
21722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723 /* end confdefs.h. */
21732 return ber_free ();
21737 if ac_fn_c_try_link "$LINENO"; then :
21738 eval "$as_ac_Lib=yes"
21740 eval "$as_ac_Lib=no"
21742 rm -f core conftest.err conftest.$ac_objext \
21743 conftest$ac_exeext conftest.$ac_ext
21744 LIBS=$ac_check_lib_save_LIBS
21746 eval ac_res=\$$as_ac_Lib
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21748 $as_echo "$ac_res" >&6; }
21749 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21750 cat >>confdefs.h <<_ACEOF
21751 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21754 LIBS="-l"$LBERLIBNAME" $LIBS"
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21759 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21761 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21763 CURL_DISABLE_LDAP=1
21766 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21768 CURL_DISABLE_LDAPS=1
21776 if test x$CURL_DISABLE_LDAP != x1 ; then
21777 for ac_func in ldap_url_parse ldap_init_fd
21779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21780 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21781 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21782 cat >>confdefs.h <<_ACEOF
21783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21790 if test "$LDAPLIBNAME" = "wldap32"; then
21791 curl_ldap_msg="enabled (winldap)"
21793 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21796 curl_ldap_msg="enabled (OpenLDAP)"
21797 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21799 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21807 if test x$CURL_DISABLE_LDAPS != x1 ; then
21808 curl_ldaps_msg="enabled"
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21813 $as_echo_n "checking whether to enable IPv6... " >&6; }
21814 # Check whether --enable-ipv6 was given.
21815 if test "${enable_ipv6+set}" = set; then :
21816 enableval=$enable_ipv6; case "$enableval" in
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21819 $as_echo "no" >&6; }
21822 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21823 $as_echo "yes" >&6; }
21828 if test "$cross_compiling" = yes; then :
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21830 $as_echo "yes" >&6; }
21834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h. */
21836 /* is AF_INET6 available? */
21837 #include <sys/types.h>
21838 #ifdef HAVE_WINSOCK2_H
21839 #include <winsock2.h>
21841 #include <sys/socket.h>
21843 #include <stdlib.h> /* for exit() */
21846 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21853 if ac_fn_c_try_run "$LINENO"; then :
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21855 $as_echo "yes" >&6; }
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859 $as_echo "no" >&6; }
21862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21863 conftest.$ac_objext conftest.beam conftest.$ac_ext
21869 if test "$ipv6" = "yes"; then
21870 curl_ipv6_msg="enabled"
21873 # Check if struct sockaddr_in6 have sin6_scope_id member
21874 if test "$ipv6" = yes; then
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21876 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878 /* end confdefs.h. */
21880 #include <sys/types.h>
21881 #ifdef HAVE_WINSOCK2_H
21882 #include <winsock2.h>
21883 #include <ws2tcpip.h>
21885 #include <netinet/in.h>
21886 #if defined (__TANDEM)
21887 # include <netinet/in6.h>
21892 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21897 if ac_fn_c_try_compile "$LINENO"; then :
21898 have_sin6_scope_id=yes
21900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21901 if test "$have_sin6_scope_id" = yes; then
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21903 $as_echo "yes" >&6; }
21905 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21909 $as_echo "no" >&6; }
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21915 $as_echo_n "checking if argv can be written to... " >&6; }
21918 old=$LD_LIBRARY_PATH
21919 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21920 export LD_LIBRARY_PATH
21921 if test "$cross_compiling" = yes; then :
21922 curl_cv_writable_argv=cross
21925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21926 /* end confdefs.h. */
21928 int main(int argc, char ** argv) {
21930 return (argv00 == ' ')?0:1;
21934 if ac_fn_c_try_run "$LINENO"; then :
21935 curl_cv_writable_argv=yes
21938 curl_cv_writable_argv=no
21941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21942 conftest.$ac_objext conftest.beam conftest.$ac_ext
21945 LD_LIBRARY_PATH=$old # restore
21947 case $curl_cv_writable_argv in
21950 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21953 $as_echo "yes" >&6; }
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21957 $as_echo "no" >&6; }
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21961 $as_echo "no" >&6; }
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21963 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21971 # Check whether --with-gssapi-includes was given.
21972 if test "${with_gssapi_includes+set}" = set; then :
21973 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21980 # Check whether --with-gssapi-libs was given.
21981 if test "${with_gssapi_libs+set}" = set; then :
21982 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21989 # Check whether --with-gssapi was given.
21990 if test "${with_gssapi+set}" = set; then :
21991 withval=$with_gssapi;
21992 GSSAPI_ROOT="$withval"
21993 if test x"$GSSAPI_ROOT" != xno; then
21995 if test x"$GSSAPI_ROOT" = xyes; then
22003 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22005 save_CPPFLAGS="$CPPFLAGS"
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22007 $as_echo_n "checking if GSS-API support is requested... " >&6; }
22008 if test x"$want_gss" = xyes; then
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22010 $as_echo "yes" >&6; }
22012 if test -z "$GSSAPI_INCS"; then
22013 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22014 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22015 elif test -f "$KRB5CONFIG"; then
22016 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22017 elif test "$GSSAPI_ROOT" != "yes"; then
22018 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22022 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22024 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22025 if test "x$ac_cv_header_gss_h" = xyes; then :
22028 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22034 for ac_header in gssapi/gssapi.h
22036 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22037 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22038 cat >>confdefs.h <<_ACEOF
22039 #define HAVE_GSSAPI_GSSAPI_H 1
22048 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22051 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22052 $ac_includes_default
22053 #ifdef HAVE_GSSAPI_GSSAPI_H
22054 #include <gssapi/gssapi.h>
22058 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22059 cat >>confdefs.h <<_ACEOF
22060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22069 if test "x$not_mit" = "x1"; then
22070 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22071 if test "x$ac_cv_header_gssapi_h" = xyes; then :
22074 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22081 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22089 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22092 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h. */
22097 #include <gssapi/gssapi.h>
22098 #include <gssapi/gssapi_generic.h>
22099 #include <gssapi/gssapi_krb5.h>
22107 GSS_C_NT_HOSTBASED_SERVICE,
22115 if ac_fn_c_try_compile "$LINENO"; then :
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22118 $as_echo "yes" >&6; }
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22123 $as_echo "no" >&6; }
22125 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22138 $as_echo "no" >&6; }
22140 if test x"$want_gss" = xyes; then
22142 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22145 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22147 if test -n "$gnu_gss"; then
22148 curl_gss_msg="enabled (GNU GSS)"
22149 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22151 elif test -z "$GSSAPI_LIB_DIR"; then
22154 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22157 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22158 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22159 LIBS="$gss_libs $LIBS"
22160 elif test -f "$KRB5CONFIG"; then
22161 gss_libs=`$KRB5CONFIG --libs gssapi`
22162 LIBS="$gss_libs $LIBS"
22169 gss_libname="gssapi"
22173 if test "$GSSAPI_ROOT" != "yes"; then
22174 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22175 LIBS="-l$gss_libname $LIBS"
22177 LIBS="-l$gss_libname $LIBS"
22183 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22189 LIBS="-lgssapi $LIBS"
22194 CPPFLAGS="$save_CPPFLAGS"
22197 build_libstubgss=no
22198 if test x"$want_gss" = "xyes"; then
22199 build_libstubgss=yes
22202 if test "x$build_libstubgss" = "xyes"; then
22203 BUILD_STUB_GSS_TRUE=
22204 BUILD_STUB_GSS_FALSE='#'
22206 BUILD_STUB_GSS_TRUE='#'
22207 BUILD_STUB_GSS_FALSE=
22212 DEFAULT_SSL_BACKEND=no
22213 VALID_DEFAULT_SSL_BACKEND=
22215 # Check whether --with-default-ssl-backend was given.
22216 if test "${with_default_ssl_backend+set}" = set; then :
22217 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22220 case "$DEFAULT_SSL_BACKEND" in
22224 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22228 VALID_DEFAULT_SSL_BACKEND=no
22236 # Check whether --with-winssl was given.
22237 if test "${with_winssl+set}" = set; then :
22238 withval=$with_winssl; OPT_WINSSL=$withval
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22243 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22244 if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22246 if test "x$OPT_WINSSL" != "xno" &&
22247 test "x$curl_cv_native_windows" = "xyes"; then
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22249 $as_echo "yes" >&6; }
22251 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22255 ssl_msg="Windows-native"
22256 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22258 # --with-winssl implies --enable-sspi
22260 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22264 curl_sspi_msg="enabled"
22265 LIBS="-lcrypt32 $LIBS"
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22268 $as_echo "no" >&6; }
22270 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22273 $as_echo "no" >&6; }
22278 # Check whether --with-darwinssl was given.
22279 if test "${with_darwinssl+set}" = set; then :
22280 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22285 $as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
22286 if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
22287 if test "x$OPT_DARWINSSL" != "xno" &&
22288 test -d "/System/Library/Frameworks/Security.framework"; then
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22290 $as_echo "yes" >&6; }
22292 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22296 ssl_msg="Apple OS-native"
22297 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22298 DARWINSSL_ENABLED=1
22299 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22302 $as_echo "no" >&6; }
22304 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22307 $as_echo "no" >&6; }
22314 # Check whether --with-ssl was given.
22315 if test "${with_ssl+set}" = set; then :
22316 withval=$with_ssl; OPT_SSL=$withval
22320 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22321 test X"$OPT_SSL" != Xno; then
22324 CLEANLDFLAGS="$LDFLAGS"
22325 CLEANCPPFLAGS="$CPPFLAGS"
22329 *-*-msys* | *-*-mingw*)
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22331 $as_echo_n "checking for gdi32... " >&6; }
22332 my_ac_save_LIBS=$LIBS
22333 LIBS="-lgdi32 $LIBS"
22334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h. */
22336 #include <windef.h>
22337 #include <wingdi.h>
22345 if ac_fn_c_try_link "$LINENO"; then :
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22347 $as_echo "yes" >&6; }
22349 LIBS=$my_ac_save_LIBS
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22351 $as_echo "no" >&6; }
22354 rm -f core conftest.err conftest.$ac_objext \
22355 conftest$ac_exeext conftest.$ac_ext
22361 if test x$cross_compiling != xyes; then
22364 PREFIX_OPENSSL=/usr/local/ssl
22365 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22368 if test x$cross_compiling != xyes; then
22375 PREFIX_OPENSSL=$OPT_SSL
22377 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22378 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22380 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22382 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22383 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
22386 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22387 if test "$PREFIX_OPENSSL" != "/usr" ; then
22388 SSL_LDFLAGS="-L$LIB_OPENSSL"
22389 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22391 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22395 if test "$PKGTEST" = "yes"; then
22398 if test -n "$PKG_CONFIG"; then
22399 PKGCONFIG="$PKG_CONFIG"
22401 if test -n "$ac_tool_prefix"; then
22402 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22403 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22405 $as_echo_n "checking for $ac_word... " >&6; }
22406 if ${ac_cv_path_PKGCONFIG+:} false; then :
22407 $as_echo_n "(cached) " >&6
22411 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22415 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22416 for as_dir in $as_dummy
22419 test -z "$as_dir" && as_dir=.
22420 for ac_exec_ext in '' $ac_executable_extensions; do
22421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22422 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22433 PKGCONFIG=$ac_cv_path_PKGCONFIG
22434 if test -n "$PKGCONFIG"; then
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22436 $as_echo "$PKGCONFIG" >&6; }
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22439 $as_echo "no" >&6; }
22444 if test -z "$ac_cv_path_PKGCONFIG"; then
22445 ac_pt_PKGCONFIG=$PKGCONFIG
22446 # Extract the first word of "pkg-config", so it can be a program name with args.
22447 set dummy pkg-config; ac_word=$2
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22449 $as_echo_n "checking for $ac_word... " >&6; }
22450 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22451 $as_echo_n "(cached) " >&6
22453 case $ac_pt_PKGCONFIG in
22455 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22459 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22460 for as_dir in $as_dummy
22463 test -z "$as_dir" && as_dir=.
22464 for ac_exec_ext in '' $ac_executable_extensions; do
22465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22466 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22477 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22478 if test -n "$ac_pt_PKGCONFIG"; then
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22480 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22483 $as_echo "no" >&6; }
22486 if test "x$ac_pt_PKGCONFIG" = x; then
22489 case $cross_compiling:$ac_tool_warned in
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22493 ac_tool_warned=yes ;;
22495 PKGCONFIG=$ac_pt_PKGCONFIG
22498 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22503 if test "x$PKGCONFIG" != "xno"; then
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22505 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22507 if test -n "$OPENSSL_PCDIR"; then
22508 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22509 export PKG_CONFIG_LIBDIR
22511 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22513 if test -z "$itexists"; then
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22516 $as_echo "no" >&6; }
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22519 $as_echo "found" >&6; }
22524 if test "$PKGCONFIG" != "no" ; then
22526 if test -n "$OPENSSL_PCDIR"; then
22527 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22528 export PKG_CONFIG_LIBDIR
22530 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22533 if test -n "$OPENSSL_PCDIR"; then
22534 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22535 export PKG_CONFIG_LIBDIR
22537 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22540 if test -n "$OPENSSL_PCDIR"; then
22541 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22542 export PKG_CONFIG_LIBDIR
22544 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22548 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22550 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22552 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22554 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22556 LIBS="$SSL_LIBS $LIBS"
22560 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22561 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22564 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22565 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22566 $as_echo_n "(cached) " >&6
22568 ac_check_lib_save_LIBS=$LIBS
22569 LIBS="-lcrypto $LIBS"
22570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22571 /* end confdefs.h. */
22577 char HMAC_Update ();
22580 return HMAC_Update ();
22585 if ac_fn_c_try_link "$LINENO"; then :
22586 ac_cv_lib_crypto_HMAC_Update=yes
22588 ac_cv_lib_crypto_HMAC_Update=no
22590 rm -f core conftest.err conftest.$ac_objext \
22591 conftest$ac_exeext conftest.$ac_ext
22592 LIBS=$ac_check_lib_save_LIBS
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22595 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22596 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22599 LIBS="-lcrypto $LIBS"
22603 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22604 if test "$PKGCONFIG" = "no" ; then
22605 # only set this if pkg-config wasn't used
22606 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22609 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22610 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22611 $as_echo_n "(cached) " >&6
22613 ac_check_lib_save_LIBS=$LIBS
22614 LIBS="-lcrypto $LIBS"
22615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22616 /* end confdefs.h. */
22622 char HMAC_Init_ex ();
22625 return HMAC_Init_ex ();
22630 if ac_fn_c_try_link "$LINENO"; then :
22631 ac_cv_lib_crypto_HMAC_Init_ex=yes
22633 ac_cv_lib_crypto_HMAC_Init_ex=no
22635 rm -f core conftest.err conftest.$ac_objext \
22636 conftest$ac_exeext conftest.$ac_ext
22637 LIBS=$ac_check_lib_save_LIBS
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22640 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22641 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22644 LIBS="-lcrypto $LIBS"
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22649 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22650 LIBS="$CLEANLIBS -lcrypto -ldl"
22651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652 /* end confdefs.h. */
22654 #include <openssl/err.h>
22665 if ac_fn_c_try_link "$LINENO"; then :
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22668 $as_echo "yes" >&6; }
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22674 $as_echo "no" >&6; }
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22677 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
22678 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h. */
22682 #include <openssl/err.h>
22693 if ac_fn_c_try_link "$LINENO"; then :
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22696 $as_echo "yes" >&6; }
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22702 $as_echo "no" >&6; }
22703 LDFLAGS="$CLEANLDFLAGS"
22704 CPPFLAGS="$CLEANCPPFLAGS"
22709 rm -f core conftest.err conftest.$ac_objext \
22710 conftest$ac_exeext conftest.$ac_ext
22714 rm -f core conftest.err conftest.$ac_objext \
22715 conftest$ac_exeext conftest.$ac_ext
22724 if test X"$HAVECRYPTO" = X"yes"; then
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22727 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22728 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22729 $as_echo_n "(cached) " >&6
22731 ac_check_lib_save_LIBS=$LIBS
22733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22734 /* end confdefs.h. */
22740 char SSL_connect ();
22743 return SSL_connect ();
22748 if ac_fn_c_try_link "$LINENO"; then :
22749 ac_cv_lib_ssl_SSL_connect=yes
22751 ac_cv_lib_ssl_SSL_connect=no
22753 rm -f core conftest.err conftest.$ac_objext \
22754 conftest$ac_exeext conftest.$ac_ext
22755 LIBS=$ac_check_lib_save_LIBS
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22758 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22759 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22760 cat >>confdefs.h <<_ACEOF
22761 #define HAVE_LIBSSL 1
22769 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22771 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22773 LIBS="-lRSAglue -lrsaref $LIBS"
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22775 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22776 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22777 $as_echo_n "(cached) " >&6
22779 ac_check_lib_save_LIBS=$LIBS
22781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22782 /* end confdefs.h. */
22788 char SSL_connect ();
22791 return SSL_connect ();
22796 if ac_fn_c_try_link "$LINENO"; then :
22797 ac_cv_lib_ssl_SSL_connect=yes
22799 ac_cv_lib_ssl_SSL_connect=no
22801 rm -f core conftest.err conftest.$ac_objext \
22802 conftest$ac_exeext conftest.$ac_ext
22803 LIBS=$ac_check_lib_save_LIBS
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22806 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22807 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22808 cat >>confdefs.h <<_ACEOF
22809 #define HAVE_LIBSSL 1
22816 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22818 $as_echo "no" >&6; }
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22822 $as_echo "yes" >&6; }
22827 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22828 openssl/pem.h openssl/ssl.h openssl/err.h
22830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22831 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22832 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22833 cat >>confdefs.h <<_ACEOF
22834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22837 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22840 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22847 if test $ac_cv_header_openssl_x509_h = no; then
22848 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22851 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22852 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22853 cat >>confdefs.h <<_ACEOF
22854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22862 if test $ac_cv_header_x509_h = yes &&
22863 test $ac_cv_header_crypto_h = yes &&
22864 test $ac_cv_header_ssl_h = yes; then
22871 if test X"$OPENSSL_ENABLED" != X"1"; then
22875 if test X"$OPT_SSL" != Xoff &&
22876 test "$OPENSSL_ENABLED" != "1"; then
22877 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22881 if test X"$OPENSSL_ENABLED" = X"1"; then
22883 for ac_func in RAND_egd \
22886 SSLv2_client_method
22888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22889 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22890 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22891 cat >>confdefs.h <<_ACEOF
22892 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22900 $as_echo_n "checking for BoringSSL... " >&6; }
22901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22902 /* end confdefs.h. */
22905 #include <openssl/base.h>
22910 #ifndef OPENSSL_IS_BORINGSSL
22911 #error not boringssl
22919 if ac_fn_c_try_compile "$LINENO"; then :
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22922 $as_echo "yes" >&6; }
22924 cat >>confdefs.h <<_ACEOF
22925 #define HAVE_BORINGSSL 1
22928 ssl_msg="BoringSSL"
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22933 $as_echo "no" >&6; }
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22939 $as_echo_n "checking for libressl... " >&6; }
22940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22941 /* end confdefs.h. */
22944 #include <openssl/opensslv.h>
22949 int dummy = LIBRESSL_VERSION_NUMBER;
22956 if ac_fn_c_try_compile "$LINENO"; then :
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22959 $as_echo "yes" >&6; }
22961 cat >>confdefs.h <<_ACEOF
22962 #define HAVE_LIBRESSL 1
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22970 $as_echo "no" >&6; }
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976 if test "$OPENSSL_ENABLED" = "1"; then
22977 if test -n "$LIB_OPENSSL"; then
22978 if test "x$cross_compiling" != "xyes"; then
22979 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
22980 export CURL_LIBRARY_PATH
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
22982 $as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22992 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22994 OLDCPPFLAGS=$CPPFLAGS
22995 # CPPPFLAG comes from CURL_CPP_P
22996 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22997 if test -z "$SED"; then
22998 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23000 if test -z "$GREP"; then
23001 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23006 /* end confdefs.h. */
23009 # ifdef USE_OPENSSL
23010 # include <openssl/crypto.h>
23012 # include <crypto.h>
23015 #ifdef OPENSSL_VERSION_NUMBER
23016 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23021 if ac_fn_c_try_cpp "$LINENO"; then :
23023 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23024 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23025 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23026 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23027 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23032 rm -f conftest.err conftest.i conftest.$ac_ext
23033 if test -z "$tmp_exp"; then
23034 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23037 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23038 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23041 CPPFLAGS=$OLDCPPFLAGS
23043 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23044 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23045 case "x$tst_verlen" in
23047 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23048 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23049 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23050 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23053 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23054 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23055 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23056 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23063 0x111) tst_show="1.1.1" ;;
23064 0x110) tst_show="1.1.0" ;;
23065 0x102) tst_show="1.0.2" ;;
23066 0x101) tst_show="1.0.1" ;;
23067 0x100) tst_show="1.0.0" ;;
23068 0x099) tst_show="0.9.9" ;;
23069 0x098) tst_show="0.9.8" ;;
23070 0x097) tst_show="0.9.7" ;;
23071 0x096) tst_show="0.9.6" ;;
23072 0x095) tst_show="0.9.5" ;;
23073 0x094) tst_show="0.9.4" ;;
23074 0x093) tst_show="0.9.3" ;;
23075 0x092) tst_show="0.9.2" ;;
23076 0x091) tst_show="0.9.1" ;;
23077 *) tst_show="unknown" ;;
23079 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23084 $as_echo "$tst_show" >&6; }
23086 curl_openssl_api_headers=$tst_api
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23093 $as_echo_n "checking for OpenSSL library version... " >&6; }
23094 if test "$tst_api" = "unknown"; then
23095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23096 /* end confdefs.h. */
23099 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23101 # include <limits.h>
23103 # include <assert.h>
23105 #undef ERR_clear_last_mark
23109 char ERR_clear_last_mark ();
23110 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23116 return ERR_clear_last_mark ();
23122 if ac_fn_c_try_link "$LINENO"; then :
23127 rm -f core conftest.err conftest.$ac_objext \
23128 conftest$ac_exeext conftest.$ac_ext
23130 if test "$tst_api" = "unknown"; then
23133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23134 /* end confdefs.h. */
23137 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23139 # include <limits.h>
23141 # include <assert.h>
23143 #undef SSL_CTX_set_not_resumbl_sess_cb
23147 char SSL_CTX_set_not_resumbl_sess_cb ();
23148 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23154 return SSL_CTX_set_not_resumbl_sess_cb ();
23160 if ac_fn_c_try_link "$LINENO"; then :
23165 rm -f core conftest.err conftest.$ac_objext \
23166 conftest$ac_exeext conftest.$ac_ext
23169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23170 /* end confdefs.h. */
23173 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23175 # include <limits.h>
23177 # include <assert.h>
23179 #undef SSL_CTX_set_not_resumable_session_callback
23183 char SSL_CTX_set_not_resumable_session_callback ();
23184 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23190 return SSL_CTX_set_not_resumable_session_callback ();
23196 if ac_fn_c_try_link "$LINENO"; then :
23201 rm -f core conftest.err conftest.$ac_objext \
23202 conftest$ac_exeext conftest.$ac_ext
23206 if test "$tst_api" = "unknown"; then
23207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23208 /* end confdefs.h. */
23211 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23213 # include <limits.h>
23215 # include <assert.h>
23217 #undef SSL_CONF_CTX_new
23221 char SSL_CONF_CTX_new ();
23222 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23228 return SSL_CONF_CTX_new ();
23234 if ac_fn_c_try_link "$LINENO"; then :
23239 rm -f core conftest.err conftest.$ac_objext \
23240 conftest$ac_exeext conftest.$ac_ext
23242 if test "$tst_api" = "unknown"; then
23243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23244 /* end confdefs.h. */
23247 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23249 # include <limits.h>
23251 # include <assert.h>
23253 #undef SSL_renegotiate_abbreviated
23257 char SSL_renegotiate_abbreviated ();
23258 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23264 return SSL_renegotiate_abbreviated ();
23270 if ac_fn_c_try_link "$LINENO"; then :
23275 rm -f core conftest.err conftest.$ac_objext \
23276 conftest$ac_exeext conftest.$ac_ext
23278 if test "$tst_api" = "unknown"; then
23279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23280 /* end confdefs.h. */
23283 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23285 # include <limits.h>
23287 # include <assert.h>
23289 #undef OBJ_add_sigid
23293 char OBJ_add_sigid ();
23294 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23300 return OBJ_add_sigid ();
23306 if ac_fn_c_try_link "$LINENO"; then :
23311 rm -f core conftest.err conftest.$ac_objext \
23312 conftest$ac_exeext conftest.$ac_ext
23314 if test "$tst_api" = "unknown"; then
23315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23316 /* end confdefs.h. */
23319 #define ERR_set_mark innocuous_ERR_set_mark
23321 # include <limits.h>
23323 # include <assert.h>
23325 #undef ERR_set_mark
23329 char ERR_set_mark ();
23330 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23336 return ERR_set_mark ();
23342 if ac_fn_c_try_link "$LINENO"; then :
23347 rm -f core conftest.err conftest.$ac_objext \
23348 conftest$ac_exeext conftest.$ac_ext
23350 if test "$tst_api" = "unknown"; then
23351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23352 /* end confdefs.h. */
23355 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23357 # include <limits.h>
23359 # include <assert.h>
23361 #undef ERR_peek_last_error
23365 char ERR_peek_last_error ();
23366 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23372 return ERR_peek_last_error ();
23378 if ac_fn_c_try_link "$LINENO"; then :
23383 rm -f core conftest.err conftest.$ac_objext \
23384 conftest$ac_exeext conftest.$ac_ext
23386 if test "$tst_api" = "unknown"; then
23387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388 /* end confdefs.h. */
23391 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23393 # include <limits.h>
23395 # include <assert.h>
23397 #undef c2i_ASN1_OBJECT
23401 char c2i_ASN1_OBJECT ();
23402 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23408 return c2i_ASN1_OBJECT ();
23414 if ac_fn_c_try_link "$LINENO"; then :
23419 rm -f core conftest.err conftest.$ac_objext \
23420 conftest$ac_exeext conftest.$ac_ext
23422 if test "$tst_api" = "unknown"; then
23423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23424 /* end confdefs.h. */
23427 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23429 # include <limits.h>
23431 # include <assert.h>
23433 #undef SSL_CTX_set_purpose
23437 char SSL_CTX_set_purpose ();
23438 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23444 return SSL_CTX_set_purpose ();
23450 if ac_fn_c_try_link "$LINENO"; then :
23455 rm -f core conftest.err conftest.$ac_objext \
23456 conftest$ac_exeext conftest.$ac_ext
23458 if test "$tst_api" = "unknown"; then
23459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23460 /* end confdefs.h. */
23463 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23465 # include <limits.h>
23467 # include <assert.h>
23473 char OBJ_obj2txt ();
23474 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23480 return OBJ_obj2txt ();
23486 if ac_fn_c_try_link "$LINENO"; then :
23491 rm -f core conftest.err conftest.$ac_objext \
23492 conftest$ac_exeext conftest.$ac_ext
23494 if test "$tst_api" = "unknown"; then
23495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23496 /* end confdefs.h. */
23499 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23501 # include <limits.h>
23503 # include <assert.h>
23505 #undef SSL_get_verify_depth
23509 char SSL_get_verify_depth ();
23510 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23516 return SSL_get_verify_depth ();
23522 if ac_fn_c_try_link "$LINENO"; then :
23527 rm -f core conftest.err conftest.$ac_objext \
23528 conftest$ac_exeext conftest.$ac_ext
23530 if test "$tst_api" = "unknown"; then
23531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23532 /* end confdefs.h. */
23535 #define SSL_library_init innocuous_SSL_library_init
23537 # include <limits.h>
23539 # include <assert.h>
23541 #undef SSL_library_init
23545 char SSL_library_init ();
23546 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23552 return SSL_library_init ();
23558 if ac_fn_c_try_link "$LINENO"; then :
23563 rm -f core conftest.err conftest.$ac_objext \
23564 conftest$ac_exeext conftest.$ac_ext
23566 if test "$tst_api" = "unknown"; then
23567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23568 /* end confdefs.h. */
23571 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23573 # include <limits.h>
23575 # include <assert.h>
23577 #undef SSL_CTX_set_cipher_list
23581 char SSL_CTX_set_cipher_list ();
23582 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23588 return SSL_CTX_set_cipher_list ();
23594 if ac_fn_c_try_link "$LINENO"; then :
23599 rm -f core conftest.err conftest.$ac_objext \
23600 conftest$ac_exeext conftest.$ac_ext
23603 0x111) tst_show="1.1.1" ;;
23604 0x110) tst_show="1.1.0" ;;
23605 0x102) tst_show="1.0.2" ;;
23606 0x101) tst_show="1.0.1" ;;
23607 0x100) tst_show="1.0.0" ;;
23608 0x099) tst_show="0.9.9" ;;
23609 0x098) tst_show="0.9.8" ;;
23610 0x097) tst_show="0.9.7" ;;
23611 0x096) tst_show="0.9.6" ;;
23612 0x095) tst_show="0.9.5" ;;
23613 0x094) tst_show="0.9.4" ;;
23614 0x093) tst_show="0.9.3" ;;
23615 0x092) tst_show="0.9.2" ;;
23616 0x091) tst_show="0.9.1" ;;
23617 *) tst_show="unknown" ;;
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23620 $as_echo "$tst_show" >&6; }
23622 curl_openssl_api_library=$tst_api
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23628 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23629 if test "$curl_openssl_api_headers" = "unknown" ||
23630 test "$curl_openssl_api_library" = "unknown"; then
23632 tst_warns="Can not compare OpenSSL headers and library versions."
23633 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23635 tst_warns="OpenSSL headers and library versions do not match."
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23638 $as_echo "$tst_match" >&6; }
23639 if test "$tst_match" != "yes"; then
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23641 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23644 check_for_ca_bundle=1
23647 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23651 if test X"$OPENSSL_ENABLED" = X"1"; then
23653 # Check whether --with-egd-socket was given.
23654 if test "${with_egd_socket+set}" = set; then :
23655 withval=$with_egd_socket; EGD_SOCKET="$withval"
23659 if test -n "$EGD_SOCKET" ; then
23661 cat >>confdefs.h <<_ACEOF
23662 #define EGD_SOCKET "$EGD_SOCKET"
23668 # Check whether --with-random was given.
23669 if test "${with_random+set}" = set; then :
23670 withval=$with_random; RANDOM_FILE="$withval"
23673 if test x$cross_compiling != xyes; then
23674 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23676 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23677 if eval \${$as_ac_File+:} false; then :
23678 $as_echo_n "(cached) " >&6
23680 test "$cross_compiling" = yes &&
23681 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23682 if test -r ""/dev/urandom""; then
23683 eval "$as_ac_File=yes"
23685 eval "$as_ac_File=no"
23688 eval ac_res=\$$as_ac_File
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23690 $as_echo "$ac_res" >&6; }
23691 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23692 RANDOM_FILE="/dev/urandom"
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23697 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23703 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23706 cat >>confdefs.h <<_ACEOF
23707 #define RANDOM_FILE "$RANDOM_FILE"
23713 if test "$OPENSSL_ENABLED" = "1"; then
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23715 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23716 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23717 $as_echo_n "(cached) " >&6
23719 ac_check_lib_save_LIBS=$LIBS
23720 LIBS="-lcrypto $LIBS"
23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23722 /* end confdefs.h. */
23728 char SRP_Calc_client_key ();
23731 return SRP_Calc_client_key ();
23736 if ac_fn_c_try_link "$LINENO"; then :
23737 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23739 ac_cv_lib_crypto_SRP_Calc_client_key=no
23741 rm -f core conftest.err conftest.$ac_objext \
23742 conftest$ac_exeext conftest.$ac_ext
23743 LIBS=$ac_check_lib_save_LIBS
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23746 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23747 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23750 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23759 if test X"$OPENSSL_ENABLED" = X"1"; then
23760 # Check whether --enable-openssl-auto-load-config was given.
23761 if test "${enable_openssl_auto_load_config+set}" = set; then :
23762 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
23764 $as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
23766 $as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
23778 # Check whether --with-gnutls was given.
23779 if test "${with_gnutls+set}" = set; then :
23780 withval=$with_gnutls; OPT_GNUTLS=$withval
23784 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23787 if test X"$OPT_GNUTLS" != Xno; then
23795 if test "x$OPT_GNUTLS" = "xyes"; then
23797 if test -n "$PKG_CONFIG"; then
23798 PKGCONFIG="$PKG_CONFIG"
23800 if test -n "$ac_tool_prefix"; then
23801 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23802 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23804 $as_echo_n "checking for $ac_word... " >&6; }
23805 if ${ac_cv_path_PKGCONFIG+:} false; then :
23806 $as_echo_n "(cached) " >&6
23810 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23814 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23815 for as_dir in $as_dummy
23818 test -z "$as_dir" && as_dir=.
23819 for ac_exec_ext in '' $ac_executable_extensions; do
23820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23821 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23832 PKGCONFIG=$ac_cv_path_PKGCONFIG
23833 if test -n "$PKGCONFIG"; then
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23835 $as_echo "$PKGCONFIG" >&6; }
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23838 $as_echo "no" >&6; }
23843 if test -z "$ac_cv_path_PKGCONFIG"; then
23844 ac_pt_PKGCONFIG=$PKGCONFIG
23845 # Extract the first word of "pkg-config", so it can be a program name with args.
23846 set dummy pkg-config; ac_word=$2
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23848 $as_echo_n "checking for $ac_word... " >&6; }
23849 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23850 $as_echo_n "(cached) " >&6
23852 case $ac_pt_PKGCONFIG in
23854 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23858 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23859 for as_dir in $as_dummy
23862 test -z "$as_dir" && as_dir=.
23863 for ac_exec_ext in '' $ac_executable_extensions; do
23864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23865 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23876 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23877 if test -n "$ac_pt_PKGCONFIG"; then
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23879 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23882 $as_echo "no" >&6; }
23885 if test "x$ac_pt_PKGCONFIG" = x; then
23888 case $cross_compiling:$ac_tool_warned in
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23892 ac_tool_warned=yes ;;
23894 PKGCONFIG=$ac_pt_PKGCONFIG
23897 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23902 if test "x$PKGCONFIG" != "xno"; then
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23904 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23906 if test -n ""; then
23907 PKG_CONFIG_LIBDIR=""
23908 export PKG_CONFIG_LIBDIR
23910 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23912 if test -z "$itexists"; then
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23915 $as_echo "no" >&6; }
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23918 $as_echo "found" >&6; }
23923 if test "$PKGCONFIG" != "no" ; then
23924 addlib=`$PKGCONFIG --libs-only-l gnutls`
23925 addld=`$PKGCONFIG --libs-only-L gnutls`
23926 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23927 version=`$PKGCONFIG --modversion gnutls`
23928 gtlslib=`echo $addld | $SED -e 's/-L//'`
23930 check=`libgnutls-config --version 2>/dev/null`
23931 if test -n "$check"; then
23932 addlib=`libgnutls-config --libs`
23933 addcflags=`libgnutls-config --cflags`
23934 version=`libgnutls-config --version`
23935 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23939 cfg=$OPT_GNUTLS/bin/libgnutls-config
23940 check=`$cfg --version 2>/dev/null`
23941 if test -n "$check"; then
23942 addlib=`$cfg --libs`
23943 addcflags=`$cfg --cflags`
23944 version=`$cfg --version`
23945 gtlslib=`$cfg --prefix`/lib$libsuff
23948 addld=-L$OPT_GNUTLS/lib$libsuff
23949 addcflags=-I$OPT_GNUTLS/include
23950 version="" # we just don't know
23951 gtlslib=$OPT_GNUTLS/lib$libsuff
23955 if test -z "$version"; then
23959 if test -n "$addlib"; then
23962 CLEANCPPFLAGS="$CPPFLAGS"
23963 CLEANLDFLAGS="$LDFLAGS"
23965 LIBS="$addlib $LIBS"
23966 LDFLAGS="$LDFLAGS $addld"
23967 if test "$addcflags" != "-I/usr/include"; then
23968 CPPFLAGS="$CPPFLAGS $addcflags"
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23972 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23973 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23974 $as_echo_n "(cached) " >&6
23976 ac_check_lib_save_LIBS=$LIBS
23977 LIBS="-lgnutls $LIBS"
23978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23979 /* end confdefs.h. */
23985 char gnutls_check_version ();
23988 return gnutls_check_version ();
23993 if ac_fn_c_try_link "$LINENO"; then :
23994 ac_cv_lib_gnutls_gnutls_check_version=yes
23996 ac_cv_lib_gnutls_gnutls_check_version=no
23998 rm -f core conftest.err conftest.$ac_objext \
23999 conftest$ac_exeext conftest.$ac_ext
24000 LIBS=$ac_check_lib_save_LIBS
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24003 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24004 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24007 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
24014 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24019 CPPFLAGS="$CLEANCPPFLAGS"
24024 if test "x$USE_GNUTLS" = "xyes"; then
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24026 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
24027 check_for_ca_bundle=1
24028 if test -n "$gtlslib"; then
24029 if test "x$cross_compiling" != "xyes"; then
24030 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
24031 export CURL_LIBRARY_PATH
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
24033 $as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
24036 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24039 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24040 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24041 cat >>confdefs.h <<_ACEOF
24042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24053 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24057 if test "$GNUTLS_ENABLED" = "1"; then
24059 # First check if we can detect either crypto library via transitive linking
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24061 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24062 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24063 $as_echo_n "(cached) " >&6
24065 ac_check_lib_save_LIBS=$LIBS
24066 LIBS="-lgnutls $LIBS"
24067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24068 /* end confdefs.h. */
24074 char nettle_MD5Init ();
24077 return nettle_MD5Init ();
24082 if ac_fn_c_try_link "$LINENO"; then :
24083 ac_cv_lib_gnutls_nettle_MD5Init=yes
24085 ac_cv_lib_gnutls_nettle_MD5Init=no
24087 rm -f core conftest.err conftest.$ac_objext \
24088 conftest$ac_exeext conftest.$ac_ext
24089 LIBS=$ac_check_lib_save_LIBS
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24092 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24093 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24094 USE_GNUTLS_NETTLE=1
24097 if test "$USE_GNUTLS_NETTLE" = ""; then
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24099 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24100 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24101 $as_echo_n "(cached) " >&6
24103 ac_check_lib_save_LIBS=$LIBS
24104 LIBS="-lgnutls $LIBS"
24105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24106 /* end confdefs.h. */
24112 char gcry_control ();
24115 return gcry_control ();
24120 if ac_fn_c_try_link "$LINENO"; then :
24121 ac_cv_lib_gnutls_gcry_control=yes
24123 ac_cv_lib_gnutls_gcry_control=no
24125 rm -f core conftest.err conftest.$ac_objext \
24126 conftest$ac_exeext conftest.$ac_ext
24127 LIBS=$ac_check_lib_save_LIBS
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24130 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24131 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24132 USE_GNUTLS_NETTLE=0
24136 # If not, try linking directly to both of them to see if they are available
24137 if test "$USE_GNUTLS_NETTLE" = ""; then
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24139 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24140 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24141 $as_echo_n "(cached) " >&6
24143 ac_check_lib_save_LIBS=$LIBS
24144 LIBS="-lnettle $LIBS"
24145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24146 /* end confdefs.h. */
24152 char nettle_MD5Init ();
24155 return nettle_MD5Init ();
24160 if ac_fn_c_try_link "$LINENO"; then :
24161 ac_cv_lib_nettle_nettle_MD5Init=yes
24163 ac_cv_lib_nettle_nettle_MD5Init=no
24165 rm -f core conftest.err conftest.$ac_objext \
24166 conftest$ac_exeext conftest.$ac_ext
24167 LIBS=$ac_check_lib_save_LIBS
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24170 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24171 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24172 USE_GNUTLS_NETTLE=1
24176 if test "$USE_GNUTLS_NETTLE" = ""; then
24177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24178 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24179 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24180 $as_echo_n "(cached) " >&6
24182 ac_check_lib_save_LIBS=$LIBS
24183 LIBS="-lgcrypt $LIBS"
24184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24185 /* end confdefs.h. */
24191 char gcry_control ();
24194 return gcry_control ();
24199 if ac_fn_c_try_link "$LINENO"; then :
24200 ac_cv_lib_gcrypt_gcry_control=yes
24202 ac_cv_lib_gcrypt_gcry_control=no
24204 rm -f core conftest.err conftest.$ac_objext \
24205 conftest$ac_exeext conftest.$ac_ext
24206 LIBS=$ac_check_lib_save_LIBS
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24209 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24210 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24211 USE_GNUTLS_NETTLE=0
24215 if test "$USE_GNUTLS_NETTLE" = ""; then
24216 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24218 if test "$USE_GNUTLS_NETTLE" = "1"; then
24220 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24222 USE_GNUTLS_NETTLE=1
24224 LIBS="-lnettle $LIBS"
24226 LIBS="-lgcrypt $LIBS"
24230 if test "$GNUTLS_ENABLED" = "1"; then
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24232 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24233 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24234 $as_echo_n "(cached) " >&6
24236 ac_check_lib_save_LIBS=$LIBS
24237 LIBS="-lgnutls $LIBS"
24238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24239 /* end confdefs.h. */
24245 char gnutls_srp_verifier ();
24248 return gnutls_srp_verifier ();
24253 if ac_fn_c_try_link "$LINENO"; then :
24254 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24256 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24258 rm -f core conftest.err conftest.$ac_objext \
24259 conftest$ac_exeext conftest.$ac_ext
24260 LIBS=$ac_check_lib_save_LIBS
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24263 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24264 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24267 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24279 _cppflags=$CPPFLAGS
24282 # Check whether --with-polarssl was given.
24283 if test "${with_polarssl+set}" = set; then :
24284 withval=$with_polarssl; OPT_POLARSSL=$withval
24288 if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24291 if test X"$OPT_POLARSSL" != Xno; then
24293 if test "$OPT_POLARSSL" = "yes"; then
24297 if test -z "$OPT_POLARSSL" ; then
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24300 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24301 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24302 $as_echo_n "(cached) " >&6
24304 ac_check_lib_save_LIBS=$LIBS
24305 LIBS="-lpolarssl $LIBS"
24306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24307 /* end confdefs.h. */
24313 char havege_init ();
24316 return havege_init ();
24321 if ac_fn_c_try_link "$LINENO"; then :
24322 ac_cv_lib_polarssl_havege_init=yes
24324 ac_cv_lib_polarssl_havege_init=no
24326 rm -f core conftest.err conftest.$ac_objext \
24327 conftest$ac_exeext conftest.$ac_ext
24328 LIBS=$ac_check_lib_save_LIBS
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24331 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24332 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24335 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24342 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24353 if test "x$USE_POLARSSL" != "xyes"; then
24354 addld=-L$OPT_POLARSSL/lib$libsuff
24355 addcflags=-I$OPT_POLARSSL/include
24356 polarssllib=$OPT_POLARSSL/lib$libsuff
24358 LDFLAGS="$LDFLAGS $addld"
24359 if test "$addcflags" != "-I/usr/include"; then
24360 CPPFLAGS="$CPPFLAGS $addcflags"
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24364 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24365 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24366 $as_echo_n "(cached) " >&6
24368 ac_check_lib_save_LIBS=$LIBS
24369 LIBS="-lpolarssl $LIBS"
24370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24371 /* end confdefs.h. */
24380 return ssl_init ();
24385 if ac_fn_c_try_link "$LINENO"; then :
24386 ac_cv_lib_polarssl_ssl_init=yes
24388 ac_cv_lib_polarssl_ssl_init=no
24390 rm -f core conftest.err conftest.$ac_objext \
24391 conftest$ac_exeext conftest.$ac_ext
24392 LIBS=$ac_check_lib_save_LIBS
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24395 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24396 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24399 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24406 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24410 CPPFLAGS=$_cppflags
24417 if test "x$USE_POLARSSL" = "xyes"; then
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24419 $as_echo "$as_me: detected PolarSSL" >&6;}
24420 check_for_ca_bundle=1
24421 LIBS="-lpolarssl $LIBS"
24423 if test -n "$polarssllib"; then
24424 if test "x$cross_compiling" != "xyes"; then
24425 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
24426 export CURL_LIBRARY_PATH
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
24428 $as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
24434 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24440 _cppflags=$CPPFLAGS
24443 # Check whether --with-mbedtls was given.
24444 if test "${with_mbedtls+set}" = set; then :
24445 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24449 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24452 if test X"$OPT_MBEDTLS" != Xno; then
24454 if test "$OPT_MBEDTLS" = "yes"; then
24458 if test -z "$OPT_MBEDTLS" ; then
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24461 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24462 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24463 $as_echo_n "(cached) " >&6
24465 ac_check_lib_save_LIBS=$LIBS
24466 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24468 /* end confdefs.h. */
24474 char mbedtls_havege_init ();
24477 return mbedtls_havege_init ();
24482 if ac_fn_c_try_link "$LINENO"; then :
24483 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24485 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24487 rm -f core conftest.err conftest.$ac_objext \
24488 conftest$ac_exeext conftest.$ac_ext
24489 LIBS=$ac_check_lib_save_LIBS
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24492 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24493 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24496 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24503 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24514 if test "x$USE_MBEDTLS" != "xyes"; then
24515 addld=-L$OPT_MBEDTLS/lib$libsuff
24516 addcflags=-I$OPT_MBEDTLS/include
24517 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24519 LDFLAGS="$LDFLAGS $addld"
24520 if test "$addcflags" != "-I/usr/include"; then
24521 CPPFLAGS="$CPPFLAGS $addcflags"
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24525 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24526 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24527 $as_echo_n "(cached) " >&6
24529 ac_check_lib_save_LIBS=$LIBS
24530 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24532 /* end confdefs.h. */
24538 char mbedtls_ssl_init ();
24541 return mbedtls_ssl_init ();
24546 if ac_fn_c_try_link "$LINENO"; then :
24547 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24549 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24551 rm -f core conftest.err conftest.$ac_objext \
24552 conftest$ac_exeext conftest.$ac_ext
24553 LIBS=$ac_check_lib_save_LIBS
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24556 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24557 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24560 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24567 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24571 CPPFLAGS=$_cppflags
24578 if test "x$USE_MBEDTLS" = "xyes"; then
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24580 $as_echo "$as_me: detected mbedTLS" >&6;}
24581 check_for_ca_bundle=1
24583 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24585 if test -n "$mbedtlslib"; then
24586 if test "x$cross_compiling" != "xyes"; then
24587 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24588 export CURL_LIBRARY_PATH
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24590 $as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
24596 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24602 _cppflags=$CPPFLAGS
24605 # Check whether --with-cyassl was given.
24606 if test "${with_cyassl+set}" = set; then :
24607 withval=$with_cyassl; OPT_CYASSL=$withval
24612 # Check whether --with-wolfssl was given.
24613 if test "${with_wolfssl+set}" = set; then :
24614 withval=$with_wolfssl; OPT_CYASSL=$withval
24618 if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24621 if test X"$OPT_CYASSL" != Xno; then
24623 if test "$OPT_CYASSL" = "yes"; then
24628 cyassllibname=cyassl
24630 if test -z "$OPT_CYASSL" ; then
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24633 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24634 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24635 $as_echo_n "(cached) " >&6
24637 ac_check_lib_save_LIBS=$LIBS
24638 LIBS="-lcyassl $LIBS"
24639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24640 /* end confdefs.h. */
24646 char CyaSSL_Init ();
24649 return CyaSSL_Init ();
24654 if ac_fn_c_try_link "$LINENO"; then :
24655 ac_cv_lib_cyassl_CyaSSL_Init=yes
24657 ac_cv_lib_cyassl_CyaSSL_Init=no
24659 rm -f core conftest.err conftest.$ac_objext \
24660 conftest$ac_exeext conftest.$ac_ext
24661 LIBS=$ac_check_lib_save_LIBS
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24664 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24665 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24668 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24675 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24686 if test "x$USE_CYASSL" != "xyes"; then
24687 addld=-L$OPT_CYASSL/lib$libsuff
24688 addcflags=-I$OPT_CYASSL/include
24689 cyassllib=$OPT_CYASSL/lib$libsuff
24691 LDFLAGS="$LDFLAGS $addld"
24692 if test "$addcflags" != "-I/usr/include"; then
24693 CPPFLAGS="$CPPFLAGS $addcflags"
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24697 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24698 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24699 $as_echo_n "(cached) " >&6
24701 ac_check_lib_save_LIBS=$LIBS
24702 LIBS="-lcyassl $LIBS"
24703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24704 /* end confdefs.h. */
24710 char CyaSSL_Init ();
24713 return CyaSSL_Init ();
24718 if ac_fn_c_try_link "$LINENO"; then :
24719 ac_cv_lib_cyassl_CyaSSL_Init=yes
24721 ac_cv_lib_cyassl_CyaSSL_Init=no
24723 rm -f core conftest.err conftest.$ac_objext \
24724 conftest$ac_exeext conftest.$ac_ext
24725 LIBS=$ac_check_lib_save_LIBS
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24728 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24729 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24732 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24739 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24743 CPPFLAGS=$_cppflags
24755 if test "x$USE_CYASSL" != "xyes"; then
24756 addld=-L$OPT_CYASSL/lib$libsuff
24757 addcflags=-I$OPT_CYASSL/include
24758 cyassllib=$OPT_CYASSL/lib$libsuff
24760 LDFLAGS="$LDFLAGS $addld"
24761 if test "$addcflags" != "-I/usr/include"; then
24762 CPPFLAGS="$CPPFLAGS $addcflags"
24765 cyassllibname=wolfssl
24766 my_ac_save_LIBS="$LIBS"
24767 LIBS="-l$cyassllibname -lm $LIBS"
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24770 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24772 /* end confdefs.h. */
24775 /* These aren't needed for detection and confuse WolfSSL.
24776 They are set up properly later if it is detected. */
24778 #undef SIZEOF_LONG_LONG
24779 #include <cyassl/ssl.h>
24784 return CyaSSL_Init();
24791 if ac_fn_c_try_link "$LINENO"; then :
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24794 $as_echo "yes" >&6; }
24796 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24803 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24808 $as_echo "no" >&6; }
24809 CPPFLAGS=$_cppflags
24814 rm -f core conftest.err conftest.$ac_objext \
24815 conftest$ac_exeext conftest.$ac_ext
24816 LIBS="$my_ac_save_LIBS"
24819 if test "x$USE_CYASSL" = "xyes"; then
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24821 $as_echo "$as_me: detected $cyassllibname" >&6;}
24822 check_for_ca_bundle=1
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24825 $as_echo_n "checking size of long long... " >&6; }
24826 if ${ac_cv_sizeof_long_long+:} false; then :
24827 $as_echo_n "(cached) " >&6
24829 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24831 /* end confdefs.h. */
24833 #include <sys/types.h>
24838 switch (0) case 0: case (sizeof (long long) == $ac_size):;
24843 if ac_fn_c_try_compile "$LINENO"; then :
24844 ac_cv_sizeof_long_long=$ac_size
24846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24847 if test x$ac_cv_sizeof_long_long != x ; then break; fi
24852 if test x$ac_cv_sizeof_long_long = x ; then
24853 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24856 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24858 cat >>confdefs.h <<_ACEOF
24859 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24864 for ac_header in cyassl/options.h
24866 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24867 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24868 cat >>confdefs.h <<_ACEOF
24869 #define HAVE_CYASSL_OPTIONS_H 1
24877 for ac_header in cyassl/error-ssl.h
24879 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24880 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24881 cat >>confdefs.h <<_ACEOF
24882 #define HAVE_CYASSL_ERROR_SSL_H 1
24890 LIBS="-l$cyassllibname -lm $LIBS"
24892 if test "x$cyassllibname" = "xwolfssl"; then
24893 for ac_func in wolfSSLv3_client_method \
24894 wolfSSL_CTX_UseSupportedCurve \
24895 wolfSSL_get_peer_certificate \
24898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24901 cat >>confdefs.h <<_ACEOF
24902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24909 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24910 CyaSSL_get_peer_certificate
24912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24913 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24914 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24915 cat >>confdefs.h <<_ACEOF
24916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24924 if test -n "$cyassllib"; then
24925 if test "x$cross_compiling" != "xyes"; then
24926 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
24927 export CURL_LIBRARY_PATH
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
24929 $as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
24936 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24942 _cppflags=$CPPFLAGS
24945 # Check whether --with-mesalink was given.
24946 if test "${with_mesalink+set}" = set; then :
24947 withval=$with_mesalink; OPT_MESALINK=$withval
24951 if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
24954 if test X"$OPT_MESALINK" != Xno; then
24956 if test "$OPT_MESALINK" = "yes"; then
24960 if test -z "$OPT_MESALINK" ; then
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24963 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24964 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24965 $as_echo_n "(cached) " >&6
24967 ac_check_lib_save_LIBS=$LIBS
24968 LIBS="-lmesalink $LIBS"
24969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24970 /* end confdefs.h. */
24976 char mesalink_library_init ();
24979 return mesalink_library_init ();
24984 if ac_fn_c_try_link "$LINENO"; then :
24985 ac_cv_lib_mesalink_mesalink_library_init=yes
24987 ac_cv_lib_mesalink_mesalink_library_init=no
24989 rm -f core conftest.err conftest.$ac_objext \
24990 conftest$ac_exeext conftest.$ac_ext
24991 LIBS=$ac_check_lib_save_LIBS
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24994 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24995 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24998 $as_echo "#define USE_MESALINK 1" >>confdefs.h
25005 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25016 if test "x$USE_MESALINK" != "xyes"; then
25017 addld=-L$OPT_MESALINK/lib$libsuff
25018 addcflags=-I$OPT_MESALINK/include
25019 mesalinklib=$OPT_MESALINK/lib$libsuff
25021 LDFLAGS="$LDFLAGS $addld"
25022 if test "$addcflags" != "-I/usr/include"; then
25023 CPPFLAGS="$CPPFLAGS $addcflags"
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
25027 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
25028 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
25029 $as_echo_n "(cached) " >&6
25031 ac_check_lib_save_LIBS=$LIBS
25032 LIBS="-lmesalink $LIBS"
25033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034 /* end confdefs.h. */
25040 char mesalink_library_init ();
25043 return mesalink_library_init ();
25048 if ac_fn_c_try_link "$LINENO"; then :
25049 ac_cv_lib_mesalink_mesalink_library_init=yes
25051 ac_cv_lib_mesalink_mesalink_library_init=no
25053 rm -f core conftest.err conftest.$ac_objext \
25054 conftest$ac_exeext conftest.$ac_ext
25055 LIBS=$ac_check_lib_save_LIBS
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
25058 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
25059 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
25062 $as_echo "#define USE_MESALINK 1" >>confdefs.h
25069 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25073 CPPFLAGS=$_cppflags
25080 if test "x$USE_MESALINK" = "xyes"; then
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
25082 $as_echo "$as_me: detected MesaLink" >&6;}
25084 LIBS="-lmesalink $LIBS"
25086 if test -n "$mesalinklib"; then
25087 if test "x$cross_compiling" != "xyes"; then
25088 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
25089 export LD_LIBRARY_PATH
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
25091 $as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
25097 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25104 # Check whether --with-nss was given.
25105 if test "${with_nss+set}" = set; then :
25106 withval=$with_nss; OPT_NSS=$withval
25110 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
25113 if test X"$OPT_NSS" != Xno; then
25121 if test "x$OPT_NSS" = "xyes"; then
25124 if test -n "$PKG_CONFIG"; then
25125 PKGCONFIG="$PKG_CONFIG"
25127 if test -n "$ac_tool_prefix"; then
25128 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25129 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25131 $as_echo_n "checking for $ac_word... " >&6; }
25132 if ${ac_cv_path_PKGCONFIG+:} false; then :
25133 $as_echo_n "(cached) " >&6
25137 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25141 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25142 for as_dir in $as_dummy
25145 test -z "$as_dir" && as_dir=.
25146 for ac_exec_ext in '' $ac_executable_extensions; do
25147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25148 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25159 PKGCONFIG=$ac_cv_path_PKGCONFIG
25160 if test -n "$PKGCONFIG"; then
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25162 $as_echo "$PKGCONFIG" >&6; }
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25165 $as_echo "no" >&6; }
25170 if test -z "$ac_cv_path_PKGCONFIG"; then
25171 ac_pt_PKGCONFIG=$PKGCONFIG
25172 # Extract the first word of "pkg-config", so it can be a program name with args.
25173 set dummy pkg-config; ac_word=$2
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25175 $as_echo_n "checking for $ac_word... " >&6; }
25176 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25177 $as_echo_n "(cached) " >&6
25179 case $ac_pt_PKGCONFIG in
25181 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25185 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25186 for as_dir in $as_dummy
25189 test -z "$as_dir" && as_dir=.
25190 for ac_exec_ext in '' $ac_executable_extensions; do
25191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25192 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25203 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25204 if test -n "$ac_pt_PKGCONFIG"; then
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25206 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25209 $as_echo "no" >&6; }
25212 if test "x$ac_pt_PKGCONFIG" = x; then
25215 case $cross_compiling:$ac_tool_warned in
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25219 ac_tool_warned=yes ;;
25221 PKGCONFIG=$ac_pt_PKGCONFIG
25224 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25229 if test "x$PKGCONFIG" != "xno"; then
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25231 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25233 if test -n ""; then
25234 PKG_CONFIG_LIBDIR=""
25235 export PKG_CONFIG_LIBDIR
25237 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25239 if test -z "$itexists"; then
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25242 $as_echo "no" >&6; }
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25245 $as_echo "found" >&6; }
25250 if test "$PKGCONFIG" != "no" ; then
25251 addlib=`$PKGCONFIG --libs nss`
25252 addcflags=`$PKGCONFIG --cflags nss`
25253 version=`$PKGCONFIG --modversion nss`
25254 nssprefix=`$PKGCONFIG --variable=prefix nss`
25257 check=`nss-config --version 2>/dev/null`
25258 if test -n "$check"; then
25259 addlib=`nss-config --libs`
25260 addcflags=`nss-config --cflags`
25261 version=`nss-config --version`
25262 nssprefix=`nss-config --prefix`
25270 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25271 if test -f "$NSS_PCDIR/nss.pc"; then
25273 if test -n "$PKG_CONFIG"; then
25274 PKGCONFIG="$PKG_CONFIG"
25276 if test -n "$ac_tool_prefix"; then
25277 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25278 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25280 $as_echo_n "checking for $ac_word... " >&6; }
25281 if ${ac_cv_path_PKGCONFIG+:} false; then :
25282 $as_echo_n "(cached) " >&6
25286 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25290 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25291 for as_dir in $as_dummy
25294 test -z "$as_dir" && as_dir=.
25295 for ac_exec_ext in '' $ac_executable_extensions; do
25296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25297 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25308 PKGCONFIG=$ac_cv_path_PKGCONFIG
25309 if test -n "$PKGCONFIG"; then
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25311 $as_echo "$PKGCONFIG" >&6; }
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25314 $as_echo "no" >&6; }
25319 if test -z "$ac_cv_path_PKGCONFIG"; then
25320 ac_pt_PKGCONFIG=$PKGCONFIG
25321 # Extract the first word of "pkg-config", so it can be a program name with args.
25322 set dummy pkg-config; ac_word=$2
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25324 $as_echo_n "checking for $ac_word... " >&6; }
25325 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25326 $as_echo_n "(cached) " >&6
25328 case $ac_pt_PKGCONFIG in
25330 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25334 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25335 for as_dir in $as_dummy
25338 test -z "$as_dir" && as_dir=.
25339 for ac_exec_ext in '' $ac_executable_extensions; do
25340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25341 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25352 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25353 if test -n "$ac_pt_PKGCONFIG"; then
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25355 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25358 $as_echo "no" >&6; }
25361 if test "x$ac_pt_PKGCONFIG" = x; then
25364 case $cross_compiling:$ac_tool_warned in
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25368 ac_tool_warned=yes ;;
25370 PKGCONFIG=$ac_pt_PKGCONFIG
25373 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25378 if test "x$PKGCONFIG" != "xno"; then
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25380 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25382 if test -n "$NSS_PCDIR"; then
25383 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25384 export PKG_CONFIG_LIBDIR
25386 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25388 if test -z "$itexists"; then
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25391 $as_echo "no" >&6; }
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25394 $as_echo "found" >&6; }
25398 if test "$PKGCONFIG" != "no" ; then
25400 if test -n "$NSS_PCDIR"; then
25401 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25402 export PKG_CONFIG_LIBDIR
25404 $PKGCONFIG --libs-only-L nss`
25406 if test -n "$NSS_PCDIR"; then
25407 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25408 export PKG_CONFIG_LIBDIR
25410 $PKGCONFIG --libs-only-l nss`
25412 if test -n "$NSS_PCDIR"; then
25413 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25414 export PKG_CONFIG_LIBDIR
25416 $PKGCONFIG --cflags nss`
25418 if test -n "$NSS_PCDIR"; then
25419 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25420 export PKG_CONFIG_LIBDIR
25422 $PKGCONFIG --modversion nss`
25424 if test -n "$NSS_PCDIR"; then
25425 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25426 export PKG_CONFIG_LIBDIR
25428 $PKGCONFIG --variable=prefix nss`
25433 if test -z "$addlib"; then
25434 # Without pkg-config, we'll kludge in some defaults
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25436 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25437 addld="-L$OPT_NSS/lib"
25438 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25439 addcflags="-I$OPT_NSS/include"
25444 CLEANLDFLAGS="$LDFLAGS"
25446 CLEANCPPFLAGS="$CPPFLAGS"
25448 LDFLAGS="$addld $LDFLAGS"
25449 LIBS="$addlib $LIBS"
25450 if test "$addcflags" != "-I/usr/include"; then
25451 CPPFLAGS="$CPPFLAGS $addcflags"
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25455 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25456 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25457 $as_echo_n "(cached) " >&6
25459 ac_check_lib_save_LIBS=$LIBS
25460 LIBS="-lnss3 $LIBS"
25461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25462 /* end confdefs.h. */
25468 char SSL_VersionRangeSet ();
25471 return SSL_VersionRangeSet ();
25476 if ac_fn_c_try_link "$LINENO"; then :
25477 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25479 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25481 rm -f core conftest.err conftest.$ac_objext \
25482 conftest$ac_exeext conftest.$ac_ext
25483 LIBS=$ac_check_lib_save_LIBS
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25486 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25487 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25490 $as_echo "#define USE_NSS 1" >>confdefs.h
25497 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25501 LDFLAGS="$CLEANLDFLAGS"
25503 CPPFLAGS="$CLEANCPPFLAGS"
25508 if test "x$USE_NSS" = "xyes"; then
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25510 $as_echo "$as_me: detected NSS version $version" >&6;}
25512 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25513 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25516 $as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25525 if test "x$cross_compiling" != "xyes"; then
25526 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25527 export CURL_LIBRARY_PATH
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25529 $as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
25534 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25540 # Check whether --with-axtls was given.
25541 if test "${with_axtls+set}" = set; then :
25542 withval=$with_axtls; OPT_AXTLS=$withval
25546 if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25548 if test X"$OPT_AXTLS" != Xno; then
25549 CLEANLDFLAGS="$LDFLAGS"
25550 CLEANCPPFLAGS="$CPPFLAGS"
25553 case "$OPT_AXTLS" in
25555 PREFIX_AXTLS=/usr/local
25556 LIB_AXTLS="$PREFIX_AXTLS/lib"
25557 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25558 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25564 PREFIX_AXTLS=$OPT_AXTLS
25565 LIB_AXTLS="$PREFIX_AXTLS/lib"
25566 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25567 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25572 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25573 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25574 $as_echo_n "(cached) " >&6
25576 ac_check_lib_save_LIBS=$LIBS
25577 LIBS="-laxtls $LIBS"
25578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25579 /* end confdefs.h. */
25585 char ssl_version ();
25588 return ssl_version ();
25593 if ac_fn_c_try_link "$LINENO"; then :
25594 ac_cv_lib_axtls_ssl_version=yes
25596 ac_cv_lib_axtls_ssl_version=no
25598 rm -f core conftest.err conftest.$ac_objext \
25599 conftest$ac_exeext conftest.$ac_ext
25600 LIBS=$ac_check_lib_save_LIBS
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25603 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25604 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25606 LIBS="-laxtls $LIBS"
25608 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25613 check_for_ca_bundle=1
25616 test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25618 if test "x$cross_compiling" != "xyes"; then
25619 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_AXTLS"
25620 export CURL_LIBRARY_PATH
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&5
25622 $as_echo "$as_me: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&6;}
25627 LDFLAGS="$CLEANLDFLAGS"
25628 CPPFLAGS="$CLEANCPPFLAGS"
25634 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25637 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED$MESALINK_ENABLED" in
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25640 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, --with-darwinssl, or --with-mesalink to address this." >&5
25642 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, --with-darwinssl, or --with-mesalink to address this." >&2;}
25645 # one SSL backend is enabled
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25649 $as_echo "$as_me: built with one SSL backend" >&6;}
25652 # more than one SSL backend is enabled
25656 CURL_WITH_MULTI_SSL="1"
25658 $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25661 $as_echo "$as_me: built with multiple SSL backends" >&6;}
25665 if test -n "$ssl_backends"; then
25666 curl_ssl_msg="enabled ($ssl_backends)"
25669 if test no = "$VALID_DEFAULT_SSL_BACKEND"
25671 if test -n "$SSL_ENABLED"
25673 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25675 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25677 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25680 cat >>confdefs.h <<_ACEOF
25681 #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25687 if test "$check_for_ca_bundle" -gt 0; then
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25691 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25694 # Check whether --with-ca-bundle was given.
25695 if test "${with_ca_bundle+set}" = set; then :
25696 withval=$with_ca_bundle;
25698 if test "x$want_ca" = "xyes"; then
25699 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25707 # Check whether --with-ca-path was given.
25708 if test "${with_ca_path+set}" = set; then :
25709 withval=$with_ca_path;
25710 want_capath="$withval"
25711 if test "x$want_capath" = "xyes"; then
25712 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25716 want_capath="unset"
25720 ca_warning=" (warning: certs not found)"
25721 capath_warning=" (warning: certs not found)"
25724 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25725 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25727 capath="$want_capath"
25728 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25731 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25732 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25733 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25735 capath="$want_capath"
25740 if test "x$cross_compiling" != "xyes"; then
25741 if test "x$want_ca" = "xunset"; then
25742 if test "x$prefix" != xNONE; then
25743 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25745 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25748 for a in /etc/ssl/certs/ca-certificates.crt \
25749 /etc/pki/tls/certs/ca-bundle.crt \
25750 /usr/share/ssl/certs/ca-bundle.crt \
25751 /usr/local/share/certs/ca-root-nss.crt \
25752 /etc/ssl/cert.pem \
25754 if test -f "$a"; then
25760 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25761 "x$OPENSSL_ENABLED" = "x1"; then
25762 check_capath="/etc/ssl/certs/"
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25766 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25770 if test "x$ca" = "xno" || test -f "$ca"; then
25774 if test "x$capath" != "xno"; then
25775 check_capath="$capath"
25778 if test ! -z "$check_capath"; then
25779 for a in "$check_capath"; do
25780 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
25781 if test "x$capath" = "xno"; then
25790 if test "x$capath" = "xno"; then
25794 if test "x$ca" != "xno"; then
25795 CURL_CA_BUNDLE='"'$ca'"'
25797 cat >>confdefs.h <<_ACEOF
25798 #define CURL_CA_BUNDLE "$ca"
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25803 $as_echo "$ca" >&6; }
25805 if test "x$capath" != "xno"; then
25806 CURL_CA_PATH="\"$capath\""
25808 cat >>confdefs.h <<_ACEOF
25809 #define CURL_CA_PATH "$capath"
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25813 $as_echo "$capath (capath)" >&6; }
25815 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25817 $as_echo "no" >&6; }
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25821 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25823 # Check whether --with-ca-fallback was given.
25824 if test "${with_ca_fallback+set}" = set; then :
25825 withval=$with_ca_fallback;
25826 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25827 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25831 with_ca_fallback="no"
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25835 $as_echo "$with_ca_fallback" >&6; }
25836 if test "x$with_ca_fallback" = "xyes"; then
25837 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25838 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25841 cat >>confdefs.h <<_ACEOF
25842 #define CURL_CA_FALLBACK 1
25851 # Check whether --with-libpsl was given.
25852 if test "${with_libpsl+set}" = set; then :
25853 withval=$with_libpsl; with_libpsl=$withval
25858 if test $with_libpsl != "no"; then
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25860 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25861 if ${ac_cv_search_psl_builtin+:} false; then :
25862 $as_echo_n "(cached) " >&6
25864 ac_func_search_save_LIBS=$LIBS
25865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25866 /* end confdefs.h. */
25872 char psl_builtin ();
25875 return psl_builtin ();
25880 for ac_lib in '' psl; do
25881 if test -z "$ac_lib"; then
25882 ac_res="none required"
25885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25887 if ac_fn_c_try_link "$LINENO"; then :
25888 ac_cv_search_psl_builtin=$ac_res
25890 rm -f core conftest.err conftest.$ac_objext \
25892 if ${ac_cv_search_psl_builtin+:} false; then :
25896 if ${ac_cv_search_psl_builtin+:} false; then :
25899 ac_cv_search_psl_builtin=no
25901 rm conftest.$ac_ext
25902 LIBS=$ac_func_search_save_LIBS
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25905 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25906 ac_res=$ac_cv_search_psl_builtin
25907 if test "$ac_res" != no; then :
25908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25909 curl_psl_msg="yes";
25911 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25915 curl_psl_msg="no (libpsl not found)";
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25917 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25923 if test "$curl_psl_msg" = "yes"; then
25925 USE_LIBPSL_FALSE='#'
25927 USE_LIBPSL_TRUE='#'
25936 # Check whether --with-libmetalink was given.
25937 if test "${with_libmetalink+set}" = set; then :
25938 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25942 if test X"$OPT_LIBMETALINK" != Xno; then
25951 if test "x$OPT_LIBMETALINK" = "xyes"; then
25954 if test -n "$PKG_CONFIG"; then
25955 PKGCONFIG="$PKG_CONFIG"
25957 if test -n "$ac_tool_prefix"; then
25958 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25959 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25961 $as_echo_n "checking for $ac_word... " >&6; }
25962 if ${ac_cv_path_PKGCONFIG+:} false; then :
25963 $as_echo_n "(cached) " >&6
25967 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25971 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25972 for as_dir in $as_dummy
25975 test -z "$as_dir" && as_dir=.
25976 for ac_exec_ext in '' $ac_executable_extensions; do
25977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25978 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25989 PKGCONFIG=$ac_cv_path_PKGCONFIG
25990 if test -n "$PKGCONFIG"; then
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25992 $as_echo "$PKGCONFIG" >&6; }
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25995 $as_echo "no" >&6; }
26000 if test -z "$ac_cv_path_PKGCONFIG"; then
26001 ac_pt_PKGCONFIG=$PKGCONFIG
26002 # Extract the first word of "pkg-config", so it can be a program name with args.
26003 set dummy pkg-config; ac_word=$2
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26005 $as_echo_n "checking for $ac_word... " >&6; }
26006 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26007 $as_echo_n "(cached) " >&6
26009 case $ac_pt_PKGCONFIG in
26011 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26015 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26016 for as_dir in $as_dummy
26019 test -z "$as_dir" && as_dir=.
26020 for ac_exec_ext in '' $ac_executable_extensions; do
26021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26022 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26033 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26034 if test -n "$ac_pt_PKGCONFIG"; then
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26036 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26039 $as_echo "no" >&6; }
26042 if test "x$ac_pt_PKGCONFIG" = x; then
26045 case $cross_compiling:$ac_tool_warned in
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26049 ac_tool_warned=yes ;;
26051 PKGCONFIG=$ac_pt_PKGCONFIG
26054 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26059 if test "x$PKGCONFIG" != "xno"; then
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26061 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26063 if test -n ""; then
26064 PKG_CONFIG_LIBDIR=""
26065 export PKG_CONFIG_LIBDIR
26067 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26069 if test -z "$itexists"; then
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26072 $as_echo "no" >&6; }
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26075 $as_echo "found" >&6; }
26080 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
26082 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
26083 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
26086 if test "$PKGTEST" = "yes"; then
26088 if test -n "$PKG_CONFIG"; then
26089 PKGCONFIG="$PKG_CONFIG"
26091 if test -n "$ac_tool_prefix"; then
26092 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26093 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26095 $as_echo_n "checking for $ac_word... " >&6; }
26096 if ${ac_cv_path_PKGCONFIG+:} false; then :
26097 $as_echo_n "(cached) " >&6
26101 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26105 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26106 for as_dir in $as_dummy
26109 test -z "$as_dir" && as_dir=.
26110 for ac_exec_ext in '' $ac_executable_extensions; do
26111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26112 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26123 PKGCONFIG=$ac_cv_path_PKGCONFIG
26124 if test -n "$PKGCONFIG"; then
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26126 $as_echo "$PKGCONFIG" >&6; }
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26129 $as_echo "no" >&6; }
26134 if test -z "$ac_cv_path_PKGCONFIG"; then
26135 ac_pt_PKGCONFIG=$PKGCONFIG
26136 # Extract the first word of "pkg-config", so it can be a program name with args.
26137 set dummy pkg-config; ac_word=$2
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26139 $as_echo_n "checking for $ac_word... " >&6; }
26140 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26141 $as_echo_n "(cached) " >&6
26143 case $ac_pt_PKGCONFIG in
26145 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26149 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26150 for as_dir in $as_dummy
26153 test -z "$as_dir" && as_dir=.
26154 for ac_exec_ext in '' $ac_executable_extensions; do
26155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26156 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26167 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26168 if test -n "$ac_pt_PKGCONFIG"; then
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26170 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26173 $as_echo "no" >&6; }
26176 if test "x$ac_pt_PKGCONFIG" = x; then
26179 case $cross_compiling:$ac_tool_warned in
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26183 ac_tool_warned=yes ;;
26185 PKGCONFIG=$ac_pt_PKGCONFIG
26188 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26193 if test "x$PKGCONFIG" != "xno"; then
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26195 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26197 if test -n "$LIBMETALINK_PCDIR"; then
26198 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26199 export PKG_CONFIG_LIBDIR
26201 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26203 if test -z "$itexists"; then
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26206 $as_echo "no" >&6; }
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26209 $as_echo "found" >&6; }
26215 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26217 if test -n "$LIBMETALINK_PCDIR"; then
26218 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26219 export PKG_CONFIG_LIBDIR
26221 $PKGCONFIG --libs-only-l libmetalink`
26223 if test -n "$LIBMETALINK_PCDIR"; then
26224 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26225 export PKG_CONFIG_LIBDIR
26227 $PKGCONFIG --libs-only-L libmetalink`
26229 if test -n "$LIBMETALINK_PCDIR"; then
26230 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26231 export PKG_CONFIG_LIBDIR
26233 $PKGCONFIG --cflags-only-I libmetalink`
26235 if test -n "$LIBMETALINK_PCDIR"; then
26236 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26237 export PKG_CONFIG_LIBDIR
26239 $PKGCONFIG --modversion libmetalink`
26240 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26242 if test -n "$addlib"; then
26244 clean_CPPFLAGS="$CPPFLAGS"
26245 clean_LDFLAGS="$LDFLAGS"
26247 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26248 LDFLAGS="$clean_LDFLAGS $addld"
26249 LIBS="$addlib $clean_LIBS"
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26251 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
26252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h. */
26256 # include <metalink/metalink.h>
26261 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26269 if ac_fn_c_try_link "$LINENO"; then :
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26272 $as_echo "yes ($version)" >&6; }
26273 want_metalink="yes"
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26278 $as_echo "no ($version)" >&6; }
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26280 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
26284 rm -f core conftest.err conftest.$ac_objext \
26285 conftest$ac_exeext conftest.$ac_ext
26286 CPPFLAGS="$clean_CPPFLAGS"
26287 LDFLAGS="$clean_LDFLAGS"
26289 if test "$want_metalink" = "yes"; then
26291 $as_echo "#define USE_METALINK 1" >>confdefs.h
26293 LIBMETALINK_LIBS=$addlib
26294 LIBMETALINK_LDFLAGS=$addld
26295 LIBMETALINK_CPPFLAGS=$addcflags
26299 curl_mtlnk_msg="enabled"
26308 # Check whether --with-libssh2 was given.
26309 if test "${with_libssh2+set}" = set; then :
26310 withval=$with_libssh2; OPT_LIBSSH2=$withval
26319 # Check whether --with-libssh was given.
26320 if test "${with_libssh+set}" = set; then :
26321 withval=$with_libssh; OPT_LIBSSH=$withval
26327 if test X"$OPT_LIBSSH2" != Xno; then
26328 CLEANLDFLAGS="$LDFLAGS"
26329 CLEANCPPFLAGS="$CPPFLAGS"
26332 case "$OPT_LIBSSH2" in
26335 if test -n "$PKG_CONFIG"; then
26336 PKGCONFIG="$PKG_CONFIG"
26338 if test -n "$ac_tool_prefix"; then
26339 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26340 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26342 $as_echo_n "checking for $ac_word... " >&6; }
26343 if ${ac_cv_path_PKGCONFIG+:} false; then :
26344 $as_echo_n "(cached) " >&6
26348 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26352 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26353 for as_dir in $as_dummy
26356 test -z "$as_dir" && as_dir=.
26357 for ac_exec_ext in '' $ac_executable_extensions; do
26358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26359 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26370 PKGCONFIG=$ac_cv_path_PKGCONFIG
26371 if test -n "$PKGCONFIG"; then
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26373 $as_echo "$PKGCONFIG" >&6; }
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26376 $as_echo "no" >&6; }
26381 if test -z "$ac_cv_path_PKGCONFIG"; then
26382 ac_pt_PKGCONFIG=$PKGCONFIG
26383 # Extract the first word of "pkg-config", so it can be a program name with args.
26384 set dummy pkg-config; ac_word=$2
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26386 $as_echo_n "checking for $ac_word... " >&6; }
26387 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26388 $as_echo_n "(cached) " >&6
26390 case $ac_pt_PKGCONFIG in
26392 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26396 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26397 for as_dir in $as_dummy
26400 test -z "$as_dir" && as_dir=.
26401 for ac_exec_ext in '' $ac_executable_extensions; do
26402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26403 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26414 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26415 if test -n "$ac_pt_PKGCONFIG"; then
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26417 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26420 $as_echo "no" >&6; }
26423 if test "x$ac_pt_PKGCONFIG" = x; then
26426 case $cross_compiling:$ac_tool_warned in
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26430 ac_tool_warned=yes ;;
26432 PKGCONFIG=$ac_pt_PKGCONFIG
26435 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26440 if test "x$PKGCONFIG" != "xno"; then
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26442 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26444 if test -n ""; then
26445 PKG_CONFIG_LIBDIR=""
26446 export PKG_CONFIG_LIBDIR
26448 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26450 if test -z "$itexists"; then
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26453 $as_echo "no" >&6; }
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26456 $as_echo "found" >&6; }
26461 if test "$PKGCONFIG" != "no" ; then
26462 LIB_SSH2=`$PKGCONFIG --libs libssh2`
26463 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26464 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26465 version=`$PKGCONFIG --modversion libssh2`
26466 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26473 PREFIX_SSH2=$OPT_LIBSSH2
26477 if test -n "$PREFIX_SSH2"; then
26479 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26480 CPP_SSH2=-I${PREFIX_SSH2}/include
26481 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26484 LDFLAGS="$LDFLAGS $LD_SSH2"
26485 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26486 LIBS="$LIB_SSH2 $LIBS"
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26489 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26490 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26491 $as_echo_n "(cached) " >&6
26493 ac_check_lib_save_LIBS=$LIBS
26494 LIBS="-lssh2 $LIBS"
26495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26496 /* end confdefs.h. */
26502 char libssh2_channel_open_ex ();
26505 return libssh2_channel_open_ex ();
26510 if ac_fn_c_try_link "$LINENO"; then :
26511 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26513 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26515 rm -f core conftest.err conftest.$ac_objext \
26516 conftest$ac_exeext conftest.$ac_ext
26517 LIBS=$ac_check_lib_save_LIBS
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26520 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26521 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26522 cat >>confdefs.h <<_ACEOF
26523 #define HAVE_LIBSSH2 1
26526 LIBS="-lssh2 $LIBS"
26531 for ac_header in libssh2.h
26533 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26534 if test "x$ac_cv_header_libssh2_h" = xyes; then :
26535 cat >>confdefs.h <<_ACEOF
26536 #define HAVE_LIBSSH2_H 1
26538 curl_ssh_msg="enabled (libSSH2)"
26541 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26551 if test X"$OPT_LIBSSH2" != Xoff &&
26552 test "$LIBSSH2_ENABLED" != "1"; then
26553 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26556 if test "$LIBSSH2_ENABLED" = "1"; then
26557 if test -n "$DIR_SSH2"; then
26559 if test "x$cross_compiling" != "xyes"; then
26560 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26561 export CURL_LIBRARY_PATH
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26563 $as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
26567 LDFLAGS=$CLEANLDFLAGS
26568 CPPFLAGS=$CLEANCPPFLAGS
26571 elif test X"$OPT_LIBSSH" != Xno; then
26572 CLEANLDFLAGS="$LDFLAGS"
26573 CLEANCPPFLAGS="$CPPFLAGS"
26576 case "$OPT_LIBSSH" in
26579 if test -n "$PKG_CONFIG"; then
26580 PKGCONFIG="$PKG_CONFIG"
26582 if test -n "$ac_tool_prefix"; then
26583 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26584 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26586 $as_echo_n "checking for $ac_word... " >&6; }
26587 if ${ac_cv_path_PKGCONFIG+:} false; then :
26588 $as_echo_n "(cached) " >&6
26592 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26596 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26597 for as_dir in $as_dummy
26600 test -z "$as_dir" && as_dir=.
26601 for ac_exec_ext in '' $ac_executable_extensions; do
26602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26603 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26614 PKGCONFIG=$ac_cv_path_PKGCONFIG
26615 if test -n "$PKGCONFIG"; then
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26617 $as_echo "$PKGCONFIG" >&6; }
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26620 $as_echo "no" >&6; }
26625 if test -z "$ac_cv_path_PKGCONFIG"; then
26626 ac_pt_PKGCONFIG=$PKGCONFIG
26627 # Extract the first word of "pkg-config", so it can be a program name with args.
26628 set dummy pkg-config; ac_word=$2
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26630 $as_echo_n "checking for $ac_word... " >&6; }
26631 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26632 $as_echo_n "(cached) " >&6
26634 case $ac_pt_PKGCONFIG in
26636 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26640 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26641 for as_dir in $as_dummy
26644 test -z "$as_dir" && as_dir=.
26645 for ac_exec_ext in '' $ac_executable_extensions; do
26646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26647 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26658 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26659 if test -n "$ac_pt_PKGCONFIG"; then
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26661 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26664 $as_echo "no" >&6; }
26667 if test "x$ac_pt_PKGCONFIG" = x; then
26670 case $cross_compiling:$ac_tool_warned in
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26674 ac_tool_warned=yes ;;
26676 PKGCONFIG=$ac_pt_PKGCONFIG
26679 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26684 if test "x$PKGCONFIG" != "xno"; then
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26686 $as_echo_n "checking for libssh options with pkg-config... " >&6; }
26688 if test -n ""; then
26689 PKG_CONFIG_LIBDIR=""
26690 export PKG_CONFIG_LIBDIR
26692 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26694 if test -z "$itexists"; then
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26697 $as_echo "no" >&6; }
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26700 $as_echo "found" >&6; }
26705 if test "$PKGCONFIG" != "no" ; then
26706 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26707 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26708 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26709 version=`$PKGCONFIG --modversion libssh`
26710 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26717 PREFIX_SSH=$OPT_LIBSSH
26721 if test -n "$PREFIX_SSH"; then
26723 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26724 CPP_SSH=-I${PREFIX_SSH}/include
26725 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26728 LDFLAGS="$LDFLAGS $LD_SSH"
26729 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26730 LIBS="$LIB_SSH $LIBS"
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26733 $as_echo_n "checking for ssh_new in -lssh... " >&6; }
26734 if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26735 $as_echo_n "(cached) " >&6
26737 ac_check_lib_save_LIBS=$LIBS
26739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26740 /* end confdefs.h. */
26754 if ac_fn_c_try_link "$LINENO"; then :
26755 ac_cv_lib_ssh_ssh_new=yes
26757 ac_cv_lib_ssh_ssh_new=no
26759 rm -f core conftest.err conftest.$ac_objext \
26760 conftest$ac_exeext conftest.$ac_ext
26761 LIBS=$ac_check_lib_save_LIBS
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26764 $as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26765 if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26766 cat >>confdefs.h <<_ACEOF
26767 #define HAVE_LIBSSH 1
26775 for ac_header in libssh/libssh.h
26777 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26778 if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26779 cat >>confdefs.h <<_ACEOF
26780 #define HAVE_LIBSSH_LIBSSH_H 1
26782 curl_ssh_msg="enabled (libSSH)"
26785 $as_echo "#define USE_LIBSSH 1" >>confdefs.h
26795 if test X"$OPT_LIBSSH" != Xoff &&
26796 test "$LIBSSH_ENABLED" != "1"; then
26797 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26800 if test "$LIBSSH_ENABLED" = "1"; then
26801 if test -n "$DIR_SSH"; then
26803 if test "x$cross_compiling" != "xyes"; then
26804 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26805 export CURL_LIBRARY_PATH
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26807 $as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
26811 LDFLAGS=$CLEANLDFLAGS
26812 CPPFLAGS=$CLEANCPPFLAGS
26820 # Check whether --with-librtmp was given.
26821 if test "${with_librtmp+set}" = set; then :
26822 withval=$with_librtmp; OPT_LIBRTMP=$withval
26826 if test X"$OPT_LIBRTMP" != Xno; then
26827 CLEANLDFLAGS="$LDFLAGS"
26828 CLEANCPPFLAGS="$CPPFLAGS"
26831 case "$OPT_LIBRTMP" in
26834 if test -n "$PKG_CONFIG"; then
26835 PKGCONFIG="$PKG_CONFIG"
26837 if test -n "$ac_tool_prefix"; then
26838 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26839 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26841 $as_echo_n "checking for $ac_word... " >&6; }
26842 if ${ac_cv_path_PKGCONFIG+:} false; then :
26843 $as_echo_n "(cached) " >&6
26847 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26851 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26852 for as_dir in $as_dummy
26855 test -z "$as_dir" && as_dir=.
26856 for ac_exec_ext in '' $ac_executable_extensions; do
26857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26858 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26869 PKGCONFIG=$ac_cv_path_PKGCONFIG
26870 if test -n "$PKGCONFIG"; then
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26872 $as_echo "$PKGCONFIG" >&6; }
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26875 $as_echo "no" >&6; }
26880 if test -z "$ac_cv_path_PKGCONFIG"; then
26881 ac_pt_PKGCONFIG=$PKGCONFIG
26882 # Extract the first word of "pkg-config", so it can be a program name with args.
26883 set dummy pkg-config; ac_word=$2
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26885 $as_echo_n "checking for $ac_word... " >&6; }
26886 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26887 $as_echo_n "(cached) " >&6
26889 case $ac_pt_PKGCONFIG in
26891 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26895 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26896 for as_dir in $as_dummy
26899 test -z "$as_dir" && as_dir=.
26900 for ac_exec_ext in '' $ac_executable_extensions; do
26901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26902 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26913 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26914 if test -n "$ac_pt_PKGCONFIG"; then
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26916 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26919 $as_echo "no" >&6; }
26922 if test "x$ac_pt_PKGCONFIG" = x; then
26925 case $cross_compiling:$ac_tool_warned in
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26929 ac_tool_warned=yes ;;
26931 PKGCONFIG=$ac_pt_PKGCONFIG
26934 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26939 if test "x$PKGCONFIG" != "xno"; then
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26941 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26943 if test -n ""; then
26944 PKG_CONFIG_LIBDIR=""
26945 export PKG_CONFIG_LIBDIR
26947 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26949 if test -z "$itexists"; then
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26952 $as_echo "no" >&6; }
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26955 $as_echo "found" >&6; }
26960 if test "$PKGCONFIG" != "no" ; then
26961 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26962 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26963 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26964 version=`$PKGCONFIG --modversion librtmp`
26965 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26967 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26976 PREFIX_RTMP=$OPT_LIBRTMP
26980 if test -n "$PREFIX_RTMP"; then
26981 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26982 CPP_RTMP=-I${PREFIX_RTMP}/include
26983 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26986 LDFLAGS="$LDFLAGS $LD_RTMP"
26987 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26988 LIBS="$LIB_RTMP $LIBS"
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26991 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26992 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26993 $as_echo_n "(cached) " >&6
26995 ac_check_lib_save_LIBS=$LIBS
26996 LIBS="-lrtmp $LIBS"
26997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26998 /* end confdefs.h. */
27007 return RTMP_Init ();
27012 if ac_fn_c_try_link "$LINENO"; then :
27013 ac_cv_lib_rtmp_RTMP_Init=yes
27015 ac_cv_lib_rtmp_RTMP_Init=no
27017 rm -f core conftest.err conftest.$ac_objext \
27018 conftest$ac_exeext conftest.$ac_ext
27019 LIBS=$ac_check_lib_save_LIBS
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
27022 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
27023 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
27025 for ac_header in librtmp/rtmp.h
27027 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
27028 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
27029 cat >>confdefs.h <<_ACEOF
27030 #define HAVE_LIBRTMP_RTMP_H 1
27032 curl_rtmp_msg="enabled (librtmp)"
27035 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
27046 LDFLAGS=$CLEANLDFLAGS
27047 CPPFLAGS=$CLEANCPPFLAGS
27053 if test X"$OPT_LIBRTMP" != Xoff &&
27054 test "$LIBRTMP_ENABLED" != "1"; then
27055 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
27061 versioned_symbols_flavour=
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
27063 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
27064 # Check whether --enable-versioned-symbols was given.
27065 if test "${enable_versioned_symbols+set}" = set; then :
27066 enableval=$enable_versioned_symbols; case "$enableval" in
27067 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27068 $as_echo "yes" >&6; }
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
27070 $as_echo_n "checking if libraries can be versioned... " >&6; }
27071 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
27072 if test -z "$GLD"; then
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27074 $as_echo "no" >&6; }
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
27076 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27079 $as_echo "yes" >&6; }
27080 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
27081 versioned_symbols_flavour="MULTISSL_"
27082 elif test "x$OPENSSL_ENABLED" = "x1"; then
27083 versioned_symbols_flavour="OPENSSL_"
27084 elif test "x$GNUTLS_ENABLED" = "x1"; then
27085 versioned_symbols_flavour="GNUTLS_"
27086 elif test "x$NSS_ENABLED" = "x1"; then
27087 versioned_symbols_flavour="NSS_"
27088 elif test "x$POLARSSL_ENABLED" = "x1"; then
27089 versioned_symbols_flavour="POLARSSL_"
27090 elif test "x$CYASSL_ENABLED" = "x1"; then
27091 versioned_symbols_flavour="CYASSL_"
27092 elif test "x$AXTLS_ENABLED" = "x1"; then
27093 versioned_symbols_flavour="AXTLS_"
27094 elif test "x$WINSSL_ENABLED" = "x1"; then
27095 versioned_symbols_flavour="WINSSL_"
27096 elif test "x$DARWINSSL_ENABLED" = "x1"; then
27097 versioned_symbols_flavour="DARWINSSL_"
27099 versioned_symbols_flavour=""
27101 versioned_symbols="yes"
27105 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27106 $as_echo "no" >&6; }
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27113 $as_echo "no" >&6; }
27119 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
27121 if test "x$versioned_symbols" = 'xyes'; then
27122 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
27123 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
27125 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
27126 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
27132 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
27133 OPT_WINIDN="default"
27135 # Check whether --with-winidn was given.
27136 if test "${with_winidn+set}" = set; then :
27137 withval=$with_winidn; OPT_WINIDN=$withval
27140 case "$OPT_WINIDN" in
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27144 $as_echo "no" >&6; }
27148 want_winidn_path="default"
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27150 $as_echo "yes" >&6; }
27154 want_winidn_path="$withval"
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27156 $as_echo "yes ($withval)" >&6; }
27160 if test "$want_winidn" = "yes"; then
27161 clean_CPPFLAGS="$CPPFLAGS"
27162 clean_LDFLAGS="$LDFLAGS"
27164 WINIDN_LIBS="-lnormaliz"
27165 WINIDN_CPPFLAGS="-DWINVER=0x0600"
27167 if test "$want_winidn_path" != "default"; then
27168 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27169 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27170 WINIDN_DIR="$want_winidn_path/lib$libsuff"
27173 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27174 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27175 LIBS="$WINIDN_LIBS $LIBS"
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27178 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27180 /* end confdefs.h. */
27183 #include <windows.h>
27188 IdnToUnicode(0, NULL, 0, NULL, 0);
27195 if ac_fn_c_try_link "$LINENO"; then :
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27198 $as_echo "yes" >&6; }
27199 tst_links_winidn="yes"
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27204 $as_echo "no" >&6; }
27205 tst_links_winidn="no"
27208 rm -f core conftest.err conftest.$ac_objext \
27209 conftest$ac_exeext conftest.$ac_ext
27211 if test "$tst_links_winidn" = "yes"; then
27213 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27216 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27220 curl_idn_msg="enabled (Windows-native)"
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27223 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27224 CPPFLAGS="$clean_CPPFLAGS"
27225 LDFLAGS="$clean_LDFLAGS"
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27232 $as_echo_n "checking whether to build with libidn2... " >&6; }
27235 # Check whether --with-libidn2 was given.
27236 if test "${with_libidn2+set}" = set; then :
27237 withval=$with_libidn2; OPT_IDN=$withval
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27244 $as_echo "no" >&6; }
27248 want_idn_path="default"
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27250 $as_echo "(assumed) yes" >&6; }
27254 want_idn_path="default"
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27256 $as_echo "yes" >&6; }
27260 want_idn_path="$withval"
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27262 $as_echo "yes ($withval)" >&6; }
27266 if test "$want_idn" = "yes"; then
27267 clean_CPPFLAGS="$CPPFLAGS"
27268 clean_LDFLAGS="$LDFLAGS"
27272 if test "$want_idn_path" != "default"; then
27273 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27275 if test -n "$PKG_CONFIG"; then
27276 PKGCONFIG="$PKG_CONFIG"
27278 if test -n "$ac_tool_prefix"; then
27279 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27280 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27282 $as_echo_n "checking for $ac_word... " >&6; }
27283 if ${ac_cv_path_PKGCONFIG+:} false; then :
27284 $as_echo_n "(cached) " >&6
27288 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27292 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27293 for as_dir in $as_dummy
27296 test -z "$as_dir" && as_dir=.
27297 for ac_exec_ext in '' $ac_executable_extensions; do
27298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27299 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27310 PKGCONFIG=$ac_cv_path_PKGCONFIG
27311 if test -n "$PKGCONFIG"; then
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27313 $as_echo "$PKGCONFIG" >&6; }
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27316 $as_echo "no" >&6; }
27321 if test -z "$ac_cv_path_PKGCONFIG"; then
27322 ac_pt_PKGCONFIG=$PKGCONFIG
27323 # Extract the first word of "pkg-config", so it can be a program name with args.
27324 set dummy pkg-config; ac_word=$2
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27326 $as_echo_n "checking for $ac_word... " >&6; }
27327 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27328 $as_echo_n "(cached) " >&6
27330 case $ac_pt_PKGCONFIG in
27332 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27336 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27337 for as_dir in $as_dummy
27340 test -z "$as_dir" && as_dir=.
27341 for ac_exec_ext in '' $ac_executable_extensions; do
27342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27343 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27354 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27355 if test -n "$ac_pt_PKGCONFIG"; then
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27357 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27360 $as_echo "no" >&6; }
27363 if test "x$ac_pt_PKGCONFIG" = x; then
27366 case $cross_compiling:$ac_tool_warned in
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27370 ac_tool_warned=yes ;;
27372 PKGCONFIG=$ac_pt_PKGCONFIG
27375 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27380 if test "x$PKGCONFIG" != "xno"; then
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27382 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27384 if test -n "$IDN_PCDIR"; then
27385 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27386 export PKG_CONFIG_LIBDIR
27388 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27390 if test -z "$itexists"; then
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27393 $as_echo "no" >&6; }
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27396 $as_echo "found" >&6; }
27400 if test "$PKGCONFIG" != "no"; then
27402 if test -n "$IDN_PCDIR"; then
27403 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27404 export PKG_CONFIG_LIBDIR
27406 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27408 if test -n "$IDN_PCDIR"; then
27409 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27410 export PKG_CONFIG_LIBDIR
27412 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27414 if test -n "$IDN_PCDIR"; then
27415 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27416 export PKG_CONFIG_LIBDIR
27418 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27419 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27422 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27423 IDN_CPPFLAGS="-I$want_idn_path/include"
27424 IDN_DIR="$want_idn_path/lib$libsuff"
27428 if test -n "$PKG_CONFIG"; then
27429 PKGCONFIG="$PKG_CONFIG"
27431 if test -n "$ac_tool_prefix"; then
27432 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27433 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27435 $as_echo_n "checking for $ac_word... " >&6; }
27436 if ${ac_cv_path_PKGCONFIG+:} false; then :
27437 $as_echo_n "(cached) " >&6
27441 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27445 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27446 for as_dir in $as_dummy
27449 test -z "$as_dir" && as_dir=.
27450 for ac_exec_ext in '' $ac_executable_extensions; do
27451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27452 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27463 PKGCONFIG=$ac_cv_path_PKGCONFIG
27464 if test -n "$PKGCONFIG"; then
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27466 $as_echo "$PKGCONFIG" >&6; }
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27469 $as_echo "no" >&6; }
27474 if test -z "$ac_cv_path_PKGCONFIG"; then
27475 ac_pt_PKGCONFIG=$PKGCONFIG
27476 # Extract the first word of "pkg-config", so it can be a program name with args.
27477 set dummy pkg-config; ac_word=$2
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27479 $as_echo_n "checking for $ac_word... " >&6; }
27480 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27481 $as_echo_n "(cached) " >&6
27483 case $ac_pt_PKGCONFIG in
27485 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27489 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27490 for as_dir in $as_dummy
27493 test -z "$as_dir" && as_dir=.
27494 for ac_exec_ext in '' $ac_executable_extensions; do
27495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27496 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27507 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27508 if test -n "$ac_pt_PKGCONFIG"; then
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27510 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27513 $as_echo "no" >&6; }
27516 if test "x$ac_pt_PKGCONFIG" = x; then
27519 case $cross_compiling:$ac_tool_warned in
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27523 ac_tool_warned=yes ;;
27525 PKGCONFIG=$ac_pt_PKGCONFIG
27528 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27533 if test "x$PKGCONFIG" != "xno"; then
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27535 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27537 if test -n ""; then
27538 PKG_CONFIG_LIBDIR=""
27539 export PKG_CONFIG_LIBDIR
27541 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27543 if test -z "$itexists"; then
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27546 $as_echo "no" >&6; }
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27549 $as_echo "found" >&6; }
27553 if test "$PKGCONFIG" != "no"; then
27554 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27555 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27556 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27557 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27563 if test "$PKGCONFIG" != "no"; then
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27565 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27567 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27569 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27571 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27574 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27576 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27578 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27580 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27583 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27584 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27585 LIBS="$IDN_LIBS $LIBS"
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27588 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27590 /* end confdefs.h. */
27593 #define idn2_lookup_ul innocuous_idn2_lookup_ul
27595 # include <limits.h>
27597 # include <assert.h>
27599 #undef idn2_lookup_ul
27603 char idn2_lookup_ul ();
27604 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27610 return idn2_lookup_ul ();
27616 if ac_fn_c_try_link "$LINENO"; then :
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27619 $as_echo "yes" >&6; }
27620 tst_links_libidn="yes"
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27625 $as_echo "no" >&6; }
27626 tst_links_libidn="no"
27629 rm -f core conftest.err conftest.$ac_objext \
27630 conftest$ac_exeext conftest.$ac_ext
27632 for ac_header in idn2.h
27634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27635 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27636 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27637 cat >>confdefs.h <<_ACEOF
27638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27646 if test "$tst_links_libidn" = "yes"; then
27648 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27653 curl_idn_msg="enabled (libidn2)"
27654 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
27655 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27656 export CURL_LIBRARY_PATH
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27658 $as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27662 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27663 CPPFLAGS="$clean_CPPFLAGS"
27664 LDFLAGS="$clean_LDFLAGS"
27675 if test "x$disable_http" = "xyes"; then
27676 # without HTTP, nghttp2 is no use
27681 # Check whether --with-nghttp2 was given.
27682 if test "${with_nghttp2+set}" = set; then :
27683 withval=$with_nghttp2; OPT_H2=$withval
27696 want_h2_path="$withval/lib/pkgconfig"
27700 curl_h2_msg="disabled (--with-nghttp2)"
27701 if test X"$want_h2" != Xno; then
27702 CLEANLDFLAGS="$LDFLAGS"
27703 CLEANCPPFLAGS="$CPPFLAGS"
27707 if test -n "$PKG_CONFIG"; then
27708 PKGCONFIG="$PKG_CONFIG"
27710 if test -n "$ac_tool_prefix"; then
27711 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27712 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27714 $as_echo_n "checking for $ac_word... " >&6; }
27715 if ${ac_cv_path_PKGCONFIG+:} false; then :
27716 $as_echo_n "(cached) " >&6
27720 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27724 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27725 for as_dir in $as_dummy
27728 test -z "$as_dir" && as_dir=.
27729 for ac_exec_ext in '' $ac_executable_extensions; do
27730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27731 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27742 PKGCONFIG=$ac_cv_path_PKGCONFIG
27743 if test -n "$PKGCONFIG"; then
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27745 $as_echo "$PKGCONFIG" >&6; }
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27748 $as_echo "no" >&6; }
27753 if test -z "$ac_cv_path_PKGCONFIG"; then
27754 ac_pt_PKGCONFIG=$PKGCONFIG
27755 # Extract the first word of "pkg-config", so it can be a program name with args.
27756 set dummy pkg-config; ac_word=$2
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27758 $as_echo_n "checking for $ac_word... " >&6; }
27759 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27760 $as_echo_n "(cached) " >&6
27762 case $ac_pt_PKGCONFIG in
27764 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27768 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27769 for as_dir in $as_dummy
27772 test -z "$as_dir" && as_dir=.
27773 for ac_exec_ext in '' $ac_executable_extensions; do
27774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27775 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27786 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27787 if test -n "$ac_pt_PKGCONFIG"; then
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27789 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27792 $as_echo "no" >&6; }
27795 if test "x$ac_pt_PKGCONFIG" = x; then
27798 case $cross_compiling:$ac_tool_warned in
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27802 ac_tool_warned=yes ;;
27804 PKGCONFIG=$ac_pt_PKGCONFIG
27807 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27812 if test "x$PKGCONFIG" != "xno"; then
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27814 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27816 if test -n "$want_h2_path"; then
27817 PKG_CONFIG_LIBDIR="$want_h2_path"
27818 export PKG_CONFIG_LIBDIR
27820 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27822 if test -z "$itexists"; then
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27825 $as_echo "no" >&6; }
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27828 $as_echo "found" >&6; }
27833 if test "$PKGCONFIG" != "no" ; then
27835 if test -n "$want_h2_path"; then
27836 PKG_CONFIG_LIBDIR="$want_h2_path"
27837 export PKG_CONFIG_LIBDIR
27840 $PKGCONFIG --libs-only-l libnghttp2`
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27842 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27845 if test -n "$want_h2_path"; then
27846 PKG_CONFIG_LIBDIR="$want_h2_path"
27847 export PKG_CONFIG_LIBDIR
27849 $PKGCONFIG --cflags-only-I libnghttp2`
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27851 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27854 if test -n "$want_h2_path"; then
27855 PKG_CONFIG_LIBDIR="$want_h2_path"
27856 export PKG_CONFIG_LIBDIR
27859 $PKGCONFIG --libs-only-L libnghttp2`
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27861 $as_echo "$as_me: -L is $LD_H2" >&6;}
27863 LDFLAGS="$LDFLAGS $LD_H2"
27864 CPPFLAGS="$CPPFLAGS $CPP_H2"
27865 LIBS="$LIB_H2 $LIBS"
27867 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27870 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27871 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27872 $as_echo_n "(cached) " >&6
27874 ac_check_lib_save_LIBS=$LIBS
27875 LIBS="-lnghttp2 $LIBS"
27876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877 /* end confdefs.h. */
27883 char nghttp2_option_set_no_recv_client_magic ();
27886 return nghttp2_option_set_no_recv_client_magic ();
27891 if ac_fn_c_try_link "$LINENO"; then :
27892 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27894 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27896 rm -f core conftest.err conftest.$ac_objext \
27897 conftest$ac_exeext conftest.$ac_ext
27898 LIBS=$ac_check_lib_save_LIBS
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27901 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27902 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27904 for ac_header in nghttp2/nghttp2.h
27906 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27907 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27908 cat >>confdefs.h <<_ACEOF
27909 #define HAVE_NGHTTP2_NGHTTP2_H 1
27911 curl_h2_msg="enabled (nghttp2)"
27914 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27925 LDFLAGS=$CLEANLDFLAGS
27926 CPPFLAGS=$CLEANCPPFLAGS
27933 if test X"$want_h2" != Xdefault; then
27934 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27941 OPT_ZSH_FPATH=default
27943 # Check whether --with-zsh-functions-dir was given.
27944 if test "${with_zsh_functions_dir+set}" = set; then :
27945 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27948 case "$OPT_ZSH_FPATH" in
27952 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27956 ZSH_FUNCTIONS_DIR="$withval"
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27963 $as_echo_n "checking for ANSI C header files... " >&6; }
27964 if ${ac_cv_header_stdc+:} false; then :
27965 $as_echo_n "(cached) " >&6
27967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27968 /* end confdefs.h. */
27969 #include <stdlib.h>
27970 #include <stdarg.h>
27971 #include <string.h>
27981 if ac_fn_c_try_compile "$LINENO"; then :
27982 ac_cv_header_stdc=yes
27984 ac_cv_header_stdc=no
27986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27988 if test $ac_cv_header_stdc = yes; then
27989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27991 /* end confdefs.h. */
27992 #include <string.h>
27995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27996 $EGREP "memchr" >/dev/null 2>&1; then :
27999 ac_cv_header_stdc=no
28005 if test $ac_cv_header_stdc = yes; then
28006 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28008 /* end confdefs.h. */
28009 #include <stdlib.h>
28012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28013 $EGREP "free" >/dev/null 2>&1; then :
28016 ac_cv_header_stdc=no
28022 if test $ac_cv_header_stdc = yes; then
28023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28024 if test "$cross_compiling" = yes; then :
28027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28028 /* end confdefs.h. */
28030 #include <stdlib.h>
28031 #if ((' ' & 0x0FF) == 0x020)
28032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28035 # define ISLOWER(c) \
28036 (('a' <= (c) && (c) <= 'i') \
28037 || ('j' <= (c) && (c) <= 'r') \
28038 || ('s' <= (c) && (c) <= 'z'))
28039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28047 for (i = 0; i < 256; i++)
28048 if (XOR (islower (i), ISLOWER (i))
28049 || toupper (i) != TOUPPER (i))
28054 if ac_fn_c_try_run "$LINENO"; then :
28057 ac_cv_header_stdc=no
28059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28060 conftest.$ac_objext conftest.beam conftest.$ac_ext
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
28066 $as_echo "$ac_cv_header_stdc" >&6; }
28067 if test $ac_cv_header_stdc = yes; then
28069 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
28076 $as_echo_n "checking for malloc.h... " >&6; }
28077 if ${curl_cv_header_malloc_h+:} false; then :
28078 $as_echo_n "(cached) " >&6
28081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28082 /* end confdefs.h. */
28085 #include <malloc.h>
28090 void *p = malloc(10);
28091 void *q = calloc(10,10);
28100 if ac_fn_c_try_compile "$LINENO"; then :
28102 curl_cv_header_malloc_h="yes"
28106 curl_cv_header_malloc_h="no"
28109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
28113 $as_echo "$curl_cv_header_malloc_h" >&6; }
28114 if test "$curl_cv_header_malloc_h" = "yes"; then
28116 cat >>confdefs.h <<_ACEOF
28117 #define HAVE_MALLOC_H 1
28121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28122 /* end confdefs.h. */
28125 #include <stdlib.h>
28130 void *p = malloc(10);
28131 void *q = calloc(10,10);
28140 if ac_fn_c_try_compile "$LINENO"; then :
28142 curl_cv_need_header_malloc_h="no"
28146 curl_cv_need_header_malloc_h="yes"
28149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28151 case "$curl_cv_need_header_malloc_h" in
28154 cat >>confdefs.h <<_ACEOF
28155 #define NEED_MALLOC_H 1
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28164 $as_echo_n "checking for memory.h... " >&6; }
28165 if ${curl_cv_header_memory_h+:} false; then :
28166 $as_echo_n "(cached) " >&6
28169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28170 /* end confdefs.h. */
28173 #include <memory.h>
28178 void *p = malloc(10);
28179 void *q = calloc(10,10);
28188 if ac_fn_c_try_compile "$LINENO"; then :
28190 curl_cv_header_memory_h="yes"
28194 curl_cv_header_memory_h="no"
28197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28201 $as_echo "$curl_cv_header_memory_h" >&6; }
28202 if test "$curl_cv_header_memory_h" = "yes"; then
28204 cat >>confdefs.h <<_ACEOF
28205 #define HAVE_MEMORY_H 1
28209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28210 /* end confdefs.h. */
28213 #include <stdlib.h>
28218 void *p = malloc(10);
28219 void *q = calloc(10,10);
28228 if ac_fn_c_try_compile "$LINENO"; then :
28230 curl_cv_need_header_memory_h="no"
28234 curl_cv_need_header_memory_h="yes"
28237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28239 case "$curl_cv_need_header_memory_h" in
28242 cat >>confdefs.h <<_ACEOF
28243 #define NEED_MEMORY_H 1
28251 for ac_header in sys/types.h \
28294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28296 #ifdef HAVE_SYS_TYPES_H
28297 #include <sys/types.h>
28299 #ifdef HAVE_SYS_TIME_H
28300 #include <sys/time.h>
28302 #ifdef HAVE_SYS_SELECT_H
28303 #include <sys/select.h>
28305 #ifdef HAVE_SYS_SOCKET_H
28306 #include <sys/socket.h>
28308 #ifdef HAVE_NETINET_IN_H
28309 #include <netinet/in.h>
28311 #ifdef HAVE_NETINET_IN6_H
28312 #include <netinet/in6.h>
28314 #ifdef HAVE_SYS_UN_H
28315 #include <sys/un.h>
28320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28321 cat >>confdefs.h <<_ACEOF
28322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28331 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28332 if ${ac_cv_c_const+:} false; then :
28333 $as_echo_n "(cached) " >&6
28335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28336 /* end confdefs.h. */
28341 #ifndef __cplusplus
28342 /* Ultrix mips cc rejects this sort of thing. */
28343 typedef int charset[2];
28344 const charset cs = { 0, 0 };
28345 /* SunOS 4.1.1 cc rejects this. */
28346 char const *const *pcpcc;
28348 /* NEC SVR4.0.2 mips cc rejects this. */
28349 struct point {int x, y;};
28350 static struct point const zero = {0,0};
28351 /* AIX XL C 1.02.0.0 rejects this.
28352 It does not let you subtract one const X* pointer from another in
28353 an arm of an if-expression whose if-part is not a constant
28355 const char *g = "string";
28356 pcpcc = &g + (g ? g-g : 0);
28357 /* HPUX 7.0 cc rejects these. */
28359 ppc = (char**) pcpcc;
28360 pcpcc = (char const *const *) ppc;
28361 { /* SCO 3.2v4 cc rejects this sort of thing. */
28364 char const *s = 0 ? (char *) 0 : (char const *) 0;
28369 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28370 int x[] = {25, 17};
28371 const int *foo = &x[0];
28374 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28375 typedef const int *iptr;
28379 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28380 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28381 struct s { int j; const int *ap[3]; } bx;
28382 struct s *b = &bx; b->j = 5;
28384 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28385 const int foo = 10;
28386 if (!foo) return 0;
28388 return !cs[0] && !zero.x;
28395 if ac_fn_c_try_compile "$LINENO"; then :
28400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28403 $as_echo "$ac_cv_c_const" >&6; }
28404 if test $ac_cv_c_const = no; then
28406 $as_echo "#define const /**/" >>confdefs.h
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28412 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28413 if ${curl_cv_variadic_macros_c99+:} false; then :
28414 $as_echo_n "(cached) " >&6
28417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28418 /* end confdefs.h. */
28421 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28422 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28423 int fun3(int arg1, int arg2, int arg3);
28424 int fun2(int arg1, int arg2);
28425 int fun3(int arg1, int arg2, int arg3)
28426 { return arg1 + arg2 + arg3; }
28427 int fun2(int arg1, int arg2)
28428 { return arg1 + arg2; }
28433 int res3 = c99_vmacro3(1, 2, 3);
28434 int res2 = c99_vmacro2(1, 2);
28441 if ac_fn_c_try_compile "$LINENO"; then :
28443 curl_cv_variadic_macros_c99="yes"
28447 curl_cv_variadic_macros_c99="no"
28450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28454 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
28455 case "$curl_cv_variadic_macros_c99" in
28458 cat >>confdefs.h <<_ACEOF
28459 #define HAVE_VARIADIC_MACROS_C99 1
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28465 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28466 if ${curl_cv_variadic_macros_gcc+:} false; then :
28467 $as_echo_n "(cached) " >&6
28470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28471 /* end confdefs.h. */
28474 #define gcc_vmacro3(first, args...) fun3(first, args)
28475 #define gcc_vmacro2(first, args...) fun2(first, args)
28476 int fun3(int arg1, int arg2, int arg3);
28477 int fun2(int arg1, int arg2);
28478 int fun3(int arg1, int arg2, int arg3)
28479 { return arg1 + arg2 + arg3; }
28480 int fun2(int arg1, int arg2)
28481 { return arg1 + arg2; }
28486 int res3 = gcc_vmacro3(1, 2, 3);
28487 int res2 = gcc_vmacro2(1, 2);
28494 if ac_fn_c_try_compile "$LINENO"; then :
28496 curl_cv_variadic_macros_gcc="yes"
28500 curl_cv_variadic_macros_gcc="no"
28503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28507 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28508 case "$curl_cv_variadic_macros_gcc" in
28511 cat >>confdefs.h <<_ACEOF
28512 #define HAVE_VARIADIC_MACROS_GCC 1
28518 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28519 if test "x$ac_cv_type_size_t" = xyes; then :
28523 cat >>confdefs.h <<_ACEOF
28524 #define size_t unsigned int
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28530 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28531 if ${ac_cv_header_time+:} false; then :
28532 $as_echo_n "(cached) " >&6
28534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535 /* end confdefs.h. */
28536 #include <sys/types.h>
28537 #include <sys/time.h>
28542 if ((struct tm *) 0)
28548 if ac_fn_c_try_compile "$LINENO"; then :
28549 ac_cv_header_time=yes
28551 ac_cv_header_time=no
28553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28556 $as_echo "$ac_cv_header_time" >&6; }
28557 if test $ac_cv_header_time = yes; then
28559 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28564 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28567 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28569 cat >>confdefs.h <<_ACEOF
28570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28578 $as_echo_n "checking for struct timeval... " >&6; }
28579 if ${curl_cv_struct_timeval+:} false; then :
28580 $as_echo_n "(cached) " >&6
28583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28584 /* end confdefs.h. */
28588 #ifdef HAVE_WINDOWS_H
28589 #ifndef WIN32_LEAN_AND_MEAN
28590 #define WIN32_LEAN_AND_MEAN
28592 #include <windows.h>
28593 #ifdef HAVE_WINSOCK2_H
28594 #include <winsock2.h>
28596 #ifdef HAVE_WINSOCK_H
28597 #include <winsock.h>
28601 #ifdef HAVE_SYS_TYPES_H
28602 #include <sys/types.h>
28604 #ifdef HAVE_SYS_TIME_H
28605 #include <sys/time.h>
28606 #ifdef TIME_WITH_SYS_TIME
28614 #ifdef HAVE_SYS_SOCKET_H
28615 #include <sys/socket.h>
28630 if ac_fn_c_try_compile "$LINENO"; then :
28632 curl_cv_struct_timeval="yes"
28636 curl_cv_struct_timeval="no"
28639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28643 $as_echo "$curl_cv_struct_timeval" >&6; }
28644 case "$curl_cv_struct_timeval" in
28647 cat >>confdefs.h <<_ACEOF
28648 #define HAVE_STRUCT_TIMEVAL 1
28656 if test "x$cross_compiling" != xyes; then
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28659 $as_echo_n "checking run-time libs availability... " >&6; }
28662 old=$LD_LIBRARY_PATH
28663 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28664 export LD_LIBRARY_PATH
28665 if test "$cross_compiling" = yes; then :
28666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28668 as_fn_error $? "cannot run test program while cross compiling
28669 See \`config.log' for more details" "$LINENO" 5; }
28671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28672 /* end confdefs.h. */
28680 if ac_fn_c_try_run "$LINENO"; then :
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28682 $as_echo "fine" >&6; }
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28685 $as_echo "failed" >&6; }
28686 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28690 conftest.$ac_objext conftest.beam conftest.$ac_ext
28693 LD_LIBRARY_PATH=$old # restore
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28700 $as_echo_n "checking size of size_t... " >&6; }
28701 if ${ac_cv_sizeof_size_t+:} false; then :
28702 $as_echo_n "(cached) " >&6
28704 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28706 /* end confdefs.h. */
28708 #include <sys/types.h>
28713 switch (0) case 0: case (sizeof (size_t) == $ac_size):;
28718 if ac_fn_c_try_compile "$LINENO"; then :
28719 ac_cv_sizeof_size_t=$ac_size
28721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28722 if test x$ac_cv_sizeof_size_t != x ; then break; fi
28727 if test x$ac_cv_sizeof_size_t = x ; then
28728 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28731 $as_echo "$ac_cv_sizeof_size_t" >&6; }
28733 cat >>confdefs.h <<_ACEOF
28734 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28739 $as_echo_n "checking size of long... " >&6; }
28740 if ${ac_cv_sizeof_long+:} false; then :
28741 $as_echo_n "(cached) " >&6
28743 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28745 /* end confdefs.h. */
28747 #include <sys/types.h>
28752 switch (0) case 0: case (sizeof (long) == $ac_size):;
28757 if ac_fn_c_try_compile "$LINENO"; then :
28758 ac_cv_sizeof_long=$ac_size
28760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28761 if test x$ac_cv_sizeof_long != x ; then break; fi
28766 if test x$ac_cv_sizeof_long = x ; then
28767 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28770 $as_echo "$ac_cv_sizeof_long" >&6; }
28772 cat >>confdefs.h <<_ACEOF
28773 #define SIZEOF_LONG $ac_cv_sizeof_long
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28778 $as_echo_n "checking size of int... " >&6; }
28779 if ${ac_cv_sizeof_int+:} false; then :
28780 $as_echo_n "(cached) " >&6
28782 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28784 /* end confdefs.h. */
28786 #include <sys/types.h>
28791 switch (0) case 0: case (sizeof (int) == $ac_size):;
28796 if ac_fn_c_try_compile "$LINENO"; then :
28797 ac_cv_sizeof_int=$ac_size
28799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28800 if test x$ac_cv_sizeof_int != x ; then break; fi
28805 if test x$ac_cv_sizeof_int = x ; then
28806 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28809 $as_echo "$ac_cv_sizeof_int" >&6; }
28811 cat >>confdefs.h <<_ACEOF
28812 #define SIZEOF_INT $ac_cv_sizeof_int
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28817 $as_echo_n "checking size of short... " >&6; }
28818 if ${ac_cv_sizeof_short+:} false; then :
28819 $as_echo_n "(cached) " >&6
28821 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28823 /* end confdefs.h. */
28825 #include <sys/types.h>
28830 switch (0) case 0: case (sizeof (short) == $ac_size):;
28835 if ac_fn_c_try_compile "$LINENO"; then :
28836 ac_cv_sizeof_short=$ac_size
28838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28839 if test x$ac_cv_sizeof_short != x ; then break; fi
28844 if test x$ac_cv_sizeof_short = x ; then
28845 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28848 $as_echo "$ac_cv_sizeof_short" >&6; }
28850 cat >>confdefs.h <<_ACEOF
28851 #define SIZEOF_SHORT $ac_cv_sizeof_short
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28856 $as_echo_n "checking size of time_t... " >&6; }
28857 if ${ac_cv_sizeof_time_t+:} false; then :
28858 $as_echo_n "(cached) " >&6
28860 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28862 /* end confdefs.h. */
28864 #include <sys/types.h>
28869 switch (0) case 0: case (sizeof (time_t) == $ac_size):;
28874 if ac_fn_c_try_compile "$LINENO"; then :
28875 ac_cv_sizeof_time_t=$ac_size
28877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28878 if test x$ac_cv_sizeof_time_t != x ; then break; fi
28883 if test x$ac_cv_sizeof_time_t = x ; then
28884 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
28886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28887 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28889 cat >>confdefs.h <<_ACEOF
28890 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28895 $as_echo_n "checking size of off_t... " >&6; }
28896 if ${ac_cv_sizeof_off_t+:} false; then :
28897 $as_echo_n "(cached) " >&6
28899 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28901 /* end confdefs.h. */
28903 #include <sys/types.h>
28908 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
28913 if ac_fn_c_try_compile "$LINENO"; then :
28914 ac_cv_sizeof_off_t=$ac_size
28916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28917 if test x$ac_cv_sizeof_off_t != x ; then break; fi
28922 if test x$ac_cv_sizeof_off_t = x ; then
28923 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28926 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28928 cat >>confdefs.h <<_ACEOF
28929 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28935 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28937 $as_echo_n "checking size of curl_off_t... " >&6; }
28938 if ${ac_cv_sizeof_curl_off_t+:} false; then :
28939 $as_echo_n "(cached) " >&6
28941 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28943 /* end confdefs.h. */
28945 #include <sys/types.h>
28947 #include <curl/system.h>
28952 switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
28957 if ac_fn_c_try_compile "$LINENO"; then :
28958 ac_cv_sizeof_curl_off_t=$ac_size
28960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28961 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
28966 if test x$ac_cv_sizeof_curl_off_t = x ; then
28967 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28970 $as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28972 cat >>confdefs.h <<_ACEOF
28973 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28979 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28980 if test "x$ac_cv_type_long_long" = xyes; then :
28982 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28989 if test "xyes" = "x$longlong"; then
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28991 $as_echo_n "checking if numberLL works... " >&6; }
28992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28993 /* end confdefs.h. */
29000 long long val = 1000LL;
29007 if ac_fn_c_try_compile "$LINENO"; then :
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29010 $as_echo "yes" >&6; }
29012 $as_echo "#define HAVE_LL 1" >>confdefs.h
29017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29018 $as_echo "no" >&6; }
29021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29025 # check for ssize_t
29026 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
29027 if test "x$ac_cv_type_ssize_t" = xyes; then :
29031 $as_echo "#define ssize_t int" >>confdefs.h
29036 # check for bool type
29037 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
29038 #ifdef HAVE_SYS_TYPES_H
29039 #include <sys/types.h>
29041 #ifdef HAVE_STDBOOL_H
29042 #include <stdbool.h>
29046 if test "x$ac_cv_type_bool" = xyes; then :
29049 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
29055 # check for sa_family_t
29056 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
29057 #ifdef HAVE_SYS_SOCKET_H
29058 #include <sys/socket.h>
29062 if test "x$ac_cv_type_sa_family_t" = xyes; then :
29064 $as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
29068 # The windows name?
29069 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
29070 #ifdef HAVE_SYS_SOCKET_H
29071 #include <sys/socket.h>
29075 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
29077 $as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
29081 $as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
29090 $as_echo_n "checking if time_t is unsigned... " >&6; }
29093 old=$LD_LIBRARY_PATH
29094 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
29095 export LD_LIBRARY_PATH
29096 if test "$cross_compiling" = yes; then :
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29098 $as_echo "no" >&6; }
29101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29102 /* end confdefs.h. */
29105 #include <limits.h>
29110 if ac_fn_c_try_run "$LINENO"; then :
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29112 $as_echo "yes" >&6; }
29114 $as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29119 $as_echo "no" >&6; }
29122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29123 conftest.$ac_objext conftest.beam conftest.$ac_ext
29126 LD_LIBRARY_PATH=$old # restore
29130 curl_includes_poll="\
29131 /* includes start */
29132 #ifdef HAVE_SYS_TYPES_H
29133 # include <sys/types.h>
29138 #ifdef HAVE_SYS_POLL_H
29139 # include <sys/poll.h>
29141 /* includes end */"
29142 for ac_header in sys/types.h poll.h sys/poll.h
29144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29145 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29147 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29148 cat >>confdefs.h <<_ACEOF
29149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29159 tst_poll_events_macro_defined="unknown"
29161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29162 /* end confdefs.h. */
29165 $curl_includes_poll
29170 #if defined(events) || defined(revents)
29173 force compilation error
29181 if ac_fn_c_try_compile "$LINENO"; then :
29183 tst_poll_events_macro_defined="yes"
29187 tst_poll_events_macro_defined="no"
29190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29192 if test "$tst_poll_events_macro_defined" = "yes"; then
29193 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29195 cat >>confdefs.h <<_EOF
29196 #define CURL_PULL_SYS_POLL_H 1
29205 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29207 #ifdef HAVE_WINDOWS_H
29208 #ifndef WIN32_LEAN_AND_MEAN
29209 #define WIN32_LEAN_AND_MEAN
29211 #include <windows.h>
29212 #ifdef HAVE_WINSOCK2_H
29213 #include <winsock2.h>
29215 #ifdef HAVE_WINSOCK_H
29216 #include <winsock.h>
29220 #ifdef HAVE_SYS_TYPES_H
29221 #include <sys/types.h>
29223 #ifdef HAVE_SYS_SOCKET_H
29224 #include <sys/socket.h>
29226 #ifdef HAVE_NETINET_IN_H
29227 #include <netinet/in.h>
29229 #ifdef HAVE_ARPA_INET_H
29230 #include <arpa/inet.h>
29235 if test "x$ac_cv_type_in_addr_t" = xyes; then :
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29240 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
29241 if ${curl_cv_in_addr_t_equiv+:} false; then :
29242 $as_echo_n "(cached) " >&6
29245 curl_cv_in_addr_t_equiv="unknown"
29246 for t in "unsigned long" int size_t unsigned long; do
29247 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29249 /* end confdefs.h. */
29253 #ifdef HAVE_WINDOWS_H
29254 #ifndef WIN32_LEAN_AND_MEAN
29255 #define WIN32_LEAN_AND_MEAN
29257 #include <windows.h>
29258 #ifdef HAVE_WINSOCK2_H
29259 #include <winsock2.h>
29261 #ifdef HAVE_WINSOCK_H
29262 #include <winsock.h>
29266 #ifdef HAVE_SYS_TYPES_H
29267 #include <sys/types.h>
29269 #ifdef HAVE_SYS_SOCKET_H
29270 #include <sys/socket.h>
29272 #ifdef HAVE_NETINET_IN_H
29273 #include <netinet/in.h>
29275 #ifdef HAVE_ARPA_INET_H
29276 #include <arpa/inet.h>
29283 $t data = inet_addr ("1.2.3.4");
29290 if ac_fn_c_try_link "$LINENO"; then :
29292 curl_cv_in_addr_t_equiv="$t"
29295 rm -f core conftest.err conftest.$ac_objext \
29296 conftest$ac_exeext conftest.$ac_ext
29301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29302 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29303 case "$curl_cv_in_addr_t_equiv" in
29305 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29309 cat >>confdefs.h <<_ACEOF
29310 #define in_addr_t $curl_cv_in_addr_t_equiv
29321 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29323 #ifdef HAVE_WINDOWS_H
29324 #ifndef WIN32_LEAN_AND_MEAN
29325 #define WIN32_LEAN_AND_MEAN
29327 #include <windows.h>
29328 #ifdef HAVE_WINSOCK2_H
29329 #include <winsock2.h>
29332 #ifdef HAVE_SYS_TYPES_H
29333 #include <sys/types.h>
29335 #ifdef HAVE_SYS_SOCKET_H
29336 #include <sys/socket.h>
29338 #ifdef HAVE_NETINET_IN_H
29339 #include <netinet/in.h>
29341 #ifdef HAVE_ARPA_INET_H
29342 #include <arpa/inet.h>
29347 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29349 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29356 for ac_header in signal.h
29358 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29359 if test "x$ac_cv_header_signal_h" = xyes; then :
29360 cat >>confdefs.h <<_ACEOF
29361 #define HAVE_SIGNAL_H 1
29368 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29369 #ifdef HAVE_SIGNAL_H
29370 #include <signal.h>
29374 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29377 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29382 case "$ac_cv_type_sig_atomic_t" in
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29386 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29388 /* end confdefs.h. */
29391 #ifdef HAVE_SIGNAL_H
29392 #include <signal.h>
29398 static volatile sig_atomic_t dummy = 0;
29405 if ac_fn_c_try_link "$LINENO"; then :
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29408 $as_echo "no" >&6; }
29409 curl_cv_sig_atomic_t_volatile="no"
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29414 $as_echo "yes" >&6; }
29415 curl_cv_sig_atomic_t_volatile="yes"
29418 rm -f core conftest.err conftest.$ac_objext \
29419 conftest$ac_exeext conftest.$ac_ext
29421 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29423 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29431 $as_echo_n "checking return type of signal handlers... " >&6; }
29432 if ${ac_cv_type_signal+:} false; then :
29433 $as_echo_n "(cached) " >&6
29435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29436 /* end confdefs.h. */
29437 #include <sys/types.h>
29438 #include <signal.h>
29442 return *(signal (0, 0)) (0) == 1;
29447 if ac_fn_c_try_compile "$LINENO"; then :
29448 ac_cv_type_signal=int
29450 ac_cv_type_signal=void
29452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29455 $as_echo "$ac_cv_type_signal" >&6; }
29457 cat >>confdefs.h <<_ACEOF
29458 #define RETSIGTYPE $ac_cv_type_signal
29464 for ac_header in sys/select.h sys/socket.h
29466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29467 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29468 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29469 cat >>confdefs.h <<_ACEOF
29470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29479 $as_echo_n "checking for select... " >&6; }
29480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29481 /* end confdefs.h. */
29485 #ifdef HAVE_WINDOWS_H
29486 #ifndef WIN32_LEAN_AND_MEAN
29487 #define WIN32_LEAN_AND_MEAN
29489 #include <windows.h>
29490 #ifdef HAVE_WINSOCK2_H
29491 #include <winsock2.h>
29493 #ifdef HAVE_WINSOCK_H
29494 #include <winsock.h>
29498 #ifdef HAVE_SYS_TYPES_H
29499 #include <sys/types.h>
29501 #ifdef HAVE_SYS_TIME_H
29502 #include <sys/time.h>
29503 #ifdef TIME_WITH_SYS_TIME
29511 #ifndef HAVE_WINDOWS_H
29512 #ifdef HAVE_SYS_SELECT_H
29513 #include <sys/select.h>
29515 #ifdef HAVE_SYS_SOCKET_H
29516 #include <sys/socket.h>
29523 select(0, 0, 0, 0, 0);
29530 if ac_fn_c_try_link "$LINENO"; then :
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29533 $as_echo "yes" >&6; }
29534 curl_cv_select="yes"
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29539 $as_echo "no" >&6; }
29540 curl_cv_select="no"
29543 rm -f core conftest.err conftest.$ac_objext \
29544 conftest$ac_exeext conftest.$ac_ext
29546 if test "$curl_cv_select" = "yes"; then
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29548 $as_echo_n "checking types of args and return type for select... " >&6; }
29549 if ${curl_cv_func_select_args+:} false; then :
29550 $as_echo_n "(cached) " >&6
29553 curl_cv_func_select_args="unknown"
29554 for sel_retv in 'int' 'ssize_t'; do
29555 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29556 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29557 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29558 if test "$curl_cv_func_select_args" = "unknown"; then
29559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29560 /* end confdefs.h. */
29564 #ifdef HAVE_WINDOWS_H
29565 #ifndef WIN32_LEAN_AND_MEAN
29566 #define WIN32_LEAN_AND_MEAN
29568 #include <windows.h>
29569 #ifdef HAVE_WINSOCK2_H
29570 #include <winsock2.h>
29572 #ifdef HAVE_WINSOCK_H
29573 #include <winsock.h>
29576 #define SELECTCALLCONV PASCAL
29578 #ifdef HAVE_SYS_TYPES_H
29579 #include <sys/types.h>
29581 #ifdef HAVE_SYS_TIME_H
29582 #include <sys/time.h>
29583 #ifdef TIME_WITH_SYS_TIME
29591 #ifndef HAVE_WINDOWS_H
29592 #ifdef HAVE_SYS_SELECT_H
29593 #include <sys/select.h>
29595 #ifdef HAVE_SYS_SOCKET_H
29596 #include <sys/socket.h>
29598 #define SELECTCALLCONV
29600 #ifndef HAVE_STRUCT_TIMEVAL
29606 extern $sel_retv SELECTCALLCONV
29608 __attribute__((overloadable))
29620 $sel_arg234 rfds=0;
29621 $sel_arg234 wfds=0;
29622 $sel_arg234 efds=0;
29623 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29630 if ac_fn_c_try_compile "$LINENO"; then :
29632 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29644 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29645 if test "$curl_cv_func_select_args" = "unknown"; then
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29647 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29649 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29651 select_prev_IFS=$IFS; IFS=','
29652 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29653 IFS=$select_prev_IFS
29656 sel_qual_type_arg5=$3
29659 cat >>confdefs.h <<_ACEOF
29660 #define SELECT_TYPE_ARG1 $1
29664 cat >>confdefs.h <<_ACEOF
29665 #define SELECT_TYPE_ARG234 $2
29669 cat >>confdefs.h <<_ACEOF
29670 #define SELECT_TYPE_RETV $4
29676 case $prev_sh_opts in
29684 case "$sel_qual_type_arg5" in
29686 sel_qual_arg5=const
29687 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29691 sel_type_arg5=$sel_qual_type_arg5
29696 cat >>confdefs.h <<_ACEOF
29697 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29701 cat >>confdefs.h <<_ACEOF
29702 #define SELECT_TYPE_ARG5 $sel_type_arg5
29706 case $prev_sh_opts in
29715 cat >>confdefs.h <<_ACEOF
29716 #define HAVE_SELECT 1
29719 curl_cv_func_select="yes"
29725 for ac_header in sys/types.h sys/socket.h
29727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29728 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29730 cat >>confdefs.h <<_ACEOF
29731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29740 $as_echo_n "checking for recv... " >&6; }
29741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29742 /* end confdefs.h. */
29746 #ifdef HAVE_WINDOWS_H
29747 #ifndef WIN32_LEAN_AND_MEAN
29748 #define WIN32_LEAN_AND_MEAN
29750 #include <windows.h>
29751 #ifdef HAVE_WINSOCK2_H
29752 #include <winsock2.h>
29754 #ifdef HAVE_WINSOCK_H
29755 #include <winsock.h>
29759 #ifdef HAVE_SYS_TYPES_H
29760 #include <sys/types.h>
29762 #ifdef HAVE_SYS_SOCKET_H
29763 #include <sys/socket.h>
29777 if ac_fn_c_try_link "$LINENO"; then :
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29780 $as_echo "yes" >&6; }
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29786 $as_echo "no" >&6; }
29790 rm -f core conftest.err conftest.$ac_objext \
29791 conftest$ac_exeext conftest.$ac_ext
29793 if test "$curl_cv_recv" = "yes"; then
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29795 $as_echo_n "checking types of args and return type for recv... " >&6; }
29796 if ${curl_cv_func_recv_args+:} false; then :
29797 $as_echo_n "(cached) " >&6
29800 curl_cv_func_recv_args="unknown"
29801 for recv_retv in 'int' 'ssize_t'; do
29802 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29803 for recv_arg2 in 'char *' 'void *'; do
29804 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29805 for recv_arg4 in 'int' 'unsigned int'; do
29806 if test "$curl_cv_func_recv_args" = "unknown"; then
29807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29808 /* end confdefs.h. */
29812 #ifdef HAVE_WINDOWS_H
29813 #ifndef WIN32_LEAN_AND_MEAN
29814 #define WIN32_LEAN_AND_MEAN
29816 #include <windows.h>
29817 #ifdef HAVE_WINSOCK2_H
29818 #include <winsock2.h>
29820 #ifdef HAVE_WINSOCK_H
29821 #include <winsock.h>
29824 #define RECVCALLCONV PASCAL
29826 #ifdef HAVE_SYS_TYPES_H
29827 #include <sys/types.h>
29829 #ifdef HAVE_SYS_SOCKET_H
29830 #include <sys/socket.h>
29832 #define RECVCALLCONV
29834 extern $recv_retv RECVCALLCONV
29836 __attribute__((overloadable))
29838 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29846 $recv_arg4 flags=0;
29847 $recv_retv res = recv(s, buf, len, flags);
29854 if ac_fn_c_try_compile "$LINENO"; then :
29856 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29869 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29870 if test "$curl_cv_func_recv_args" = "unknown"; then
29871 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29873 recv_prev_IFS=$IFS; IFS=','
29874 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29879 cat >>confdefs.h <<_ACEOF
29880 #define RECV_TYPE_ARG1 $1
29884 cat >>confdefs.h <<_ACEOF
29885 #define RECV_TYPE_ARG2 $2
29889 cat >>confdefs.h <<_ACEOF
29890 #define RECV_TYPE_ARG3 $3
29894 cat >>confdefs.h <<_ACEOF
29895 #define RECV_TYPE_ARG4 $4
29899 cat >>confdefs.h <<_ACEOF
29900 #define RECV_TYPE_RETV $5
29905 cat >>confdefs.h <<_ACEOF
29906 #define HAVE_RECV 1
29909 curl_cv_func_recv="yes"
29912 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29916 for ac_header in sys/types.h sys/socket.h
29918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29919 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29921 cat >>confdefs.h <<_ACEOF
29922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29931 $as_echo_n "checking for send... " >&6; }
29932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29933 /* end confdefs.h. */
29937 #ifdef HAVE_WINDOWS_H
29938 #ifndef WIN32_LEAN_AND_MEAN
29939 #define WIN32_LEAN_AND_MEAN
29941 #include <windows.h>
29942 #ifdef HAVE_WINSOCK2_H
29943 #include <winsock2.h>
29945 #ifdef HAVE_WINSOCK_H
29946 #include <winsock.h>
29950 #ifdef HAVE_SYS_TYPES_H
29951 #include <sys/types.h>
29953 #ifdef HAVE_SYS_SOCKET_H
29954 #include <sys/socket.h>
29968 if ac_fn_c_try_link "$LINENO"; then :
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29971 $as_echo "yes" >&6; }
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29977 $as_echo "no" >&6; }
29981 rm -f core conftest.err conftest.$ac_objext \
29982 conftest$ac_exeext conftest.$ac_ext
29984 if test "$curl_cv_send" = "yes"; then
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29986 $as_echo_n "checking types of args and return type for send... " >&6; }
29987 if ${curl_cv_func_send_args+:} false; then :
29988 $as_echo_n "(cached) " >&6
29991 curl_cv_func_send_args="unknown"
29992 for send_retv in 'int' 'ssize_t'; do
29993 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29994 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29995 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29996 for send_arg4 in 'int' 'unsigned int'; do
29997 if test "$curl_cv_func_send_args" = "unknown"; then
29998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29999 /* end confdefs.h. */
30003 #ifdef HAVE_WINDOWS_H
30004 #ifndef WIN32_LEAN_AND_MEAN
30005 #define WIN32_LEAN_AND_MEAN
30007 #include <windows.h>
30008 #ifdef HAVE_WINSOCK2_H
30009 #include <winsock2.h>
30011 #ifdef HAVE_WINSOCK_H
30012 #include <winsock.h>
30015 #define SENDCALLCONV PASCAL
30017 #ifdef HAVE_SYS_TYPES_H
30018 #include <sys/types.h>
30020 #ifdef HAVE_SYS_SOCKET_H
30021 #include <sys/socket.h>
30023 #define SENDCALLCONV
30025 extern $send_retv SENDCALLCONV
30027 __attribute__((overloadable))
30029 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30036 $send_arg4 flags=0;
30037 $send_retv res = send(s, 0, len, flags);
30044 if ac_fn_c_try_compile "$LINENO"; then :
30046 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30059 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30060 if test "$curl_cv_func_send_args" = "unknown"; then
30061 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30063 send_prev_IFS=$IFS; IFS=','
30064 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30068 send_qual_type_arg2=$2
30071 cat >>confdefs.h <<_ACEOF
30072 #define SEND_TYPE_ARG1 $1
30076 cat >>confdefs.h <<_ACEOF
30077 #define SEND_TYPE_ARG3 $3
30081 cat >>confdefs.h <<_ACEOF
30082 #define SEND_TYPE_ARG4 $4
30086 cat >>confdefs.h <<_ACEOF
30087 #define SEND_TYPE_RETV $5
30093 case $prev_sh_opts in
30101 case "$send_qual_type_arg2" in
30103 send_qual_arg2=const
30104 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30108 send_type_arg2=$send_qual_type_arg2
30113 cat >>confdefs.h <<_ACEOF
30114 #define SEND_QUAL_ARG2 $send_qual_arg2
30118 cat >>confdefs.h <<_ACEOF
30119 #define SEND_TYPE_ARG2 $send_type_arg2
30123 case $prev_sh_opts in
30132 cat >>confdefs.h <<_ACEOF
30133 #define HAVE_SEND 1
30136 curl_cv_func_send="yes"
30139 as_fn_error $? "Unable to link function send" "$LINENO" 5
30143 for ac_header in sys/types.h sys/socket.h
30145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30146 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30147 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30148 cat >>confdefs.h <<_ACEOF
30149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30157 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30158 if ${curl_cv_msg_nosignal+:} false; then :
30159 $as_echo_n "(cached) " >&6
30162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30163 /* end confdefs.h. */
30167 #ifdef HAVE_WINDOWS_H
30168 #ifndef WIN32_LEAN_AND_MEAN
30169 #define WIN32_LEAN_AND_MEAN
30171 #include <windows.h>
30172 #ifdef HAVE_WINSOCK2_H
30173 #include <winsock2.h>
30175 #ifdef HAVE_WINSOCK_H
30176 #include <winsock.h>
30180 #ifdef HAVE_SYS_TYPES_H
30181 #include <sys/types.h>
30183 #ifdef HAVE_SYS_SOCKET_H
30184 #include <sys/socket.h>
30191 int flag=MSG_NOSIGNAL;
30198 if ac_fn_c_try_compile "$LINENO"; then :
30200 curl_cv_msg_nosignal="yes"
30204 curl_cv_msg_nosignal="no"
30207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30211 $as_echo "$curl_cv_msg_nosignal" >&6; }
30212 case "$curl_cv_msg_nosignal" in
30215 cat >>confdefs.h <<_ACEOF
30216 #define HAVE_MSG_NOSIGNAL 1
30224 curl_includes_unistd="\
30225 /* includes start */
30226 #ifdef HAVE_SYS_TYPES_H
30227 # include <sys/types.h>
30229 #ifdef HAVE_UNISTD_H
30230 # include <unistd.h>
30232 /* includes end */"
30233 for ac_header in sys/types.h unistd.h
30235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30236 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30238 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30239 cat >>confdefs.h <<_ACEOF
30240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30250 tst_links_alarm="unknown"
30251 tst_proto_alarm="unknown"
30252 tst_compi_alarm="unknown"
30253 tst_allow_alarm="unknown"
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30256 $as_echo_n "checking if alarm can be linked... " >&6; }
30257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30258 /* end confdefs.h. */
30261 #define alarm innocuous_alarm
30263 # include <limits.h>
30265 # include <assert.h>
30272 #if defined __stub_alarm || defined __stub___alarm
30284 if ac_fn_c_try_link "$LINENO"; then :
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30287 $as_echo "yes" >&6; }
30288 tst_links_alarm="yes"
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30293 $as_echo "no" >&6; }
30294 tst_links_alarm="no"
30297 rm -f core conftest.err conftest.$ac_objext \
30298 conftest$ac_exeext conftest.$ac_ext
30300 if test "$tst_links_alarm" = "yes"; then
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30302 $as_echo_n "checking if alarm is prototyped... " >&6; }
30303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30304 /* end confdefs.h. */
30306 $curl_includes_unistd
30309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30310 $EGREP "alarm" >/dev/null 2>&1; then :
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30313 $as_echo "yes" >&6; }
30314 tst_proto_alarm="yes"
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30319 $as_echo "no" >&6; }
30320 tst_proto_alarm="no"
30327 if test "$tst_proto_alarm" = "yes"; then
30328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30329 $as_echo_n "checking if alarm is compilable... " >&6; }
30330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30331 /* end confdefs.h. */
30334 $curl_includes_unistd
30347 if ac_fn_c_try_compile "$LINENO"; then :
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30350 $as_echo "yes" >&6; }
30351 tst_compi_alarm="yes"
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30356 $as_echo "no" >&6; }
30357 tst_compi_alarm="no"
30360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30363 if test "$tst_compi_alarm" = "yes"; then
30364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30365 $as_echo_n "checking if alarm usage allowed... " >&6; }
30366 if test "x$curl_disallow_alarm" != "xyes"; then
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30368 $as_echo "yes" >&6; }
30369 tst_allow_alarm="yes"
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30372 $as_echo "no" >&6; }
30373 tst_allow_alarm="no"
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30378 $as_echo_n "checking if alarm might be used... " >&6; }
30379 if test "$tst_links_alarm" = "yes" &&
30380 test "$tst_proto_alarm" = "yes" &&
30381 test "$tst_compi_alarm" = "yes" &&
30382 test "$tst_allow_alarm" = "yes"; then
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30384 $as_echo "yes" >&6; }
30386 cat >>confdefs.h <<_ACEOF
30387 #define HAVE_ALARM 1
30390 curl_cv_func_alarm="yes"
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30393 $as_echo "no" >&6; }
30394 curl_cv_func_alarm="no"
30398 curl_includes_string="\
30399 /* includes start */
30400 #ifdef HAVE_SYS_TYPES_H
30401 # include <sys/types.h>
30403 #ifdef HAVE_STRING_H
30404 # include <string.h>
30406 #ifdef HAVE_STRINGS_H
30407 # include <strings.h>
30409 /* includes end */"
30410 for ac_header in sys/types.h string.h strings.h
30412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30413 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30416 cat >>confdefs.h <<_ACEOF
30417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30426 curl_includes_libgen="\
30427 /* includes start */
30428 #ifdef HAVE_SYS_TYPES_H
30429 # include <sys/types.h>
30431 #ifdef HAVE_LIBGEN_H
30432 # include <libgen.h>
30434 /* includes end */"
30435 for ac_header in sys/types.h libgen.h
30437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30438 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30441 cat >>confdefs.h <<_ACEOF
30442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30452 tst_links_basename="unknown"
30453 tst_proto_basename="unknown"
30454 tst_compi_basename="unknown"
30455 tst_allow_basename="unknown"
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30458 $as_echo_n "checking if basename can be linked... " >&6; }
30459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30460 /* end confdefs.h. */
30463 #define basename innocuous_basename
30465 # include <limits.h>
30467 # include <assert.h>
30474 #if defined __stub_basename || defined __stub___basename
30480 return basename ();
30486 if ac_fn_c_try_link "$LINENO"; then :
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30489 $as_echo "yes" >&6; }
30490 tst_links_basename="yes"
30494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30495 $as_echo "no" >&6; }
30496 tst_links_basename="no"
30499 rm -f core conftest.err conftest.$ac_objext \
30500 conftest$ac_exeext conftest.$ac_ext
30502 if test "$tst_links_basename" = "yes"; then
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30504 $as_echo_n "checking if basename is prototyped... " >&6; }
30505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30506 /* end confdefs.h. */
30508 $curl_includes_string
30509 $curl_includes_libgen
30510 $curl_includes_unistd
30513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30514 $EGREP "basename" >/dev/null 2>&1; then :
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30517 $as_echo "yes" >&6; }
30518 tst_proto_basename="yes"
30522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30523 $as_echo "no" >&6; }
30524 tst_proto_basename="no"
30531 if test "$tst_proto_basename" = "yes"; then
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30533 $as_echo_n "checking if basename is compilable... " >&6; }
30534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30535 /* end confdefs.h. */
30538 $curl_includes_string
30539 $curl_includes_libgen
30540 $curl_includes_unistd
30545 if(0 != basename(0))
30553 if ac_fn_c_try_compile "$LINENO"; then :
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30556 $as_echo "yes" >&6; }
30557 tst_compi_basename="yes"
30561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30562 $as_echo "no" >&6; }
30563 tst_compi_basename="no"
30566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30569 if test "$tst_compi_basename" = "yes"; then
30570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30571 $as_echo_n "checking if basename usage allowed... " >&6; }
30572 if test "x$curl_disallow_basename" != "xyes"; then
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30574 $as_echo "yes" >&6; }
30575 tst_allow_basename="yes"
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30578 $as_echo "no" >&6; }
30579 tst_allow_basename="no"
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30584 $as_echo_n "checking if basename might be used... " >&6; }
30585 if test "$tst_links_basename" = "yes" &&
30586 test "$tst_proto_basename" = "yes" &&
30587 test "$tst_compi_basename" = "yes" &&
30588 test "$tst_allow_basename" = "yes"; then
30589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30590 $as_echo "yes" >&6; }
30592 cat >>confdefs.h <<_ACEOF
30593 #define HAVE_BASENAME 1
30596 curl_cv_func_basename="yes"
30598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30599 $as_echo "no" >&6; }
30600 curl_cv_func_basename="no"
30604 curl_includes_socket="\
30605 /* includes start */
30606 #ifdef HAVE_SYS_TYPES_H
30607 # include <sys/types.h>
30609 #ifdef HAVE_SOCKET_H
30610 # include <socket.h>
30612 /* includes end */"
30613 for ac_header in sys/types.h socket.h
30615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30616 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30618 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30619 cat >>confdefs.h <<_ACEOF
30620 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30630 tst_links_closesocket="unknown"
30631 tst_proto_closesocket="unknown"
30632 tst_compi_closesocket="unknown"
30633 tst_allow_closesocket="unknown"
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30636 $as_echo_n "checking if closesocket can be linked... " >&6; }
30637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30638 /* end confdefs.h. */
30641 $curl_includes_winsock2
30642 $curl_includes_socket
30647 if(0 != closesocket(0))
30655 if ac_fn_c_try_link "$LINENO"; then :
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30658 $as_echo "yes" >&6; }
30659 tst_links_closesocket="yes"
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30664 $as_echo "no" >&6; }
30665 tst_links_closesocket="no"
30668 rm -f core conftest.err conftest.$ac_objext \
30669 conftest$ac_exeext conftest.$ac_ext
30671 if test "$tst_links_closesocket" = "yes"; then
30672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30673 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30675 /* end confdefs.h. */
30677 $curl_includes_winsock2
30678 $curl_includes_socket
30681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30682 $EGREP "closesocket" >/dev/null 2>&1; then :
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30685 $as_echo "yes" >&6; }
30686 tst_proto_closesocket="yes"
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30691 $as_echo "no" >&6; }
30692 tst_proto_closesocket="no"
30699 if test "$tst_proto_closesocket" = "yes"; then
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30701 $as_echo_n "checking if closesocket is compilable... " >&6; }
30702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30703 /* end confdefs.h. */
30706 $curl_includes_winsock2
30707 $curl_includes_socket
30712 if(0 != closesocket(0))
30720 if ac_fn_c_try_compile "$LINENO"; then :
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30723 $as_echo "yes" >&6; }
30724 tst_compi_closesocket="yes"
30728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30729 $as_echo "no" >&6; }
30730 tst_compi_closesocket="no"
30733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30736 if test "$tst_compi_closesocket" = "yes"; then
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30738 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30739 if test "x$curl_disallow_closesocket" != "xyes"; then
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30741 $as_echo "yes" >&6; }
30742 tst_allow_closesocket="yes"
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30745 $as_echo "no" >&6; }
30746 tst_allow_closesocket="no"
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30751 $as_echo_n "checking if closesocket might be used... " >&6; }
30752 if test "$tst_links_closesocket" = "yes" &&
30753 test "$tst_proto_closesocket" = "yes" &&
30754 test "$tst_compi_closesocket" = "yes" &&
30755 test "$tst_allow_closesocket" = "yes"; then
30756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30757 $as_echo "yes" >&6; }
30759 cat >>confdefs.h <<_ACEOF
30760 #define HAVE_CLOSESOCKET 1
30763 curl_cv_func_closesocket="yes"
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30766 $as_echo "no" >&6; }
30767 curl_cv_func_closesocket="no"
30771 curl_includes_sys_socket="\
30772 /* includes start */
30773 #ifdef HAVE_SYS_TYPES_H
30774 # include <sys/types.h>
30776 #ifdef HAVE_SYS_SOCKET_H
30777 # include <sys/socket.h>
30779 /* includes end */"
30780 for ac_header in sys/types.h sys/socket.h
30782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30783 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
30785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30786 cat >>confdefs.h <<_ACEOF
30787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30797 tst_links_closesocket_camel="unknown"
30798 tst_proto_closesocket_camel="unknown"
30799 tst_compi_closesocket_camel="unknown"
30800 tst_allow_closesocket_camel="unknown"
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30803 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30805 /* end confdefs.h. */
30808 $curl_includes_sys_socket
30813 if(0 != CloseSocket(0))
30821 if ac_fn_c_try_link "$LINENO"; then :
30823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30824 $as_echo "yes" >&6; }
30825 tst_links_closesocket_camel="yes"
30829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30830 $as_echo "no" >&6; }
30831 tst_links_closesocket_camel="no"
30834 rm -f core conftest.err conftest.$ac_objext \
30835 conftest$ac_exeext conftest.$ac_ext
30837 if test "$tst_links_closesocket_camel" = "yes"; then
30838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30839 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30841 /* end confdefs.h. */
30843 $curl_includes_sys_socket
30846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30847 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30850 $as_echo "yes" >&6; }
30851 tst_proto_closesocket_camel="yes"
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30856 $as_echo "no" >&6; }
30857 tst_proto_closesocket_camel="no"
30864 if test "$tst_proto_closesocket_camel" = "yes"; then
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30866 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
30867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30868 /* end confdefs.h. */
30871 $curl_includes_sys_socket
30876 if(0 != CloseSocket(0))
30884 if ac_fn_c_try_compile "$LINENO"; then :
30886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30887 $as_echo "yes" >&6; }
30888 tst_compi_closesocket_camel="yes"
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30893 $as_echo "no" >&6; }
30894 tst_compi_closesocket_camel="no"
30897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30900 if test "$tst_compi_closesocket_camel" = "yes"; then
30901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30902 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30903 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30905 $as_echo "yes" >&6; }
30906 tst_allow_closesocket_camel="yes"
30908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30909 $as_echo "no" >&6; }
30910 tst_allow_closesocket_camel="no"
30914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30915 $as_echo_n "checking if CloseSocket might be used... " >&6; }
30916 if test "$tst_links_closesocket_camel" = "yes" &&
30917 test "$tst_proto_closesocket_camel" = "yes" &&
30918 test "$tst_compi_closesocket_camel" = "yes" &&
30919 test "$tst_allow_closesocket_camel" = "yes"; then
30920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30921 $as_echo "yes" >&6; }
30923 cat >>confdefs.h <<_ACEOF
30924 #define HAVE_CLOSESOCKET_CAMEL 1
30927 curl_cv_func_closesocket_camel="yes"
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30930 $as_echo "no" >&6; }
30931 curl_cv_func_closesocket_camel="no"
30936 tst_links_connect="unknown"
30937 tst_proto_connect="unknown"
30938 tst_compi_connect="unknown"
30939 tst_allow_connect="unknown"
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30942 $as_echo_n "checking if connect can be linked... " >&6; }
30943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30944 /* end confdefs.h. */
30947 $curl_includes_winsock2
30948 $curl_includes_sys_socket
30949 $curl_includes_socket
30954 if(0 != connect(0, 0, 0))
30962 if ac_fn_c_try_link "$LINENO"; then :
30964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30965 $as_echo "yes" >&6; }
30966 tst_links_connect="yes"
30970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30971 $as_echo "no" >&6; }
30972 tst_links_connect="no"
30975 rm -f core conftest.err conftest.$ac_objext \
30976 conftest$ac_exeext conftest.$ac_ext
30978 if test "$tst_links_connect" = "yes"; then
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30980 $as_echo_n "checking if connect is prototyped... " >&6; }
30981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30982 /* end confdefs.h. */
30984 $curl_includes_winsock2
30985 $curl_includes_sys_socket
30986 $curl_includes_socket
30989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30990 $EGREP "connect" >/dev/null 2>&1; then :
30992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30993 $as_echo "yes" >&6; }
30994 tst_proto_connect="yes"
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30999 $as_echo "no" >&6; }
31000 tst_proto_connect="no"
31007 if test "$tst_proto_connect" = "yes"; then
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31009 $as_echo_n "checking if connect is compilable... " >&6; }
31010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31011 /* end confdefs.h. */
31014 $curl_includes_winsock2
31015 $curl_includes_sys_socket
31016 $curl_includes_socket
31021 if(0 != connect(0, 0, 0))
31029 if ac_fn_c_try_compile "$LINENO"; then :
31031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31032 $as_echo "yes" >&6; }
31033 tst_compi_connect="yes"
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31038 $as_echo "no" >&6; }
31039 tst_compi_connect="no"
31042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31045 if test "$tst_compi_connect" = "yes"; then
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31047 $as_echo_n "checking if connect usage allowed... " >&6; }
31048 if test "x$curl_disallow_connect" != "xyes"; then
31049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31050 $as_echo "yes" >&6; }
31051 tst_allow_connect="yes"
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31054 $as_echo "no" >&6; }
31055 tst_allow_connect="no"
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31060 $as_echo_n "checking if connect might be used... " >&6; }
31061 if test "$tst_links_connect" = "yes" &&
31062 test "$tst_proto_connect" = "yes" &&
31063 test "$tst_compi_connect" = "yes" &&
31064 test "$tst_allow_connect" = "yes"; then
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31066 $as_echo "yes" >&6; }
31068 cat >>confdefs.h <<_ACEOF
31069 #define HAVE_CONNECT 1
31072 curl_cv_func_connect="yes"
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31075 $as_echo "no" >&6; }
31076 curl_cv_func_connect="no"
31080 curl_includes_fcntl="\
31081 /* includes start */
31082 #ifdef HAVE_SYS_TYPES_H
31083 # include <sys/types.h>
31085 #ifdef HAVE_UNISTD_H
31086 # include <unistd.h>
31088 #ifdef HAVE_FCNTL_H
31089 # include <fcntl.h>
31091 /* includes end */"
31092 for ac_header in sys/types.h unistd.h fcntl.h
31094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31095 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31098 cat >>confdefs.h <<_ACEOF
31099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31109 tst_links_fcntl="unknown"
31110 tst_proto_fcntl="unknown"
31111 tst_compi_fcntl="unknown"
31112 tst_allow_fcntl="unknown"
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31115 $as_echo_n "checking if fcntl can be linked... " >&6; }
31116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31117 /* end confdefs.h. */
31120 #define fcntl innocuous_fcntl
31122 # include <limits.h>
31124 # include <assert.h>
31131 #if defined __stub_fcntl || defined __stub___fcntl
31143 if ac_fn_c_try_link "$LINENO"; then :
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31146 $as_echo "yes" >&6; }
31147 tst_links_fcntl="yes"
31151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31152 $as_echo "no" >&6; }
31153 tst_links_fcntl="no"
31156 rm -f core conftest.err conftest.$ac_objext \
31157 conftest$ac_exeext conftest.$ac_ext
31159 if test "$tst_links_fcntl" = "yes"; then
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31161 $as_echo_n "checking if fcntl is prototyped... " >&6; }
31162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31163 /* end confdefs.h. */
31165 $curl_includes_fcntl
31168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31169 $EGREP "fcntl" >/dev/null 2>&1; then :
31171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31172 $as_echo "yes" >&6; }
31173 tst_proto_fcntl="yes"
31177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31178 $as_echo "no" >&6; }
31179 tst_proto_fcntl="no"
31186 if test "$tst_proto_fcntl" = "yes"; then
31187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31188 $as_echo_n "checking if fcntl is compilable... " >&6; }
31189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31190 /* end confdefs.h. */
31193 $curl_includes_fcntl
31198 if(0 != fcntl(0, 0, 0))
31206 if ac_fn_c_try_compile "$LINENO"; then :
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31209 $as_echo "yes" >&6; }
31210 tst_compi_fcntl="yes"
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31215 $as_echo "no" >&6; }
31216 tst_compi_fcntl="no"
31219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31222 if test "$tst_compi_fcntl" = "yes"; then
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31224 $as_echo_n "checking if fcntl usage allowed... " >&6; }
31225 if test "x$curl_disallow_fcntl" != "xyes"; then
31226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31227 $as_echo "yes" >&6; }
31228 tst_allow_fcntl="yes"
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31231 $as_echo "no" >&6; }
31232 tst_allow_fcntl="no"
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31237 $as_echo_n "checking if fcntl might be used... " >&6; }
31238 if test "$tst_links_fcntl" = "yes" &&
31239 test "$tst_proto_fcntl" = "yes" &&
31240 test "$tst_compi_fcntl" = "yes" &&
31241 test "$tst_allow_fcntl" = "yes"; then
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31243 $as_echo "yes" >&6; }
31245 cat >>confdefs.h <<_ACEOF
31246 #define HAVE_FCNTL 1
31249 curl_cv_func_fcntl="yes"
31252 tst_compi_fcntl_o_nonblock="unknown"
31253 tst_allow_fcntl_o_nonblock="unknown"
31256 sunos4* | aix3* | beos*)
31257 curl_disallow_fcntl_o_nonblock="yes"
31261 if test "$curl_cv_func_fcntl" = "yes"; then
31262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31263 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31265 /* end confdefs.h. */
31268 $curl_includes_fcntl
31274 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31282 if ac_fn_c_try_compile "$LINENO"; then :
31284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31285 $as_echo "yes" >&6; }
31286 tst_compi_fcntl_o_nonblock="yes"
31290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31291 $as_echo "no" >&6; }
31292 tst_compi_fcntl_o_nonblock="no"
31295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31298 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31300 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31301 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31303 $as_echo "yes" >&6; }
31304 tst_allow_fcntl_o_nonblock="yes"
31306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31307 $as_echo "no" >&6; }
31308 tst_allow_fcntl_o_nonblock="no"
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31313 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31314 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31315 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31317 $as_echo "yes" >&6; }
31319 cat >>confdefs.h <<_ACEOF
31320 #define HAVE_FCNTL_O_NONBLOCK 1
31323 curl_cv_func_fcntl_o_nonblock="yes"
31325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31326 $as_echo "no" >&6; }
31327 curl_cv_func_fcntl_o_nonblock="no"
31331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31332 $as_echo "no" >&6; }
31333 curl_cv_func_fcntl="no"
31337 curl_includes_stdio="\
31338 /* includes start */
31339 #ifdef HAVE_SYS_TYPES_H
31340 # include <sys/types.h>
31342 #ifdef HAVE_STDIO_H
31343 # include <stdio.h>
31345 /* includes end */"
31346 for ac_header in sys/types.h stdio.h
31348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31352 cat >>confdefs.h <<_ACEOF
31353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31363 tst_links_fdopen="unknown"
31364 tst_proto_fdopen="unknown"
31365 tst_compi_fdopen="unknown"
31366 tst_allow_fdopen="unknown"
31368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31369 $as_echo_n "checking if fdopen can be linked... " >&6; }
31370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31371 /* end confdefs.h. */
31374 #define fdopen innocuous_fdopen
31376 # include <limits.h>
31378 # include <assert.h>
31385 #if defined __stub_fdopen || defined __stub___fdopen
31397 if ac_fn_c_try_link "$LINENO"; then :
31399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31400 $as_echo "yes" >&6; }
31401 tst_links_fdopen="yes"
31405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31406 $as_echo "no" >&6; }
31407 tst_links_fdopen="no"
31410 rm -f core conftest.err conftest.$ac_objext \
31411 conftest$ac_exeext conftest.$ac_ext
31413 if test "$tst_links_fdopen" = "yes"; then
31414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31415 $as_echo_n "checking if fdopen is prototyped... " >&6; }
31416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31417 /* end confdefs.h. */
31419 $curl_includes_stdio
31422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31423 $EGREP "fdopen" >/dev/null 2>&1; then :
31425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31426 $as_echo "yes" >&6; }
31427 tst_proto_fdopen="yes"
31431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31432 $as_echo "no" >&6; }
31433 tst_proto_fdopen="no"
31440 if test "$tst_proto_fdopen" = "yes"; then
31441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31442 $as_echo_n "checking if fdopen is compilable... " >&6; }
31443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31444 /* end confdefs.h. */
31447 $curl_includes_stdio
31452 if(0 != fdopen(0, 0))
31460 if ac_fn_c_try_compile "$LINENO"; then :
31462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31463 $as_echo "yes" >&6; }
31464 tst_compi_fdopen="yes"
31468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31469 $as_echo "no" >&6; }
31470 tst_compi_fdopen="no"
31473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31476 if test "$tst_compi_fdopen" = "yes"; then
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31478 $as_echo_n "checking if fdopen usage allowed... " >&6; }
31479 if test "x$curl_disallow_fdopen" != "xyes"; then
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31481 $as_echo "yes" >&6; }
31482 tst_allow_fdopen="yes"
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31485 $as_echo "no" >&6; }
31486 tst_allow_fdopen="no"
31490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31491 $as_echo_n "checking if fdopen might be used... " >&6; }
31492 if test "$tst_links_fdopen" = "yes" &&
31493 test "$tst_proto_fdopen" = "yes" &&
31494 test "$tst_compi_fdopen" = "yes" &&
31495 test "$tst_allow_fdopen" = "yes"; then
31496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31497 $as_echo "yes" >&6; }
31499 cat >>confdefs.h <<_ACEOF
31500 #define HAVE_FDOPEN 1
31503 curl_cv_func_fdopen="yes"
31505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31506 $as_echo "no" >&6; }
31507 curl_cv_func_fdopen="no"
31511 curl_includes_ws2tcpip="\
31512 /* includes start */
31513 #ifdef HAVE_WINDOWS_H
31514 # ifndef WIN32_LEAN_AND_MEAN
31515 # define WIN32_LEAN_AND_MEAN
31517 # include <windows.h>
31518 # ifdef HAVE_WINSOCK2_H
31519 # include <winsock2.h>
31520 # ifdef HAVE_WS2TCPIP_H
31521 # include <ws2tcpip.h>
31525 /* includes end */"
31527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
31528 $as_echo_n "checking for windows.h... " >&6; }
31529 if ${curl_cv_header_windows_h+:} false; then :
31530 $as_echo_n "(cached) " >&6
31533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31534 /* end confdefs.h. */
31538 #ifndef WIN32_LEAN_AND_MEAN
31539 #define WIN32_LEAN_AND_MEAN
31541 #include <windows.h>
31546 #if defined(__CYGWIN__) || defined(__CEGCC__)
31547 HAVE_WINDOWS_H shall not be defined.
31549 int dummy=2*WINVER;
31557 if ac_fn_c_try_compile "$LINENO"; then :
31559 curl_cv_header_windows_h="yes"
31563 curl_cv_header_windows_h="no"
31566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
31570 $as_echo "$curl_cv_header_windows_h" >&6; }
31571 case "$curl_cv_header_windows_h" in
31574 cat >>confdefs.h <<_ACEOF
31575 #define HAVE_WINDOWS_H 1
31582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
31583 $as_echo_n "checking for winsock2.h... " >&6; }
31584 if ${curl_cv_header_winsock2_h+:} false; then :
31585 $as_echo_n "(cached) " >&6
31588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31589 /* end confdefs.h. */
31593 #ifndef WIN32_LEAN_AND_MEAN
31594 #define WIN32_LEAN_AND_MEAN
31596 #include <windows.h>
31597 #include <winsock2.h>
31602 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31603 HAVE_WINSOCK2_H shall not be defined.
31605 int dummy=2*IPPROTO_ESP;
31613 if ac_fn_c_try_compile "$LINENO"; then :
31615 curl_cv_header_winsock2_h="yes"
31619 curl_cv_header_winsock2_h="no"
31622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
31626 $as_echo "$curl_cv_header_winsock2_h" >&6; }
31627 case "$curl_cv_header_winsock2_h" in
31630 cat >>confdefs.h <<_ACEOF
31631 #define HAVE_WINSOCK2_H 1
31638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
31639 $as_echo_n "checking for ws2tcpip.h... " >&6; }
31640 if ${curl_cv_header_ws2tcpip_h+:} false; then :
31641 $as_echo_n "(cached) " >&6
31644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31645 /* end confdefs.h. */
31649 #ifndef WIN32_LEAN_AND_MEAN
31650 #define WIN32_LEAN_AND_MEAN
31652 #include <windows.h>
31653 #include <winsock2.h>
31654 #include <ws2tcpip.h>
31659 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31660 HAVE_WS2TCPIP_H shall not be defined.
31662 int dummy=2*IP_PKTINFO;
31670 if ac_fn_c_try_compile "$LINENO"; then :
31672 curl_cv_header_ws2tcpip_h="yes"
31676 curl_cv_header_ws2tcpip_h="no"
31679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
31683 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
31684 case "$curl_cv_header_ws2tcpip_h" in
31687 cat >>confdefs.h <<_ACEOF
31688 #define HAVE_WS2TCPIP_H 1
31696 curl_includes_netdb="\
31697 /* includes start */
31698 #ifdef HAVE_SYS_TYPES_H
31699 # include <sys/types.h>
31701 #ifdef HAVE_NETDB_H
31702 # include <netdb.h>
31704 /* includes end */"
31705 for ac_header in sys/types.h netdb.h
31707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31708 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31710 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31711 cat >>confdefs.h <<_ACEOF
31712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31722 tst_links_freeaddrinfo="unknown"
31723 tst_proto_freeaddrinfo="unknown"
31724 tst_compi_freeaddrinfo="unknown"
31725 tst_allow_freeaddrinfo="unknown"
31727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31728 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31730 /* end confdefs.h. */
31733 $curl_includes_ws2tcpip
31734 $curl_includes_sys_socket
31735 $curl_includes_netdb
31747 if ac_fn_c_try_link "$LINENO"; then :
31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31750 $as_echo "yes" >&6; }
31751 tst_links_freeaddrinfo="yes"
31755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31756 $as_echo "no" >&6; }
31757 tst_links_freeaddrinfo="no"
31760 rm -f core conftest.err conftest.$ac_objext \
31761 conftest$ac_exeext conftest.$ac_ext
31763 if test "$tst_links_freeaddrinfo" = "yes"; then
31764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31765 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31767 /* end confdefs.h. */
31769 $curl_includes_ws2tcpip
31770 $curl_includes_sys_socket
31771 $curl_includes_netdb
31774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31775 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31778 $as_echo "yes" >&6; }
31779 tst_proto_freeaddrinfo="yes"
31783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31784 $as_echo "no" >&6; }
31785 tst_proto_freeaddrinfo="no"
31792 if test "$tst_proto_freeaddrinfo" = "yes"; then
31793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31794 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31796 /* end confdefs.h. */
31799 $curl_includes_ws2tcpip
31800 $curl_includes_sys_socket
31801 $curl_includes_netdb
31813 if ac_fn_c_try_compile "$LINENO"; then :
31815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31816 $as_echo "yes" >&6; }
31817 tst_compi_freeaddrinfo="yes"
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31822 $as_echo "no" >&6; }
31823 tst_compi_freeaddrinfo="no"
31826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31829 if test "$tst_compi_freeaddrinfo" = "yes"; then
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31831 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31832 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31834 $as_echo "yes" >&6; }
31835 tst_allow_freeaddrinfo="yes"
31837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31838 $as_echo "no" >&6; }
31839 tst_allow_freeaddrinfo="no"
31843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31844 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31845 if test "$tst_links_freeaddrinfo" = "yes" &&
31846 test "$tst_proto_freeaddrinfo" = "yes" &&
31847 test "$tst_compi_freeaddrinfo" = "yes" &&
31848 test "$tst_allow_freeaddrinfo" = "yes"; then
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31850 $as_echo "yes" >&6; }
31852 cat >>confdefs.h <<_ACEOF
31853 #define HAVE_FREEADDRINFO 1
31856 curl_cv_func_freeaddrinfo="yes"
31858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31859 $as_echo "no" >&6; }
31860 curl_cv_func_freeaddrinfo="no"
31864 curl_includes_ifaddrs="\
31865 /* includes start */
31866 #ifdef HAVE_SYS_TYPES_H
31867 # include <sys/types.h>
31869 #ifdef HAVE_SYS_SOCKET_H
31870 # include <sys/socket.h>
31872 #ifdef HAVE_NETINET_IN_H
31873 # include <netinet/in.h>
31875 #ifdef HAVE_IFADDRS_H
31876 # include <ifaddrs.h>
31878 /* includes end */"
31879 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31882 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31885 cat >>confdefs.h <<_ACEOF
31886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31896 tst_links_freeifaddrs="unknown"
31897 tst_proto_freeifaddrs="unknown"
31898 tst_compi_freeifaddrs="unknown"
31899 tst_allow_freeifaddrs="unknown"
31901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31902 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31904 /* end confdefs.h. */
31907 #define freeifaddrs innocuous_freeifaddrs
31909 # include <limits.h>
31911 # include <assert.h>
31917 char freeifaddrs ();
31918 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31924 return freeifaddrs ();
31930 if ac_fn_c_try_link "$LINENO"; then :
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31933 $as_echo "yes" >&6; }
31934 tst_links_freeifaddrs="yes"
31938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31939 $as_echo "no" >&6; }
31940 tst_links_freeifaddrs="no"
31943 rm -f core conftest.err conftest.$ac_objext \
31944 conftest$ac_exeext conftest.$ac_ext
31946 if test "$tst_links_freeifaddrs" = "yes"; then
31947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31948 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31950 /* end confdefs.h. */
31952 $curl_includes_ifaddrs
31955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31956 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31959 $as_echo "yes" >&6; }
31960 tst_proto_freeifaddrs="yes"
31964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31965 $as_echo "no" >&6; }
31966 tst_proto_freeifaddrs="no"
31973 if test "$tst_proto_freeifaddrs" = "yes"; then
31974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31975 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31977 /* end confdefs.h. */
31980 $curl_includes_ifaddrs
31992 if ac_fn_c_try_compile "$LINENO"; then :
31994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31995 $as_echo "yes" >&6; }
31996 tst_compi_freeifaddrs="yes"
32000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32001 $as_echo "no" >&6; }
32002 tst_compi_freeifaddrs="no"
32005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32008 if test "$tst_compi_freeifaddrs" = "yes"; then
32009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
32010 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
32011 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32013 $as_echo "yes" >&6; }
32014 tst_allow_freeifaddrs="yes"
32016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32017 $as_echo "no" >&6; }
32018 tst_allow_freeifaddrs="no"
32022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
32023 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
32024 if test "$tst_links_freeifaddrs" = "yes" &&
32025 test "$tst_proto_freeifaddrs" = "yes" &&
32026 test "$tst_compi_freeifaddrs" = "yes" &&
32027 test "$tst_allow_freeifaddrs" = "yes"; then
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32029 $as_echo "yes" >&6; }
32031 cat >>confdefs.h <<_ACEOF
32032 #define HAVE_FREEIFADDRS 1
32035 curl_cv_func_freeifaddrs="yes"
32037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32038 $as_echo "no" >&6; }
32039 curl_cv_func_freeifaddrs="no"
32043 curl_includes_sys_xattr="\
32044 /* includes start */
32045 #ifdef HAVE_SYS_TYPES_H
32046 # include <sys/types.h>
32048 #ifdef HAVE_SYS_XATTR_H
32049 # include <sys/xattr.h>
32051 /* includes end */"
32052 for ac_header in sys/types.h sys/xattr.h
32054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32055 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32058 cat >>confdefs.h <<_ACEOF
32059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32069 tst_links_fsetxattr="unknown"
32070 tst_proto_fsetxattr="unknown"
32071 tst_compi_fsetxattr="unknown"
32072 tst_allow_fsetxattr="unknown"
32073 tst_nargs_fsetxattr="unknown"
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32076 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
32077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32078 /* end confdefs.h. */
32081 #define fsetxattr innocuous_fsetxattr
32083 # include <limits.h>
32085 # include <assert.h>
32092 #if defined __stub_fsetxattr || defined __stub___fsetxattr
32098 return fsetxattr ();
32104 if ac_fn_c_try_link "$LINENO"; then :
32106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32107 $as_echo "yes" >&6; }
32108 tst_links_fsetxattr="yes"
32112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32113 $as_echo "no" >&6; }
32114 tst_links_fsetxattr="no"
32117 rm -f core conftest.err conftest.$ac_objext \
32118 conftest$ac_exeext conftest.$ac_ext
32120 if test "$tst_links_fsetxattr" = "yes"; then
32121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32122 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32124 /* end confdefs.h. */
32126 $curl_includes_sys_xattr
32129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32130 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32133 $as_echo "yes" >&6; }
32134 tst_proto_fsetxattr="yes"
32138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32139 $as_echo "no" >&6; }
32140 tst_proto_fsetxattr="no"
32147 if test "$tst_proto_fsetxattr" = "yes"; then
32148 if test "$tst_nargs_fsetxattr" = "unknown"; then
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32150 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32152 /* end confdefs.h. */
32155 $curl_includes_sys_xattr
32160 if(0 != fsetxattr(0, 0, 0, 0, 0))
32168 if ac_fn_c_try_compile "$LINENO"; then :
32170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32171 $as_echo "yes" >&6; }
32172 tst_compi_fsetxattr="yes"
32173 tst_nargs_fsetxattr="5"
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32178 $as_echo "no" >&6; }
32179 tst_compi_fsetxattr="no"
32182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32184 if test "$tst_nargs_fsetxattr" = "unknown"; then
32185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32186 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32188 /* end confdefs.h. */
32191 $curl_includes_sys_xattr
32196 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32204 if ac_fn_c_try_compile "$LINENO"; then :
32206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32207 $as_echo "yes" >&6; }
32208 tst_compi_fsetxattr="yes"
32209 tst_nargs_fsetxattr="6"
32213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32214 $as_echo "no" >&6; }
32215 tst_compi_fsetxattr="no"
32218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32221 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
32222 if test "$tst_compi_fsetxattr" = "yes"; then
32223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32224 $as_echo "yes" >&6; }
32226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32227 $as_echo "no" >&6; }
32231 if test "$tst_compi_fsetxattr" = "yes"; then
32232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32233 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32234 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32236 $as_echo "yes" >&6; }
32237 tst_allow_fsetxattr="yes"
32239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32240 $as_echo "no" >&6; }
32241 tst_allow_fsetxattr="no"
32245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32246 $as_echo_n "checking if fsetxattr might be used... " >&6; }
32247 if test "$tst_links_fsetxattr" = "yes" &&
32248 test "$tst_proto_fsetxattr" = "yes" &&
32249 test "$tst_compi_fsetxattr" = "yes" &&
32250 test "$tst_allow_fsetxattr" = "yes"; then
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32252 $as_echo "yes" >&6; }
32254 cat >>confdefs.h <<_ACEOF
32255 #define HAVE_FSETXATTR 1
32259 if test "$tst_nargs_fsetxattr" -eq "5"; then
32261 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32263 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32265 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32269 curl_cv_func_fsetxattr="yes"
32271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32272 $as_echo "no" >&6; }
32273 curl_cv_func_fsetxattr="no"
32278 tst_links_ftruncate="unknown"
32279 tst_proto_ftruncate="unknown"
32280 tst_compi_ftruncate="unknown"
32281 tst_allow_ftruncate="unknown"
32283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32284 $as_echo_n "checking if ftruncate can be linked... " >&6; }
32285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32286 /* end confdefs.h. */
32289 #define ftruncate innocuous_ftruncate
32291 # include <limits.h>
32293 # include <assert.h>
32300 #if defined __stub_ftruncate || defined __stub___ftruncate
32306 return ftruncate ();
32312 if ac_fn_c_try_link "$LINENO"; then :
32314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32315 $as_echo "yes" >&6; }
32316 tst_links_ftruncate="yes"
32320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32321 $as_echo "no" >&6; }
32322 tst_links_ftruncate="no"
32325 rm -f core conftest.err conftest.$ac_objext \
32326 conftest$ac_exeext conftest.$ac_ext
32328 if test "$tst_links_ftruncate" = "yes"; then
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32330 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
32331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32332 /* end confdefs.h. */
32334 $curl_includes_unistd
32337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32338 $EGREP "ftruncate" >/dev/null 2>&1; then :
32340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32341 $as_echo "yes" >&6; }
32342 tst_proto_ftruncate="yes"
32346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32347 $as_echo "no" >&6; }
32348 tst_proto_ftruncate="no"
32355 if test "$tst_proto_ftruncate" = "yes"; then
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32357 $as_echo_n "checking if ftruncate is compilable... " >&6; }
32358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32359 /* end confdefs.h. */
32362 $curl_includes_unistd
32367 if(0 != ftruncate(0, 0))
32375 if ac_fn_c_try_compile "$LINENO"; then :
32377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32378 $as_echo "yes" >&6; }
32379 tst_compi_ftruncate="yes"
32383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32384 $as_echo "no" >&6; }
32385 tst_compi_ftruncate="no"
32388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32391 if test "$tst_compi_ftruncate" = "yes"; then
32392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32393 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
32394 if test "x$curl_disallow_ftruncate" != "xyes"; then
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32396 $as_echo "yes" >&6; }
32397 tst_allow_ftruncate="yes"
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32400 $as_echo "no" >&6; }
32401 tst_allow_ftruncate="no"
32405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32406 $as_echo_n "checking if ftruncate might be used... " >&6; }
32407 if test "$tst_links_ftruncate" = "yes" &&
32408 test "$tst_proto_ftruncate" = "yes" &&
32409 test "$tst_compi_ftruncate" = "yes" &&
32410 test "$tst_allow_ftruncate" = "yes"; then
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32412 $as_echo "yes" >&6; }
32414 cat >>confdefs.h <<_ACEOF
32415 #define HAVE_FTRUNCATE 1
32418 curl_cv_func_ftruncate="yes"
32420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32421 $as_echo "no" >&6; }
32422 curl_cv_func_ftruncate="no"
32426 curl_includes_stdlib="\
32427 /* includes start */
32428 #ifdef HAVE_SYS_TYPES_H
32429 # include <sys/types.h>
32431 #ifdef HAVE_STDLIB_H
32432 # include <stdlib.h>
32434 /* includes end */"
32435 for ac_header in sys/types.h stdlib.h
32437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32438 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32441 cat >>confdefs.h <<_ACEOF
32442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32452 tst_links_getaddrinfo="unknown"
32453 tst_proto_getaddrinfo="unknown"
32454 tst_compi_getaddrinfo="unknown"
32455 tst_works_getaddrinfo="unknown"
32456 tst_allow_getaddrinfo="unknown"
32457 tst_tsafe_getaddrinfo="unknown"
32459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32460 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32462 /* end confdefs.h. */
32465 $curl_includes_ws2tcpip
32466 $curl_includes_sys_socket
32467 $curl_includes_netdb
32472 if(0 != getaddrinfo(0, 0, 0, 0))
32480 if ac_fn_c_try_link "$LINENO"; then :
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32483 $as_echo "yes" >&6; }
32484 tst_links_getaddrinfo="yes"
32488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32489 $as_echo "no" >&6; }
32490 tst_links_getaddrinfo="no"
32493 rm -f core conftest.err conftest.$ac_objext \
32494 conftest$ac_exeext conftest.$ac_ext
32496 if test "$tst_links_getaddrinfo" = "yes"; then
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32498 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32500 /* end confdefs.h. */
32502 $curl_includes_ws2tcpip
32503 $curl_includes_sys_socket
32504 $curl_includes_netdb
32507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32508 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32511 $as_echo "yes" >&6; }
32512 tst_proto_getaddrinfo="yes"
32516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32517 $as_echo "no" >&6; }
32518 tst_proto_getaddrinfo="no"
32525 if test "$tst_proto_getaddrinfo" = "yes"; then
32526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32527 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32529 /* end confdefs.h. */
32532 $curl_includes_ws2tcpip
32533 $curl_includes_sys_socket
32534 $curl_includes_netdb
32539 if(0 != getaddrinfo(0, 0, 0, 0))
32547 if ac_fn_c_try_compile "$LINENO"; then :
32549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32550 $as_echo "yes" >&6; }
32551 tst_compi_getaddrinfo="yes"
32555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32556 $as_echo "no" >&6; }
32557 tst_compi_getaddrinfo="no"
32560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32563 if test "x$cross_compiling" != "xyes" &&
32564 test "$tst_compi_getaddrinfo" = "yes"; then
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32566 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32569 old=$LD_LIBRARY_PATH
32570 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
32571 export LD_LIBRARY_PATH
32572 if test "$cross_compiling" = yes; then :
32573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32575 as_fn_error $? "cannot run test program while cross compiling
32576 See \`config.log' for more details" "$LINENO" 5; }
32578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32579 /* end confdefs.h. */
32582 $curl_includes_ws2tcpip
32583 $curl_includes_stdlib
32584 $curl_includes_string
32585 $curl_includes_sys_socket
32586 $curl_includes_netdb
32591 struct addrinfo hints;
32592 struct addrinfo *ai = 0;
32595 #ifdef HAVE_WINSOCK2_H
32597 if (WSAStartup(MAKEWORD(2,2), &wsa))
32601 memset(&hints, 0, sizeof(hints));
32602 hints.ai_flags = AI_NUMERICHOST;
32603 hints.ai_family = AF_UNSPEC;
32604 hints.ai_socktype = SOCK_STREAM;
32605 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32607 exit(1); /* fail */
32616 if ac_fn_c_try_run "$LINENO"; then :
32617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32618 $as_echo "yes" >&6; }
32619 tst_works_getaddrinfo="yes"
32622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32623 $as_echo "no" >&6; }
32624 tst_works_getaddrinfo="no"
32627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32628 conftest.$ac_objext conftest.beam conftest.$ac_ext
32631 LD_LIBRARY_PATH=$old # restore
32635 if test "$tst_compi_getaddrinfo" = "yes" &&
32636 test "$tst_works_getaddrinfo" != "no"; then
32637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32638 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32639 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32641 $as_echo "yes" >&6; }
32642 tst_allow_getaddrinfo="yes"
32644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32645 $as_echo "no" >&6; }
32646 tst_allow_getaddrinfo="no"
32650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32651 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
32652 if test "$tst_links_getaddrinfo" = "yes" &&
32653 test "$tst_proto_getaddrinfo" = "yes" &&
32654 test "$tst_compi_getaddrinfo" = "yes" &&
32655 test "$tst_allow_getaddrinfo" = "yes" &&
32656 test "$tst_works_getaddrinfo" != "no"; then
32657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32658 $as_echo "yes" >&6; }
32660 cat >>confdefs.h <<_ACEOF
32661 #define HAVE_GETADDRINFO 1
32664 curl_cv_func_getaddrinfo="yes"
32666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32667 $as_echo "no" >&6; }
32668 curl_cv_func_getaddrinfo="no"
32669 curl_cv_func_getaddrinfo_threadsafe="no"
32672 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32674 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32676 aix[1234].* | aix5.[01].*)
32677 tst_tsafe_getaddrinfo="no"
32680 tst_tsafe_getaddrinfo="yes"
32683 tst_tsafe_getaddrinfo="no"
32686 tst_tsafe_getaddrinfo="yes"
32688 freebsd[1234].* | freebsd5.[1234]*)
32689 tst_tsafe_getaddrinfo="no"
32692 tst_tsafe_getaddrinfo="yes"
32694 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32695 tst_tsafe_getaddrinfo="no"
32698 tst_tsafe_getaddrinfo="yes"
32701 tst_tsafe_getaddrinfo="no"
32704 tst_tsafe_getaddrinfo="yes"
32707 tst_tsafe_getaddrinfo="no"
32710 tst_tsafe_getaddrinfo="yes"
32713 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32714 test "$curl_cv_native_windows" = "yes"; then
32715 tst_tsafe_getaddrinfo="yes"
32717 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32721 /* end confdefs.h. */
32724 $curl_includes_sys_socket
32725 $curl_includes_netdb
32732 force compilation error
32738 if ac_fn_c_try_compile "$LINENO"; then :
32740 tst_symbol_defined="yes"
32744 tst_symbol_defined="no"
32747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32748 if test "$tst_symbol_defined" = "yes"; then
32749 curl_cv_have_def_h_errno=yes
32752 curl_cv_have_def_h_errno=no
32756 if test "$curl_cv_have_def_h_errno" = "yes"; then
32757 tst_h_errno_macro="yes"
32759 tst_h_errno_macro="no"
32761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32762 /* end confdefs.h. */
32765 $curl_includes_sys_socket
32766 $curl_includes_netdb
32780 if ac_fn_c_try_compile "$LINENO"; then :
32782 tst_h_errno_modifiable_lvalue="yes"
32786 tst_h_errno_modifiable_lvalue="no"
32789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32791 /* end confdefs.h. */
32798 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32800 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32803 force compilation error
32811 if ac_fn_c_try_compile "$LINENO"; then :
32813 tst_h_errno_sbs_issue_7="yes"
32817 tst_h_errno_sbs_issue_7="no"
32820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32821 if test "$tst_h_errno_macro" = "no" &&
32822 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32823 test "$tst_h_errno_sbs_issue_7" = "no"; then
32824 tst_tsafe_getaddrinfo="no"
32826 tst_tsafe_getaddrinfo="yes"
32829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32830 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32831 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32833 cat >>confdefs.h <<_ACEOF
32834 #define HAVE_GETADDRINFO_THREADSAFE 1
32837 curl_cv_func_getaddrinfo_threadsafe="yes"
32839 curl_cv_func_getaddrinfo_threadsafe="no"
32845 tst_links_gai_strerror="unknown"
32846 tst_proto_gai_strerror="unknown"
32847 tst_compi_gai_strerror="unknown"
32848 tst_allow_gai_strerror="unknown"
32850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32851 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32853 /* end confdefs.h. */
32856 $curl_includes_winsock2
32857 $curl_includes_netdb
32862 if(0 != gai_strerror(0))
32870 if ac_fn_c_try_link "$LINENO"; then :
32872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32873 $as_echo "yes" >&6; }
32874 tst_links_gai_strerror="yes"
32878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32879 $as_echo "no" >&6; }
32880 tst_links_gai_strerror="no"
32883 rm -f core conftest.err conftest.$ac_objext \
32884 conftest$ac_exeext conftest.$ac_ext
32886 if test "$tst_links_gai_strerror" = "yes"; then
32887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32888 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32890 /* end confdefs.h. */
32892 $curl_includes_winsock2
32893 $curl_includes_netdb
32896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32897 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32900 $as_echo "yes" >&6; }
32901 tst_proto_gai_strerror="yes"
32905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32906 $as_echo "no" >&6; }
32907 tst_proto_gai_strerror="no"
32914 if test "$tst_proto_gai_strerror" = "yes"; then
32915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32916 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32918 /* end confdefs.h. */
32921 $curl_includes_winsock2
32922 $curl_includes_netdb
32927 if(0 != gai_strerror(0))
32935 if ac_fn_c_try_compile "$LINENO"; then :
32937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32938 $as_echo "yes" >&6; }
32939 tst_compi_gai_strerror="yes"
32943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32944 $as_echo "no" >&6; }
32945 tst_compi_gai_strerror="no"
32948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32951 if test "$tst_compi_gai_strerror" = "yes"; then
32952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32953 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32954 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32956 $as_echo "yes" >&6; }
32957 tst_allow_gai_strerror="yes"
32959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32960 $as_echo "no" >&6; }
32961 tst_allow_gai_strerror="no"
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32966 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32967 if test "$tst_links_gai_strerror" = "yes" &&
32968 test "$tst_proto_gai_strerror" = "yes" &&
32969 test "$tst_compi_gai_strerror" = "yes" &&
32970 test "$tst_allow_gai_strerror" = "yes"; then
32971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32972 $as_echo "yes" >&6; }
32974 cat >>confdefs.h <<_ACEOF
32975 #define HAVE_GAI_STRERROR 1
32978 curl_cv_func_gai_strerror="yes"
32980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32981 $as_echo "no" >&6; }
32982 curl_cv_func_gai_strerror="no"
32987 tst_links_gethostbyaddr="unknown"
32988 tst_proto_gethostbyaddr="unknown"
32989 tst_compi_gethostbyaddr="unknown"
32990 tst_allow_gethostbyaddr="unknown"
32992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32993 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32995 /* end confdefs.h. */
32998 $curl_includes_winsock2
32999 $curl_includes_netdb
33004 if(0 != gethostbyaddr(0, 0, 0))
33012 if ac_fn_c_try_link "$LINENO"; then :
33014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33015 $as_echo "yes" >&6; }
33016 tst_links_gethostbyaddr="yes"
33020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33021 $as_echo "no" >&6; }
33022 tst_links_gethostbyaddr="no"
33025 rm -f core conftest.err conftest.$ac_objext \
33026 conftest$ac_exeext conftest.$ac_ext
33028 if test "$tst_links_gethostbyaddr" = "yes"; then
33029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
33030 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
33031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33032 /* end confdefs.h. */
33034 $curl_includes_winsock2
33035 $curl_includes_netdb
33038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33039 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
33041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33042 $as_echo "yes" >&6; }
33043 tst_proto_gethostbyaddr="yes"
33047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33048 $as_echo "no" >&6; }
33049 tst_proto_gethostbyaddr="no"
33056 if test "$tst_proto_gethostbyaddr" = "yes"; then
33057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33058 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33060 /* end confdefs.h. */
33063 $curl_includes_winsock2
33064 $curl_includes_netdb
33069 if(0 != gethostbyaddr(0, 0, 0))
33077 if ac_fn_c_try_compile "$LINENO"; then :
33079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33080 $as_echo "yes" >&6; }
33081 tst_compi_gethostbyaddr="yes"
33085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33086 $as_echo "no" >&6; }
33087 tst_compi_gethostbyaddr="no"
33090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33093 if test "$tst_compi_gethostbyaddr" = "yes"; then
33094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33095 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33096 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33098 $as_echo "yes" >&6; }
33099 tst_allow_gethostbyaddr="yes"
33101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33102 $as_echo "no" >&6; }
33103 tst_allow_gethostbyaddr="no"
33107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33108 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33109 if test "$tst_links_gethostbyaddr" = "yes" &&
33110 test "$tst_proto_gethostbyaddr" = "yes" &&
33111 test "$tst_compi_gethostbyaddr" = "yes" &&
33112 test "$tst_allow_gethostbyaddr" = "yes"; then
33113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33114 $as_echo "yes" >&6; }
33116 cat >>confdefs.h <<_ACEOF
33117 #define HAVE_GETHOSTBYADDR 1
33120 curl_cv_func_gethostbyaddr="yes"
33122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33123 $as_echo "no" >&6; }
33124 curl_cv_func_gethostbyaddr="no"
33129 tst_links_gethostbyaddr_r="unknown"
33130 tst_proto_gethostbyaddr_r="unknown"
33131 tst_compi_gethostbyaddr_r="unknown"
33132 tst_allow_gethostbyaddr_r="unknown"
33133 tst_nargs_gethostbyaddr_r="unknown"
33135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33136 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33138 /* end confdefs.h. */
33141 #define gethostbyaddr_r innocuous_gethostbyaddr_r
33143 # include <limits.h>
33145 # include <assert.h>
33147 #undef gethostbyaddr_r
33151 char gethostbyaddr_r ();
33152 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33158 return gethostbyaddr_r ();
33164 if ac_fn_c_try_link "$LINENO"; then :
33166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33167 $as_echo "yes" >&6; }
33168 tst_links_gethostbyaddr_r="yes"
33172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33173 $as_echo "no" >&6; }
33174 tst_links_gethostbyaddr_r="no"
33177 rm -f core conftest.err conftest.$ac_objext \
33178 conftest$ac_exeext conftest.$ac_ext
33180 if test "$tst_links_gethostbyaddr_r" = "yes"; then
33181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33182 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33184 /* end confdefs.h. */
33186 $curl_includes_netdb
33189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33190 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33193 $as_echo "yes" >&6; }
33194 tst_proto_gethostbyaddr_r="yes"
33198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33199 $as_echo "no" >&6; }
33200 tst_proto_gethostbyaddr_r="no"
33207 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33208 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33210 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33212 /* end confdefs.h. */
33215 $curl_includes_netdb
33220 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33228 if ac_fn_c_try_compile "$LINENO"; then :
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33231 $as_echo "yes" >&6; }
33232 tst_compi_gethostbyaddr_r="yes"
33233 tst_nargs_gethostbyaddr_r="5"
33237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33238 $as_echo "no" >&6; }
33239 tst_compi_gethostbyaddr_r="no"
33242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33244 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33246 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33248 /* end confdefs.h. */
33251 $curl_includes_netdb
33256 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33264 if ac_fn_c_try_compile "$LINENO"; then :
33266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33267 $as_echo "yes" >&6; }
33268 tst_compi_gethostbyaddr_r="yes"
33269 tst_nargs_gethostbyaddr_r="7"
33273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33274 $as_echo "no" >&6; }
33275 tst_compi_gethostbyaddr_r="no"
33278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33280 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33282 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33284 /* end confdefs.h. */
33287 $curl_includes_netdb
33292 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33300 if ac_fn_c_try_compile "$LINENO"; then :
33302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33303 $as_echo "yes" >&6; }
33304 tst_compi_gethostbyaddr_r="yes"
33305 tst_nargs_gethostbyaddr_r="8"
33309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33310 $as_echo "no" >&6; }
33311 tst_compi_gethostbyaddr_r="no"
33314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33317 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33318 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33320 $as_echo "yes" >&6; }
33322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33323 $as_echo "no" >&6; }
33327 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33329 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33330 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33332 $as_echo "yes" >&6; }
33333 tst_allow_gethostbyaddr_r="yes"
33335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33336 $as_echo "no" >&6; }
33337 tst_allow_gethostbyaddr_r="no"
33341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33342 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33343 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33344 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33345 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33346 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33348 $as_echo "yes" >&6; }
33350 cat >>confdefs.h <<_ACEOF
33351 #define HAVE_GETHOSTBYADDR_R 1
33355 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33357 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33359 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33361 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33363 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33365 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33369 curl_cv_func_gethostbyaddr_r="yes"
33371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33372 $as_echo "no" >&6; }
33373 curl_cv_func_gethostbyaddr_r="no"
33378 tst_links_gethostbyname="unknown"
33379 tst_proto_gethostbyname="unknown"
33380 tst_compi_gethostbyname="unknown"
33381 tst_allow_gethostbyname="unknown"
33383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33384 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
33385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33386 /* end confdefs.h. */
33389 $curl_includes_winsock2
33390 $curl_includes_netdb
33395 if(0 != gethostbyname(0))
33403 if ac_fn_c_try_link "$LINENO"; then :
33405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33406 $as_echo "yes" >&6; }
33407 tst_links_gethostbyname="yes"
33411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33412 $as_echo "no" >&6; }
33413 tst_links_gethostbyname="no"
33416 rm -f core conftest.err conftest.$ac_objext \
33417 conftest$ac_exeext conftest.$ac_ext
33419 if test "$tst_links_gethostbyname" = "yes"; then
33420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33421 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33423 /* end confdefs.h. */
33425 $curl_includes_winsock2
33426 $curl_includes_netdb
33429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33430 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33433 $as_echo "yes" >&6; }
33434 tst_proto_gethostbyname="yes"
33438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33439 $as_echo "no" >&6; }
33440 tst_proto_gethostbyname="no"
33447 if test "$tst_proto_gethostbyname" = "yes"; then
33448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33449 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
33450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33451 /* end confdefs.h. */
33454 $curl_includes_winsock2
33455 $curl_includes_netdb
33460 if(0 != gethostbyname(0))
33468 if ac_fn_c_try_compile "$LINENO"; then :
33470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33471 $as_echo "yes" >&6; }
33472 tst_compi_gethostbyname="yes"
33476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33477 $as_echo "no" >&6; }
33478 tst_compi_gethostbyname="no"
33481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33484 if test "$tst_compi_gethostbyname" = "yes"; then
33485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33486 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33487 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33489 $as_echo "yes" >&6; }
33490 tst_allow_gethostbyname="yes"
33492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33493 $as_echo "no" >&6; }
33494 tst_allow_gethostbyname="no"
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33499 $as_echo_n "checking if gethostbyname might be used... " >&6; }
33500 if test "$tst_links_gethostbyname" = "yes" &&
33501 test "$tst_proto_gethostbyname" = "yes" &&
33502 test "$tst_compi_gethostbyname" = "yes" &&
33503 test "$tst_allow_gethostbyname" = "yes"; then
33504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33505 $as_echo "yes" >&6; }
33507 cat >>confdefs.h <<_ACEOF
33508 #define HAVE_GETHOSTBYNAME 1
33511 curl_cv_func_gethostbyname="yes"
33513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33514 $as_echo "no" >&6; }
33515 curl_cv_func_gethostbyname="no"
33520 tst_links_gethostbyname_r="unknown"
33521 tst_proto_gethostbyname_r="unknown"
33522 tst_compi_gethostbyname_r="unknown"
33523 tst_allow_gethostbyname_r="unknown"
33524 tst_nargs_gethostbyname_r="unknown"
33526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33527 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33529 /* end confdefs.h. */
33532 #define gethostbyname_r innocuous_gethostbyname_r
33534 # include <limits.h>
33536 # include <assert.h>
33538 #undef gethostbyname_r
33542 char gethostbyname_r ();
33543 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33549 return gethostbyname_r ();
33555 if ac_fn_c_try_link "$LINENO"; then :
33557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33558 $as_echo "yes" >&6; }
33559 tst_links_gethostbyname_r="yes"
33563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33564 $as_echo "no" >&6; }
33565 tst_links_gethostbyname_r="no"
33568 rm -f core conftest.err conftest.$ac_objext \
33569 conftest$ac_exeext conftest.$ac_ext
33571 if test "$tst_links_gethostbyname_r" = "yes"; then
33572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33573 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33575 /* end confdefs.h. */
33577 $curl_includes_netdb
33580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33581 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33584 $as_echo "yes" >&6; }
33585 tst_proto_gethostbyname_r="yes"
33589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33590 $as_echo "no" >&6; }
33591 tst_proto_gethostbyname_r="no"
33598 if test "$tst_proto_gethostbyname_r" = "yes"; then
33599 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33601 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33603 /* end confdefs.h. */
33606 $curl_includes_netdb
33611 if(0 != gethostbyname_r(0, 0, 0))
33619 if ac_fn_c_try_compile "$LINENO"; then :
33621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33622 $as_echo "yes" >&6; }
33623 tst_compi_gethostbyname_r="yes"
33624 tst_nargs_gethostbyname_r="3"
33628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33629 $as_echo "no" >&6; }
33630 tst_compi_gethostbyname_r="no"
33633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33635 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33637 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33639 /* end confdefs.h. */
33642 $curl_includes_netdb
33647 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33655 if ac_fn_c_try_compile "$LINENO"; then :
33657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33658 $as_echo "yes" >&6; }
33659 tst_compi_gethostbyname_r="yes"
33660 tst_nargs_gethostbyname_r="5"
33664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33665 $as_echo "no" >&6; }
33666 tst_compi_gethostbyname_r="no"
33669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33671 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33673 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33675 /* end confdefs.h. */
33678 $curl_includes_netdb
33683 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33691 if ac_fn_c_try_compile "$LINENO"; then :
33693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33694 $as_echo "yes" >&6; }
33695 tst_compi_gethostbyname_r="yes"
33696 tst_nargs_gethostbyname_r="6"
33700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33701 $as_echo "no" >&6; }
33702 tst_compi_gethostbyname_r="no"
33705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33708 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33709 if test "$tst_compi_gethostbyname_r" = "yes"; then
33710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33711 $as_echo "yes" >&6; }
33713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33714 $as_echo "no" >&6; }
33718 if test "$tst_compi_gethostbyname_r" = "yes"; then
33719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33720 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33721 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33723 $as_echo "yes" >&6; }
33724 tst_allow_gethostbyname_r="yes"
33726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33727 $as_echo "no" >&6; }
33728 tst_allow_gethostbyname_r="no"
33732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33733 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33734 if test "$tst_links_gethostbyname_r" = "yes" &&
33735 test "$tst_proto_gethostbyname_r" = "yes" &&
33736 test "$tst_compi_gethostbyname_r" = "yes" &&
33737 test "$tst_allow_gethostbyname_r" = "yes"; then
33738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33739 $as_echo "yes" >&6; }
33741 cat >>confdefs.h <<_ACEOF
33742 #define HAVE_GETHOSTBYNAME_R 1
33746 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33748 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33750 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33752 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33754 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33756 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33760 curl_cv_func_gethostbyname_r="yes"
33762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33763 $as_echo "no" >&6; }
33764 curl_cv_func_gethostbyname_r="no"
33768 curl_preprocess_callconv="\
33769 /* preprocess start */
33770 #ifdef HAVE_WINDOWS_H
33771 # define FUNCALLCONV __stdcall
33773 # define FUNCALLCONV
33775 /* preprocess end */"
33779 tst_links_gethostname="unknown"
33780 tst_proto_gethostname="unknown"
33781 tst_compi_gethostname="unknown"
33782 tst_allow_gethostname="unknown"
33784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33785 $as_echo_n "checking if gethostname can be linked... " >&6; }
33786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33787 /* end confdefs.h. */
33790 $curl_includes_winsock2
33791 $curl_includes_unistd
33796 if(0 != gethostname(0, 0))
33804 if ac_fn_c_try_link "$LINENO"; then :
33806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33807 $as_echo "yes" >&6; }
33808 tst_links_gethostname="yes"
33812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33813 $as_echo "no" >&6; }
33814 tst_links_gethostname="no"
33817 rm -f core conftest.err conftest.$ac_objext \
33818 conftest$ac_exeext conftest.$ac_ext
33820 if test "$tst_links_gethostname" = "yes"; then
33821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33822 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33824 /* end confdefs.h. */
33826 $curl_includes_winsock2
33827 $curl_includes_unistd
33830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33831 $EGREP "gethostname" >/dev/null 2>&1; then :
33833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33834 $as_echo "yes" >&6; }
33835 tst_proto_gethostname="yes"
33839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33840 $as_echo "no" >&6; }
33841 tst_proto_gethostname="no"
33848 if test "$tst_proto_gethostname" = "yes"; then
33849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33850 $as_echo_n "checking if gethostname is compilable... " >&6; }
33851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33852 /* end confdefs.h. */
33855 $curl_includes_winsock2
33856 $curl_includes_unistd
33861 if(0 != gethostname(0, 0))
33869 if ac_fn_c_try_compile "$LINENO"; then :
33871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33872 $as_echo "yes" >&6; }
33873 tst_compi_gethostname="yes"
33877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33878 $as_echo "no" >&6; }
33879 tst_compi_gethostname="no"
33882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33885 if test "$tst_compi_gethostname" = "yes"; then
33886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33887 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33888 tst_gethostname_type_arg2="unknown"
33889 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33890 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33891 if test "$tst_gethostname_type_arg2" = "unknown"; then
33892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33893 /* end confdefs.h. */
33896 $curl_includes_winsock2
33897 $curl_includes_unistd
33898 $curl_preprocess_callconv
33899 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33904 if(0 != gethostname(0, 0))
33912 if ac_fn_c_try_compile "$LINENO"; then :
33914 tst_gethostname_type_arg2="$tst_arg2"
33917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33922 $as_echo "$tst_gethostname_type_arg2" >&6; }
33923 if test "$tst_gethostname_type_arg2" != "unknown"; then
33925 cat >>confdefs.h <<_ACEOF
33926 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33932 if test "$tst_compi_gethostname" = "yes"; then
33933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33934 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33935 if test "x$curl_disallow_gethostname" != "xyes"; then
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33937 $as_echo "yes" >&6; }
33938 tst_allow_gethostname="yes"
33940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33941 $as_echo "no" >&6; }
33942 tst_allow_gethostname="no"
33946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33947 $as_echo_n "checking if gethostname might be used... " >&6; }
33948 if test "$tst_links_gethostname" = "yes" &&
33949 test "$tst_proto_gethostname" = "yes" &&
33950 test "$tst_compi_gethostname" = "yes" &&
33951 test "$tst_allow_gethostname" = "yes"; then
33952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33953 $as_echo "yes" >&6; }
33955 cat >>confdefs.h <<_ACEOF
33956 #define HAVE_GETHOSTNAME 1
33959 curl_cv_func_gethostname="yes"
33961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33962 $as_echo "no" >&6; }
33963 curl_cv_func_gethostname="no"
33968 tst_links_getifaddrs="unknown"
33969 tst_proto_getifaddrs="unknown"
33970 tst_compi_getifaddrs="unknown"
33971 tst_works_getifaddrs="unknown"
33972 tst_allow_getifaddrs="unknown"
33974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33975 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33977 /* end confdefs.h. */
33980 #define getifaddrs innocuous_getifaddrs
33982 # include <limits.h>
33984 # include <assert.h>
33990 char getifaddrs ();
33991 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33997 return getifaddrs ();
34003 if ac_fn_c_try_link "$LINENO"; then :
34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34006 $as_echo "yes" >&6; }
34007 tst_links_getifaddrs="yes"
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34012 $as_echo "no" >&6; }
34013 tst_links_getifaddrs="no"
34016 rm -f core conftest.err conftest.$ac_objext \
34017 conftest$ac_exeext conftest.$ac_ext
34019 if test "$tst_links_getifaddrs" = "yes"; then
34020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
34021 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
34022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34023 /* end confdefs.h. */
34025 $curl_includes_ifaddrs
34028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34029 $EGREP "getifaddrs" >/dev/null 2>&1; then :
34031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34032 $as_echo "yes" >&6; }
34033 tst_proto_getifaddrs="yes"
34037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34038 $as_echo "no" >&6; }
34039 tst_proto_getifaddrs="no"
34046 if test "$tst_proto_getifaddrs" = "yes"; then
34047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
34048 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
34049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34050 /* end confdefs.h. */
34053 $curl_includes_ifaddrs
34058 if(0 != getifaddrs(0))
34066 if ac_fn_c_try_compile "$LINENO"; then :
34068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34069 $as_echo "yes" >&6; }
34070 tst_compi_getifaddrs="yes"
34074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34075 $as_echo "no" >&6; }
34076 tst_compi_getifaddrs="no"
34079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34082 if test "x$cross_compiling" != "xyes" &&
34083 test "$tst_compi_getifaddrs" = "yes"; then
34084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34085 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
34088 old=$LD_LIBRARY_PATH
34089 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34090 export LD_LIBRARY_PATH
34091 if test "$cross_compiling" = yes; then :
34092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34094 as_fn_error $? "cannot run test program while cross compiling
34095 See \`config.log' for more details" "$LINENO" 5; }
34097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34098 /* end confdefs.h. */
34101 $curl_includes_stdlib
34102 $curl_includes_ifaddrs
34107 struct ifaddrs *ifa = 0;
34110 error = getifaddrs(&ifa);
34112 exit(1); /* fail */
34121 if ac_fn_c_try_run "$LINENO"; then :
34122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34123 $as_echo "yes" >&6; }
34124 tst_works_getifaddrs="yes"
34127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34128 $as_echo "no" >&6; }
34129 tst_works_getifaddrs="no"
34132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34133 conftest.$ac_objext conftest.beam conftest.$ac_ext
34136 LD_LIBRARY_PATH=$old # restore
34140 if test "$tst_compi_getifaddrs" = "yes" &&
34141 test "$tst_works_getifaddrs" != "no"; then
34142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34143 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34144 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34146 $as_echo "yes" >&6; }
34147 tst_allow_getifaddrs="yes"
34149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34150 $as_echo "no" >&6; }
34151 tst_allow_getifaddrs="no"
34155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34156 $as_echo_n "checking if getifaddrs might be used... " >&6; }
34157 if test "$tst_links_getifaddrs" = "yes" &&
34158 test "$tst_proto_getifaddrs" = "yes" &&
34159 test "$tst_compi_getifaddrs" = "yes" &&
34160 test "$tst_allow_getifaddrs" = "yes" &&
34161 test "$tst_works_getifaddrs" != "no"; then
34162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34163 $as_echo "yes" >&6; }
34165 cat >>confdefs.h <<_ACEOF
34166 #define HAVE_GETIFADDRS 1
34169 curl_cv_func_getifaddrs="yes"
34171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34172 $as_echo "no" >&6; }
34173 curl_cv_func_getifaddrs="no"
34178 tst_links_getservbyport_r="unknown"
34179 tst_proto_getservbyport_r="unknown"
34180 tst_compi_getservbyport_r="unknown"
34181 tst_allow_getservbyport_r="unknown"
34182 tst_nargs_getservbyport_r="unknown"
34184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34185 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34187 /* end confdefs.h. */
34190 #define getservbyport_r innocuous_getservbyport_r
34192 # include <limits.h>
34194 # include <assert.h>
34196 #undef getservbyport_r
34200 char getservbyport_r ();
34201 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34207 return getservbyport_r ();
34213 if ac_fn_c_try_link "$LINENO"; then :
34215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34216 $as_echo "yes" >&6; }
34217 tst_links_getservbyport_r="yes"
34221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34222 $as_echo "no" >&6; }
34223 tst_links_getservbyport_r="no"
34226 rm -f core conftest.err conftest.$ac_objext \
34227 conftest$ac_exeext conftest.$ac_ext
34229 if test "$tst_links_getservbyport_r" = "yes"; then
34230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34231 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34233 /* end confdefs.h. */
34235 $curl_includes_netdb
34238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34239 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34242 $as_echo "yes" >&6; }
34243 tst_proto_getservbyport_r="yes"
34247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34248 $as_echo "no" >&6; }
34249 tst_proto_getservbyport_r="no"
34256 if test "$tst_proto_getservbyport_r" = "yes"; then
34257 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34259 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34261 /* end confdefs.h. */
34264 $curl_includes_netdb
34269 if(0 != getservbyport_r(0, 0, 0, 0))
34277 if ac_fn_c_try_compile "$LINENO"; then :
34279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34280 $as_echo "yes" >&6; }
34281 tst_compi_getservbyport_r="yes"
34282 tst_nargs_getservbyport_r="4"
34286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34287 $as_echo "no" >&6; }
34288 tst_compi_getservbyport_r="no"
34291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34293 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34295 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34297 /* end confdefs.h. */
34300 $curl_includes_netdb
34305 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34313 if ac_fn_c_try_compile "$LINENO"; then :
34315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34316 $as_echo "yes" >&6; }
34317 tst_compi_getservbyport_r="yes"
34318 tst_nargs_getservbyport_r="5"
34322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34323 $as_echo "no" >&6; }
34324 tst_compi_getservbyport_r="no"
34327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34329 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34331 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34333 /* end confdefs.h. */
34336 $curl_includes_netdb
34341 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34349 if ac_fn_c_try_compile "$LINENO"; then :
34351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34352 $as_echo "yes" >&6; }
34353 tst_compi_getservbyport_r="yes"
34354 tst_nargs_getservbyport_r="6"
34358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34359 $as_echo "no" >&6; }
34360 tst_compi_getservbyport_r="no"
34363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34366 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34367 if test "$tst_compi_getservbyport_r" = "yes"; then
34368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34369 $as_echo "yes" >&6; }
34371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34372 $as_echo "no" >&6; }
34376 if test "$tst_compi_getservbyport_r" = "yes"; then
34377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34378 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34379 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34381 $as_echo "yes" >&6; }
34382 tst_allow_getservbyport_r="yes"
34384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34385 $as_echo "no" >&6; }
34386 tst_allow_getservbyport_r="no"
34390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34391 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
34392 if test "$tst_links_getservbyport_r" = "yes" &&
34393 test "$tst_proto_getservbyport_r" = "yes" &&
34394 test "$tst_compi_getservbyport_r" = "yes" &&
34395 test "$tst_allow_getservbyport_r" = "yes"; then
34396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34397 $as_echo "yes" >&6; }
34399 cat >>confdefs.h <<_ACEOF
34400 #define HAVE_GETSERVBYPORT_R 1
34404 cat >>confdefs.h <<_ACEOF
34405 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34408 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34410 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34414 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34417 curl_cv_func_getservbyport_r="yes"
34419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34420 $as_echo "no" >&6; }
34421 curl_cv_func_getservbyport_r="no"
34425 curl_includes_time="\
34426 /* includes start */
34427 #ifdef HAVE_SYS_TYPES_H
34428 # include <sys/types.h>
34430 #ifdef HAVE_SYS_TIME_H
34431 # include <sys/time.h>
34432 # ifdef TIME_WITH_SYS_TIME
34436 # ifdef HAVE_TIME_H
34440 /* includes end */"
34441 for ac_header in sys/types.h sys/time.h time.h
34443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34444 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34446 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34447 cat >>confdefs.h <<_ACEOF
34448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34458 tst_links_gmtime_r="unknown"
34459 tst_proto_gmtime_r="unknown"
34460 tst_compi_gmtime_r="unknown"
34461 tst_works_gmtime_r="unknown"
34462 tst_allow_gmtime_r="unknown"
34464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34465 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
34466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34467 /* end confdefs.h. */
34470 #define gmtime_r innocuous_gmtime_r
34472 # include <limits.h>
34474 # include <assert.h>
34481 #if defined __stub_gmtime_r || defined __stub___gmtime_r
34487 return gmtime_r ();
34493 if ac_fn_c_try_link "$LINENO"; then :
34495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34496 $as_echo "yes" >&6; }
34497 tst_links_gmtime_r="yes"
34501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34502 $as_echo "no" >&6; }
34503 tst_links_gmtime_r="no"
34506 rm -f core conftest.err conftest.$ac_objext \
34507 conftest$ac_exeext conftest.$ac_ext
34509 if test "$tst_links_gmtime_r" = "yes"; then
34510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34511 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34513 /* end confdefs.h. */
34515 $curl_includes_time
34518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34519 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34522 $as_echo "yes" >&6; }
34523 tst_proto_gmtime_r="yes"
34527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34528 $as_echo "no" >&6; }
34529 tst_proto_gmtime_r="no"
34536 if test "$tst_proto_gmtime_r" = "yes"; then
34537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34538 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
34539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34540 /* end confdefs.h. */
34543 $curl_includes_time
34548 if(0 != gmtime_r(0, 0))
34556 if ac_fn_c_try_compile "$LINENO"; then :
34558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34559 $as_echo "yes" >&6; }
34560 tst_compi_gmtime_r="yes"
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34565 $as_echo "no" >&6; }
34566 tst_compi_gmtime_r="no"
34569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34572 if test "x$cross_compiling" != "xyes" &&
34573 test "$tst_compi_gmtime_r" = "yes"; then
34574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34575 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
34578 old=$LD_LIBRARY_PATH
34579 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34580 export LD_LIBRARY_PATH
34581 if test "$cross_compiling" = yes; then :
34582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34584 as_fn_error $? "cannot run test program while cross compiling
34585 See \`config.log' for more details" "$LINENO" 5; }
34587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34588 /* end confdefs.h. */
34591 $curl_includes_stdlib
34592 $curl_includes_time
34597 time_t local = 1170352587;
34598 struct tm *gmt = 0;
34600 gmt = gmtime_r(&local, &result);
34611 if ac_fn_c_try_run "$LINENO"; then :
34612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34613 $as_echo "yes" >&6; }
34614 tst_works_gmtime_r="yes"
34617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34618 $as_echo "no" >&6; }
34619 tst_works_gmtime_r="no"
34622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34623 conftest.$ac_objext conftest.beam conftest.$ac_ext
34626 LD_LIBRARY_PATH=$old # restore
34630 if test "$tst_compi_gmtime_r" = "yes" &&
34631 test "$tst_works_gmtime_r" != "no"; then
34632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34633 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34634 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34636 $as_echo "yes" >&6; }
34637 tst_allow_gmtime_r="yes"
34639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34640 $as_echo "no" >&6; }
34641 tst_allow_gmtime_r="no"
34645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34646 $as_echo_n "checking if gmtime_r might be used... " >&6; }
34647 if test "$tst_links_gmtime_r" = "yes" &&
34648 test "$tst_proto_gmtime_r" = "yes" &&
34649 test "$tst_compi_gmtime_r" = "yes" &&
34650 test "$tst_allow_gmtime_r" = "yes" &&
34651 test "$tst_works_gmtime_r" != "no"; then
34652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34653 $as_echo "yes" >&6; }
34655 cat >>confdefs.h <<_ACEOF
34656 #define HAVE_GMTIME_R 1
34659 curl_cv_func_gmtime_r="yes"
34661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34662 $as_echo "no" >&6; }
34663 curl_cv_func_gmtime_r="no"
34667 curl_includes_arpa_inet="\
34668 /* includes start */
34669 #ifdef HAVE_SYS_TYPES_H
34670 # include <sys/types.h>
34672 #ifdef HAVE_SYS_SOCKET_H
34673 # include <sys/socket.h>
34675 #ifdef HAVE_NETINET_IN_H
34676 # include <netinet/in.h>
34678 #ifdef HAVE_ARPA_INET_H
34679 # include <arpa/inet.h>
34681 #ifdef HAVE_WINSOCK2_H
34682 #include <winsock2.h>
34683 #include <ws2tcpip.h>
34685 /* includes end */"
34686 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34692 cat >>confdefs.h <<_ACEOF
34693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34703 tst_links_inet_ntoa_r="unknown"
34704 tst_proto_inet_ntoa_r="unknown"
34705 tst_compi_inet_ntoa_r="unknown"
34706 tst_allow_inet_ntoa_r="unknown"
34707 tst_nargs_inet_ntoa_r="unknown"
34709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34710 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34712 /* end confdefs.h. */
34715 #define inet_ntoa_r innocuous_inet_ntoa_r
34717 # include <limits.h>
34719 # include <assert.h>
34725 char inet_ntoa_r ();
34726 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34732 return inet_ntoa_r ();
34738 if ac_fn_c_try_link "$LINENO"; then :
34740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34741 $as_echo "yes" >&6; }
34742 tst_links_inet_ntoa_r="yes"
34746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34747 $as_echo "no" >&6; }
34748 tst_links_inet_ntoa_r="no"
34751 rm -f core conftest.err conftest.$ac_objext \
34752 conftest$ac_exeext conftest.$ac_ext
34754 if test "$tst_links_inet_ntoa_r" = "yes"; then
34755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34756 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34758 /* end confdefs.h. */
34760 $curl_includes_arpa_inet
34763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34764 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34767 $as_echo "yes" >&6; }
34768 tst_proto_inet_ntoa_r="yes"
34772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34773 $as_echo "no" >&6; }
34774 tst_proto_inet_ntoa_r="no"
34781 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34782 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34784 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34786 /* end confdefs.h. */
34789 $curl_includes_arpa_inet
34794 struct in_addr addr;
34795 if(0 != inet_ntoa_r(addr, 0))
34803 if ac_fn_c_try_compile "$LINENO"; then :
34805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34806 $as_echo "yes" >&6; }
34807 tst_compi_inet_ntoa_r="yes"
34808 tst_nargs_inet_ntoa_r="2"
34812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34813 $as_echo "no" >&6; }
34814 tst_compi_inet_ntoa_r="no"
34817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34819 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34821 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34823 /* end confdefs.h. */
34826 $curl_includes_arpa_inet
34831 struct in_addr addr;
34832 if(0 != inet_ntoa_r(addr, 0, 0))
34840 if ac_fn_c_try_compile "$LINENO"; then :
34842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34843 $as_echo "yes" >&6; }
34844 tst_compi_inet_ntoa_r="yes"
34845 tst_nargs_inet_ntoa_r="3"
34849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34850 $as_echo "no" >&6; }
34851 tst_compi_inet_ntoa_r="no"
34854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34857 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34858 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34860 $as_echo "yes" >&6; }
34862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34863 $as_echo "no" >&6; }
34867 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34869 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34870 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34872 $as_echo "yes" >&6; }
34873 tst_allow_inet_ntoa_r="yes"
34875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34876 $as_echo "no" >&6; }
34877 tst_allow_inet_ntoa_r="no"
34881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34882 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34883 if test "$tst_links_inet_ntoa_r" = "yes" &&
34884 test "$tst_proto_inet_ntoa_r" = "yes" &&
34885 test "$tst_compi_inet_ntoa_r" = "yes" &&
34886 test "$tst_allow_inet_ntoa_r" = "yes"; then
34887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34888 $as_echo "yes" >&6; }
34890 cat >>confdefs.h <<_ACEOF
34891 #define HAVE_INET_NTOA_R 1
34895 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34897 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34899 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34901 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34905 curl_cv_func_inet_ntoa_r="yes"
34907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34908 $as_echo "no" >&6; }
34909 curl_cv_func_inet_ntoa_r="no"
34914 tst_links_inet_ntop="unknown"
34915 tst_proto_inet_ntop="unknown"
34916 tst_compi_inet_ntop="unknown"
34917 tst_works_inet_ntop="unknown"
34918 tst_allow_inet_ntop="unknown"
34920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34921 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34923 /* end confdefs.h. */
34926 #define inet_ntop innocuous_inet_ntop
34928 # include <limits.h>
34930 # include <assert.h>
34937 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34943 return inet_ntop ();
34949 if ac_fn_c_try_link "$LINENO"; then :
34951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34952 $as_echo "yes" >&6; }
34953 tst_links_inet_ntop="yes"
34957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34958 $as_echo "no" >&6; }
34959 tst_links_inet_ntop="no"
34962 rm -f core conftest.err conftest.$ac_objext \
34963 conftest$ac_exeext conftest.$ac_ext
34965 if test "$tst_links_inet_ntop" = "yes"; then
34966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34967 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34969 /* end confdefs.h. */
34971 $curl_includes_arpa_inet
34974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34975 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34978 $as_echo "yes" >&6; }
34979 tst_proto_inet_ntop="yes"
34983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34984 $as_echo "no" >&6; }
34985 tst_proto_inet_ntop="no"
34992 if test "$tst_proto_inet_ntop" = "yes"; then
34993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34994 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34996 /* end confdefs.h. */
34999 $curl_includes_arpa_inet
35004 if(0 != inet_ntop(0, 0, 0, 0))
35012 if ac_fn_c_try_compile "$LINENO"; then :
35014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35015 $as_echo "yes" >&6; }
35016 tst_compi_inet_ntop="yes"
35020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35021 $as_echo "no" >&6; }
35022 tst_compi_inet_ntop="no"
35025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35028 if test "x$cross_compiling" != "xyes" &&
35029 test "$tst_compi_inet_ntop" = "yes"; then
35030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
35031 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
35034 old=$LD_LIBRARY_PATH
35035 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35036 export LD_LIBRARY_PATH
35037 if test "$cross_compiling" = yes; then :
35038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35040 as_fn_error $? "cannot run test program while cross compiling
35041 See \`config.log' for more details" "$LINENO" 5; }
35043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35044 /* end confdefs.h. */
35047 $curl_includes_stdlib
35048 $curl_includes_arpa_inet
35049 $curl_includes_string
35054 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
35055 char ipv4res[sizeof "255.255.255.255"];
35056 unsigned char ipv6a[26];
35057 unsigned char ipv4a[5];
35068 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
35070 exit(1); /* fail */
35071 if(ipv4ptr != ipv4res)
35072 exit(1); /* fail */
35074 exit(1); /* fail */
35075 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35076 exit(1); /* fail */
35079 memset(ipv6a, 0, sizeof(ipv6a));
35092 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35094 exit(1); /* fail */
35095 if(ipv6ptr != ipv6res)
35096 exit(1); /* fail */
35098 exit(1); /* fail */
35099 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35100 exit(1); /* fail */
35109 if ac_fn_c_try_run "$LINENO"; then :
35110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35111 $as_echo "yes" >&6; }
35112 tst_works_inet_ntop="yes"
35115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35116 $as_echo "no" >&6; }
35117 tst_works_inet_ntop="no"
35120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35121 conftest.$ac_objext conftest.beam conftest.$ac_ext
35124 LD_LIBRARY_PATH=$old # restore
35128 if test "$tst_compi_inet_ntop" = "yes" &&
35129 test "$tst_works_inet_ntop" != "no"; then
35130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35131 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35132 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35134 $as_echo "yes" >&6; }
35135 tst_allow_inet_ntop="yes"
35137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35138 $as_echo "no" >&6; }
35139 tst_allow_inet_ntop="no"
35143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35144 $as_echo_n "checking if inet_ntop might be used... " >&6; }
35145 if test "$tst_links_inet_ntop" = "yes" &&
35146 test "$tst_proto_inet_ntop" = "yes" &&
35147 test "$tst_compi_inet_ntop" = "yes" &&
35148 test "$tst_allow_inet_ntop" = "yes" &&
35149 test "$tst_works_inet_ntop" != "no"; then
35150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35151 $as_echo "yes" >&6; }
35153 cat >>confdefs.h <<_ACEOF
35154 #define HAVE_INET_NTOP 1
35157 curl_cv_func_inet_ntop="yes"
35159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35160 $as_echo "no" >&6; }
35161 curl_cv_func_inet_ntop="no"
35166 tst_links_inet_pton="unknown"
35167 tst_proto_inet_pton="unknown"
35168 tst_compi_inet_pton="unknown"
35169 tst_works_inet_pton="unknown"
35170 tst_allow_inet_pton="unknown"
35172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35173 $as_echo_n "checking if inet_pton can be linked... " >&6; }
35174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35175 /* end confdefs.h. */
35178 #define inet_pton innocuous_inet_pton
35180 # include <limits.h>
35182 # include <assert.h>
35189 #if defined __stub_inet_pton || defined __stub___inet_pton
35195 return inet_pton ();
35201 if ac_fn_c_try_link "$LINENO"; then :
35203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35204 $as_echo "yes" >&6; }
35205 tst_links_inet_pton="yes"
35209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35210 $as_echo "no" >&6; }
35211 tst_links_inet_pton="no"
35214 rm -f core conftest.err conftest.$ac_objext \
35215 conftest$ac_exeext conftest.$ac_ext
35217 if test "$tst_links_inet_pton" = "yes"; then
35218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35219 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
35220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35221 /* end confdefs.h. */
35223 $curl_includes_arpa_inet
35226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35227 $EGREP "inet_pton" >/dev/null 2>&1; then :
35229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35230 $as_echo "yes" >&6; }
35231 tst_proto_inet_pton="yes"
35235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35236 $as_echo "no" >&6; }
35237 tst_proto_inet_pton="no"
35244 if test "$tst_proto_inet_pton" = "yes"; then
35245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35246 $as_echo_n "checking if inet_pton is compilable... " >&6; }
35247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35248 /* end confdefs.h. */
35251 $curl_includes_arpa_inet
35256 if(0 != inet_pton(0, 0, 0))
35264 if ac_fn_c_try_compile "$LINENO"; then :
35266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35267 $as_echo "yes" >&6; }
35268 tst_compi_inet_pton="yes"
35272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35273 $as_echo "no" >&6; }
35274 tst_compi_inet_pton="no"
35277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35280 if test "x$cross_compiling" != "xyes" &&
35281 test "$tst_compi_inet_pton" = "yes"; then
35282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35283 $as_echo_n "checking if inet_pton seems to work... " >&6; }
35286 old=$LD_LIBRARY_PATH
35287 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35288 export LD_LIBRARY_PATH
35289 if test "$cross_compiling" = yes; then :
35290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35292 as_fn_error $? "cannot run test program while cross compiling
35293 See \`config.log' for more details" "$LINENO" 5; }
35295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35296 /* end confdefs.h. */
35299 $curl_includes_stdlib
35300 $curl_includes_arpa_inet
35301 $curl_includes_string
35306 unsigned char ipv6a[16+1];
35307 unsigned char ipv4a[4+1];
35308 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35309 const char *ipv4src = "192.168.100.1";
35311 memset(ipv4a, 1, sizeof(ipv4a));
35312 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35313 exit(1); /* fail */
35315 if( (ipv4a[0] != 0xc0) ||
35316 (ipv4a[1] != 0xa8) ||
35317 (ipv4a[2] != 0x64) ||
35318 (ipv4a[3] != 0x01) ||
35319 (ipv4a[4] != 0x01) )
35320 exit(1); /* fail */
35322 memset(ipv6a, 1, sizeof(ipv6a));
35323 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35324 exit(1); /* fail */
35326 if( (ipv6a[0] != 0xfe) ||
35327 (ipv6a[1] != 0x80) ||
35328 (ipv6a[8] != 0x02) ||
35329 (ipv6a[9] != 0x14) ||
35330 (ipv6a[10] != 0x4f) ||
35331 (ipv6a[11] != 0xff) ||
35332 (ipv6a[12] != 0xfe) ||
35333 (ipv6a[13] != 0x0b) ||
35334 (ipv6a[14] != 0x76) ||
35335 (ipv6a[15] != 0xc8) ||
35336 (ipv6a[16] != 0x01) )
35337 exit(1); /* fail */
35339 if( (ipv6a[2] != 0x0) ||
35340 (ipv6a[3] != 0x0) ||
35341 (ipv6a[4] != 0x0) ||
35342 (ipv6a[5] != 0x0) ||
35343 (ipv6a[6] != 0x0) ||
35344 (ipv6a[7] != 0x0) )
35345 exit(1); /* fail */
35354 if ac_fn_c_try_run "$LINENO"; then :
35355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35356 $as_echo "yes" >&6; }
35357 tst_works_inet_pton="yes"
35360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35361 $as_echo "no" >&6; }
35362 tst_works_inet_pton="no"
35365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35366 conftest.$ac_objext conftest.beam conftest.$ac_ext
35369 LD_LIBRARY_PATH=$old # restore
35373 if test "$tst_compi_inet_pton" = "yes" &&
35374 test "$tst_works_inet_pton" != "no"; then
35375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35376 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
35377 if test "x$curl_disallow_inet_pton" != "xyes"; then
35378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35379 $as_echo "yes" >&6; }
35380 tst_allow_inet_pton="yes"
35382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35383 $as_echo "no" >&6; }
35384 tst_allow_inet_pton="no"
35388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35389 $as_echo_n "checking if inet_pton might be used... " >&6; }
35390 if test "$tst_links_inet_pton" = "yes" &&
35391 test "$tst_proto_inet_pton" = "yes" &&
35392 test "$tst_compi_inet_pton" = "yes" &&
35393 test "$tst_allow_inet_pton" = "yes" &&
35394 test "$tst_works_inet_pton" != "no"; then
35395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35396 $as_echo "yes" >&6; }
35398 cat >>confdefs.h <<_ACEOF
35399 #define HAVE_INET_PTON 1
35402 curl_cv_func_inet_pton="yes"
35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35405 $as_echo "no" >&6; }
35406 curl_cv_func_inet_pton="no"
35410 curl_includes_stropts="\
35411 /* includes start */
35412 #ifdef HAVE_SYS_TYPES_H
35413 # include <sys/types.h>
35415 #ifdef HAVE_UNISTD_H
35416 # include <unistd.h>
35418 #ifdef HAVE_SYS_SOCKET_H
35419 # include <sys/socket.h>
35421 #ifdef HAVE_SYS_IOCTL_H
35422 # include <sys/ioctl.h>
35424 #ifdef HAVE_STROPTS_H
35425 # include <stropts.h>
35427 /* includes end */"
35428 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35431 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35434 cat >>confdefs.h <<_ACEOF
35435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35445 tst_links_ioctl="unknown"
35446 tst_proto_ioctl="unknown"
35447 tst_compi_ioctl="unknown"
35448 tst_allow_ioctl="unknown"
35450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35451 $as_echo_n "checking if ioctl can be linked... " >&6; }
35452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35453 /* end confdefs.h. */
35456 #define ioctl innocuous_ioctl
35458 # include <limits.h>
35460 # include <assert.h>
35467 #if defined __stub_ioctl || defined __stub___ioctl
35479 if ac_fn_c_try_link "$LINENO"; then :
35481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35482 $as_echo "yes" >&6; }
35483 tst_links_ioctl="yes"
35487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35488 $as_echo "no" >&6; }
35489 tst_links_ioctl="no"
35492 rm -f core conftest.err conftest.$ac_objext \
35493 conftest$ac_exeext conftest.$ac_ext
35495 if test "$tst_links_ioctl" = "yes"; then
35496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35497 $as_echo_n "checking if ioctl is prototyped... " >&6; }
35498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35499 /* end confdefs.h. */
35501 $curl_includes_stropts
35504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35505 $EGREP "ioctl" >/dev/null 2>&1; then :
35507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35508 $as_echo "yes" >&6; }
35509 tst_proto_ioctl="yes"
35513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35514 $as_echo "no" >&6; }
35515 tst_proto_ioctl="no"
35522 if test "$tst_proto_ioctl" = "yes"; then
35523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35524 $as_echo_n "checking if ioctl is compilable... " >&6; }
35525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35526 /* end confdefs.h. */
35529 $curl_includes_stropts
35534 if(0 != ioctl(0, 0, 0))
35542 if ac_fn_c_try_compile "$LINENO"; then :
35544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35545 $as_echo "yes" >&6; }
35546 tst_compi_ioctl="yes"
35550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35551 $as_echo "no" >&6; }
35552 tst_compi_ioctl="no"
35555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35558 if test "$tst_compi_ioctl" = "yes"; then
35559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35560 $as_echo_n "checking if ioctl usage allowed... " >&6; }
35561 if test "x$curl_disallow_ioctl" != "xyes"; then
35562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35563 $as_echo "yes" >&6; }
35564 tst_allow_ioctl="yes"
35566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35567 $as_echo "no" >&6; }
35568 tst_allow_ioctl="no"
35572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35573 $as_echo_n "checking if ioctl might be used... " >&6; }
35574 if test "$tst_links_ioctl" = "yes" &&
35575 test "$tst_proto_ioctl" = "yes" &&
35576 test "$tst_compi_ioctl" = "yes" &&
35577 test "$tst_allow_ioctl" = "yes"; then
35578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35579 $as_echo "yes" >&6; }
35581 cat >>confdefs.h <<_ACEOF
35582 #define HAVE_IOCTL 1
35585 curl_cv_func_ioctl="yes"
35588 tst_compi_ioctl_fionbio="unknown"
35589 tst_allow_ioctl_fionbio="unknown"
35591 if test "$curl_cv_func_ioctl" = "yes"; then
35592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35593 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35595 /* end confdefs.h. */
35598 $curl_includes_stropts
35604 if(0 != ioctl(0, FIONBIO, &flags))
35612 if ac_fn_c_try_compile "$LINENO"; then :
35614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35615 $as_echo "yes" >&6; }
35616 tst_compi_ioctl_fionbio="yes"
35620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35621 $as_echo "no" >&6; }
35622 tst_compi_ioctl_fionbio="no"
35625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35628 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35630 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35631 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35633 $as_echo "yes" >&6; }
35634 tst_allow_ioctl_fionbio="yes"
35636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35637 $as_echo "no" >&6; }
35638 tst_allow_ioctl_fionbio="no"
35642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35643 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35644 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35645 test "$tst_allow_ioctl_fionbio" = "yes"; then
35646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35647 $as_echo "yes" >&6; }
35649 cat >>confdefs.h <<_ACEOF
35650 #define HAVE_IOCTL_FIONBIO 1
35653 curl_cv_func_ioctl_fionbio="yes"
35655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35656 $as_echo "no" >&6; }
35657 curl_cv_func_ioctl_fionbio="no"
35662 tst_compi_ioctl_siocgifaddr="unknown"
35663 tst_allow_ioctl_siocgifaddr="unknown"
35665 if test "$curl_cv_func_ioctl" = "yes"; then
35666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35667 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35669 /* end confdefs.h. */
35672 $curl_includes_stropts
35673 #include <net/if.h>
35679 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35687 if ac_fn_c_try_compile "$LINENO"; then :
35689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35690 $as_echo "yes" >&6; }
35691 tst_compi_ioctl_siocgifaddr="yes"
35695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35696 $as_echo "no" >&6; }
35697 tst_compi_ioctl_siocgifaddr="no"
35700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35703 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35705 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35706 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35708 $as_echo "yes" >&6; }
35709 tst_allow_ioctl_siocgifaddr="yes"
35711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35712 $as_echo "no" >&6; }
35713 tst_allow_ioctl_siocgifaddr="no"
35717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35718 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35719 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35720 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35722 $as_echo "yes" >&6; }
35724 cat >>confdefs.h <<_ACEOF
35725 #define HAVE_IOCTL_SIOCGIFADDR 1
35728 curl_cv_func_ioctl_siocgifaddr="yes"
35730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35731 $as_echo "no" >&6; }
35732 curl_cv_func_ioctl_siocgifaddr="no"
35736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35737 $as_echo "no" >&6; }
35738 curl_cv_func_ioctl="no"
35743 tst_links_ioctlsocket="unknown"
35744 tst_proto_ioctlsocket="unknown"
35745 tst_compi_ioctlsocket="unknown"
35746 tst_allow_ioctlsocket="unknown"
35748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35749 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35751 /* end confdefs.h. */
35754 $curl_includes_winsock2
35759 if(0 != ioctlsocket(0, 0, 0))
35767 if ac_fn_c_try_link "$LINENO"; then :
35769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35770 $as_echo "yes" >&6; }
35771 tst_links_ioctlsocket="yes"
35775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35776 $as_echo "no" >&6; }
35777 tst_links_ioctlsocket="no"
35780 rm -f core conftest.err conftest.$ac_objext \
35781 conftest$ac_exeext conftest.$ac_ext
35783 if test "$tst_links_ioctlsocket" = "yes"; then
35784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35785 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35787 /* end confdefs.h. */
35789 $curl_includes_winsock2
35792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35793 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35796 $as_echo "yes" >&6; }
35797 tst_proto_ioctlsocket="yes"
35801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35802 $as_echo "no" >&6; }
35803 tst_proto_ioctlsocket="no"
35810 if test "$tst_proto_ioctlsocket" = "yes"; then
35811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35812 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35814 /* end confdefs.h. */
35817 $curl_includes_winsock2
35822 if(0 != ioctlsocket(0, 0, 0))
35830 if ac_fn_c_try_compile "$LINENO"; then :
35832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35833 $as_echo "yes" >&6; }
35834 tst_compi_ioctlsocket="yes"
35838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35839 $as_echo "no" >&6; }
35840 tst_compi_ioctlsocket="no"
35843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35846 if test "$tst_compi_ioctlsocket" = "yes"; then
35847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35848 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35849 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35851 $as_echo "yes" >&6; }
35852 tst_allow_ioctlsocket="yes"
35854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35855 $as_echo "no" >&6; }
35856 tst_allow_ioctlsocket="no"
35860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35861 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35862 if test "$tst_links_ioctlsocket" = "yes" &&
35863 test "$tst_proto_ioctlsocket" = "yes" &&
35864 test "$tst_compi_ioctlsocket" = "yes" &&
35865 test "$tst_allow_ioctlsocket" = "yes"; then
35866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35867 $as_echo "yes" >&6; }
35869 cat >>confdefs.h <<_ACEOF
35870 #define HAVE_IOCTLSOCKET 1
35873 curl_cv_func_ioctlsocket="yes"
35876 tst_compi_ioctlsocket_fionbio="unknown"
35877 tst_allow_ioctlsocket_fionbio="unknown"
35879 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35881 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35883 /* end confdefs.h. */
35886 $curl_includes_winsock2
35892 if(0 != ioctlsocket(0, FIONBIO, &flags))
35900 if ac_fn_c_try_compile "$LINENO"; then :
35902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35903 $as_echo "yes" >&6; }
35904 tst_compi_ioctlsocket_fionbio="yes"
35908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35909 $as_echo "no" >&6; }
35910 tst_compi_ioctlsocket_fionbio="no"
35913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35916 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35918 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35919 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35921 $as_echo "yes" >&6; }
35922 tst_allow_ioctlsocket_fionbio="yes"
35924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35925 $as_echo "no" >&6; }
35926 tst_allow_ioctlsocket_fionbio="no"
35930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35931 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35932 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35933 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35935 $as_echo "yes" >&6; }
35937 cat >>confdefs.h <<_ACEOF
35938 #define HAVE_IOCTLSOCKET_FIONBIO 1
35941 curl_cv_func_ioctlsocket_fionbio="yes"
35943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35944 $as_echo "no" >&6; }
35945 curl_cv_func_ioctlsocket_fionbio="no"
35949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35950 $as_echo "no" >&6; }
35951 curl_cv_func_ioctlsocket="no"
35956 tst_links_ioctlsocket_camel="unknown"
35957 tst_proto_ioctlsocket_camel="unknown"
35958 tst_compi_ioctlsocket_camel="unknown"
35959 tst_allow_ioctlsocket_camel="unknown"
35961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35962 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35964 /* end confdefs.h. */
35967 #define IoctlSocket innocuous_IoctlSocket
35969 # include <limits.h>
35971 # include <assert.h>
35977 char IoctlSocket ();
35978 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35984 return IoctlSocket ();
35990 if ac_fn_c_try_link "$LINENO"; then :
35992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35993 $as_echo "yes" >&6; }
35994 tst_links_ioctlsocket_camel="yes"
35998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35999 $as_echo "no" >&6; }
36000 tst_links_ioctlsocket_camel="no"
36003 rm -f core conftest.err conftest.$ac_objext \
36004 conftest$ac_exeext conftest.$ac_ext
36006 if test "$tst_links_ioctlsocket_camel" = "yes"; then
36007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
36008 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
36009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36010 /* end confdefs.h. */
36012 $curl_includes_stropts
36015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36016 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
36018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36019 $as_echo "yes" >&6; }
36020 tst_proto_ioctlsocket_camel="yes"
36024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36025 $as_echo "no" >&6; }
36026 tst_proto_ioctlsocket_camel="no"
36033 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
36034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
36035 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
36036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36037 /* end confdefs.h. */
36040 $curl_includes_stropts
36045 if(0 != IoctlSocket(0, 0, 0))
36053 if ac_fn_c_try_compile "$LINENO"; then :
36055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36056 $as_echo "yes" >&6; }
36057 tst_compi_ioctlsocket_camel="yes"
36061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36062 $as_echo "no" >&6; }
36063 tst_compi_ioctlsocket_camel="no"
36066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36069 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
36070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
36071 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
36072 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
36073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36074 $as_echo "yes" >&6; }
36075 tst_allow_ioctlsocket_camel="yes"
36077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36078 $as_echo "no" >&6; }
36079 tst_allow_ioctlsocket_camel="no"
36083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36084 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
36085 if test "$tst_links_ioctlsocket_camel" = "yes" &&
36086 test "$tst_proto_ioctlsocket_camel" = "yes" &&
36087 test "$tst_compi_ioctlsocket_camel" = "yes" &&
36088 test "$tst_allow_ioctlsocket_camel" = "yes"; then
36089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36090 $as_echo "yes" >&6; }
36092 cat >>confdefs.h <<_ACEOF
36093 #define HAVE_IOCTLSOCKET_CAMEL 1
36096 curl_cv_func_ioctlsocket_camel="yes"
36099 tst_compi_ioctlsocket_camel_fionbio="unknown"
36100 tst_allow_ioctlsocket_camel_fionbio="unknown"
36102 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36104 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36106 /* end confdefs.h. */
36109 $curl_includes_stropts
36115 if(0 != ioctlsocket(0, FIONBIO, &flags))
36123 if ac_fn_c_try_compile "$LINENO"; then :
36125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36126 $as_echo "yes" >&6; }
36127 tst_compi_ioctlsocket_camel_fionbio="yes"
36131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36132 $as_echo "no" >&6; }
36133 tst_compi_ioctlsocket_camel_fionbio="no"
36136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36139 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36141 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36142 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36144 $as_echo "yes" >&6; }
36145 tst_allow_ioctlsocket_camel_fionbio="yes"
36147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36148 $as_echo "no" >&6; }
36149 tst_allow_ioctlsocket_camel_fionbio="no"
36153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36154 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36155 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36156 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36158 $as_echo "yes" >&6; }
36160 cat >>confdefs.h <<_ACEOF
36161 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36164 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36167 $as_echo "no" >&6; }
36168 curl_cv_func_ioctlsocket_camel_fionbio="no"
36172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36173 $as_echo "no" >&6; }
36174 curl_cv_func_ioctlsocket_camel="no"
36179 tst_links_localtime_r="unknown"
36180 tst_proto_localtime_r="unknown"
36181 tst_compi_localtime_r="unknown"
36182 tst_works_localtime_r="unknown"
36183 tst_allow_localtime_r="unknown"
36185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36186 $as_echo_n "checking if localtime_r can be linked... " >&6; }
36187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36188 /* end confdefs.h. */
36191 #define localtime_r innocuous_localtime_r
36193 # include <limits.h>
36195 # include <assert.h>
36201 char localtime_r ();
36202 #if defined __stub_localtime_r || defined __stub___localtime_r
36208 return localtime_r ();
36214 if ac_fn_c_try_link "$LINENO"; then :
36216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36217 $as_echo "yes" >&6; }
36218 tst_links_localtime_r="yes"
36222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36223 $as_echo "no" >&6; }
36224 tst_links_localtime_r="no"
36227 rm -f core conftest.err conftest.$ac_objext \
36228 conftest$ac_exeext conftest.$ac_ext
36230 if test "$tst_links_localtime_r" = "yes"; then
36231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36232 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
36233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36234 /* end confdefs.h. */
36236 $curl_includes_time
36239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36240 $EGREP "localtime_r" >/dev/null 2>&1; then :
36242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36243 $as_echo "yes" >&6; }
36244 tst_proto_localtime_r="yes"
36248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36249 $as_echo "no" >&6; }
36250 tst_proto_localtime_r="no"
36257 if test "$tst_proto_localtime_r" = "yes"; then
36258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36259 $as_echo_n "checking if localtime_r is compilable... " >&6; }
36260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36261 /* end confdefs.h. */
36264 $curl_includes_time
36269 if(0 != localtime_r(0, 0))
36277 if ac_fn_c_try_compile "$LINENO"; then :
36279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36280 $as_echo "yes" >&6; }
36281 tst_compi_localtime_r="yes"
36285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36286 $as_echo "no" >&6; }
36287 tst_compi_localtime_r="no"
36290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36293 if test "x$cross_compiling" != "xyes" &&
36294 test "$tst_compi_localtime_r" = "yes"; then
36295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36296 $as_echo_n "checking if localtime_r seems to work... " >&6; }
36299 old=$LD_LIBRARY_PATH
36300 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36301 export LD_LIBRARY_PATH
36302 if test "$cross_compiling" = yes; then :
36303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36305 as_fn_error $? "cannot run test program while cross compiling
36306 See \`config.log' for more details" "$LINENO" 5; }
36308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36309 /* end confdefs.h. */
36312 $curl_includes_stdlib
36313 $curl_includes_time
36318 time_t clock = 1170352587;
36319 struct tm *tmp = 0;
36321 tmp = localtime_r(&clock, &result);
36332 if ac_fn_c_try_run "$LINENO"; then :
36333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36334 $as_echo "yes" >&6; }
36335 tst_works_localtime_r="yes"
36338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36339 $as_echo "no" >&6; }
36340 tst_works_localtime_r="no"
36343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36344 conftest.$ac_objext conftest.beam conftest.$ac_ext
36347 LD_LIBRARY_PATH=$old # restore
36351 if test "$tst_compi_localtime_r" = "yes" &&
36352 test "$tst_works_localtime_r" != "no"; then
36353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36354 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
36355 if test "x$curl_disallow_localtime_r" != "xyes"; then
36356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36357 $as_echo "yes" >&6; }
36358 tst_allow_localtime_r="yes"
36360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36361 $as_echo "no" >&6; }
36362 tst_allow_localtime_r="no"
36366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36367 $as_echo_n "checking if localtime_r might be used... " >&6; }
36368 if test "$tst_links_localtime_r" = "yes" &&
36369 test "$tst_proto_localtime_r" = "yes" &&
36370 test "$tst_compi_localtime_r" = "yes" &&
36371 test "$tst_allow_localtime_r" = "yes" &&
36372 test "$tst_works_localtime_r" != "no"; then
36373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36374 $as_echo "yes" >&6; }
36376 cat >>confdefs.h <<_ACEOF
36377 #define HAVE_LOCALTIME_R 1
36380 curl_cv_func_localtime_r="yes"
36382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36383 $as_echo "no" >&6; }
36384 curl_cv_func_localtime_r="no"
36389 tst_links_memrchr="unknown"
36390 tst_macro_memrchr="unknown"
36391 tst_proto_memrchr="unknown"
36392 tst_compi_memrchr="unknown"
36393 tst_allow_memrchr="unknown"
36395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36396 $as_echo_n "checking if memrchr can be linked... " >&6; }
36397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36398 /* end confdefs.h. */
36401 #define memrchr innocuous_memrchr
36403 # include <limits.h>
36405 # include <assert.h>
36412 #if defined __stub_memrchr || defined __stub___memrchr
36424 if ac_fn_c_try_link "$LINENO"; then :
36426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36427 $as_echo "yes" >&6; }
36428 tst_links_memrchr="yes"
36432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36433 $as_echo "no" >&6; }
36434 tst_links_memrchr="no"
36437 rm -f core conftest.err conftest.$ac_objext \
36438 conftest$ac_exeext conftest.$ac_ext
36440 if test "$tst_links_memrchr" = "no"; then
36441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36442 $as_echo_n "checking if memrchr seems a macro... " >&6; }
36443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36444 /* end confdefs.h. */
36447 $curl_includes_string
36452 if(0 != memrchr(0, 0, 0))
36460 if ac_fn_c_try_link "$LINENO"; then :
36462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36463 $as_echo "yes" >&6; }
36464 tst_macro_memrchr="yes"
36468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36469 $as_echo "no" >&6; }
36470 tst_macro_memrchr="no"
36473 rm -f core conftest.err conftest.$ac_objext \
36474 conftest$ac_exeext conftest.$ac_ext
36477 if test "$tst_links_memrchr" = "yes"; then
36478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36479 $as_echo_n "checking if memrchr is prototyped... " >&6; }
36480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36481 /* end confdefs.h. */
36483 $curl_includes_string
36486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36487 $EGREP "memrchr" >/dev/null 2>&1; then :
36489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36490 $as_echo "yes" >&6; }
36491 tst_proto_memrchr="yes"
36495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36496 $as_echo "no" >&6; }
36497 tst_proto_memrchr="no"
36504 if test "$tst_proto_memrchr" = "yes" ||
36505 test "$tst_macro_memrchr" = "yes"; then
36506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36507 $as_echo_n "checking if memrchr is compilable... " >&6; }
36508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36509 /* end confdefs.h. */
36512 $curl_includes_string
36517 if(0 != memrchr(0, 0, 0))
36525 if ac_fn_c_try_compile "$LINENO"; then :
36527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36528 $as_echo "yes" >&6; }
36529 tst_compi_memrchr="yes"
36533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36534 $as_echo "no" >&6; }
36535 tst_compi_memrchr="no"
36538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36541 if test "$tst_compi_memrchr" = "yes"; then
36542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36543 $as_echo_n "checking if memrchr usage allowed... " >&6; }
36544 if test "x$curl_disallow_memrchr" != "xyes"; then
36545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36546 $as_echo "yes" >&6; }
36547 tst_allow_memrchr="yes"
36549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36550 $as_echo "no" >&6; }
36551 tst_allow_memrchr="no"
36555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36556 $as_echo_n "checking if memrchr might be used... " >&6; }
36557 if (test "$tst_proto_memrchr" = "yes" ||
36558 test "$tst_macro_memrchr" = "yes") &&
36559 test "$tst_compi_memrchr" = "yes" &&
36560 test "$tst_allow_memrchr" = "yes"; then
36561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36562 $as_echo "yes" >&6; }
36564 cat >>confdefs.h <<_ACEOF
36565 #define HAVE_MEMRCHR 1
36568 curl_cv_func_memrchr="yes"
36570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36571 $as_echo "no" >&6; }
36572 curl_cv_func_memrchr="no"
36577 tst_links_poll="unknown"
36578 tst_proto_poll="unknown"
36579 tst_compi_poll="unknown"
36580 tst_works_poll="unknown"
36581 tst_allow_poll="unknown"
36585 curl_disallow_poll="yes"
36586 tst_compi_poll="no"
36590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36591 $as_echo_n "checking if poll can be linked... " >&6; }
36592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36593 /* end confdefs.h. */
36596 $curl_includes_poll
36601 if(0 != poll(0, 0, 0))
36609 if ac_fn_c_try_link "$LINENO"; then :
36611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36612 $as_echo "yes" >&6; }
36613 tst_links_poll="yes"
36617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36618 $as_echo "no" >&6; }
36619 tst_links_poll="no"
36622 rm -f core conftest.err conftest.$ac_objext \
36623 conftest$ac_exeext conftest.$ac_ext
36625 if test "$tst_links_poll" = "yes"; then
36626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36627 $as_echo_n "checking if poll is prototyped... " >&6; }
36628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36629 /* end confdefs.h. */
36631 $curl_includes_poll
36634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36635 $EGREP "poll" >/dev/null 2>&1; then :
36637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36638 $as_echo "yes" >&6; }
36639 tst_proto_poll="yes"
36643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36644 $as_echo "no" >&6; }
36645 tst_proto_poll="no"
36652 if test "$tst_proto_poll" = "yes"; then
36653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36654 $as_echo_n "checking if poll is compilable... " >&6; }
36655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36656 /* end confdefs.h. */
36659 $curl_includes_poll
36664 if(0 != poll(0, 0, 0))
36672 if ac_fn_c_try_compile "$LINENO"; then :
36674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36675 $as_echo "yes" >&6; }
36676 tst_compi_poll="yes"
36680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36681 $as_echo "no" >&6; }
36682 tst_compi_poll="no"
36685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36688 if test "x$cross_compiling" != "xyes" &&
36689 test "$tst_compi_poll" = "yes"; then
36690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36691 $as_echo_n "checking if poll seems to work... " >&6; }
36694 old=$LD_LIBRARY_PATH
36695 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36696 export LD_LIBRARY_PATH
36697 if test "$cross_compiling" = yes; then :
36698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36700 as_fn_error $? "cannot run test program while cross compiling
36701 See \`config.log' for more details" "$LINENO" 5; }
36703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36704 /* end confdefs.h. */
36707 $curl_includes_stdlib
36708 $curl_includes_poll
36709 $curl_includes_time
36714 /* detect the original poll() breakage */
36715 if(0 != poll(0, 0, 10))
36716 exit(1); /* fail */
36718 /* detect the 10.12 poll() breakage */
36719 struct timeval before, after;
36723 gettimeofday(&before, NULL);
36724 rc = poll(NULL, 0, 500);
36725 gettimeofday(&after, NULL);
36727 us = (after.tv_sec - before.tv_sec) * 1000000 +
36728 (after.tv_usec - before.tv_usec);
36739 if ac_fn_c_try_run "$LINENO"; then :
36740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36741 $as_echo "yes" >&6; }
36742 tst_works_poll="yes"
36745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36746 $as_echo "no" >&6; }
36747 tst_works_poll="no"
36750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36751 conftest.$ac_objext conftest.beam conftest.$ac_ext
36754 LD_LIBRARY_PATH=$old # restore
36758 if test "$tst_compi_poll" = "yes" &&
36759 test "$tst_works_poll" != "no"; then
36760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36761 $as_echo_n "checking if poll usage allowed... " >&6; }
36762 if test "x$curl_disallow_poll" != "xyes"; then
36763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36764 $as_echo "yes" >&6; }
36765 tst_allow_poll="yes"
36767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36768 $as_echo "no" >&6; }
36769 tst_allow_poll="no"
36773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36774 $as_echo_n "checking if poll might be used... " >&6; }
36775 if test "$tst_links_poll" = "yes" &&
36776 test "$tst_proto_poll" = "yes" &&
36777 test "$tst_compi_poll" = "yes" &&
36778 test "$tst_allow_poll" = "yes" &&
36779 test "$tst_works_poll" != "no"; then
36780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36781 $as_echo "yes" >&6; }
36783 cat >>confdefs.h <<_ACEOF
36784 #define HAVE_POLL 1
36788 cat >>confdefs.h <<_ACEOF
36789 #define HAVE_POLL_FINE 1
36792 curl_cv_func_poll="yes"
36794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36795 $as_echo "no" >&6; }
36796 curl_cv_func_poll="no"
36801 tst_links_setsockopt="unknown"
36802 tst_proto_setsockopt="unknown"
36803 tst_compi_setsockopt="unknown"
36804 tst_allow_setsockopt="unknown"
36806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36807 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36809 /* end confdefs.h. */
36812 $curl_includes_winsock2
36813 $curl_includes_sys_socket
36818 if(0 != setsockopt(0, 0, 0, 0, 0))
36826 if ac_fn_c_try_link "$LINENO"; then :
36828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36829 $as_echo "yes" >&6; }
36830 tst_links_setsockopt="yes"
36834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36835 $as_echo "no" >&6; }
36836 tst_links_setsockopt="no"
36839 rm -f core conftest.err conftest.$ac_objext \
36840 conftest$ac_exeext conftest.$ac_ext
36842 if test "$tst_links_setsockopt" = "yes"; then
36843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36844 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36846 /* end confdefs.h. */
36848 $curl_includes_winsock2
36849 $curl_includes_sys_socket
36852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36853 $EGREP "setsockopt" >/dev/null 2>&1; then :
36855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36856 $as_echo "yes" >&6; }
36857 tst_proto_setsockopt="yes"
36861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36862 $as_echo "no" >&6; }
36863 tst_proto_setsockopt="no"
36870 if test "$tst_proto_setsockopt" = "yes"; then
36871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36872 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36874 /* end confdefs.h. */
36877 $curl_includes_winsock2
36878 $curl_includes_sys_socket
36883 if(0 != setsockopt(0, 0, 0, 0, 0))
36891 if ac_fn_c_try_compile "$LINENO"; then :
36893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36894 $as_echo "yes" >&6; }
36895 tst_compi_setsockopt="yes"
36899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36900 $as_echo "no" >&6; }
36901 tst_compi_setsockopt="no"
36904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36907 if test "$tst_compi_setsockopt" = "yes"; then
36908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36909 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36910 if test "x$curl_disallow_setsockopt" != "xyes"; then
36911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36912 $as_echo "yes" >&6; }
36913 tst_allow_setsockopt="yes"
36915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36916 $as_echo "no" >&6; }
36917 tst_allow_setsockopt="no"
36921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36922 $as_echo_n "checking if setsockopt might be used... " >&6; }
36923 if test "$tst_links_setsockopt" = "yes" &&
36924 test "$tst_proto_setsockopt" = "yes" &&
36925 test "$tst_compi_setsockopt" = "yes" &&
36926 test "$tst_allow_setsockopt" = "yes"; then
36927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36928 $as_echo "yes" >&6; }
36930 cat >>confdefs.h <<_ACEOF
36931 #define HAVE_SETSOCKOPT 1
36934 curl_cv_func_setsockopt="yes"
36937 tst_compi_setsockopt_so_nonblock="unknown"
36938 tst_allow_setsockopt_so_nonblock="unknown"
36940 if test "$curl_cv_func_setsockopt" = "yes"; then
36941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36942 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36944 /* end confdefs.h. */
36947 $curl_includes_winsock2
36948 $curl_includes_sys_socket
36953 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36961 if ac_fn_c_try_compile "$LINENO"; then :
36963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36964 $as_echo "yes" >&6; }
36965 tst_compi_setsockopt_so_nonblock="yes"
36969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36970 $as_echo "no" >&6; }
36971 tst_compi_setsockopt_so_nonblock="no"
36974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36977 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36979 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36980 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36982 $as_echo "yes" >&6; }
36983 tst_allow_setsockopt_so_nonblock="yes"
36985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36986 $as_echo "no" >&6; }
36987 tst_allow_setsockopt_so_nonblock="no"
36991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36992 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36993 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36994 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36996 $as_echo "yes" >&6; }
36998 cat >>confdefs.h <<_ACEOF
36999 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
37002 curl_cv_func_setsockopt_so_nonblock="yes"
37004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37005 $as_echo "no" >&6; }
37006 curl_cv_func_setsockopt_so_nonblock="no"
37010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37011 $as_echo "no" >&6; }
37012 curl_cv_func_setsockopt="no"
37016 curl_includes_signal="\
37017 /* includes start */
37018 #ifdef HAVE_SYS_TYPES_H
37019 # include <sys/types.h>
37021 #ifdef HAVE_SIGNAL_H
37022 # include <signal.h>
37024 /* includes end */"
37025 for ac_header in sys/types.h signal.h
37027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37028 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
37030 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37031 cat >>confdefs.h <<_ACEOF
37032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37042 tst_links_sigaction="unknown"
37043 tst_proto_sigaction="unknown"
37044 tst_compi_sigaction="unknown"
37045 tst_allow_sigaction="unknown"
37047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
37048 $as_echo_n "checking if sigaction can be linked... " >&6; }
37049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37050 /* end confdefs.h. */
37053 #define sigaction innocuous_sigaction
37055 # include <limits.h>
37057 # include <assert.h>
37064 #if defined __stub_sigaction || defined __stub___sigaction
37070 return sigaction ();
37076 if ac_fn_c_try_link "$LINENO"; then :
37078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37079 $as_echo "yes" >&6; }
37080 tst_links_sigaction="yes"
37084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37085 $as_echo "no" >&6; }
37086 tst_links_sigaction="no"
37089 rm -f core conftest.err conftest.$ac_objext \
37090 conftest$ac_exeext conftest.$ac_ext
37092 if test "$tst_links_sigaction" = "yes"; then
37093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37094 $as_echo_n "checking if sigaction is prototyped... " >&6; }
37095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37096 /* end confdefs.h. */
37098 $curl_includes_signal
37101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37102 $EGREP "sigaction" >/dev/null 2>&1; then :
37104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37105 $as_echo "yes" >&6; }
37106 tst_proto_sigaction="yes"
37110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37111 $as_echo "no" >&6; }
37112 tst_proto_sigaction="no"
37119 if test "$tst_proto_sigaction" = "yes"; then
37120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37121 $as_echo_n "checking if sigaction is compilable... " >&6; }
37122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37123 /* end confdefs.h. */
37126 $curl_includes_signal
37131 if(0 != sigaction(0, 0, 0))
37139 if ac_fn_c_try_compile "$LINENO"; then :
37141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37142 $as_echo "yes" >&6; }
37143 tst_compi_sigaction="yes"
37147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37148 $as_echo "no" >&6; }
37149 tst_compi_sigaction="no"
37152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37155 if test "$tst_compi_sigaction" = "yes"; then
37156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37157 $as_echo_n "checking if sigaction usage allowed... " >&6; }
37158 if test "x$curl_disallow_sigaction" != "xyes"; then
37159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37160 $as_echo "yes" >&6; }
37161 tst_allow_sigaction="yes"
37163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37164 $as_echo "no" >&6; }
37165 tst_allow_sigaction="no"
37169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37170 $as_echo_n "checking if sigaction might be used... " >&6; }
37171 if test "$tst_links_sigaction" = "yes" &&
37172 test "$tst_proto_sigaction" = "yes" &&
37173 test "$tst_compi_sigaction" = "yes" &&
37174 test "$tst_allow_sigaction" = "yes"; then
37175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37176 $as_echo "yes" >&6; }
37178 cat >>confdefs.h <<_ACEOF
37179 #define HAVE_SIGACTION 1
37182 curl_cv_func_sigaction="yes"
37184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37185 $as_echo "no" >&6; }
37186 curl_cv_func_sigaction="no"
37191 tst_links_siginterrupt="unknown"
37192 tst_proto_siginterrupt="unknown"
37193 tst_compi_siginterrupt="unknown"
37194 tst_allow_siginterrupt="unknown"
37196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37197 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
37198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37199 /* end confdefs.h. */
37202 #define siginterrupt innocuous_siginterrupt
37204 # include <limits.h>
37206 # include <assert.h>
37208 #undef siginterrupt
37212 char siginterrupt ();
37213 #if defined __stub_siginterrupt || defined __stub___siginterrupt
37219 return siginterrupt ();
37225 if ac_fn_c_try_link "$LINENO"; then :
37227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37228 $as_echo "yes" >&6; }
37229 tst_links_siginterrupt="yes"
37233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37234 $as_echo "no" >&6; }
37235 tst_links_siginterrupt="no"
37238 rm -f core conftest.err conftest.$ac_objext \
37239 conftest$ac_exeext conftest.$ac_ext
37241 if test "$tst_links_siginterrupt" = "yes"; then
37242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37243 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37245 /* end confdefs.h. */
37247 $curl_includes_signal
37250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37251 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37254 $as_echo "yes" >&6; }
37255 tst_proto_siginterrupt="yes"
37259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37260 $as_echo "no" >&6; }
37261 tst_proto_siginterrupt="no"
37268 if test "$tst_proto_siginterrupt" = "yes"; then
37269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37270 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
37271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37272 /* end confdefs.h. */
37275 $curl_includes_signal
37280 if(0 != siginterrupt(0, 0))
37288 if ac_fn_c_try_compile "$LINENO"; then :
37290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37291 $as_echo "yes" >&6; }
37292 tst_compi_siginterrupt="yes"
37296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37297 $as_echo "no" >&6; }
37298 tst_compi_siginterrupt="no"
37301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37304 if test "$tst_compi_siginterrupt" = "yes"; then
37305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37306 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37307 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37309 $as_echo "yes" >&6; }
37310 tst_allow_siginterrupt="yes"
37312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37313 $as_echo "no" >&6; }
37314 tst_allow_siginterrupt="no"
37318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37319 $as_echo_n "checking if siginterrupt might be used... " >&6; }
37320 if test "$tst_links_siginterrupt" = "yes" &&
37321 test "$tst_proto_siginterrupt" = "yes" &&
37322 test "$tst_compi_siginterrupt" = "yes" &&
37323 test "$tst_allow_siginterrupt" = "yes"; then
37324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37325 $as_echo "yes" >&6; }
37327 cat >>confdefs.h <<_ACEOF
37328 #define HAVE_SIGINTERRUPT 1
37331 curl_cv_func_siginterrupt="yes"
37333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37334 $as_echo "no" >&6; }
37335 curl_cv_func_siginterrupt="no"
37340 tst_links_signal="unknown"
37341 tst_proto_signal="unknown"
37342 tst_compi_signal="unknown"
37343 tst_allow_signal="unknown"
37345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37346 $as_echo_n "checking if signal can be linked... " >&6; }
37347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37348 /* end confdefs.h. */
37351 #define signal innocuous_signal
37353 # include <limits.h>
37355 # include <assert.h>
37362 #if defined __stub_signal || defined __stub___signal
37374 if ac_fn_c_try_link "$LINENO"; then :
37376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37377 $as_echo "yes" >&6; }
37378 tst_links_signal="yes"
37382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37383 $as_echo "no" >&6; }
37384 tst_links_signal="no"
37387 rm -f core conftest.err conftest.$ac_objext \
37388 conftest$ac_exeext conftest.$ac_ext
37390 if test "$tst_links_signal" = "yes"; then
37391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37392 $as_echo_n "checking if signal is prototyped... " >&6; }
37393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37394 /* end confdefs.h. */
37396 $curl_includes_signal
37399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37400 $EGREP "signal" >/dev/null 2>&1; then :
37402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37403 $as_echo "yes" >&6; }
37404 tst_proto_signal="yes"
37408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37409 $as_echo "no" >&6; }
37410 tst_proto_signal="no"
37417 if test "$tst_proto_signal" = "yes"; then
37418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37419 $as_echo_n "checking if signal is compilable... " >&6; }
37420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37421 /* end confdefs.h. */
37424 $curl_includes_signal
37429 if(0 != signal(0, 0))
37437 if ac_fn_c_try_compile "$LINENO"; then :
37439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37440 $as_echo "yes" >&6; }
37441 tst_compi_signal="yes"
37445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37446 $as_echo "no" >&6; }
37447 tst_compi_signal="no"
37450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37453 if test "$tst_compi_signal" = "yes"; then
37454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37455 $as_echo_n "checking if signal usage allowed... " >&6; }
37456 if test "x$curl_disallow_signal" != "xyes"; then
37457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37458 $as_echo "yes" >&6; }
37459 tst_allow_signal="yes"
37461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37462 $as_echo "no" >&6; }
37463 tst_allow_signal="no"
37467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37468 $as_echo_n "checking if signal might be used... " >&6; }
37469 if test "$tst_links_signal" = "yes" &&
37470 test "$tst_proto_signal" = "yes" &&
37471 test "$tst_compi_signal" = "yes" &&
37472 test "$tst_allow_signal" = "yes"; then
37473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37474 $as_echo "yes" >&6; }
37476 cat >>confdefs.h <<_ACEOF
37477 #define HAVE_SIGNAL 1
37480 curl_cv_func_signal="yes"
37482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37483 $as_echo "no" >&6; }
37484 curl_cv_func_signal="no"
37488 curl_includes_setjmp="\
37489 /* includes start */
37490 #ifdef HAVE_SYS_TYPES_H
37491 # include <sys/types.h>
37493 #ifdef HAVE_SETJMP_H
37494 # include <setjmp.h>
37496 /* includes end */"
37497 for ac_header in sys/types.h setjmp.h
37499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37500 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37502 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37503 cat >>confdefs.h <<_ACEOF
37504 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37514 tst_links_sigsetjmp="unknown"
37515 tst_macro_sigsetjmp="unknown"
37516 tst_proto_sigsetjmp="unknown"
37517 tst_compi_sigsetjmp="unknown"
37518 tst_allow_sigsetjmp="unknown"
37520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37521 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37523 /* end confdefs.h. */
37526 #define sigsetjmp innocuous_sigsetjmp
37528 # include <limits.h>
37530 # include <assert.h>
37537 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37543 return sigsetjmp ();
37549 if ac_fn_c_try_link "$LINENO"; then :
37551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37552 $as_echo "yes" >&6; }
37553 tst_links_sigsetjmp="yes"
37557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37558 $as_echo "no" >&6; }
37559 tst_links_sigsetjmp="no"
37562 rm -f core conftest.err conftest.$ac_objext \
37563 conftest$ac_exeext conftest.$ac_ext
37565 if test "$tst_links_sigsetjmp" = "no"; then
37566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37567 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37569 /* end confdefs.h. */
37572 $curl_includes_setjmp
37578 if(0 != sigsetjmp(env, 0))
37586 if ac_fn_c_try_link "$LINENO"; then :
37588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37589 $as_echo "yes" >&6; }
37590 tst_macro_sigsetjmp="yes"
37594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37595 $as_echo "no" >&6; }
37596 tst_macro_sigsetjmp="no"
37599 rm -f core conftest.err conftest.$ac_objext \
37600 conftest$ac_exeext conftest.$ac_ext
37603 if test "$tst_links_sigsetjmp" = "yes"; then
37604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37605 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37607 /* end confdefs.h. */
37609 $curl_includes_setjmp
37612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37613 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37616 $as_echo "yes" >&6; }
37617 tst_proto_sigsetjmp="yes"
37621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37622 $as_echo "no" >&6; }
37623 tst_proto_sigsetjmp="no"
37630 if test "$tst_proto_sigsetjmp" = "yes" ||
37631 test "$tst_macro_sigsetjmp" = "yes"; then
37632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37633 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37635 /* end confdefs.h. */
37638 $curl_includes_setjmp
37644 if(0 != sigsetjmp(env, 0))
37652 if ac_fn_c_try_compile "$LINENO"; then :
37654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37655 $as_echo "yes" >&6; }
37656 tst_compi_sigsetjmp="yes"
37660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37661 $as_echo "no" >&6; }
37662 tst_compi_sigsetjmp="no"
37665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37668 if test "$tst_compi_sigsetjmp" = "yes"; then
37669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37670 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37671 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37673 $as_echo "yes" >&6; }
37674 tst_allow_sigsetjmp="yes"
37676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37677 $as_echo "no" >&6; }
37678 tst_allow_sigsetjmp="no"
37682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37683 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
37684 if (test "$tst_proto_sigsetjmp" = "yes" ||
37685 test "$tst_macro_sigsetjmp" = "yes") &&
37686 test "$tst_compi_sigsetjmp" = "yes" &&
37687 test "$tst_allow_sigsetjmp" = "yes"; then
37688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37689 $as_echo "yes" >&6; }
37691 cat >>confdefs.h <<_ACEOF
37692 #define HAVE_SIGSETJMP 1
37695 curl_cv_func_sigsetjmp="yes"
37697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37698 $as_echo "no" >&6; }
37699 curl_cv_func_sigsetjmp="no"
37704 tst_links_socket="unknown"
37705 tst_proto_socket="unknown"
37706 tst_compi_socket="unknown"
37707 tst_allow_socket="unknown"
37709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37710 $as_echo_n "checking if socket can be linked... " >&6; }
37711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37712 /* end confdefs.h. */
37715 $curl_includes_winsock2
37716 $curl_includes_sys_socket
37717 $curl_includes_socket
37722 if(0 != socket(0, 0, 0))
37730 if ac_fn_c_try_link "$LINENO"; then :
37732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37733 $as_echo "yes" >&6; }
37734 tst_links_socket="yes"
37738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37739 $as_echo "no" >&6; }
37740 tst_links_socket="no"
37743 rm -f core conftest.err conftest.$ac_objext \
37744 conftest$ac_exeext conftest.$ac_ext
37746 if test "$tst_links_socket" = "yes"; then
37747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37748 $as_echo_n "checking if socket is prototyped... " >&6; }
37749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37750 /* end confdefs.h. */
37752 $curl_includes_winsock2
37753 $curl_includes_sys_socket
37754 $curl_includes_socket
37757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37758 $EGREP "socket" >/dev/null 2>&1; then :
37760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37761 $as_echo "yes" >&6; }
37762 tst_proto_socket="yes"
37766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37767 $as_echo "no" >&6; }
37768 tst_proto_socket="no"
37775 if test "$tst_proto_socket" = "yes"; then
37776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37777 $as_echo_n "checking if socket is compilable... " >&6; }
37778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37779 /* end confdefs.h. */
37782 $curl_includes_winsock2
37783 $curl_includes_sys_socket
37784 $curl_includes_socket
37789 if(0 != socket(0, 0, 0))
37797 if ac_fn_c_try_compile "$LINENO"; then :
37799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37800 $as_echo "yes" >&6; }
37801 tst_compi_socket="yes"
37805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37806 $as_echo "no" >&6; }
37807 tst_compi_socket="no"
37810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37813 if test "$tst_compi_socket" = "yes"; then
37814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37815 $as_echo_n "checking if socket usage allowed... " >&6; }
37816 if test "x$curl_disallow_socket" != "xyes"; then
37817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37818 $as_echo "yes" >&6; }
37819 tst_allow_socket="yes"
37821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37822 $as_echo "no" >&6; }
37823 tst_allow_socket="no"
37827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37828 $as_echo_n "checking if socket might be used... " >&6; }
37829 if test "$tst_links_socket" = "yes" &&
37830 test "$tst_proto_socket" = "yes" &&
37831 test "$tst_compi_socket" = "yes" &&
37832 test "$tst_allow_socket" = "yes"; then
37833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37834 $as_echo "yes" >&6; }
37836 cat >>confdefs.h <<_ACEOF
37837 #define HAVE_SOCKET 1
37840 curl_cv_func_socket="yes"
37842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37843 $as_echo "no" >&6; }
37844 curl_cv_func_socket="no"
37849 tst_links_socketpair="unknown"
37850 tst_proto_socketpair="unknown"
37851 tst_compi_socketpair="unknown"
37852 tst_allow_socketpair="unknown"
37854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37855 $as_echo_n "checking if socketpair can be linked... " >&6; }
37856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37857 /* end confdefs.h. */
37860 #define socketpair innocuous_socketpair
37862 # include <limits.h>
37864 # include <assert.h>
37870 char socketpair ();
37871 #if defined __stub_socketpair || defined __stub___socketpair
37877 return socketpair ();
37883 if ac_fn_c_try_link "$LINENO"; then :
37885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37886 $as_echo "yes" >&6; }
37887 tst_links_socketpair="yes"
37891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37892 $as_echo "no" >&6; }
37893 tst_links_socketpair="no"
37896 rm -f core conftest.err conftest.$ac_objext \
37897 conftest$ac_exeext conftest.$ac_ext
37899 if test "$tst_links_socketpair" = "yes"; then
37900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37901 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37903 /* end confdefs.h. */
37905 $curl_includes_sys_socket
37906 $curl_includes_socket
37909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37910 $EGREP "socketpair" >/dev/null 2>&1; then :
37912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37913 $as_echo "yes" >&6; }
37914 tst_proto_socketpair="yes"
37918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37919 $as_echo "no" >&6; }
37920 tst_proto_socketpair="no"
37927 if test "$tst_proto_socketpair" = "yes"; then
37928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37929 $as_echo_n "checking if socketpair is compilable... " >&6; }
37930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37931 /* end confdefs.h. */
37934 $curl_includes_sys_socket
37935 $curl_includes_socket
37941 if(0 != socketpair(0, 0, 0, sv))
37949 if ac_fn_c_try_compile "$LINENO"; then :
37951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37952 $as_echo "yes" >&6; }
37953 tst_compi_socketpair="yes"
37957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37958 $as_echo "no" >&6; }
37959 tst_compi_socketpair="no"
37962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37965 if test "$tst_compi_socketpair" = "yes"; then
37966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37967 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37968 if test "x$curl_disallow_socketpair" != "xyes"; then
37969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37970 $as_echo "yes" >&6; }
37971 tst_allow_socketpair="yes"
37973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37974 $as_echo "no" >&6; }
37975 tst_allow_socketpair="no"
37979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37980 $as_echo_n "checking if socketpair might be used... " >&6; }
37981 if test "$tst_links_socketpair" = "yes" &&
37982 test "$tst_proto_socketpair" = "yes" &&
37983 test "$tst_compi_socketpair" = "yes" &&
37984 test "$tst_allow_socketpair" = "yes"; then
37985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37986 $as_echo "yes" >&6; }
37988 cat >>confdefs.h <<_ACEOF
37989 #define HAVE_SOCKETPAIR 1
37992 curl_cv_func_socketpair="yes"
37994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37995 $as_echo "no" >&6; }
37996 curl_cv_func_socketpair="no"
38001 tst_links_strcasecmp="unknown"
38002 tst_proto_strcasecmp="unknown"
38003 tst_compi_strcasecmp="unknown"
38004 tst_allow_strcasecmp="unknown"
38006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
38007 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
38008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38009 /* end confdefs.h. */
38012 #define strcasecmp innocuous_strcasecmp
38014 # include <limits.h>
38016 # include <assert.h>
38022 char strcasecmp ();
38023 #if defined __stub_strcasecmp || defined __stub___strcasecmp
38029 return strcasecmp ();
38035 if ac_fn_c_try_link "$LINENO"; then :
38037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38038 $as_echo "yes" >&6; }
38039 tst_links_strcasecmp="yes"
38043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38044 $as_echo "no" >&6; }
38045 tst_links_strcasecmp="no"
38048 rm -f core conftest.err conftest.$ac_objext \
38049 conftest$ac_exeext conftest.$ac_ext
38051 if test "$tst_links_strcasecmp" = "yes"; then
38052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
38053 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
38054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38055 /* end confdefs.h. */
38057 $curl_includes_string
38060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38061 $EGREP "strcasecmp" >/dev/null 2>&1; then :
38063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38064 $as_echo "yes" >&6; }
38065 tst_proto_strcasecmp="yes"
38069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38070 $as_echo "no" >&6; }
38071 tst_proto_strcasecmp="no"
38078 if test "$tst_proto_strcasecmp" = "yes"; then
38079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
38080 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
38081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38082 /* end confdefs.h. */
38085 $curl_includes_string
38090 if(0 != strcasecmp(0, 0))
38098 if ac_fn_c_try_compile "$LINENO"; then :
38100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38101 $as_echo "yes" >&6; }
38102 tst_compi_strcasecmp="yes"
38106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38107 $as_echo "no" >&6; }
38108 tst_compi_strcasecmp="no"
38111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38114 if test "$tst_compi_strcasecmp" = "yes"; then
38115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38116 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38117 if test "x$curl_disallow_strcasecmp" != "xyes"; then
38118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38119 $as_echo "yes" >&6; }
38120 tst_allow_strcasecmp="yes"
38122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38123 $as_echo "no" >&6; }
38124 tst_allow_strcasecmp="no"
38128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38129 $as_echo_n "checking if strcasecmp might be used... " >&6; }
38130 if test "$tst_links_strcasecmp" = "yes" &&
38131 test "$tst_proto_strcasecmp" = "yes" &&
38132 test "$tst_compi_strcasecmp" = "yes" &&
38133 test "$tst_allow_strcasecmp" = "yes"; then
38134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38135 $as_echo "yes" >&6; }
38137 cat >>confdefs.h <<_ACEOF
38138 #define HAVE_STRCASECMP 1
38141 curl_cv_func_strcasecmp="yes"
38143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38144 $as_echo "no" >&6; }
38145 curl_cv_func_strcasecmp="no"
38150 tst_links_strcmpi="unknown"
38151 tst_proto_strcmpi="unknown"
38152 tst_compi_strcmpi="unknown"
38153 tst_allow_strcmpi="unknown"
38155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38156 $as_echo_n "checking if strcmpi can be linked... " >&6; }
38157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38158 /* end confdefs.h. */
38161 #define strcmpi innocuous_strcmpi
38163 # include <limits.h>
38165 # include <assert.h>
38172 #if defined __stub_strcmpi || defined __stub___strcmpi
38184 if ac_fn_c_try_link "$LINENO"; then :
38186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38187 $as_echo "yes" >&6; }
38188 tst_links_strcmpi="yes"
38192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38193 $as_echo "no" >&6; }
38194 tst_links_strcmpi="no"
38197 rm -f core conftest.err conftest.$ac_objext \
38198 conftest$ac_exeext conftest.$ac_ext
38200 if test "$tst_links_strcmpi" = "yes"; then
38201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38202 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
38203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38204 /* end confdefs.h. */
38206 $curl_includes_string
38209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38210 $EGREP "strcmpi" >/dev/null 2>&1; then :
38212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38213 $as_echo "yes" >&6; }
38214 tst_proto_strcmpi="yes"
38218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38219 $as_echo "no" >&6; }
38220 tst_proto_strcmpi="no"
38227 if test "$tst_proto_strcmpi" = "yes"; then
38228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38229 $as_echo_n "checking if strcmpi is compilable... " >&6; }
38230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38231 /* end confdefs.h. */
38234 $curl_includes_string
38239 if(0 != strcmpi(0, 0))
38247 if ac_fn_c_try_compile "$LINENO"; then :
38249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38250 $as_echo "yes" >&6; }
38251 tst_compi_strcmpi="yes"
38255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38256 $as_echo "no" >&6; }
38257 tst_compi_strcmpi="no"
38260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38263 if test "$tst_compi_strcmpi" = "yes"; then
38264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38265 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
38266 if test "x$curl_disallow_strcmpi" != "xyes"; then
38267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38268 $as_echo "yes" >&6; }
38269 tst_allow_strcmpi="yes"
38271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38272 $as_echo "no" >&6; }
38273 tst_allow_strcmpi="no"
38277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38278 $as_echo_n "checking if strcmpi might be used... " >&6; }
38279 if test "$tst_links_strcmpi" = "yes" &&
38280 test "$tst_proto_strcmpi" = "yes" &&
38281 test "$tst_compi_strcmpi" = "yes" &&
38282 test "$tst_allow_strcmpi" = "yes"; then
38283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38284 $as_echo "yes" >&6; }
38286 cat >>confdefs.h <<_ACEOF
38287 #define HAVE_STRCMPI 1
38290 curl_cv_func_strcmpi="yes"
38292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38293 $as_echo "no" >&6; }
38294 curl_cv_func_strcmpi="no"
38299 tst_links_strdup="unknown"
38300 tst_proto_strdup="unknown"
38301 tst_compi_strdup="unknown"
38302 tst_allow_strdup="unknown"
38304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38305 $as_echo_n "checking if strdup can be linked... " >&6; }
38306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38307 /* end confdefs.h. */
38310 #define strdup innocuous_strdup
38312 # include <limits.h>
38314 # include <assert.h>
38321 #if defined __stub_strdup || defined __stub___strdup
38333 if ac_fn_c_try_link "$LINENO"; then :
38335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38336 $as_echo "yes" >&6; }
38337 tst_links_strdup="yes"
38341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38342 $as_echo "no" >&6; }
38343 tst_links_strdup="no"
38346 rm -f core conftest.err conftest.$ac_objext \
38347 conftest$ac_exeext conftest.$ac_ext
38349 if test "$tst_links_strdup" = "yes"; then
38350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38351 $as_echo_n "checking if strdup is prototyped... " >&6; }
38352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38353 /* end confdefs.h. */
38355 $curl_includes_string
38358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38359 $EGREP "strdup" >/dev/null 2>&1; then :
38361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38362 $as_echo "yes" >&6; }
38363 tst_proto_strdup="yes"
38367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38368 $as_echo "no" >&6; }
38369 tst_proto_strdup="no"
38376 if test "$tst_proto_strdup" = "yes"; then
38377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38378 $as_echo_n "checking if strdup is compilable... " >&6; }
38379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38380 /* end confdefs.h. */
38383 $curl_includes_string
38396 if ac_fn_c_try_compile "$LINENO"; then :
38398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38399 $as_echo "yes" >&6; }
38400 tst_compi_strdup="yes"
38404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38405 $as_echo "no" >&6; }
38406 tst_compi_strdup="no"
38409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38412 if test "$tst_compi_strdup" = "yes"; then
38413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38414 $as_echo_n "checking if strdup usage allowed... " >&6; }
38415 if test "x$curl_disallow_strdup" != "xyes"; then
38416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38417 $as_echo "yes" >&6; }
38418 tst_allow_strdup="yes"
38420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38421 $as_echo "no" >&6; }
38422 tst_allow_strdup="no"
38426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38427 $as_echo_n "checking if strdup might be used... " >&6; }
38428 if test "$tst_links_strdup" = "yes" &&
38429 test "$tst_proto_strdup" = "yes" &&
38430 test "$tst_compi_strdup" = "yes" &&
38431 test "$tst_allow_strdup" = "yes"; then
38432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38433 $as_echo "yes" >&6; }
38435 cat >>confdefs.h <<_ACEOF
38436 #define HAVE_STRDUP 1
38439 curl_cv_func_strdup="yes"
38441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38442 $as_echo "no" >&6; }
38443 curl_cv_func_strdup="no"
38448 tst_links_strerror_r="unknown"
38449 tst_proto_strerror_r="unknown"
38450 tst_compi_strerror_r="unknown"
38451 tst_glibc_strerror_r="unknown"
38452 tst_posix_strerror_r="unknown"
38453 tst_allow_strerror_r="unknown"
38454 tst_works_glibc_strerror_r="unknown"
38455 tst_works_posix_strerror_r="unknown"
38456 tst_glibc_strerror_r_type_arg3="unknown"
38457 tst_posix_strerror_r_type_arg3="unknown"
38459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38460 $as_echo_n "checking if strerror_r can be linked... " >&6; }
38461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38462 /* end confdefs.h. */
38465 #define strerror_r innocuous_strerror_r
38467 # include <limits.h>
38469 # include <assert.h>
38475 char strerror_r ();
38476 #if defined __stub_strerror_r || defined __stub___strerror_r
38482 return strerror_r ();
38488 if ac_fn_c_try_link "$LINENO"; then :
38490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38491 $as_echo "yes" >&6; }
38492 tst_links_strerror_r="yes"
38496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38497 $as_echo "no" >&6; }
38498 tst_links_strerror_r="no"
38501 rm -f core conftest.err conftest.$ac_objext \
38502 conftest$ac_exeext conftest.$ac_ext
38504 if test "$tst_links_strerror_r" = "yes"; then
38505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38506 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
38507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38508 /* end confdefs.h. */
38510 $curl_includes_string
38513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38514 $EGREP "strerror_r" >/dev/null 2>&1; then :
38516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38517 $as_echo "yes" >&6; }
38518 tst_proto_strerror_r="yes"
38522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38523 $as_echo "no" >&6; }
38524 tst_proto_strerror_r="no"
38531 if test "$tst_proto_strerror_r" = "yes"; then
38532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38533 $as_echo_n "checking if strerror_r is compilable... " >&6; }
38534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38535 /* end confdefs.h. */
38538 $curl_includes_string
38543 if(0 != strerror_r(0, 0, 0))
38551 if ac_fn_c_try_compile "$LINENO"; then :
38553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38554 $as_echo "yes" >&6; }
38555 tst_compi_strerror_r="yes"
38559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38560 $as_echo "no" >&6; }
38561 tst_compi_strerror_r="no"
38564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38567 if test "$tst_compi_strerror_r" = "yes"; then
38568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38569 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
38570 tst_glibc_strerror_r_type_arg3="unknown"
38571 for arg3 in 'size_t' 'int' 'unsigned int'; do
38572 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38574 /* end confdefs.h. */
38577 $curl_includes_string
38578 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38583 if(0 != strerror_r(0, 0, 0))
38591 if ac_fn_c_try_compile "$LINENO"; then :
38593 tst_glibc_strerror_r_type_arg3="$arg3"
38596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38599 case "$tst_glibc_strerror_r_type_arg3" in
38601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38602 $as_echo "no" >&6; }
38603 tst_glibc_strerror_r="no"
38606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38607 $as_echo "yes" >&6; }
38608 tst_glibc_strerror_r="yes"
38613 if test "x$cross_compiling" != "xyes" &&
38614 test "$tst_glibc_strerror_r" = "yes"; then
38615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38616 $as_echo_n "checking if strerror_r seems to work... " >&6; }
38619 old=$LD_LIBRARY_PATH
38620 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38621 export LD_LIBRARY_PATH
38622 if test "$cross_compiling" = yes; then :
38623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38625 as_fn_error $? "cannot run test program while cross compiling
38626 See \`config.log' for more details" "$LINENO" 5; }
38628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38629 /* end confdefs.h. */
38632 $curl_includes_stdlib
38633 $curl_includes_string
38634 # include <errno.h>
38642 string = strerror_r(EACCES, buffer, sizeof(buffer));
38644 exit(1); /* fail */
38646 exit(1); /* fail */
38655 if ac_fn_c_try_run "$LINENO"; then :
38656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38657 $as_echo "yes" >&6; }
38658 tst_works_glibc_strerror_r="yes"
38661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38662 $as_echo "no" >&6; }
38663 tst_works_glibc_strerror_r="no"
38666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38667 conftest.$ac_objext conftest.beam conftest.$ac_ext
38670 LD_LIBRARY_PATH=$old # restore
38674 if test "$tst_compi_strerror_r" = "yes" &&
38675 test "$tst_works_glibc_strerror_r" != "yes"; then
38676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38677 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38678 tst_posix_strerror_r_type_arg3="unknown"
38679 for arg3 in 'size_t' 'int' 'unsigned int'; do
38680 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38682 /* end confdefs.h. */
38685 $curl_includes_string
38686 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38691 if(0 != strerror_r(0, 0, 0))
38699 if ac_fn_c_try_compile "$LINENO"; then :
38701 tst_posix_strerror_r_type_arg3="$arg3"
38704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38707 case "$tst_posix_strerror_r_type_arg3" in
38709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38710 $as_echo "no" >&6; }
38711 tst_posix_strerror_r="no"
38714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38715 $as_echo "yes" >&6; }
38716 tst_posix_strerror_r="yes"
38721 if test "x$cross_compiling" != "xyes" &&
38722 test "$tst_posix_strerror_r" = "yes"; then
38723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38724 $as_echo_n "checking if strerror_r seems to work... " >&6; }
38727 old=$LD_LIBRARY_PATH
38728 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38729 export LD_LIBRARY_PATH
38730 if test "$cross_compiling" = yes; then :
38731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38733 as_fn_error $? "cannot run test program while cross compiling
38734 See \`config.log' for more details" "$LINENO" 5; }
38736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38737 /* end confdefs.h. */
38740 $curl_includes_stdlib
38741 $curl_includes_string
38742 # include <errno.h>
38750 error = strerror_r(EACCES, buffer, sizeof(buffer));
38752 exit(1); /* fail */
38753 if(buffer[0] == '\0')
38754 exit(1); /* fail */
38763 if ac_fn_c_try_run "$LINENO"; then :
38764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38765 $as_echo "yes" >&6; }
38766 tst_works_posix_strerror_r="yes"
38769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38770 $as_echo "no" >&6; }
38771 tst_works_posix_strerror_r="no"
38774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38775 conftest.$ac_objext conftest.beam conftest.$ac_ext
38778 LD_LIBRARY_PATH=$old # restore
38782 if test "$tst_works_glibc_strerror_r" = "yes"; then
38783 tst_posix_strerror_r="no"
38785 if test "$tst_works_posix_strerror_r" = "yes"; then
38786 tst_glibc_strerror_r="no"
38788 if test "$tst_glibc_strerror_r" = "yes" &&
38789 test "$tst_works_glibc_strerror_r" != "no" &&
38790 test "$tst_posix_strerror_r" != "yes"; then
38791 tst_allow_strerror_r="check"
38793 if test "$tst_posix_strerror_r" = "yes" &&
38794 test "$tst_works_posix_strerror_r" != "no" &&
38795 test "$tst_glibc_strerror_r" != "yes"; then
38796 tst_allow_strerror_r="check"
38798 if test "$tst_allow_strerror_r" = "check"; then
38799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38800 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
38801 if test "x$curl_disallow_strerror_r" != "xyes"; then
38802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38803 $as_echo "yes" >&6; }
38804 tst_allow_strerror_r="yes"
38806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38807 $as_echo "no" >&6; }
38808 tst_allow_strerror_r="no"
38812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38813 $as_echo_n "checking if strerror_r might be used... " >&6; }
38814 if test "$tst_links_strerror_r" = "yes" &&
38815 test "$tst_proto_strerror_r" = "yes" &&
38816 test "$tst_compi_strerror_r" = "yes" &&
38817 test "$tst_allow_strerror_r" = "yes"; then
38818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38819 $as_echo "yes" >&6; }
38820 if test "$tst_glibc_strerror_r" = "yes"; then
38822 cat >>confdefs.h <<_ACEOF
38823 #define HAVE_STRERROR_R 1
38827 cat >>confdefs.h <<_ACEOF
38828 #define HAVE_GLIBC_STRERROR_R 1
38832 cat >>confdefs.h <<_ACEOF
38833 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38837 if test "$tst_posix_strerror_r" = "yes"; then
38839 cat >>confdefs.h <<_ACEOF
38840 #define HAVE_STRERROR_R 1
38844 cat >>confdefs.h <<_ACEOF
38845 #define HAVE_POSIX_STRERROR_R 1
38849 cat >>confdefs.h <<_ACEOF
38850 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38854 curl_cv_func_strerror_r="yes"
38856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38857 $as_echo "no" >&6; }
38858 curl_cv_func_strerror_r="no"
38861 if test "$tst_compi_strerror_r" = "yes" &&
38862 test "$tst_allow_strerror_r" = "unknown"; then
38863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38864 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38870 tst_links_stricmp="unknown"
38871 tst_proto_stricmp="unknown"
38872 tst_compi_stricmp="unknown"
38873 tst_allow_stricmp="unknown"
38875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38876 $as_echo_n "checking if stricmp can be linked... " >&6; }
38877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38878 /* end confdefs.h. */
38881 #define stricmp innocuous_stricmp
38883 # include <limits.h>
38885 # include <assert.h>
38892 #if defined __stub_stricmp || defined __stub___stricmp
38904 if ac_fn_c_try_link "$LINENO"; then :
38906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38907 $as_echo "yes" >&6; }
38908 tst_links_stricmp="yes"
38912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38913 $as_echo "no" >&6; }
38914 tst_links_stricmp="no"
38917 rm -f core conftest.err conftest.$ac_objext \
38918 conftest$ac_exeext conftest.$ac_ext
38920 if test "$tst_links_stricmp" = "yes"; then
38921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38922 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38924 /* end confdefs.h. */
38926 $curl_includes_string
38929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38930 $EGREP "stricmp" >/dev/null 2>&1; then :
38932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38933 $as_echo "yes" >&6; }
38934 tst_proto_stricmp="yes"
38938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38939 $as_echo "no" >&6; }
38940 tst_proto_stricmp="no"
38947 if test "$tst_proto_stricmp" = "yes"; then
38948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38949 $as_echo_n "checking if stricmp is compilable... " >&6; }
38950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38951 /* end confdefs.h. */
38954 $curl_includes_string
38959 if(0 != stricmp(0, 0))
38967 if ac_fn_c_try_compile "$LINENO"; then :
38969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38970 $as_echo "yes" >&6; }
38971 tst_compi_stricmp="yes"
38975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38976 $as_echo "no" >&6; }
38977 tst_compi_stricmp="no"
38980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38983 if test "$tst_compi_stricmp" = "yes"; then
38984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38985 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38986 if test "x$curl_disallow_stricmp" != "xyes"; then
38987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38988 $as_echo "yes" >&6; }
38989 tst_allow_stricmp="yes"
38991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38992 $as_echo "no" >&6; }
38993 tst_allow_stricmp="no"
38997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38998 $as_echo_n "checking if stricmp might be used... " >&6; }
38999 if test "$tst_links_stricmp" = "yes" &&
39000 test "$tst_proto_stricmp" = "yes" &&
39001 test "$tst_compi_stricmp" = "yes" &&
39002 test "$tst_allow_stricmp" = "yes"; then
39003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39004 $as_echo "yes" >&6; }
39006 cat >>confdefs.h <<_ACEOF
39007 #define HAVE_STRICMP 1
39010 curl_cv_func_stricmp="yes"
39012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39013 $as_echo "no" >&6; }
39014 curl_cv_func_stricmp="no"
39019 tst_links_strncasecmp="unknown"
39020 tst_proto_strncasecmp="unknown"
39021 tst_compi_strncasecmp="unknown"
39022 tst_allow_strncasecmp="unknown"
39024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
39025 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
39026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39027 /* end confdefs.h. */
39030 #define strncasecmp innocuous_strncasecmp
39032 # include <limits.h>
39034 # include <assert.h>
39040 char strncasecmp ();
39041 #if defined __stub_strncasecmp || defined __stub___strncasecmp
39047 return strncasecmp ();
39053 if ac_fn_c_try_link "$LINENO"; then :
39055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39056 $as_echo "yes" >&6; }
39057 tst_links_strncasecmp="yes"
39061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39062 $as_echo "no" >&6; }
39063 tst_links_strncasecmp="no"
39066 rm -f core conftest.err conftest.$ac_objext \
39067 conftest$ac_exeext conftest.$ac_ext
39069 if test "$tst_links_strncasecmp" = "yes"; then
39070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
39071 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
39072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39073 /* end confdefs.h. */
39075 $curl_includes_string
39078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39079 $EGREP "strncasecmp" >/dev/null 2>&1; then :
39081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39082 $as_echo "yes" >&6; }
39083 tst_proto_strncasecmp="yes"
39087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39088 $as_echo "no" >&6; }
39089 tst_proto_strncasecmp="no"
39096 if test "$tst_proto_strncasecmp" = "yes"; then
39097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39098 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
39099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39100 /* end confdefs.h. */
39103 $curl_includes_string
39108 if(0 != strncasecmp(0, 0, 0))
39116 if ac_fn_c_try_compile "$LINENO"; then :
39118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39119 $as_echo "yes" >&6; }
39120 tst_compi_strncasecmp="yes"
39124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39125 $as_echo "no" >&6; }
39126 tst_compi_strncasecmp="no"
39129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39132 if test "$tst_compi_strncasecmp" = "yes"; then
39133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39134 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39135 if test "x$curl_disallow_strncasecmp" != "xyes"; then
39136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39137 $as_echo "yes" >&6; }
39138 tst_allow_strncasecmp="yes"
39140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39141 $as_echo "no" >&6; }
39142 tst_allow_strncasecmp="no"
39146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39147 $as_echo_n "checking if strncasecmp might be used... " >&6; }
39148 if test "$tst_links_strncasecmp" = "yes" &&
39149 test "$tst_proto_strncasecmp" = "yes" &&
39150 test "$tst_compi_strncasecmp" = "yes" &&
39151 test "$tst_allow_strncasecmp" = "yes"; then
39152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39153 $as_echo "yes" >&6; }
39155 cat >>confdefs.h <<_ACEOF
39156 #define HAVE_STRNCASECMP 1
39159 curl_cv_func_strncasecmp="yes"
39161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39162 $as_echo "no" >&6; }
39163 curl_cv_func_strncasecmp="no"
39168 tst_links_strncmpi="unknown"
39169 tst_proto_strncmpi="unknown"
39170 tst_compi_strncmpi="unknown"
39171 tst_allow_strncmpi="unknown"
39173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39174 $as_echo_n "checking if strncmpi can be linked... " >&6; }
39175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39176 /* end confdefs.h. */
39179 #define strncmpi innocuous_strncmpi
39181 # include <limits.h>
39183 # include <assert.h>
39190 #if defined __stub_strncmpi || defined __stub___strncmpi
39196 return strncmpi ();
39202 if ac_fn_c_try_link "$LINENO"; then :
39204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39205 $as_echo "yes" >&6; }
39206 tst_links_strncmpi="yes"
39210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39211 $as_echo "no" >&6; }
39212 tst_links_strncmpi="no"
39215 rm -f core conftest.err conftest.$ac_objext \
39216 conftest$ac_exeext conftest.$ac_ext
39218 if test "$tst_links_strncmpi" = "yes"; then
39219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39220 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
39221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39222 /* end confdefs.h. */
39224 $curl_includes_string
39227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39228 $EGREP "strncmpi" >/dev/null 2>&1; then :
39230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39231 $as_echo "yes" >&6; }
39232 tst_proto_strncmpi="yes"
39236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39237 $as_echo "no" >&6; }
39238 tst_proto_strncmpi="no"
39245 if test "$tst_proto_strncmpi" = "yes"; then
39246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39247 $as_echo_n "checking if strncmpi is compilable... " >&6; }
39248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39249 /* end confdefs.h. */
39252 $curl_includes_string
39257 if(0 != strncmpi(0, 0))
39265 if ac_fn_c_try_compile "$LINENO"; then :
39267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39268 $as_echo "yes" >&6; }
39269 tst_compi_strncmpi="yes"
39273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39274 $as_echo "no" >&6; }
39275 tst_compi_strncmpi="no"
39278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39281 if test "$tst_compi_strncmpi" = "yes"; then
39282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39283 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
39284 if test "x$curl_disallow_strncmpi" != "xyes"; then
39285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39286 $as_echo "yes" >&6; }
39287 tst_allow_strncmpi="yes"
39289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39290 $as_echo "no" >&6; }
39291 tst_allow_strncmpi="no"
39295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39296 $as_echo_n "checking if strncmpi might be used... " >&6; }
39297 if test "$tst_links_strncmpi" = "yes" &&
39298 test "$tst_proto_strncmpi" = "yes" &&
39299 test "$tst_compi_strncmpi" = "yes" &&
39300 test "$tst_allow_strncmpi" = "yes"; then
39301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39302 $as_echo "yes" >&6; }
39304 cat >>confdefs.h <<_ACEOF
39305 #define HAVE_STRNCMPI 1
39308 curl_cv_func_strncmpi="yes"
39310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39311 $as_echo "no" >&6; }
39312 curl_cv_func_strncmpi="no"
39317 tst_links_strnicmp="unknown"
39318 tst_proto_strnicmp="unknown"
39319 tst_compi_strnicmp="unknown"
39320 tst_allow_strnicmp="unknown"
39322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39323 $as_echo_n "checking if strnicmp can be linked... " >&6; }
39324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39325 /* end confdefs.h. */
39328 #define strnicmp innocuous_strnicmp
39330 # include <limits.h>
39332 # include <assert.h>
39339 #if defined __stub_strnicmp || defined __stub___strnicmp
39345 return strnicmp ();
39351 if ac_fn_c_try_link "$LINENO"; then :
39353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39354 $as_echo "yes" >&6; }
39355 tst_links_strnicmp="yes"
39359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39360 $as_echo "no" >&6; }
39361 tst_links_strnicmp="no"
39364 rm -f core conftest.err conftest.$ac_objext \
39365 conftest$ac_exeext conftest.$ac_ext
39367 if test "$tst_links_strnicmp" = "yes"; then
39368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39369 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
39370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39371 /* end confdefs.h. */
39373 $curl_includes_string
39376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39377 $EGREP "strnicmp" >/dev/null 2>&1; then :
39379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39380 $as_echo "yes" >&6; }
39381 tst_proto_strnicmp="yes"
39385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39386 $as_echo "no" >&6; }
39387 tst_proto_strnicmp="no"
39394 if test "$tst_proto_strnicmp" = "yes"; then
39395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39396 $as_echo_n "checking if strnicmp is compilable... " >&6; }
39397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39398 /* end confdefs.h. */
39401 $curl_includes_string
39406 if(0 != strnicmp(0, 0))
39414 if ac_fn_c_try_compile "$LINENO"; then :
39416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39417 $as_echo "yes" >&6; }
39418 tst_compi_strnicmp="yes"
39422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39423 $as_echo "no" >&6; }
39424 tst_compi_strnicmp="no"
39427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39430 if test "$tst_compi_strnicmp" = "yes"; then
39431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39432 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
39433 if test "x$curl_disallow_strnicmp" != "xyes"; then
39434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39435 $as_echo "yes" >&6; }
39436 tst_allow_strnicmp="yes"
39438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39439 $as_echo "no" >&6; }
39440 tst_allow_strnicmp="no"
39444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39445 $as_echo_n "checking if strnicmp might be used... " >&6; }
39446 if test "$tst_links_strnicmp" = "yes" &&
39447 test "$tst_proto_strnicmp" = "yes" &&
39448 test "$tst_compi_strnicmp" = "yes" &&
39449 test "$tst_allow_strnicmp" = "yes"; then
39450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39451 $as_echo "yes" >&6; }
39453 cat >>confdefs.h <<_ACEOF
39454 #define HAVE_STRNICMP 1
39457 curl_cv_func_strnicmp="yes"
39459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39460 $as_echo "no" >&6; }
39461 curl_cv_func_strnicmp="no"
39466 tst_links_strstr="unknown"
39467 tst_proto_strstr="unknown"
39468 tst_compi_strstr="unknown"
39469 tst_allow_strstr="unknown"
39471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39472 $as_echo_n "checking if strstr can be linked... " >&6; }
39473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39474 /* end confdefs.h. */
39477 #define strstr innocuous_strstr
39479 # include <limits.h>
39481 # include <assert.h>
39488 #if defined __stub_strstr || defined __stub___strstr
39500 if ac_fn_c_try_link "$LINENO"; then :
39502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39503 $as_echo "yes" >&6; }
39504 tst_links_strstr="yes"
39508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39509 $as_echo "no" >&6; }
39510 tst_links_strstr="no"
39513 rm -f core conftest.err conftest.$ac_objext \
39514 conftest$ac_exeext conftest.$ac_ext
39516 if test "$tst_links_strstr" = "yes"; then
39517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39518 $as_echo_n "checking if strstr is prototyped... " >&6; }
39519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39520 /* end confdefs.h. */
39522 $curl_includes_string
39525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39526 $EGREP "strstr" >/dev/null 2>&1; then :
39528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39529 $as_echo "yes" >&6; }
39530 tst_proto_strstr="yes"
39534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39535 $as_echo "no" >&6; }
39536 tst_proto_strstr="no"
39543 if test "$tst_proto_strstr" = "yes"; then
39544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39545 $as_echo_n "checking if strstr is compilable... " >&6; }
39546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39547 /* end confdefs.h. */
39550 $curl_includes_string
39555 if(0 != strstr(0, 0))
39563 if ac_fn_c_try_compile "$LINENO"; then :
39565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39566 $as_echo "yes" >&6; }
39567 tst_compi_strstr="yes"
39571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39572 $as_echo "no" >&6; }
39573 tst_compi_strstr="no"
39576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39579 if test "$tst_compi_strstr" = "yes"; then
39580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39581 $as_echo_n "checking if strstr usage allowed... " >&6; }
39582 if test "x$curl_disallow_strstr" != "xyes"; then
39583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39584 $as_echo "yes" >&6; }
39585 tst_allow_strstr="yes"
39587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39588 $as_echo "no" >&6; }
39589 tst_allow_strstr="no"
39593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39594 $as_echo_n "checking if strstr might be used... " >&6; }
39595 if test "$tst_links_strstr" = "yes" &&
39596 test "$tst_proto_strstr" = "yes" &&
39597 test "$tst_compi_strstr" = "yes" &&
39598 test "$tst_allow_strstr" = "yes"; then
39599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39600 $as_echo "yes" >&6; }
39602 cat >>confdefs.h <<_ACEOF
39603 #define HAVE_STRSTR 1
39606 curl_cv_func_strstr="yes"
39608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39609 $as_echo "no" >&6; }
39610 curl_cv_func_strstr="no"
39615 tst_links_strtok_r="unknown"
39616 tst_proto_strtok_r="unknown"
39617 tst_compi_strtok_r="unknown"
39618 tst_allow_strtok_r="unknown"
39620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39621 $as_echo_n "checking if strtok_r can be linked... " >&6; }
39622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39623 /* end confdefs.h. */
39626 #define strtok_r innocuous_strtok_r
39628 # include <limits.h>
39630 # include <assert.h>
39637 #if defined __stub_strtok_r || defined __stub___strtok_r
39643 return strtok_r ();
39649 if ac_fn_c_try_link "$LINENO"; then :
39651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39652 $as_echo "yes" >&6; }
39653 tst_links_strtok_r="yes"
39657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39658 $as_echo "no" >&6; }
39659 tst_links_strtok_r="no"
39662 rm -f core conftest.err conftest.$ac_objext \
39663 conftest$ac_exeext conftest.$ac_ext
39665 if test "$tst_links_strtok_r" = "yes"; then
39666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39667 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
39668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39669 /* end confdefs.h. */
39671 $curl_includes_string
39674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39675 $EGREP "strtok_r" >/dev/null 2>&1; then :
39677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39678 $as_echo "yes" >&6; }
39679 tst_proto_strtok_r="yes"
39683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39684 $as_echo "no" >&6; }
39685 tst_proto_strtok_r="no"
39692 if test "$tst_proto_strtok_r" = "yes"; then
39693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39694 $as_echo_n "checking if strtok_r is compilable... " >&6; }
39695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39696 /* end confdefs.h. */
39699 $curl_includes_string
39704 if(0 != strtok_r(0, 0, 0))
39712 if ac_fn_c_try_compile "$LINENO"; then :
39714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39715 $as_echo "yes" >&6; }
39716 tst_compi_strtok_r="yes"
39720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39721 $as_echo "no" >&6; }
39722 tst_compi_strtok_r="no"
39725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39728 if test "$tst_compi_strtok_r" = "yes"; then
39729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39730 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
39731 if test "x$curl_disallow_strtok_r" != "xyes"; then
39732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39733 $as_echo "yes" >&6; }
39734 tst_allow_strtok_r="yes"
39736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39737 $as_echo "no" >&6; }
39738 tst_allow_strtok_r="no"
39742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39743 $as_echo_n "checking if strtok_r might be used... " >&6; }
39744 if test "$tst_links_strtok_r" = "yes" &&
39745 test "$tst_proto_strtok_r" = "yes" &&
39746 test "$tst_compi_strtok_r" = "yes" &&
39747 test "$tst_allow_strtok_r" = "yes"; then
39748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39749 $as_echo "yes" >&6; }
39751 cat >>confdefs.h <<_ACEOF
39752 #define HAVE_STRTOK_R 1
39755 curl_cv_func_strtok_r="yes"
39757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39758 $as_echo "no" >&6; }
39759 curl_cv_func_strtok_r="no"
39764 tst_links_strtoll="unknown"
39765 tst_proto_strtoll="unknown"
39766 tst_compi_strtoll="unknown"
39767 tst_allow_strtoll="unknown"
39769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39770 $as_echo_n "checking if strtoll can be linked... " >&6; }
39771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39772 /* end confdefs.h. */
39775 #define strtoll innocuous_strtoll
39777 # include <limits.h>
39779 # include <assert.h>
39786 #if defined __stub_strtoll || defined __stub___strtoll
39798 if ac_fn_c_try_link "$LINENO"; then :
39800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39801 $as_echo "yes" >&6; }
39802 tst_links_strtoll="yes"
39806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39807 $as_echo "no" >&6; }
39808 tst_links_strtoll="no"
39811 rm -f core conftest.err conftest.$ac_objext \
39812 conftest$ac_exeext conftest.$ac_ext
39814 if test "$tst_links_strtoll" = "yes"; then
39815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39816 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39818 /* end confdefs.h. */
39820 $curl_includes_stdlib
39823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39824 $EGREP "strtoll" >/dev/null 2>&1; then :
39826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39827 $as_echo "yes" >&6; }
39828 tst_proto_strtoll="yes"
39832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39833 $as_echo "no" >&6; }
39834 tst_proto_strtoll="no"
39841 if test "$tst_proto_strtoll" = "yes"; then
39842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39843 $as_echo_n "checking if strtoll is compilable... " >&6; }
39844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39845 /* end confdefs.h. */
39848 $curl_includes_stdlib
39853 if(0 != strtoll(0, 0, 0))
39861 if ac_fn_c_try_compile "$LINENO"; then :
39863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39864 $as_echo "yes" >&6; }
39865 tst_compi_strtoll="yes"
39869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39870 $as_echo "no" >&6; }
39871 tst_compi_strtoll="no"
39874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39877 if test "$tst_compi_strtoll" = "yes"; then
39878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39879 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39880 if test "x$curl_disallow_strtoll" != "xyes"; then
39881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39882 $as_echo "yes" >&6; }
39883 tst_allow_strtoll="yes"
39885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39886 $as_echo "no" >&6; }
39887 tst_allow_strtoll="no"
39891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39892 $as_echo_n "checking if strtoll might be used... " >&6; }
39893 if test "$tst_links_strtoll" = "yes" &&
39894 test "$tst_proto_strtoll" = "yes" &&
39895 test "$tst_compi_strtoll" = "yes" &&
39896 test "$tst_allow_strtoll" = "yes"; then
39897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39898 $as_echo "yes" >&6; }
39900 cat >>confdefs.h <<_ACEOF
39901 #define HAVE_STRTOLL 1
39904 curl_cv_func_strtoll="yes"
39906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39907 $as_echo "no" >&6; }
39908 curl_cv_func_strtoll="no"
39912 curl_includes_sys_uio="\
39913 /* includes start */
39914 #ifdef HAVE_SYS_TYPES_H
39915 # include <sys/types.h>
39917 #ifdef HAVE_SYS_UIO_H
39918 # include <sys/uio.h>
39920 /* includes end */"
39921 for ac_header in sys/types.h sys/uio.h
39923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39924 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39926 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39927 cat >>confdefs.h <<_ACEOF
39928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39938 tst_links_writev="unknown"
39939 tst_proto_writev="unknown"
39940 tst_compi_writev="unknown"
39941 tst_allow_writev="unknown"
39943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39944 $as_echo_n "checking if writev can be linked... " >&6; }
39945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39946 /* end confdefs.h. */
39949 #define writev innocuous_writev
39951 # include <limits.h>
39953 # include <assert.h>
39960 #if defined __stub_writev || defined __stub___writev
39972 if ac_fn_c_try_link "$LINENO"; then :
39974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39975 $as_echo "yes" >&6; }
39976 tst_links_writev="yes"
39980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39981 $as_echo "no" >&6; }
39982 tst_links_writev="no"
39985 rm -f core conftest.err conftest.$ac_objext \
39986 conftest$ac_exeext conftest.$ac_ext
39988 if test "$tst_links_writev" = "yes"; then
39989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39990 $as_echo_n "checking if writev is prototyped... " >&6; }
39991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39992 /* end confdefs.h. */
39994 $curl_includes_sys_uio
39997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39998 $EGREP "writev" >/dev/null 2>&1; then :
40000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40001 $as_echo "yes" >&6; }
40002 tst_proto_writev="yes"
40006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40007 $as_echo "no" >&6; }
40008 tst_proto_writev="no"
40015 if test "$tst_proto_writev" = "yes"; then
40016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
40017 $as_echo_n "checking if writev is compilable... " >&6; }
40018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40019 /* end confdefs.h. */
40022 $curl_includes_sys_uio
40027 if(0 != writev(0, 0, 0))
40035 if ac_fn_c_try_compile "$LINENO"; then :
40037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40038 $as_echo "yes" >&6; }
40039 tst_compi_writev="yes"
40043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40044 $as_echo "no" >&6; }
40045 tst_compi_writev="no"
40048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40051 if test "$tst_compi_writev" = "yes"; then
40052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
40053 $as_echo_n "checking if writev usage allowed... " >&6; }
40054 if test "x$curl_disallow_writev" != "xyes"; then
40055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40056 $as_echo "yes" >&6; }
40057 tst_allow_writev="yes"
40059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40060 $as_echo "no" >&6; }
40061 tst_allow_writev="no"
40065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
40066 $as_echo_n "checking if writev might be used... " >&6; }
40067 if test "$tst_links_writev" = "yes" &&
40068 test "$tst_proto_writev" = "yes" &&
40069 test "$tst_compi_writev" = "yes" &&
40070 test "$tst_allow_writev" = "yes"; then
40071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40072 $as_echo "yes" >&6; }
40074 cat >>confdefs.h <<_ACEOF
40075 #define HAVE_WRITEV 1
40078 curl_cv_func_writev="yes"
40080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40081 $as_echo "no" >&6; }
40082 curl_cv_func_writev="no"
40090 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
40091 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40095 ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
40096 #include <sys/types.h>
40098 if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
40104 cat >>confdefs.h <<_ACEOF
40105 #define HAVE_DECL_GETPWUID_R $ac_have_decl
40107 if test $ac_have_decl = 1; then :
40111 $as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
40117 for ac_func in fnmatch \
40126 mach_absolute_time \
40135 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40136 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40138 cat >>confdefs.h <<_ACEOF
40139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40146 eval skipcheck=\$skipcheck_$func
40147 if test "x$skipcheck" != "xyes"; then
40148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40149 $as_echo_n "checking deeper for $func... " >&6; }
40150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40151 /* end confdefs.h. */
40165 if ac_fn_c_try_link "$LINENO"; then :
40167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40168 $as_echo "yes" >&6; }
40169 eval "ac_cv_func_$func=yes"
40171 cat >>confdefs.h <<_ACEOF
40172 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40179 $as_echo "but still no" >&6; }
40182 rm -f core conftest.err conftest.$ac_objext \
40183 conftest$ac_exeext conftest.$ac_ext
40190 if test "$ipv6" = "yes"; then
40191 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40193 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40202 tst_method="unknown"
40204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40205 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40206 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40207 tst_method="fcntl O_NONBLOCK"
40208 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40209 tst_method="ioctl FIONBIO"
40210 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40211 tst_method="ioctlsocket FIONBIO"
40212 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40213 tst_method="IoctlSocket FIONBIO"
40214 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40215 tst_method="setsockopt SO_NONBLOCK"
40217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40218 $as_echo "$tst_method" >&6; }
40219 if test "$tst_method" = "unknown"; then
40220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40221 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40226 # Extract the first word of "perl", so it can be a program name with args.
40227 set dummy perl; ac_word=$2
40228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40229 $as_echo_n "checking for $ac_word... " >&6; }
40230 if ${ac_cv_path_PERL+:} false; then :
40231 $as_echo_n "(cached) " >&6
40235 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40239 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40240 for as_dir in $as_dummy
40243 test -z "$as_dir" && as_dir=.
40244 for ac_exec_ext in '' $ac_executable_extensions; do
40245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40246 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40257 PERL=$ac_cv_path_PERL
40258 if test -n "$PERL"; then
40259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40260 $as_echo "$PERL" >&6; }
40262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40263 $as_echo "no" >&6; }
40269 for ac_prog in gnroff nroff
40271 # Extract the first word of "$ac_prog", so it can be a program name with args.
40272 set dummy $ac_prog; ac_word=$2
40273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40274 $as_echo_n "checking for $ac_word... " >&6; }
40275 if ${ac_cv_path_NROFF+:} false; then :
40276 $as_echo_n "(cached) " >&6
40280 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40284 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40285 for as_dir in $as_dummy
40288 test -z "$as_dir" && as_dir=.
40289 for ac_exec_ext in '' $ac_executable_extensions; do
40290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40291 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40302 NROFF=$ac_cv_path_NROFF
40303 if test -n "$NROFF"; then
40304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40305 $as_echo "$NROFF" >&6; }
40307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40308 $as_echo "no" >&6; }
40312 test -n "$NROFF" && break
40317 if test -n "$NROFF"; then
40319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40320 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40322 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40323 if test -z "$mancheck"; then
40325 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40326 if test -z "$mancheck"; then
40328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40329 $as_echo "failed" >&6; }
40330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40331 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40334 $as_echo "$MANOPT" >&6; }
40337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40338 $as_echo "$MANOPT" >&6; }
40343 if test -z "$MANOPT"
40345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40346 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40351 if test "$USE_MANUAL" = "1"; then
40353 $as_echo "#define USE_MANUAL 1" >>confdefs.h
40355 curl_manual_msg="enabled"
40358 if test x"$USE_MANUAL" = x1; then
40360 USE_MANUAL_FALSE='#'
40362 USE_MANUAL_TRUE='#'
40371 if test "$want_ares" = "yes"; then
40372 clean_CPPFLAGS="$CPPFLAGS"
40373 clean_LDFLAGS="$LDFLAGS"
40375 embedded_ares="unknown"
40376 configure_runpath=`pwd`
40377 embedded_ares_builddir="$configure_runpath/ares"
40378 if test -n "$want_ares_path"; then
40379 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
40381 if test -n "$PKG_CONFIG"; then
40382 PKGCONFIG="$PKG_CONFIG"
40384 if test -n "$ac_tool_prefix"; then
40385 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40386 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40388 $as_echo_n "checking for $ac_word... " >&6; }
40389 if ${ac_cv_path_PKGCONFIG+:} false; then :
40390 $as_echo_n "(cached) " >&6
40394 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40398 as_dummy="$PATH:/usr/bin:/usr/local/bin"
40399 for as_dir in $as_dummy
40402 test -z "$as_dir" && as_dir=.
40403 for ac_exec_ext in '' $ac_executable_extensions; do
40404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40405 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40416 PKGCONFIG=$ac_cv_path_PKGCONFIG
40417 if test -n "$PKGCONFIG"; then
40418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40419 $as_echo "$PKGCONFIG" >&6; }
40421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40422 $as_echo "no" >&6; }
40427 if test -z "$ac_cv_path_PKGCONFIG"; then
40428 ac_pt_PKGCONFIG=$PKGCONFIG
40429 # Extract the first word of "pkg-config", so it can be a program name with args.
40430 set dummy pkg-config; ac_word=$2
40431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40432 $as_echo_n "checking for $ac_word... " >&6; }
40433 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40434 $as_echo_n "(cached) " >&6
40436 case $ac_pt_PKGCONFIG in
40438 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40442 as_dummy="$PATH:/usr/bin:/usr/local/bin"
40443 for as_dir in $as_dummy
40446 test -z "$as_dir" && as_dir=.
40447 for ac_exec_ext in '' $ac_executable_extensions; do
40448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40449 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40460 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40461 if test -n "$ac_pt_PKGCONFIG"; then
40462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40463 $as_echo "$ac_pt_PKGCONFIG" >&6; }
40465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40466 $as_echo "no" >&6; }
40469 if test "x$ac_pt_PKGCONFIG" = x; then
40472 case $cross_compiling:$ac_tool_warned in
40474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40476 ac_tool_warned=yes ;;
40478 PKGCONFIG=$ac_pt_PKGCONFIG
40481 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40486 if test "x$PKGCONFIG" != "xno"; then
40487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40488 $as_echo_n "checking for libcares options with pkg-config... " >&6; }
40490 if test -n "$ARES_PCDIR"; then
40491 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40492 export PKG_CONFIG_LIBDIR
40494 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40496 if test -z "$itexists"; then
40498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40499 $as_echo "no" >&6; }
40501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40502 $as_echo "found" >&6; }
40506 if test "$PKGCONFIG" != "no" ; then
40508 if test -n "$ARES_PCDIR"; then
40509 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40510 export PKG_CONFIG_LIBDIR
40513 $PKGCONFIG --libs-only-l libcares`
40515 if test -n "$ARES_PCDIR"; then
40516 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40517 export PKG_CONFIG_LIBDIR
40520 $PKGCONFIG --libs-only-L libcares`
40522 if test -n "$ARES_PCDIR"; then
40523 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40524 export PKG_CONFIG_LIBDIR
40527 $PKGCONFIG --cflags-only-I libcares`
40528 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
40529 $as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
40530 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
40531 $as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40532 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40533 $as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40535 ares_CPPFLAGS="-I$want_ares_path/include"
40536 ares_LDFLAGS="-L$want_ares_path/lib"
40537 ares_LIBS="-lcares"
40540 if test -d "$srcdir/ares"; then
40541 embedded_ares="yes"
40542 subdirs="$subdirs ares"
40545 ares_LDFLAGS="-L$embedded_ares_builddir"
40546 ares_LIBS="-lcares"
40549 if test -n "$PKG_CONFIG"; then
40550 PKGCONFIG="$PKG_CONFIG"
40552 if test -n "$ac_tool_prefix"; then
40553 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40554 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40556 $as_echo_n "checking for $ac_word... " >&6; }
40557 if ${ac_cv_path_PKGCONFIG+:} false; then :
40558 $as_echo_n "(cached) " >&6
40562 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40566 as_dummy="$PATH:/usr/bin:/usr/local/bin"
40567 for as_dir in $as_dummy
40570 test -z "$as_dir" && as_dir=.
40571 for ac_exec_ext in '' $ac_executable_extensions; do
40572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40573 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40584 PKGCONFIG=$ac_cv_path_PKGCONFIG
40585 if test -n "$PKGCONFIG"; then
40586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40587 $as_echo "$PKGCONFIG" >&6; }
40589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40590 $as_echo "no" >&6; }
40595 if test -z "$ac_cv_path_PKGCONFIG"; then
40596 ac_pt_PKGCONFIG=$PKGCONFIG
40597 # Extract the first word of "pkg-config", so it can be a program name with args.
40598 set dummy pkg-config; ac_word=$2
40599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40600 $as_echo_n "checking for $ac_word... " >&6; }
40601 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40602 $as_echo_n "(cached) " >&6
40604 case $ac_pt_PKGCONFIG in
40606 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40610 as_dummy="$PATH:/usr/bin:/usr/local/bin"
40611 for as_dir in $as_dummy
40614 test -z "$as_dir" && as_dir=.
40615 for ac_exec_ext in '' $ac_executable_extensions; do
40616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40617 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40628 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40629 if test -n "$ac_pt_PKGCONFIG"; then
40630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40631 $as_echo "$ac_pt_PKGCONFIG" >&6; }
40633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40634 $as_echo "no" >&6; }
40637 if test "x$ac_pt_PKGCONFIG" = x; then
40640 case $cross_compiling:$ac_tool_warned in
40642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40644 ac_tool_warned=yes ;;
40646 PKGCONFIG=$ac_pt_PKGCONFIG
40649 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40654 if test "x$PKGCONFIG" != "xno"; then
40655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40656 $as_echo_n "checking for libcares options with pkg-config... " >&6; }
40658 if test -n ""; then
40659 PKG_CONFIG_LIBDIR=""
40660 export PKG_CONFIG_LIBDIR
40662 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40664 if test -z "$itexists"; then
40666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40667 $as_echo "no" >&6; }
40669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40670 $as_echo "found" >&6; }
40674 if test "$PKGCONFIG" != "no" ; then
40675 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
40676 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
40677 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
40678 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
40679 $as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
40680 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
40681 $as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40682 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40683 $as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40687 ares_LIBS="-lcares"
40692 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40693 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40694 LIBS="$ares_LIBS $clean_LIBS"
40696 if test "$embedded_ares" != "yes"; then
40697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40698 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40700 /* end confdefs.h. */
40704 /* set of dummy functions in case c-ares was built with debug */
40705 void curl_dofree() { }
40706 void curl_sclose() { }
40707 void curl_domalloc() { }
40708 void curl_docalloc() { }
40709 void curl_socket() { }
40714 ares_channel channel;
40715 ares_cancel(channel); /* added in 1.2.0 */
40716 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40717 ares_dup(&channel, channel); /* added in 1.6.0 */
40724 if ac_fn_c_try_link "$LINENO"; then :
40726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40727 $as_echo "yes" >&6; }
40731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40732 $as_echo "no" >&6; }
40733 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40734 CPPFLAGS="$clean_CPPFLAGS"
40735 LDFLAGS="$clean_LDFLAGS"
40741 rm -f core conftest.err conftest.$ac_objext \
40742 conftest$ac_exeext conftest.$ac_ext
40744 if test "$want_ares" = "yes"; then
40746 $as_echo "#define USE_ARES 1" >>confdefs.h
40750 curl_res_msg="c-ares"
40754 if test x$embedded_ares = xyes; then
40755 USE_EMBEDDED_ARES_TRUE=
40756 USE_EMBEDDED_ARES_FALSE='#'
40758 USE_EMBEDDED_ARES_TRUE='#'
40759 USE_EMBEDDED_ARES_FALSE=
40763 if test "x$curl_cv_native_windows" != "xyes" &&
40764 test "x$enable_shared" = "xyes"; then
40765 build_libhostname=yes
40767 build_libhostname=no
40769 if test x$build_libhostname = xyes; then
40770 BUILD_LIBHOSTNAME_TRUE=
40771 BUILD_LIBHOSTNAME_FALSE='#'
40773 BUILD_LIBHOSTNAME_TRUE='#'
40774 BUILD_LIBHOSTNAME_FALSE=
40778 if test "x$want_ares" != xyes; then
40780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40781 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40782 OPT_THRES="default"
40783 # Check whether --enable-threaded_resolver was given.
40784 if test "${enable_threaded_resolver+set}" = set; then :
40785 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40788 case "$OPT_THRES" in
40796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40797 $as_echo "$want_thres" >&6; }
40801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40802 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40803 # Check whether --enable-pthreads was given.
40804 if test "${enable_pthreads+set}" = set; then :
40805 enableval=$enable_pthreads; case "$enableval" in
40806 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40807 $as_echo "no" >&6; }
40810 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40811 $as_echo "yes" >&6; }
40817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40818 $as_echo "auto" >&6; }
40825 if test "$want_pthreads" != "no"; then
40826 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40827 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40829 if test "$dontwant_rt" != "no"; then
40830 if test "$want_pthreads" = "yes"; then
40831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40832 $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40838 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40842 if test "$want_pthreads" != "no"; then
40843 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40844 if test "x$ac_cv_header_pthread_h" = xyes; then :
40846 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40848 save_CFLAGS="$CFLAGS"
40850 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40851 if test "x$ac_cv_func_pthread_create" = xyes; then :
40852 USE_THREADS_POSIX=1
40858 USE_THREADS_POSIX=""
40864 if test "$USE_THREADS_POSIX" != "1"
40866 CFLAGS="$CFLAGS -pthread"
40867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40868 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40869 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40870 $as_echo_n "(cached) " >&6
40872 ac_check_lib_save_LIBS=$LIBS
40873 LIBS="-lpthread $LIBS"
40874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40875 /* end confdefs.h. */
40881 char pthread_create ();
40884 return pthread_create ();
40889 if ac_fn_c_try_link "$LINENO"; then :
40890 ac_cv_lib_pthread_pthread_create=yes
40892 ac_cv_lib_pthread_pthread_create=no
40894 rm -f core conftest.err conftest.$ac_objext \
40895 conftest$ac_exeext conftest.$ac_ext
40896 LIBS=$ac_check_lib_save_LIBS
40898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40899 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40900 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40901 USE_THREADS_POSIX=1
40903 CFLAGS="$save_CFLAGS"
40908 if test "x$USE_THREADS_POSIX" = "x1"
40911 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40913 curl_res_msg="POSIX threaded"
40921 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40922 if test "$want_pthreads" = "yes"; then
40923 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40925 if test "$curl_cv_native_windows" = "yes"; then
40926 USE_THREADS_WIN32=1
40928 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40930 curl_res_msg="Win32 threaded"
40932 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40937 $as_echo_n "checking whether to enable verbose strings... " >&6; }
40938 # Check whether --enable-verbose was given.
40939 if test "${enable_verbose+set}" = set; then :
40940 enableval=$enable_verbose; case "$enableval" in
40942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40943 $as_echo "no" >&6; }
40945 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40947 curl_verbose_msg="no"
40949 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40950 $as_echo "yes" >&6; }
40954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40955 $as_echo "yes" >&6; }
40960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40961 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40962 # Check whether --enable-sspi was given.
40963 if test "${enable_sspi+set}" = set; then :
40964 enableval=$enable_sspi; case "$enableval" in
40966 if test "$curl_cv_native_windows" = "yes"; then
40967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40968 $as_echo "yes" >&6; }
40970 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40974 curl_sspi_msg="enabled"
40976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40977 $as_echo "no" >&6; }
40978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40979 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40983 if test "x$WINSSL_ENABLED" = "x1"; then
40984 # --with-winssl implies --enable-sspi
40985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40986 $as_echo "yes" >&6; }
40988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40989 $as_echo "no" >&6; }
40994 if test "x$WINSSL_ENABLED" = "x1"; then
40995 # --with-winssl implies --enable-sspi
40996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40997 $as_echo "yes" >&6; }
40999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41000 $as_echo "no" >&6; }
41006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
41007 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
41008 # Check whether --enable-crypto-auth was given.
41009 if test "${enable_crypto_auth+set}" = set; then :
41010 enableval=$enable_crypto_auth; case "$enableval" in
41012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41013 $as_echo "no" >&6; }
41015 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
41017 CURL_DISABLE_CRYPTO_AUTH=1
41019 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41020 $as_echo "yes" >&6; }
41024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41025 $as_echo "yes" >&6; }
41031 OPT_NTLM_WB="default"
41032 # Check whether --enable-ntlm-wb was given.
41033 if test "${enable_ntlm_wb+set}" = set; then :
41034 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
41037 want_ntlm_wb_file="/usr/bin/ntlm_auth"
41038 case "$OPT_NTLM_WB" in
41047 if test -n "$enableval" && test "$enableval" != "yes"; then
41048 want_ntlm_wb_file="$enableval"
41055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
41056 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
41057 if test "$curl_cv_native_windows" = "yes" ||
41058 test "x$SSL_ENABLED" = "x"; then
41059 want_ntlm_wb_file=""
41062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
41063 $as_echo "$want_ntlm_wb" >&6; }
41064 if test "$want_ntlm_wb" = "yes"; then
41066 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
41069 cat >>confdefs.h <<_ACEOF
41070 #define NTLM_WB_FILE "$want_ntlm_wb_file"
41077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
41078 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
41079 # Check whether --enable-tls-srp was given.
41080 if test "${enable_tls_srp+set}" = set; then :
41081 enableval=$enable_tls_srp; case "$enableval" in
41083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41084 $as_echo "no" >&6; }
41086 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41090 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41091 $as_echo "yes" >&6; }
41096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41097 $as_echo "yes" >&6; }
41103 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41105 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41108 curl_tls_srp_msg="enabled"
41111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41112 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41113 # Check whether --enable-unix-sockets was given.
41114 if test "${enable_unix_sockets+set}" = set; then :
41115 enableval=$enable_unix_sockets; case "$enableval" in
41116 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41117 $as_echo "no" >&6; }
41118 want_unix_sockets=no
41120 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41121 $as_echo "yes" >&6; }
41122 want_unix_sockets=yes
41127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41128 $as_echo "auto" >&6; }
41129 want_unix_sockets=auto
41134 if test "x$want_unix_sockets" != "xno"; then
41135 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41136 #include <sys/un.h>
41139 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41142 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41146 curl_unix_sockets_msg="enabled"
41150 if test "x$want_unix_sockets" = "xyes"; then
41151 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41159 $as_echo_n "checking whether to enable support for cookies... " >&6; }
41160 # Check whether --enable-cookies was given.
41161 if test "${enable_cookies+set}" = set; then :
41162 enableval=$enable_cookies; case "$enableval" in
41164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41165 $as_echo "no" >&6; }
41167 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41170 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41171 $as_echo "yes" >&6; }
41175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41176 $as_echo "yes" >&6; }
41182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41183 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41184 CFLAG_CURL_SYMBOL_HIDING=""
41185 doing_symbol_hiding="no"
41186 if test x"$curl_cv_native_windows" != "xyes" &&
41187 test "$want_symbol_hiding" = "yes" &&
41188 test "$supports_symbol_hiding" = "yes"; then
41189 doing_symbol_hiding="yes"
41190 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41192 cat >>confdefs.h <<_ACEOF
41193 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41197 $as_echo "yes" >&6; }
41199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41200 $as_echo "no" >&6; }
41202 if test x$doing_symbol_hiding = xyes; then
41203 DOING_CURL_SYMBOL_HIDING_TRUE=
41204 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41206 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41207 DOING_CURL_SYMBOL_HIDING_FALSE=
41222 if test x$cross_compiling = xyes; then
41223 CROSSCOMPILING_TRUE=
41224 CROSSCOMPILING_FALSE='#'
41226 CROSSCOMPILING_TRUE='#'
41227 CROSSCOMPILING_FALSE=
41231 ENABLE_SHARED="$enable_shared"
41234 ENABLE_STATIC="$enable_static"
41239 if test "x$OPENSSL_ENABLED" = "x1"; then
41240 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41241 elif test -n "$SSL_ENABLED"; then
41242 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41244 if test "x$IPV6_ENABLED" = "x1"; then
41245 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41247 if test "x$USE_UNIX_SOCKETS" = "x1"; then
41248 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41250 if test "x$HAVE_LIBZ" = "x1"; then
41251 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41253 if test "x$HAVE_BROTLI" = "x1"; then
41254 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41256 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41257 -o "x$USE_THREADS_WIN32" = "x1"; then
41258 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41260 if test "x$IDN_ENABLED" = "x1"; then
41261 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41263 if test "x$USE_WINDOWS_SSPI" = "x1"; then
41264 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41267 if test "x$HAVE_GSSAPI" = "x1"; then
41268 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41271 if test "x$curl_psl_msg" = "xyes"; then
41272 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41275 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41276 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41277 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41280 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41281 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41282 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41285 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41286 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41287 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41288 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41289 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41291 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41292 "x$NTLM_WB_ENABLED" = "x1"; then
41293 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41298 if test "x$USE_TLS_SRP" = "x1"; then
41299 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41302 if test "x$USE_NGHTTP2" = "x1"; then
41303 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41306 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41307 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41310 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41311 -o "x$NSS_ENABLED" = "x1"; then
41312 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41317 if test "x$CURL_DISABLE_HTTP" != "x1"; then
41318 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41319 if test "x$SSL_ENABLED" = "x1"; then
41320 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41323 if test "x$CURL_DISABLE_FTP" != "x1"; then
41324 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41325 if test "x$SSL_ENABLED" = "x1"; then
41326 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41329 if test "x$CURL_DISABLE_FILE" != "x1"; then
41330 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41332 if test "x$CURL_DISABLE_TELNET" != "x1"; then
41333 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41335 if test "x$CURL_DISABLE_LDAP" != "x1"; then
41336 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41337 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41338 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41339 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41340 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41344 if test "x$CURL_DISABLE_DICT" != "x1"; then
41345 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41347 if test "x$CURL_DISABLE_TFTP" != "x1"; then
41348 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41350 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41351 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41353 if test "x$CURL_DISABLE_POP3" != "x1"; then
41354 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41355 if test "x$SSL_ENABLED" = "x1"; then
41356 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41359 if test "x$CURL_DISABLE_IMAP" != "x1"; then
41360 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41361 if test "x$SSL_ENABLED" = "x1"; then
41362 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41365 if test "x$CURL_DISABLE_SMB" != "x1" \
41366 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41367 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41368 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41369 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41370 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41371 if test "x$SSL_ENABLED" = "x1"; then
41372 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41375 if test "x$CURL_DISABLE_SMTP" != "x1"; then
41376 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41377 if test "x$SSL_ENABLED" = "x1"; then
41378 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41381 if test "x$USE_LIBSSH2" = "x1"; then
41382 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41383 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41385 if test "x$USE_LIBSSH" = "x1"; then
41386 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41387 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41389 if test "x$CURL_DISABLE_RTSP" != "x1"; then
41390 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41392 if test "x$USE_LIBRTMP" = "x1"; then
41393 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41396 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41407 squeeze LIBCURL_LIBS
41408 squeeze CURL_NETWORK_LIBS
41409 squeeze CURL_NETWORK_AND_TIME_LIBS
41411 squeeze SUPPORT_FEATURES
41412 squeeze SUPPORT_PROTOCOLS
41417 for xc_word in $LIBS; do
41423 xc_bad_var_libs=yes
41427 if test $xc_bad_var_libs = yes; then
41428 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41429 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
41430 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41431 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41435 xc_bad_var_ldflags=no
41436 for xc_word in $LDFLAGS; do
41439 xc_bad_var_ldflags=yes
41442 xc_bad_var_ldflags=yes
41445 xc_bad_var_ldflags=yes
41448 xc_bad_var_ldflags=yes
41452 if test $xc_bad_var_ldflags = yes; then
41453 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41454 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41455 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41456 for xc_word in $LDFLAGS; do
41459 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41460 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41463 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41464 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41467 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41468 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41471 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41472 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41479 xc_bad_var_cppflags=no
41480 for xc_word in $CPPFLAGS; do
41483 xc_bad_var_cppflags=yes
41485 -L* | --library-path=*)
41486 xc_bad_var_cppflags=yes
41489 xc_bad_var_cppflags=yes
41493 if test $xc_bad_var_cppflags = yes; then
41494 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41495 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41496 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41497 for xc_word in $CPPFLAGS; do
41500 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41501 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41503 -L* | --library-path=*)
41504 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41505 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41508 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41509 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41516 xc_bad_var_cflags=no
41517 for xc_word in $CFLAGS; do
41520 xc_bad_var_cflags=yes
41523 xc_bad_var_cflags=yes
41526 xc_bad_var_cflags=yes
41529 xc_bad_var_cflags=yes
41531 -L* | --library-path=*)
41532 xc_bad_var_cflags=yes
41535 xc_bad_var_cflags=yes
41539 if test $xc_bad_var_cflags = yes; then
41540 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41541 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41542 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41543 for xc_word in $CFLAGS; do
41546 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41547 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41550 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41551 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41554 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41555 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41558 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41559 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41561 -L* | --library-path=*)
41562 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41563 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41566 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41567 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41573 if test $xc_bad_var_libs = yes ||
41574 test $xc_bad_var_cflags = yes ||
41575 test $xc_bad_var_ldflags = yes ||
41576 test $xc_bad_var_cppflags = yes; then
41577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41578 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41582 SSL_BACKENDS=${ssl_backends}
41585 if test "x$want_curldebug_assumed" = "xyes" &&
41586 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41587 ac_configure_args="$ac_configure_args --enable-curldebug"
41590 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 tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
41592 cat >confcache <<\_ACEOF
41593 # This file is a shell script that caches the results of configure
41594 # tests run on this system so they can be shared between configure
41595 # scripts and configure runs, see configure's option --config-cache.
41596 # It is not useful on other systems. If it contains results you don't
41597 # want to keep, you may remove or edit it.
41599 # config.status only pays attention to the cache file if you give it
41600 # the --recheck option to rerun configure.
41602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41604 # following values.
41608 # The following way of writing the cache mishandles newlines in values,
41609 # but we know of no workaround that is simple, portable, and efficient.
41610 # So, we kill variables containing newlines.
41611 # Ultrix sh set writes to stderr and can't be redirected directly,
41612 # and sets the high bit in the cache file unless we assign to the vars.
41614 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41615 eval ac_val=\$$ac_var
41619 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41623 _ | IFS | as_nl) ;; #(
41624 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41625 *) { eval $ac_var=; unset $ac_var;} ;;
41631 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41632 *${as_nl}ac_space=\ *)
41633 # `set' does not quote correctly, so add quotes: double-quote
41634 # substitution turns \\\\ into \\, and sed turns \\ into \.
41637 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41640 # `set' quotes correctly as required by POSIX, so do not add quotes.
41641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41652 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41655 if test -w "$cache_file"; then
41656 if test "x$cache_file" != "x/dev/null"; then
41657 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41658 $as_echo "$as_me: updating cache $cache_file" >&6;}
41659 if test ! -f "$cache_file" || test -h "$cache_file"; then
41660 cat confcache >"$cache_file"
41662 case $cache_file in #(
41664 mv -f confcache "$cache_file"$$ &&
41665 mv -f "$cache_file"$$ "$cache_file" ;; #(
41667 mv -f confcache "$cache_file" ;;
41672 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41673 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41678 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41679 # Let make expand exec_prefix.
41680 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41682 DEFS=-DHAVE_CONFIG_H
41687 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41688 # 1. Remove the extension, and $U if already installed.
41689 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41690 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41692 # will be set to the directory where LIBOBJS objects are built.
41693 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41694 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41696 LIBOBJS=$ac_libobjs
41698 LTLIBOBJS=$ac_ltlibobjs
41701 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41702 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41705 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41706 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41710 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41711 if test -n "$am_sleep_pid"; then
41712 # Hide warnings about reused PIDs.
41713 wait $am_sleep_pid 2>/dev/null
41715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41716 $as_echo "done" >&6; }
41717 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41718 as_fn_error $? "conditional \"AMDEP\" was never defined.
41719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41721 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41722 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41725 if test -n "$EXEEXT"; then
41727 am__EXEEXT_FALSE='#'
41729 am__EXEEXT_TRUE='#'
41733 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41734 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41737 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41738 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41741 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41742 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41745 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41746 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41749 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41750 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41753 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41754 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41757 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41758 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41761 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41762 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41765 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41766 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41769 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41770 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41773 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41774 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41777 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41778 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41781 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41782 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41785 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41786 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41789 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41790 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41793 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41794 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41797 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41798 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41802 : "${CONFIG_STATUS=./config.status}"
41804 ac_clean_files_save=$ac_clean_files
41805 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41807 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41809 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41811 # Generated by $as_me.
41812 # Run this file to recreate the current configuration.
41813 # Compiler output produced by configure, useful for debugging
41814 # configure, is in config.log if it exists.
41817 ac_cs_recheck=false
41820 SHELL=\${CONFIG_SHELL-$SHELL}
41823 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41824 ## -------------------- ##
41825 ## M4sh Initialization. ##
41826 ## -------------------- ##
41828 # Be more Bourne compatible
41829 DUALCASE=1; export DUALCASE # for MKS sh
41830 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41833 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41834 # is contrary to our usage. Disable this feature.
41835 alias -g '${1+"$@"}'='"$@"'
41836 setopt NO_GLOB_SUBST
41838 case `(set -o) 2>/dev/null` in #(
41850 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41851 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41853 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41854 # Prefer a ksh shell builtin over an external printf program on Solaris,
41855 # but without wasting forks for bash or zsh.
41856 if test -z "$BASH_VERSION$ZSH_VERSION" \
41857 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41858 as_echo='print -r --'
41859 as_echo_n='print -rn --'
41860 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41861 as_echo='printf %s\n'
41862 as_echo_n='printf %s'
41864 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41865 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41866 as_echo_n='/usr/ucb/echo -n'
41868 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41869 as_echo_n_body='eval
41873 expr "X$arg" : "X\\(.*\\)$as_nl";
41874 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41876 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41878 export as_echo_n_body
41879 as_echo_n='sh -c $as_echo_n_body as_echo'
41881 export as_echo_body
41882 as_echo='sh -c $as_echo_body as_echo'
41888 # We need space, tab and new line, in precisely that order. Quoting is
41889 # there to prevent editors from complaining about space-tab.
41890 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41891 # splitting by setting IFS to empty value.)
41894 # Find who we are. Look in the path if we contain no directory separator.
41897 *[\\/]* ) as_myself=$0 ;;
41898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41899 for as_dir in $PATH
41902 test -z "$as_dir" && as_dir=.
41903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41909 # We did not find ourselves, most probably we were run as `sh COMMAND'
41910 # in which case we are not to be found in the path.
41911 if test "x$as_myself" = x; then
41914 if test ! -f "$as_myself"; then
41915 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41919 # Unset variables that we do not need and which cause bugs (e.g. in
41920 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41921 # suppresses any "Segmentation fault" message there. '((' could
41922 # trigger a bug in pdksh 5.2.14.
41923 for as_var in BASH_ENV ENV MAIL MAILPATH
41924 do eval test x\${$as_var+set} = xset \
41925 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41938 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41941 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41942 # ----------------------------------------
41943 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41944 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41945 # script with STATUS, using 1 if that was 0.
41948 as_status=$1; test $as_status -eq 0 && as_status=1
41950 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41951 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41953 $as_echo "$as_me: error: $2" >&2
41954 as_fn_exit $as_status
41958 # as_fn_set_status STATUS
41959 # -----------------------
41960 # Set $? to STATUS, without forking.
41961 as_fn_set_status ()
41964 } # as_fn_set_status
41966 # as_fn_exit STATUS
41967 # -----------------
41968 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41972 as_fn_set_status $1
41978 # Portably unset VAR.
41981 { eval $1=; unset $1;}
41983 as_unset=as_fn_unset
41984 # as_fn_append VAR VALUE
41985 # ----------------------
41986 # Append the text in VALUE to the end of the definition contained in VAR. Take
41987 # advantage of any shell optimizations that allow amortized linear growth over
41988 # repeated appends, instead of the typical quadratic growth present in naive
41990 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41991 eval 'as_fn_append ()
42002 # as_fn_arith ARG...
42003 # ------------------
42004 # Perform arithmetic evaluation on the ARGs, and store the result in the
42005 # global $as_val. Take advantage of shells that can avoid forks. The arguments
42006 # must be portable across $(()) and expr.
42007 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
42008 eval 'as_fn_arith ()
42015 as_val=`expr "$@" || test $? -eq 1`
42020 if expr a : '\(a\)' >/dev/null 2>&1 &&
42021 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42027 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42028 as_basename=basename
42033 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42039 as_me=`$as_basename -- "$0" ||
42040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42041 X"$0" : 'X\(//\)$' \| \
42042 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42044 sed '/^.*\/\([^/][^/]*\)\/*$/{
42058 # Avoid depending upon Character Ranges.
42059 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42060 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42061 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42062 as_cr_digits='0123456789'
42063 as_cr_alnum=$as_cr_Letters$as_cr_digits
42065 ECHO_C= ECHO_N= ECHO_T=
42066 case `echo -n x` in #(((((
42068 case `echo 'xy\c'` in
42069 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42071 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
42078 rm -f conf$$ conf$$.exe conf$$.file
42079 if test -d conf$$.dir; then
42080 rm -f conf$$.dir/conf$$.file
42083 mkdir conf$$.dir 2>/dev/null
42085 if (echo >conf$$.file) 2>/dev/null; then
42086 if ln -s conf$$.file conf$$ 2>/dev/null; then
42088 # ... but there are two gotchas:
42089 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42090 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42091 # In both cases, we have to default to `cp -pR'.
42092 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42094 elif ln conf$$.file conf$$ 2>/dev/null; then
42102 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42103 rmdir conf$$.dir 2>/dev/null
42108 # Create "$as_dir" as a directory, including parents if necessary.
42113 -*) as_dir=./$as_dir;;
42115 test -d "$as_dir" || eval $as_mkdir_p || {
42119 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42120 *) as_qdir=$as_dir;;
42122 as_dirs="'$as_qdir' $as_dirs"
42123 as_dir=`$as_dirname -- "$as_dir" ||
42124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42125 X"$as_dir" : 'X\(//\)[^/]' \| \
42126 X"$as_dir" : 'X\(//\)$' \| \
42127 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42128 $as_echo X"$as_dir" |
42129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42133 /^X\(\/\/\)[^/].*/{
42146 test -d "$as_dir" && break
42148 test -z "$as_dirs" || eval "mkdir $as_dirs"
42149 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42153 if mkdir -p . 2>/dev/null; then
42154 as_mkdir_p='mkdir -p "$as_dir"'
42156 test -d ./-p && rmdir ./-p
42161 # as_fn_executable_p FILE
42162 # -----------------------
42163 # Test if FILE is an executable regular file.
42164 as_fn_executable_p ()
42166 test -f "$1" && test -x "$1"
42167 } # as_fn_executable_p
42168 as_test_x='test -x'
42169 as_executable_p=as_fn_executable_p
42171 # Sed expression to map a string onto a valid CPP name.
42172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42174 # Sed expression to map a string onto a valid variable name.
42175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42179 ## ----------------------------------- ##
42180 ## Main body of $CONFIG_STATUS script. ##
42181 ## ----------------------------------- ##
42183 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42186 # Save the log message, to keep $0 and so on meaningful, and to
42187 # report actual input values of CONFIG_FILES etc. instead of their
42188 # values after options handling.
42190 This file was extended by curl $as_me -, which was
42191 generated by GNU Autoconf 2.69. Invocation command line was
42193 CONFIG_FILES = $CONFIG_FILES
42194 CONFIG_HEADERS = $CONFIG_HEADERS
42195 CONFIG_LINKS = $CONFIG_LINKS
42196 CONFIG_COMMANDS = $CONFIG_COMMANDS
42199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42204 case $ac_config_files in *"
42205 "*) set x $ac_config_files; shift; ac_config_files=$*;;
42208 case $ac_config_headers in *"
42209 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42214 # Files that config.status was made for.
42215 config_files="$ac_config_files"
42216 config_headers="$ac_config_headers"
42217 config_commands="$ac_config_commands"
42221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42223 \`$as_me' instantiates files and other configuration actions
42224 from templates according to the current configuration. Unless the files
42225 and actions are specified as TAGs, all are instantiated by default.
42227 Usage: $0 [OPTION]... [TAG]...
42229 -h, --help print this help, then exit
42230 -V, --version print version number and configuration settings, then exit
42231 --config print configuration, then exit
42232 -q, --quiet, --silent
42233 do not print progress messages
42234 -d, --debug don't remove temporary files
42235 --recheck update $as_me by reconfiguring in the same conditions
42236 --file=FILE[:TEMPLATE]
42237 instantiate the configuration file FILE
42238 --header=FILE[:TEMPLATE]
42239 instantiate the configuration header FILE
42241 Configuration files:
42244 Configuration headers:
42247 Configuration commands:
42250 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42254 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42256 curl config.status -
42257 configured by $0, generated by GNU Autoconf 2.69,
42258 with options \\"\$ac_cs_config\\"
42260 Copyright (C) 2012 Free Software Foundation, Inc.
42261 This config.status script is free software; the Free Software Foundation
42262 gives unlimited permission to copy, distribute and modify it."
42269 test -n "\$AWK" || AWK=awk
42272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42273 # The default lists apply if the user does not specify any file.
42279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42280 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42284 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42296 # Handling of the options.
42297 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42299 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42300 $as_echo "$ac_cs_version"; exit ;;
42301 --config | --confi | --conf | --con | --co | --c )
42302 $as_echo "$ac_cs_config"; exit ;;
42303 --debug | --debu | --deb | --de | --d | -d )
42305 --file | --fil | --fi | --f )
42308 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42309 '') as_fn_error $? "missing file argument" ;;
42311 as_fn_append CONFIG_FILES " '$ac_optarg'"
42312 ac_need_defaults=false;;
42313 --header | --heade | --head | --hea )
42316 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42318 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42319 ac_need_defaults=false;;
42321 # Conflict between --help and --header
42322 as_fn_error $? "ambiguous option: \`$1'
42323 Try \`$0 --help' for more information.";;
42324 --help | --hel | -h )
42325 $as_echo "$ac_cs_usage"; exit ;;
42326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42327 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42330 # This is an error.
42331 -*) as_fn_error $? "unrecognized option: \`$1'
42332 Try \`$0 --help' for more information." ;;
42334 *) as_fn_append ac_config_targets " $1"
42335 ac_need_defaults=false ;;
42341 ac_configure_extra_args=
42343 if $ac_cs_silent; then
42345 ac_configure_extra_args="$ac_configure_extra_args --silent"
42349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42350 if \$ac_cs_recheck; then
42351 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42353 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42354 CONFIG_SHELL='$SHELL'
42355 export CONFIG_SHELL
42360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42364 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42365 ## Running $as_me. ##
42371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42375 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
42378 # The HP-UX ksh and POSIX shell print the target directory to stdout
42379 # if CDPATH is set.
42380 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42382 sed_quote_subst='$sed_quote_subst'
42383 double_quote_subst='$double_quote_subst'
42384 delay_variable_subst='$delay_variable_subst'
42385 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42386 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42387 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42388 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42389 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42390 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42391 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42392 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42393 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42394 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42395 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42396 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42397 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42398 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42399 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42400 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42401 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42402 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42403 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42404 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42405 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42406 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42407 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42408 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42409 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42410 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42411 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42412 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42413 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42414 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42415 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42416 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42417 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42418 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42419 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42420 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42421 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42422 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42423 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42424 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42425 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42426 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42427 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42428 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42429 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42430 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42431 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42432 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42433 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42434 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42435 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42436 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42437 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42438 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42439 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42440 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42441 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42442 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42443 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42444 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"`'
42445 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42446 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42447 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42448 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42449 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42450 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42451 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42452 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42453 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42454 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42455 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42456 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42457 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42458 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42459 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42460 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42461 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42462 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42463 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42464 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42465 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42466 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42467 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42468 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42469 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42470 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42471 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42472 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42473 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42474 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42475 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42476 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42477 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42478 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42479 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42480 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42481 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42482 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42483 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42484 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42485 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42486 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42487 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42488 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42489 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42490 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42491 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42492 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42493 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42494 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42495 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42496 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42497 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42498 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42499 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42500 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42501 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42502 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42503 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42504 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42505 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42506 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42507 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42508 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42509 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42510 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42511 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42512 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42513 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42514 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42515 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42516 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42517 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42518 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42519 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42520 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42523 LTCFLAGS='$LTCFLAGS'
42524 compiler='$compiler_DEFAULT'
42526 # A function that is used when there is no print builtin or printf.
42527 func_fallback_echo ()
42529 eval 'cat <<_LTECHO_EOF
42534 # Quote evaled strings.
42551 deplibs_check_method \
42555 sharedlib_from_linklib_cmd \
42558 archiver_list_spec \
42564 lt_cv_sys_global_symbol_pipe \
42565 lt_cv_sys_global_symbol_to_cdecl \
42566 lt_cv_sys_global_symbol_to_import \
42567 lt_cv_sys_global_symbol_to_c_name_address \
42568 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42569 lt_cv_nm_interface \
42570 nm_file_list_spec \
42571 lt_cv_truncate_bin \
42572 lt_prog_compiler_no_builtin_flag \
42573 lt_prog_compiler_pic \
42574 lt_prog_compiler_wl \
42575 lt_prog_compiler_static \
42576 lt_cv_prog_compiler_c_o \
42585 export_dynamic_flag_spec \
42586 whole_archive_flag_spec \
42587 compiler_needs_object \
42589 allow_undefined_flag \
42590 no_undefined_flag \
42591 hardcode_libdir_flag_spec \
42592 hardcode_libdir_separator \
42596 variables_saved_for_relink \
42598 library_names_spec \
42600 install_override_mode \
42604 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42605 *[\\\\\\\`\\"\\\$]*)
42606 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42609 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42614 # Double-quote double-evaled strings.
42615 for var in reload_cmds \
42616 old_postinstall_cmds \
42617 old_postuninstall_cmds \
42619 extract_expsyms_cmds \
42620 old_archive_from_new_cmds \
42621 old_archive_from_expsyms_cmds \
42623 archive_expsym_cmds \
42625 module_expsym_cmds \
42626 export_symbols_cmds \
42630 postuninstall_cmds \
42632 sys_lib_search_path_spec \
42633 configure_time_dlsearch_path \
42634 configure_time_lt_sys_library_path; do
42635 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42636 *[\\\\\\\`\\"\\\$]*)
42637 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42640 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42645 ac_aux_dir='$ac_aux_dir'
42647 # See if we are running on zsh, and set the options that allow our
42648 # commands through without removal of \ escapes INIT.
42649 if test -n "\${ZSH_VERSION+set}"; then
42650 setopt NO_GLOB_SUBST
42664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42666 # Handling of arguments.
42667 for ac_config_target in $ac_config_targets
42669 case $ac_config_target in
42670 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42671 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42672 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42673 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42674 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42675 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42676 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42677 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42678 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42679 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42680 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42681 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42682 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42683 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42684 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42685 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42686 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42687 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42688 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42689 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42690 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42691 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42692 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42693 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42694 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42695 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42696 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42697 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42698 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42699 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42700 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42701 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42702 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42703 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42704 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42705 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42707 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42712 # If the user did not use the arguments to specify the items to instantiate,
42713 # then the envvar interface is used. Set only those that are not.
42714 # We use the long form for the default assignment because of an extremely
42715 # bizarre bug on SunOS 4.1.3.
42716 if $ac_need_defaults; then
42717 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42718 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42719 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42722 # Have a temporary directory for convenience. Make it in the build tree
42723 # simply because there is no reason against having it here, and in addition,
42724 # creating and moving files from /tmp can sometimes cause problems.
42725 # Hook for its removal unless debugging.
42726 # Note that there is a small window in which the directory will not be cleaned:
42727 # after its creation but before its name has been assigned to `$tmp'.
42731 trap 'exit_status=$?
42732 : "${ac_tmp:=$tmp}"
42733 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42735 trap 'as_fn_exit 1' 1 2 13 15
42737 # Create a (secure) tmp directory for tmp files.
42740 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42744 tmp=./conf$$-$RANDOM
42745 (umask 077 && mkdir "$tmp")
42746 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42749 # Set up the scripts for CONFIG_FILES section.
42750 # No need to generate them if there are no CONFIG_FILES.
42751 # This happens for instance with `./config.status config.h'.
42752 if test -n "$CONFIG_FILES"; then
42755 ac_cr=`echo X | tr X '\015'`
42756 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42757 # But we know of no other shell where ac_cr would be empty at this
42758 # point, so we can use a bashism as a fallback.
42759 if test "x$ac_cr" = x; then
42760 eval ac_cr=\$\'\\r\'
42762 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42766 ac_cs_awk_cr=$ac_cr
42769 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42774 echo "cat >conf$$subs.awk <<_ACEOF" &&
42775 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42777 } >conf$$subs.sh ||
42778 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42779 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42781 for ac_last_try in false false false false false :; do
42782 . ./conf$$subs.sh ||
42783 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42785 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42786 if test $ac_delim_n = $ac_delim_num; then
42788 elif $ac_last_try; then
42789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42794 rm -f conf$$subs.sh
42796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42797 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42801 s/^/S["/; s/!.*/"]=/
42811 s/\(.\{148\}\)..*/\1/
42813 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42818 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42825 s/\(.\{148\}\)..*/\1/
42827 s/["\\]/\\&/g; s/^/"/; s/$/"/
42831 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42836 ' <conf$$subs.awk | sed '
42841 ' >>$CONFIG_STATUS || ac_write_fail=1
42842 rm -f conf$$subs.awk
42843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42845 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42846 for (key in S) S_is_set[key] = 1
42852 nfields = split(line, field, "@")
42854 len = length(field[1])
42855 for (i = 2; i < nfields; i++) {
42857 keylen = length(key)
42858 if (S_is_set[key]) {
42860 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42861 len += length(value) + length(field[++i])
42872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42873 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42874 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42877 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42878 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42881 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42882 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42883 # trailing colons and then remove the whole line if VPATH becomes empty
42884 # (actually we leave an empty line to preserve line numbers).
42885 if test "x$srcdir" = x.; then
42886 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42905 fi # test -n "$CONFIG_FILES"
42907 # Set up the scripts for CONFIG_HEADERS section.
42908 # No need to generate them if there are no CONFIG_HEADERS.
42909 # This happens for instance with `./config.status Makefile'.
42910 if test -n "$CONFIG_HEADERS"; then
42911 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42915 # Transform confdefs.h into an awk script `defines.awk', embedded as
42916 # here-document in config.status, that substitutes the proper values into
42917 # config.h.in to produce config.h.
42919 # Create a delimiter string that does not exist in confdefs.h, to ease
42920 # handling of long lines.
42922 for ac_last_try in false false :; do
42923 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42924 if test -z "$ac_tt"; then
42926 elif $ac_last_try; then
42927 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42933 # For the awk script, D is an array of macro values keyed by name,
42934 # likewise P contains macro parameters if any. Preserve backslash
42935 # newline sequences.
42937 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42939 s/.\{148\}/&'"$ac_delim"'/g
42942 s/^[ ]*#[ ]*define[ ][ ]*/ /
42949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42956 D["\1"]=" \3\\\\\\n"\\/p
42958 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42963 s/.\{148\}/&'"$ac_delim"'/g
42968 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42971 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42973 ' <confdefs.h | sed '
42974 s/'"$ac_delim"'/"\\\
42975 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42978 for (key in D) D_is_set[key] = 1
42981 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42983 split(line, arg, " ")
42984 if (arg[1] == "#") {
42988 defundef = substr(arg[1], 2)
42991 split(mac1, mac2, "(") #)
42993 prefix = substr(line, 1, index(line, defundef) - 1)
42994 if (D_is_set[macro]) {
42995 # Preserve the white space surrounding the "#".
42996 print prefix "define", macro P[macro] D[macro]
42999 # Replace #undef with comments. This is necessary, for example,
43000 # in the case of _POSIX_SOURCE, which is predefined and required
43001 # on some systems where configure will not decide to define it.
43002 if (defundef == "undef") {
43003 print "/*", prefix defundef, macro, "*/"
43011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43012 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
43013 fi # test -n "$CONFIG_HEADERS"
43016 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
43021 :[FHLC]) ac_mode=$ac_tag; continue;;
43023 case $ac_mode$ac_tag in
43025 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
43026 :[FH]-) ac_tag=-:-;;
43027 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43044 -) ac_f="$ac_tmp/stdin";;
43045 *) # Look for the file first in the build tree, then in the source tree
43046 # (if the path is not absolute). The absolute path cannot be DOS-style,
43047 # because $ac_f cannot contain `:'.
43051 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43053 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43055 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43056 as_fn_append ac_file_inputs " '$ac_f'"
43059 # Let's still pretend it is `configure' which instantiates (i.e., don't
43060 # use $as_me), people would be surprised to read:
43061 # /* config.h. Generated by config.status. */
43062 configure_input='Generated from '`
43063 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43065 if test x"$ac_file" != x-; then
43066 configure_input="$ac_file. $configure_input"
43067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
43068 $as_echo "$as_me: creating $ac_file" >&6;}
43070 # Neutralize special characters interpreted by sed in replacement strings.
43071 case $configure_input in #(
43072 *\&* | *\|* | *\\* )
43073 ac_sed_conf_input=`$as_echo "$configure_input" |
43074 sed 's/[\\\\&|]/\\\\&/g'`;; #(
43075 *) ac_sed_conf_input=$configure_input;;
43079 *:-:* | *:-) cat >"$ac_tmp/stdin" \
43080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
43085 ac_dir=`$as_dirname -- "$ac_file" ||
43086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43087 X"$ac_file" : 'X\(//\)[^/]' \| \
43088 X"$ac_file" : 'X\(//\)$' \| \
43089 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43090 $as_echo X"$ac_file" |
43091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43095 /^X\(\/\/\)[^/].*/{
43108 as_dir="$ac_dir"; as_fn_mkdir_p
43112 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43114 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43115 # A ".." for each directory in $ac_dir_suffix.
43116 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43117 case $ac_top_builddir_sub in
43118 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43119 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43122 ac_abs_top_builddir=$ac_pwd
43123 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43124 # for backward compatibility:
43125 ac_top_builddir=$ac_top_build_prefix
43128 .) # We are building in place.
43130 ac_top_srcdir=$ac_top_builddir_sub
43131 ac_abs_top_srcdir=$ac_pwd ;;
43132 [\\/]* | ?:[\\/]* ) # Absolute name.
43133 ac_srcdir=$srcdir$ac_dir_suffix;
43134 ac_top_srcdir=$srcdir
43135 ac_abs_top_srcdir=$srcdir ;;
43136 *) # Relative name.
43137 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43138 ac_top_srcdir=$ac_top_build_prefix$srcdir
43139 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43141 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43151 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43152 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43154 ac_MKDIR_P=$MKDIR_P
43156 [\\/$]* | ?:[\\/]* ) ;;
43157 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43162 # If the template does not know about datarootdir, expand it.
43163 # FIXME: This hack should be removed a few years after 2.60.
43164 ac_datarootdir_hack=; ac_datarootdir_seen=
43175 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43176 *datarootdir*) ac_datarootdir_seen=yes;;
43177 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43179 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43182 ac_datarootdir_hack='
43183 s&@datadir@&$datadir&g
43184 s&@docdir@&$docdir&g
43185 s&@infodir@&$infodir&g
43186 s&@localedir@&$localedir&g
43187 s&@mandir@&$mandir&g
43188 s&\\\${datarootdir}&$datarootdir&g' ;;
43192 # Neutralize VPATH when `$srcdir' = `.'.
43193 # Shell code in configure.ac might set extrasub.
43194 # FIXME: do we really want to maintain this feature?
43195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43196 ac_sed_extra="$ac_vpsub
43199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43202 s|@configure_input@|$ac_sed_conf_input|;t t
43203 s&@top_builddir@&$ac_top_builddir_sub&;t t
43204 s&@top_build_prefix@&$ac_top_build_prefix&;t t
43205 s&@srcdir@&$ac_srcdir&;t t
43206 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43207 s&@top_srcdir@&$ac_top_srcdir&;t t
43208 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43209 s&@builddir@&$ac_builddir&;t t
43210 s&@abs_builddir@&$ac_abs_builddir&;t t
43211 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43212 s&@INSTALL@&$ac_INSTALL&;t t
43213 s&@MKDIR_P@&$ac_MKDIR_P&;t t
43214 $ac_datarootdir_hack
43216 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43217 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43220 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43222 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43224 which seems to be undefined. Please make sure it is defined" >&5
43225 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43226 which seems to be undefined. Please make sure it is defined" >&2;}
43228 rm -f "$ac_tmp/stdin"
43230 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43231 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43239 if test x"$ac_file" != x-; then
43241 $as_echo "/* $configure_input */" \
43242 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43243 } >"$ac_tmp/config.h" \
43244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43245 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43246 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43247 $as_echo "$as_me: $ac_file is unchanged" >&6;}
43250 mv "$ac_tmp/config.h" "$ac_file" \
43251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43254 $as_echo "/* $configure_input */" \
43255 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43256 || as_fn_error $? "could not create -" "$LINENO" 5
43258 # Compute "$ac_file"'s index in $config_headers.
43261 for _am_header in $config_headers :; do
43262 case $_am_header in
43263 $_am_arg | $_am_arg:* )
43266 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43269 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43270 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43271 X"$_am_arg" : 'X\(//\)[^/]' \| \
43272 X"$_am_arg" : 'X\(//\)$' \| \
43273 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43274 $as_echo X"$_am_arg" |
43275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43279 /^X\(\/\/\)[^/].*/{
43291 s/.*/./; q'`/stamp-h$_am_stamp_count
43294 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43295 $as_echo "$as_me: executing $ac_file commands" >&6;}
43300 case $ac_file$ac_mode in
43301 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43302 # Older Autoconf quotes --file arguments for eval, but not when files
43303 # are listed without --file. Let's play safe and only enable the eval
43304 # if we detect the quoting.
43305 # TODO: see whether this extra hack can be removed once we start
43306 # requiring Autoconf 2.70 or later.
43307 case $CONFIG_FILES in #(
43309 eval set x "$CONFIG_FILES" ;; #(
43311 set x $CONFIG_FILES ;; #(
43316 # Used to flag and report bootstrapping failures.
43320 # Strip MF so we end up with the name of the file.
43321 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
43322 # Check whether this is an Automake generated Makefile which includes
43323 # dependency-tracking related rules and includes.
43324 # Grep'ing the whole file directly is not great: AIX grep has a line
43325 # limit of 2048, but all sed's we know have understand at least 4000.
43326 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
43328 am_dirpart=`$as_dirname -- "$am_mf" ||
43329 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43330 X"$am_mf" : 'X\(//\)[^/]' \| \
43331 X"$am_mf" : 'X\(//\)$' \| \
43332 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
43333 $as_echo X"$am_mf" |
43334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43338 /^X\(\/\/\)[^/].*/{
43351 am_filepart=`$as_basename -- "$am_mf" ||
43352 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
43353 X"$am_mf" : 'X\(//\)$' \| \
43354 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
43355 $as_echo X/"$am_mf" |
43356 sed '/^.*\/\([^/][^/]*\)\/*$/{
43369 { echo "$as_me:$LINENO: cd "$am_dirpart" \
43370 && sed -e '/# am--include-marker/d' "$am_filepart" \
43371 | $MAKE -f - am--depfiles" >&5
43372 (cd "$am_dirpart" \
43373 && sed -e '/# am--include-marker/d' "$am_filepart" \
43374 | $MAKE -f - am--depfiles) >&5 2>&5
43376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43377 (exit $ac_status); } || am_rc=$?
43379 if test $am_rc -ne 0; then
43380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43382 as_fn_error $? "Something went wrong bootstrapping makefile fragments
43383 for automatic dependency tracking. Try re-running configure with the
43384 '--disable-dependency-tracking' option to at least be able to build
43385 the package (albeit without support for automatic dependency tracking).
43386 See \`config.log' for more details" "$LINENO" 5; }
43388 { am_dirpart=; unset am_dirpart;}
43389 { am_filepart=; unset am_filepart;}
43390 { am_mf=; unset am_mf;}
43391 { am_rc=; unset am_rc;}
43392 rm -f conftest-deps.mk
43397 # See if we are running on zsh, and set the options that allow our
43398 # commands through without removal of \ escapes.
43399 if test -n "${ZSH_VERSION+set}"; then
43400 setopt NO_GLOB_SUBST
43404 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43407 cat <<_LT_EOF >> "$cfgfile"
43409 # Generated automatically by $as_me ($PACKAGE) $VERSION
43410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43412 # Provide generalized library-building support services.
43413 # Written by Gordon Matzigkeit, 1996
43415 # Copyright (C) 2014 Free Software Foundation, Inc.
43416 # This is free software; see the source for copying conditions. There is NO
43417 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43419 # GNU Libtool is free software; you can redistribute it and/or modify
43420 # it under the terms of the GNU General Public License as published by
43421 # the Free Software Foundation; either version 2 of of the License, or
43422 # (at your option) any later version.
43424 # As a special exception to the GNU General Public License, if you
43425 # distribute this file as part of a program or library that is built
43426 # using GNU Libtool, you may include this file under the same
43427 # distribution terms that you use for the rest of that program.
43429 # GNU Libtool is distributed in the hope that it will be useful, but
43430 # WITHOUT ANY WARRANTY; without even the implied warranty of
43431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43432 # GNU General Public License for more details.
43434 # You should have received a copy of the GNU General Public License
43435 # along with this program. If not, see <http://www.gnu.org/licenses/>.
43438 # The names of the tagged configurations supported by this script.
43441 # Configured defaults for sys_lib_dlsearch_path munging.
43442 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43444 # ### BEGIN LIBTOOL CONFIG
43446 # Which release of libtool.m4 was used?
43447 macro_version=$macro_version
43448 macro_revision=$macro_revision
43450 # Assembler program.
43453 # DLL creation program.
43454 DLLTOOL=$lt_DLLTOOL
43456 # Object dumper program.
43457 OBJDUMP=$lt_OBJDUMP
43459 # Whether or not to build shared libraries.
43460 build_libtool_libs=$enable_shared
43462 # Whether or not to build static libraries.
43463 build_old_libs=$enable_static
43465 # What type of objects to build.
43468 # Whether or not to optimize for fast installation.
43469 fast_install=$enable_fast_install
43471 # Shared archive member basename,for filename based shared library versioning on AIX.
43472 shared_archive_member_spec=$shared_archive_member_spec
43474 # Shell to use when invoking shell scripts.
43477 # An echo program that protects backslashes.
43480 # The PATH separator for the build system.
43481 PATH_SEPARATOR=$lt_PATH_SEPARATOR
43484 host_alias=$host_alias
43488 # The build system.
43489 build_alias=$build_alias
43493 # A sed program that does not truncate output.
43496 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43497 Xsed="\$SED -e 1s/^X//"
43499 # A grep program that handles long lines.
43505 # A literal string matcher.
43508 # A BSD- or MS-compatible name lister.
43511 # Whether we need soft or hard links.
43514 # What is the maximum length of a command?
43515 max_cmd_len=$max_cmd_len
43517 # Object file suffix (normally "o").
43520 # Executable file suffix (normally "").
43523 # whether the shell understands "unset".
43526 # turn spaces into newlines.
43529 # turn newlines into spaces.
43532 # convert \$build file names to \$host format.
43533 to_host_file_cmd=$lt_cv_to_host_file_cmd
43535 # convert \$build files to toolchain format.
43536 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43538 # Method to check whether dependent libraries are shared objects.
43539 deplibs_check_method=$lt_deplibs_check_method
43541 # Command to use when deplibs_check_method = "file_magic".
43542 file_magic_cmd=$lt_file_magic_cmd
43544 # How to find potential files when deplibs_check_method = "file_magic".
43545 file_magic_glob=$lt_file_magic_glob
43547 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43548 want_nocaseglob=$lt_want_nocaseglob
43550 # Command to associate shared and link libraries.
43551 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43556 # Flags to create an archive.
43557 AR_FLAGS=$lt_AR_FLAGS
43559 # How to feed a file listing to the archiver.
43560 archiver_list_spec=$lt_archiver_list_spec
43562 # A symbol stripping program.
43565 # Commands used to install an old-style archive.
43567 old_postinstall_cmds=$lt_old_postinstall_cmds
43568 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43570 # Whether to use a lock for old archive extraction.
43571 lock_old_archive_extraction=$lock_old_archive_extraction
43576 # LTCC compiler flags.
43577 LTCFLAGS=$lt_CFLAGS
43579 # Take the output of nm and produce a listing of raw symbols and C names.
43580 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43582 # Transform the output of nm in a proper C declaration.
43583 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43585 # Transform the output of nm into a list of symbols to manually relocate.
43586 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43588 # Transform the output of nm in a C name address pair.
43589 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43591 # Transform the output of nm in a C name address pair when lib prefix is needed.
43592 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43594 # The name lister interface.
43595 nm_interface=$lt_lt_cv_nm_interface
43597 # Specify filename containing input files for \$NM.
43598 nm_file_list_spec=$lt_nm_file_list_spec
43600 # The root where to search for dependent libraries,and where our libraries should be installed.
43601 lt_sysroot=$lt_sysroot
43603 # Command to truncate a binary pipe.
43604 lt_truncate_bin=$lt_lt_cv_truncate_bin
43606 # The name of the directory that contains temporary libtool files.
43609 # Used to examine libraries when file_magic_cmd begins with "file".
43610 MAGIC_CMD=$MAGIC_CMD
43612 # Must we lock files when doing compilation?
43613 need_locks=$lt_need_locks
43616 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43618 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43619 DSYMUTIL=$lt_DSYMUTIL
43621 # Tool to change global to local symbols on Mac OS X.
43624 # Tool to manipulate fat objects and archives on Mac OS X.
43627 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43630 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43631 OTOOL64=$lt_OTOOL64
43633 # Old archive suffix (normally "a").
43636 # Shared library suffix (normally ".so").
43637 shrext_cmds=$lt_shrext_cmds
43639 # The commands to extract the exported symbol list from a shared archive.
43640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43642 # Variables whose values should be saved in libtool wrapper scripts and
43643 # restored at link time.
43644 variables_saved_for_relink=$lt_variables_saved_for_relink
43646 # Do we need the "lib" prefix for modules?
43647 need_lib_prefix=$need_lib_prefix
43649 # Do we need a version for libraries?
43650 need_version=$need_version
43652 # Library versioning type.
43653 version_type=$version_type
43655 # Shared library runtime path variable.
43656 runpath_var=$runpath_var
43658 # Shared library path variable.
43659 shlibpath_var=$shlibpath_var
43661 # Is shlibpath searched before the hard-coded library search path?
43662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43664 # Format of library name prefix.
43665 libname_spec=$lt_libname_spec
43667 # List of archive names. First name is the real one, the rest are links.
43668 # The last name is the one that the linker finds with -lNAME
43669 library_names_spec=$lt_library_names_spec
43671 # The coded name of the library, if different from the real name.
43672 soname_spec=$lt_soname_spec
43674 # Permission mode override for installation of shared libraries.
43675 install_override_mode=$lt_install_override_mode
43677 # Command to use after installation of a shared archive.
43678 postinstall_cmds=$lt_postinstall_cmds
43680 # Command to use after uninstallation of a shared archive.
43681 postuninstall_cmds=$lt_postuninstall_cmds
43683 # Commands used to finish a libtool library installation in a directory.
43684 finish_cmds=$lt_finish_cmds
43686 # As "finish_cmds", except a single script fragment to be evaled but
43688 finish_eval=$lt_finish_eval
43690 # Whether we should hardcode library paths into libraries.
43691 hardcode_into_libs=$hardcode_into_libs
43693 # Compile-time system search path for libraries.
43694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43696 # Detected run-time system search path for libraries.
43697 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43699 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43700 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43702 # Whether dlopen is supported.
43703 dlopen_support=$enable_dlopen
43705 # Whether dlopen of programs is supported.
43706 dlopen_self=$enable_dlopen_self
43708 # Whether dlopen of statically linked programs is supported.
43709 dlopen_self_static=$enable_dlopen_self_static
43711 # Commands to strip libraries.
43712 old_striplib=$lt_old_striplib
43713 striplib=$lt_striplib
43716 # The linker used to build libraries.
43719 # How to create reloadable object files.
43720 reload_flag=$lt_reload_flag
43721 reload_cmds=$lt_reload_cmds
43723 # Commands used to build an old-style archive.
43724 old_archive_cmds=$lt_old_archive_cmds
43726 # A language specific compiler.
43729 # Is the compiler the GNU compiler?
43732 # Compiler flag to turn off builtin functions.
43733 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43735 # Additional compiler flags for building library objects.
43736 pic_flag=$lt_lt_prog_compiler_pic
43738 # How to pass a linker flag through the compiler.
43739 wl=$lt_lt_prog_compiler_wl
43741 # Compiler flag to prevent dynamic linking.
43742 link_static_flag=$lt_lt_prog_compiler_static
43744 # Does compiler simultaneously support -c and -o options?
43745 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43747 # Whether or not to add -lc for building shared libraries.
43748 build_libtool_need_lc=$archive_cmds_need_lc
43750 # Whether or not to disallow shared libs when runtime libs are static.
43751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43753 # Compiler flag to allow reflexive dlopens.
43754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43756 # Compiler flag to generate shared objects directly from archives.
43757 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43759 # Whether the compiler copes with passing no objects directly.
43760 compiler_needs_object=$lt_compiler_needs_object
43762 # Create an old-style archive from a shared archive.
43763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43765 # Create a temporary old-style archive to link instead of a shared archive.
43766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43768 # Commands used to build a shared archive.
43769 archive_cmds=$lt_archive_cmds
43770 archive_expsym_cmds=$lt_archive_expsym_cmds
43772 # Commands used to build a loadable module if different from building
43773 # a shared archive.
43774 module_cmds=$lt_module_cmds
43775 module_expsym_cmds=$lt_module_expsym_cmds
43777 # Whether we are building with GNU ld or not.
43778 with_gnu_ld=$lt_with_gnu_ld
43780 # Flag that allows shared libraries with undefined symbols to be built.
43781 allow_undefined_flag=$lt_allow_undefined_flag
43783 # Flag that enforces no undefined symbols.
43784 no_undefined_flag=$lt_no_undefined_flag
43786 # Flag to hardcode \$libdir into a binary during linking.
43787 # This must work even if \$libdir does not exist
43788 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43790 # Whether we need a single "-rpath" flag with a separated argument.
43791 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43793 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43794 # DIR into the resulting binary.
43795 hardcode_direct=$hardcode_direct
43797 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43798 # DIR into the resulting binary and the resulting library dependency is
43799 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43800 # library is relocated.
43801 hardcode_direct_absolute=$hardcode_direct_absolute
43803 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43804 # into the resulting binary.
43805 hardcode_minus_L=$hardcode_minus_L
43807 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43808 # into the resulting binary.
43809 hardcode_shlibpath_var=$hardcode_shlibpath_var
43811 # Set to "yes" if building a shared library automatically hardcodes DIR
43812 # into the library and all subsequent libraries and executables linked
43814 hardcode_automatic=$hardcode_automatic
43816 # Set to yes if linker adds runtime paths of dependent libraries
43817 # to runtime path list.
43818 inherit_rpath=$inherit_rpath
43820 # Whether libtool must link a program against all its dependency libraries.
43821 link_all_deplibs=$link_all_deplibs
43823 # Set to "yes" if exported symbols are required.
43824 always_export_symbols=$always_export_symbols
43826 # The commands to list exported symbols.
43827 export_symbols_cmds=$lt_export_symbols_cmds
43829 # Symbols that should not be listed in the preloaded symbols.
43830 exclude_expsyms=$lt_exclude_expsyms
43832 # Symbols that must always be exported.
43833 include_expsyms=$lt_include_expsyms
43835 # Commands necessary for linking programs (against libraries) with templates.
43836 prelink_cmds=$lt_prelink_cmds
43838 # Commands necessary for finishing linking programs.
43839 postlink_cmds=$lt_postlink_cmds
43841 # Specify filename containing input files.
43842 file_list_spec=$lt_file_list_spec
43844 # How to hardcode a shared library path into an executable.
43845 hardcode_action=$hardcode_action
43847 # ### END LIBTOOL CONFIG
43851 cat <<'_LT_EOF' >> "$cfgfile"
43853 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43855 # func_munge_path_list VARIABLE PATH
43856 # -----------------------------------
43857 # VARIABLE is name of variable containing _space_ separated list of
43858 # directories to be munged by the contents of PATH, which is string
43861 # string "DIR[ DIR]" will be prepended to VARIABLE
43863 # string "DIR[ DIR]" will be appended to VARIABLE
43864 # "DIRP[:DIRP]::[DIRA:]DIRA"
43865 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43866 # "DIRA[ DIRA]" will be appended to VARIABLE
43868 # VARIABLE will be replaced by "DIR[ DIR]"
43869 func_munge_path_list ()
43875 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43878 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43881 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43882 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43885 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43891 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43892 func_cc_basename ()
43894 for cc_temp in $*""; do
43896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43902 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43906 # ### END FUNCTIONS SHARED WITH CONFIGURE
43912 cat <<\_LT_EOF >> "$cfgfile"
43913 # AIX sometimes has problems with the GCC collect2 program. For some
43914 # reason, if we set the COLLECT_NAMES environment variable, the problems
43915 # vanish in a puff of smoke.
43916 if test set != "${COLLECT_NAMES+set}"; then
43918 export COLLECT_NAMES
43925 ltmain=$ac_aux_dir/ltmain.sh
43928 # We use sed instead of cat because bash on DJGPP gets confused if
43929 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43930 # text mode, it properly converts lines to CR/LF. This bash problem
43931 # is reportedly fixed, but why not run on old versions too?
43932 sed '$q' "$ltmain" >> "$cfgfile" \
43933 || (rm -f "$cfgfile"; exit 1)
43935 mv -f "$cfgfile" "$ofile" ||
43936 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43947 ac_clean_files=$ac_clean_files_save
43949 test $ac_write_fail = 0 ||
43950 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43953 # configure is writing to config.log, and then calls config.status.
43954 # config.status does its own redirection, appending to config.log.
43955 # Unfortunately, on DOS this fails, as config.log is still kept open
43956 # by configure, so config.status won't be able to write to it; its
43957 # output is simply discarded. So we exec the FD to /dev/null,
43958 # effectively closing config.log, so it can be properly (re)opened and
43959 # appended to by config.status. When coming back to configure, we
43960 # need to make the FD available again.
43961 if test "$no_create" != yes; then
43963 ac_config_status_args=
43964 test "$silent" = yes &&
43965 ac_config_status_args="$ac_config_status_args --quiet"
43967 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43969 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43970 # would make configure fail if this is the last instruction.
43971 $ac_cs_success || as_fn_exit 1
43975 # CONFIG_SUBDIRS section.
43977 if test "$no_recursion" != yes; then
43979 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43980 # so they do not pile up.
43981 ac_sub_configure_args=
43983 eval "set x $ac_configure_args"
43987 if test -n "$ac_prev"; then
43992 -cache-file | --cache-file | --cache-fil | --cache-fi \
43993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43994 ac_prev=cache_file ;;
43995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43999 --config-cache | -C)
44001 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44003 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44009 --disable-option-checking)
44013 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44015 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
44019 # Always prepend --prefix to ensure using the same prefix
44020 # in subdir configurations.
44021 ac_arg="--prefix=$prefix"
44023 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44025 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44028 if test "$silent" = yes; then
44029 ac_sub_configure_args="--silent $ac_sub_configure_args"
44032 # Always prepend --disable-option-checking to silence warnings, since
44033 # different subdirs can have different --enable and --with options.
44034 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
44037 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44039 # Do not complain, so a configure script can configure whichever
44040 # parts of a large source tree are present.
44041 test -d "$srcdir/$ac_dir" || continue
44043 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44044 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
44045 $as_echo "$ac_msg" >&6
44046 as_dir="$ac_dir"; as_fn_mkdir_p
44050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44053 # A ".." for each directory in $ac_dir_suffix.
44054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44055 case $ac_top_builddir_sub in
44056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44060 ac_abs_top_builddir=$ac_pwd
44061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44062 # for backward compatibility:
44063 ac_top_builddir=$ac_top_build_prefix
44066 .) # We are building in place.
44068 ac_top_srcdir=$ac_top_builddir_sub
44069 ac_abs_top_srcdir=$ac_pwd ;;
44070 [\\/]* | ?:[\\/]* ) # Absolute name.
44071 ac_srcdir=$srcdir$ac_dir_suffix;
44072 ac_top_srcdir=$srcdir
44073 ac_abs_top_srcdir=$srcdir ;;
44074 *) # Relative name.
44075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44076 ac_top_srcdir=$ac_top_build_prefix$srcdir
44077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44084 # Check for guested configure; otherwise get Cygnus style configure.
44085 if test -f "$ac_srcdir/configure.gnu"; then
44086 ac_sub_configure=$ac_srcdir/configure.gnu
44087 elif test -f "$ac_srcdir/configure"; then
44088 ac_sub_configure=$ac_srcdir/configure
44089 elif test -f "$ac_srcdir/configure.in"; then
44090 # This should be Cygnus configure.
44091 ac_sub_configure=$ac_aux_dir/configure
44093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44094 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44098 # The recursion is here.
44099 if test -n "$ac_sub_configure"; then
44100 # Make the cache file name correct relative to the subdirectory.
44101 case $cache_file in
44102 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44103 *) # Relative name.
44104 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44107 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44108 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44109 # The eval makes quoting arguments work.
44110 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44111 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44112 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44118 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44120 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44125 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44126 if test -z "$tmp_cpp"; then
44129 cat >./tests/configurehelp.pm <<_EOF
44130 # This is a generated file. Do not edit.
44132 package configurehelp;
44144 @ISA = qw(Exporter);
44150 \$Cpreprocessor = '$tmp_cpp';
44157 ## ---------------------------------- ##
44158 ## Start of distclean amending code ##
44159 ## ---------------------------------- ##
44161 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44164 if test ! -f "$xc_subdir/Makefile"; then
44165 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44169 # Fetch dependency tracking file list from Makefile include lines.
44171 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44172 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44174 # --disable-dependency-tracking might have been used, consequently
44175 # there is nothing to amend without a dependency tracking file list.
44177 if test $xc_cnt_words -gt 0; then
44179 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44180 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44182 # Build Makefile specific patch hunk.
44184 xc_p="$xc_subdir/xc_patch.tmp"
44186 xc_rm_depfiles=`echo "$xc_inc_lines" \
44187 | $SED 's%include% -rm -f%' 2>/dev/null`
44189 xc_dep_subdirs=`echo "$xc_inc_lines" \
44190 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44191 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44194 echo "$xc_rm_depfiles" >$xc_p
44196 for xc_dep_dir in $xc_dep_subdirs; do
44197 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44198 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44199 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44200 echo "${xc_tab}fi" >>$xc_p
44203 # Build Makefile patching sed scripts.
44205 xc_s1="$xc_subdir/xc_script_1.tmp"
44206 xc_s2="$xc_subdir/xc_script_2.tmp"
44207 xc_s3="$xc_subdir/xc_script_3.tmp"
44209 cat >$xc_s1 <<\_EOT
44210 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
44211 s/^.*(DEPDIR)/___xc_depdir_line___/
44213 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44214 s/^.*(DEPDIR)/___xc_depdir_line___/
44218 cat >$xc_s2 <<\_EOT
44219 /___xc_depdir_line___$/{
44221 /___xc_depdir_line___$/D
44226 /^___xc_depdir_line___/{
44232 # Apply patch to Makefile and cleanup.
44234 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44235 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44236 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44238 if test -f "$xc_subdir/Makefile.tmp3"; then
44239 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44242 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44243 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44244 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44246 test -f "$xc_p" && rm -f "$xc_p"
44247 test -f "$xc_s1" && rm -f "$xc_s1"
44248 test -f "$xc_s2" && rm -f "$xc_s2"
44249 test -f "$xc_s3" && rm -f "$xc_s3"
44255 ## -------------------------------- ##
44256 ## End of distclean amending code ##
44257 ## -------------------------------- ##
44261 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44263 curl version: ${CURLVERSION}
44264 Host setup: ${host}
44265 Install prefix: ${prefix}
44267 SSL support: ${curl_ssl_msg}
44268 SSH support: ${curl_ssh_msg}
44269 zlib support: ${curl_zlib_msg}
44270 brotli support: ${curl_brotli_msg}
44271 GSS-API support: ${curl_gss_msg}
44272 TLS-SRP support: ${curl_tls_srp_msg}
44273 resolver: ${curl_res_msg}
44274 IPv6 support: ${curl_ipv6_msg}
44275 Unix sockets support: ${curl_unix_sockets_msg}
44276 IDN support: ${curl_idn_msg}
44277 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44278 Built-in manual: ${curl_manual_msg}
44279 --libcurl option: ${curl_libcurl_msg}
44280 Verbose errors: ${curl_verbose_msg}
44281 SSPI support: ${curl_sspi_msg}
44282 ca cert bundle: ${ca}${ca_warning}
44283 ca cert path: ${capath}${capath_warning}
44284 ca fallback: ${with_ca_fallback}
44285 LDAP support: ${curl_ldap_msg}
44286 LDAPS support: ${curl_ldaps_msg}
44287 RTSP support: ${curl_rtsp_msg}
44288 RTMP support: ${curl_rtmp_msg}
44289 metalink support: ${curl_mtlnk_msg}
44290 PSL support: ${curl_psl_msg}
44291 HTTP2 support: ${curl_h2_msg}
44292 Protocols: ${SUPPORT_PROTOCOLS}
44294 $as_echo "$as_me: Configured to build curl/libcurl:
44296 curl version: ${CURLVERSION}
44297 Host setup: ${host}
44298 Install prefix: ${prefix}
44300 SSL support: ${curl_ssl_msg}
44301 SSH support: ${curl_ssh_msg}
44302 zlib support: ${curl_zlib_msg}
44303 brotli support: ${curl_brotli_msg}
44304 GSS-API support: ${curl_gss_msg}
44305 TLS-SRP support: ${curl_tls_srp_msg}
44306 resolver: ${curl_res_msg}
44307 IPv6 support: ${curl_ipv6_msg}
44308 Unix sockets support: ${curl_unix_sockets_msg}
44309 IDN support: ${curl_idn_msg}
44310 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44311 Built-in manual: ${curl_manual_msg}
44312 --libcurl option: ${curl_libcurl_msg}
44313 Verbose errors: ${curl_verbose_msg}
44314 SSPI support: ${curl_sspi_msg}
44315 ca cert bundle: ${ca}${ca_warning}
44316 ca cert path: ${capath}${capath_warning}
44317 ca fallback: ${with_ca_fallback}
44318 LDAP support: ${curl_ldap_msg}
44319 LDAPS support: ${curl_ldaps_msg}
44320 RTSP support: ${curl_rtsp_msg}
44321 RTMP support: ${curl_rtmp_msg}
44322 metalink support: ${curl_mtlnk_msg}
44323 PSL support: ${curl_psl_msg}
44324 HTTP2 support: ${curl_h2_msg}
44325 Protocols: ${SUPPORT_PROTOCOLS}