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 - 2016 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 # Stop dead until user provides 'PATH_SEPARATOR' definition.
237 echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
241 # Separator with the greater directory count is the auto-detected one.
242 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
243 xc_tst_auto_separator=';'
245 xc_tst_auto_separator=':'
247 if test -z "$PATH_SEPARATOR"; then
248 # Simply use the auto-detected one when not already set.
249 PATH_SEPARATOR=$xc_tst_auto_separator
250 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
251 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
254 xc_PATH_SEPARATOR=$PATH_SEPARATOR
256 xc_configure_preamble_result='yes'
259 ## -------------------- ##
260 ## M4sh Initialization. ##
261 ## -------------------- ##
263 # Be more Bourne compatible
264 DUALCASE=1; export DUALCASE # for MKS sh
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in #(
285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
289 # Prefer a ksh shell builtin over an external printf program on Solaris,
290 # but without wasting forks for bash or zsh.
291 if test -z "$BASH_VERSION$ZSH_VERSION" \
292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
293 as_echo='print -r --'
294 as_echo_n='print -rn --'
295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
296 as_echo='printf %s\n'
297 as_echo_n='printf %s'
299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
301 as_echo_n='/usr/ucb/echo -n'
303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
308 expr "X$arg" : "X\\(.*\\)$as_nl";
309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313 export as_echo_n_body
314 as_echo_n='sh -c $as_echo_n_body as_echo'
317 as_echo='sh -c $as_echo_body as_echo'
323 # We need space, tab and new line, in precisely that order. Quoting is
324 # there to prevent editors from complaining about space-tab.
325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
326 # splitting by setting IFS to empty value.)
329 # Find who we are. Look in the path if we contain no directory separator.
332 *[\\/]* ) as_myself=$0 ;;
333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
337 test -z "$as_dir" && as_dir=.
338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
344 # We did not find ourselves, most probably we were run as `sh COMMAND'
345 # in which case we are not to be found in the path.
346 if test "x$as_myself" = x; then
349 if test ! -f "$as_myself"; then
350 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
354 # Unset variables that we do not need and which cause bugs (e.g. in
355 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
356 # suppresses any "Segmentation fault" message there. '((' could
357 # trigger a bug in pdksh 5.2.14.
358 for as_var in BASH_ENV ENV MAIL MAILPATH
359 do eval test x\${$as_var+set} = xset \
360 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375 # Use a proper internal environment variable to ensure we don't fall
376 # into an infinite loop, continuously re-executing ourselves.
377 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
378 _as_can_reexec=no; export _as_can_reexec;
379 # We cannot yet assume a decent shell, so we have to provide a
380 # neutralization value for shells without unset; and this also
381 # works around shells that cannot unset nonexistent variables.
382 # Preserve -v and -x to the replacement shell.
385 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387 *v*x* | *x*v* ) as_opts=-vx ;;
392 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
393 # Admittedly, this is quite paranoid, since all the known shells bail
394 # out after a failed `exec'.
395 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
398 # We don't want this to propagate to other subprocesses.
399 { _as_can_reexec=; unset _as_can_reexec;}
400 if test "x$CONFIG_SHELL" = x; then
401 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
404 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
405 # is contrary to our usage. Disable this feature.
406 alias -g '\${1+\"\$@\"}'='\"\$@\"'
409 case \`(set -o) 2>/dev/null\` in #(
417 as_required="as_fn_return () { (exit \$1); }
418 as_fn_success () { as_fn_return 0; }
419 as_fn_failure () { as_fn_return 1; }
420 as_fn_ret_success () { return 0; }
421 as_fn_ret_failure () { return 1; }
424 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
425 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
426 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
427 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
428 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
431 exitcode=1; echo positional parameters were not saved.
433 test x\$exitcode = x0 || exit 1
435 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
436 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
437 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
438 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
439 test \$(( 1 + 1 )) = 2 || exit 1
441 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
442 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
443 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 PATH=/empty FPATH=/empty; export PATH FPATH
446 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
447 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
448 if (eval "$as_required") 2>/dev/null; then :
453 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
461 test -z "$as_dir" && as_dir=.
465 for as_base in sh bash ksh sh5; do
466 # Try only shells that exist, to save several forks.
467 as_shell=$as_dir/$as_base
468 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
469 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
470 CONFIG_SHELL=$as_shell as_have_required=yes
471 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
479 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
480 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
481 CONFIG_SHELL=$SHELL as_have_required=yes
486 if test "x$CONFIG_SHELL" != x; then :
488 # We cannot yet assume a decent shell, so we have to provide a
489 # neutralization value for shells without unset; and this also
490 # works around shells that cannot unset nonexistent variables.
491 # Preserve -v and -x to the replacement shell.
494 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496 *v*x* | *x*v* ) as_opts=-vx ;;
501 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
502 # Admittedly, this is quite paranoid, since all the known shells bail
503 # out after a failed `exec'.
504 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
508 if test x$as_have_required = xno; then :
509 $as_echo "$0: This script requires a shell more modern than all"
510 $as_echo "$0: the shells that I found on your system."
511 if test x${ZSH_VERSION+set} = xset ; then
512 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
513 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
516 $0: mailing list: https://curl.haxx.se/mail/ about your
517 $0: system, including any error possibly output before this
518 $0: message. Then install a modern shell, or manually run
519 $0: the script under such a shell if you do have one."
525 SHELL=${CONFIG_SHELL-/bin/sh}
527 # Unset more variables known to interfere with behavior of common tools.
528 CLICOLOR_FORCE= GREP_OPTIONS=
529 unset CLICOLOR_FORCE GREP_OPTIONS
531 ## --------------------- ##
532 ## M4sh Shell Functions. ##
533 ## --------------------- ##
536 # Portably unset VAR.
539 { eval $1=; unset $1;}
543 # as_fn_set_status STATUS
544 # -----------------------
545 # Set $? to STATUS, without forking.
553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
563 # Create "$as_dir" as a directory, including parents if necessary.
568 -*) as_dir=./$as_dir;;
570 test -d "$as_dir" || eval $as_mkdir_p || {
574 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
577 as_dirs="'$as_qdir' $as_dirs"
578 as_dir=`$as_dirname -- "$as_dir" ||
579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
580 X"$as_dir" : 'X\(//\)[^/]' \| \
581 X"$as_dir" : 'X\(//\)$' \| \
582 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
583 $as_echo X"$as_dir" |
584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
601 test -d "$as_dir" && break
603 test -z "$as_dirs" || eval "mkdir $as_dirs"
604 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
609 # as_fn_executable_p FILE
610 # -----------------------
611 # Test if FILE is an executable regular file.
612 as_fn_executable_p ()
614 test -f "$1" && test -x "$1"
615 } # as_fn_executable_p
616 # as_fn_append VAR VALUE
617 # ----------------------
618 # Append the text in VALUE to the end of the definition contained in VAR. Take
619 # advantage of any shell optimizations that allow amortized linear growth over
620 # repeated appends, instead of the typical quadratic growth present in naive
622 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
623 eval 'as_fn_append ()
636 # Perform arithmetic evaluation on the ARGs, and store the result in the
637 # global $as_val. Take advantage of shells that can avoid forks. The arguments
638 # must be portable across $(()) and expr.
639 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
647 as_val=`expr "$@" || test $? -eq 1`
652 # as_fn_error STATUS ERROR [LINENO LOG_FD]
653 # ----------------------------------------
654 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
655 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
656 # script with STATUS, using 1 if that was 0.
659 as_status=$1; test $as_status -eq 0 && as_status=1
661 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
662 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664 $as_echo "$as_me: error: $2" >&2
665 as_fn_exit $as_status
668 if expr a : '\(a\)' >/dev/null 2>&1 &&
669 test "X`expr 00001 : '.*\(...\)'`" = X001; then
675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
687 as_me=`$as_basename -- "$0" ||
688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
689 X"$0" : 'X\(//\)$' \| \
690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692 sed '/^.*\/\([^/][^/]*\)\/*$/{
706 # Avoid depending upon Character Ranges.
707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
710 as_cr_digits='0123456789'
711 as_cr_alnum=$as_cr_Letters$as_cr_digits
714 as_lineno_1=$LINENO as_lineno_1a=$LINENO
715 as_lineno_2=$LINENO as_lineno_2a=$LINENO
716 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
717 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
718 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
730 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
734 chmod +x "$as_me.lineno" ||
735 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
738 # already done that, so ensure we don't try to do so again and fall
739 # in an infinite loop. This has already happened in practice.
740 _as_can_reexec=no; export _as_can_reexec
741 # Don't try to exec as it changes $[0], causing all sort of problems
742 # (the dirname of $[0] is not the place where we might find the
743 # original and so on. Autoconf is especially sensitive to this).
745 # Exit status is that of the last command.
749 ECHO_C= ECHO_N= ECHO_T=
750 case `echo -n x` in #(((((
752 case `echo 'xy\c'` in
753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
755 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
762 rm -f conf$$ conf$$.exe conf$$.file
763 if test -d conf$$.dir; then
764 rm -f conf$$.dir/conf$$.file
767 mkdir conf$$.dir 2>/dev/null
769 if (echo >conf$$.file) 2>/dev/null; then
770 if ln -s conf$$.file conf$$ 2>/dev/null; then
772 # ... but there are two gotchas:
773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
775 # In both cases, we have to default to `cp -pR'.
776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778 elif ln conf$$.file conf$$ 2>/dev/null; then
786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
787 rmdir conf$$.dir 2>/dev/null
789 if mkdir -p . 2>/dev/null; then
790 as_mkdir_p='mkdir -p "$as_dir"'
792 test -d ./-p && rmdir ./-p
797 as_executable_p=as_fn_executable_p
799 # Sed expression to map a string onto a valid CPP name.
800 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802 # Sed expression to map a string onto a valid variable name.
803 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805 SHELL=${CONFIG_SHELL-/bin/sh}
808 test -n "$DJDIR" || exec 7<&0 </dev/null
812 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
813 # so uname gets run too.
814 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
819 ac_default_prefix=/usr/local
821 ac_config_libobj_dir=.
828 # Identity of this package.
830 PACKAGE_TARNAME='curl'
832 PACKAGE_STRING='curl -'
833 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
836 ac_unique_file="lib/urldata.h"
837 # Factoring default headers for most tests.
838 ac_includes_default="\
840 #ifdef HAVE_SYS_TYPES_H
841 # include <sys/types.h>
843 #ifdef HAVE_SYS_STAT_H
844 # include <sys/stat.h>
850 # ifdef HAVE_STDLIB_H
855 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
860 #ifdef HAVE_STRINGS_H
861 # include <strings.h>
863 #ifdef HAVE_INTTYPES_H
864 # include <inttypes.h>
873 enable_option_checking=no
874 ac_subst_vars='am__EXEEXT_FALSE
885 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
958 DOING_NATIVE_WINDOWS_FALSE
959 DOING_NATIVE_WINDOWS_TRUE
960 BUILD_UNITTESTS_FALSE
964 USE_EXPLICIT_LIB_DEPS_FALSE
965 USE_EXPLICIT_LIB_DEPS_TRUE
967 CPPFLAG_CURL_STATICLIB
968 USE_CPPFLAG_CURL_STATICLIB_FALSE
969 USE_CPPFLAG_CURL_STATICLIB_TRUE
970 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
971 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
972 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
973 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
974 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
975 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1026 INSTALL_STRIP_PROGRAM
1057 AM_DEFAULT_VERBOSITY
1061 MAINTAINER_MODE_FALSE
1062 MAINTAINER_MODE_TRUE
1091 program_transform_name
1104 enable_option_checking
1105 enable_maintainer_mode
1112 enable_symbol_hiding
1113 enable_hidden_symbols
1116 enable_dependency_tracking
1142 enable_libcurl_option
1148 with_gssapi_includes
1169 enable_versioned_symbols
1173 with_zsh_functions_dir
1174 enable_threaded_resolver
1185 ac_precious_vars='build_alias
1194 LT_SYS_LIBRARY_PATH'
1195 ac_subdirs_all='ares'
1197 # Initialize some variables set by options.
1199 ac_init_version=false
1200 ac_unrecognized_opts=
1201 ac_unrecognized_sep=
1202 # The variables have the same names as the options, with
1203 # dashes changed to underlines.
1204 cache_file=/dev/null
1211 program_transform_name=s,x,x,
1219 # Installation directory options.
1220 # These are left unexpanded so users can "make install exec_prefix=/foo"
1221 # and all the variables that are supposed to be based on exec_prefix
1222 # by default will actually change.
1223 # Use braces instead of parens because sh, perl, etc. also accept them.
1224 # (The list follows the same order as the GNU Coding Standards.)
1225 bindir='${exec_prefix}/bin'
1226 sbindir='${exec_prefix}/sbin'
1227 libexecdir='${exec_prefix}/libexec'
1228 datarootdir='${prefix}/share'
1229 datadir='${datarootdir}'
1230 sysconfdir='${prefix}/etc'
1231 sharedstatedir='${prefix}/com'
1232 localstatedir='${prefix}/var'
1233 runstatedir='${localstatedir}/run'
1234 includedir='${prefix}/include'
1235 oldincludedir='/usr/include'
1236 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1237 infodir='${datarootdir}/info'
1242 libdir='${exec_prefix}/lib'
1243 localedir='${datarootdir}/locale'
1244 mandir='${datarootdir}/man'
1250 # If the previous option needs an argument, assign it.
1251 if test -n "$ac_prev"; then
1252 eval $ac_prev=\$ac_option
1258 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1263 # Accept the important Cygnus configure options, so we can diagnose typos.
1265 case $ac_dashdash$ac_option in
1269 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1271 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1272 bindir=$ac_optarg ;;
1274 -build | --build | --buil | --bui | --bu)
1275 ac_prev=build_alias ;;
1276 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1277 build_alias=$ac_optarg ;;
1279 -cache-file | --cache-file | --cache-fil | --cache-fi \
1280 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1281 ac_prev=cache_file ;;
1282 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1283 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1284 cache_file=$ac_optarg ;;
1286 --config-cache | -C)
1287 cache_file=config.cache ;;
1289 -datadir | --datadir | --datadi | --datad)
1291 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1292 datadir=$ac_optarg ;;
1294 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1295 | --dataroo | --dataro | --datar)
1296 ac_prev=datarootdir ;;
1297 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1298 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1299 datarootdir=$ac_optarg ;;
1301 -disable-* | --disable-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error $? "invalid feature name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1310 "enable_$ac_useropt"
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1315 eval enable_$ac_useropt=no ;;
1317 -docdir | --docdir | --docdi | --doc | --do)
1319 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1320 docdir=$ac_optarg ;;
1322 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1324 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1325 dvidir=$ac_optarg ;;
1327 -enable-* | --enable-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error $? "invalid feature name: $ac_useropt"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1336 "enable_$ac_useropt"
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1341 eval enable_$ac_useropt=\$ac_optarg ;;
1343 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1344 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1345 | --exec | --exe | --ex)
1346 ac_prev=exec_prefix ;;
1347 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1348 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1349 | --exec=* | --exe=* | --ex=*)
1350 exec_prefix=$ac_optarg ;;
1352 -gas | --gas | --ga | --g)
1353 # Obsolete; use --with-gas.
1356 -help | --help | --hel | --he | -h)
1357 ac_init_help=long ;;
1358 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1359 ac_init_help=recursive ;;
1360 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1361 ac_init_help=short ;;
1363 -host | --host | --hos | --ho)
1364 ac_prev=host_alias ;;
1365 -host=* | --host=* | --hos=* | --ho=*)
1366 host_alias=$ac_optarg ;;
1368 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1370 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1372 htmldir=$ac_optarg ;;
1374 -includedir | --includedir | --includedi | --included | --include \
1375 | --includ | --inclu | --incl | --inc)
1376 ac_prev=includedir ;;
1377 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1378 | --includ=* | --inclu=* | --incl=* | --inc=*)
1379 includedir=$ac_optarg ;;
1381 -infodir | --infodir | --infodi | --infod | --info | --inf)
1383 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1384 infodir=$ac_optarg ;;
1386 -libdir | --libdir | --libdi | --libd)
1388 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1389 libdir=$ac_optarg ;;
1391 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1392 | --libexe | --libex | --libe)
1393 ac_prev=libexecdir ;;
1394 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1395 | --libexe=* | --libex=* | --libe=*)
1396 libexecdir=$ac_optarg ;;
1398 -localedir | --localedir | --localedi | --localed | --locale)
1399 ac_prev=localedir ;;
1400 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1401 localedir=$ac_optarg ;;
1403 -localstatedir | --localstatedir | --localstatedi | --localstated \
1404 | --localstate | --localstat | --localsta | --localst | --locals)
1405 ac_prev=localstatedir ;;
1406 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1407 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1408 localstatedir=$ac_optarg ;;
1410 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1412 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1413 mandir=$ac_optarg ;;
1415 -nfp | --nfp | --nf)
1416 # Obsolete; use --without-fp.
1419 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1420 | --no-cr | --no-c | -n)
1423 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1424 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1427 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1428 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1429 | --oldin | --oldi | --old | --ol | --o)
1430 ac_prev=oldincludedir ;;
1431 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1432 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1433 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1434 oldincludedir=$ac_optarg ;;
1436 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1438 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1439 prefix=$ac_optarg ;;
1441 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1442 | --program-pre | --program-pr | --program-p)
1443 ac_prev=program_prefix ;;
1444 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1445 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1446 program_prefix=$ac_optarg ;;
1448 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1449 | --program-suf | --program-su | --program-s)
1450 ac_prev=program_suffix ;;
1451 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1452 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1453 program_suffix=$ac_optarg ;;
1455 -program-transform-name | --program-transform-name \
1456 | --program-transform-nam | --program-transform-na \
1457 | --program-transform-n | --program-transform- \
1458 | --program-transform | --program-transfor \
1459 | --program-transfo | --program-transf \
1460 | --program-trans | --program-tran \
1461 | --progr-tra | --program-tr | --program-t)
1462 ac_prev=program_transform_name ;;
1463 -program-transform-name=* | --program-transform-name=* \
1464 | --program-transform-nam=* | --program-transform-na=* \
1465 | --program-transform-n=* | --program-transform-=* \
1466 | --program-transform=* | --program-transfor=* \
1467 | --program-transfo=* | --program-transf=* \
1468 | --program-trans=* | --program-tran=* \
1469 | --progr-tra=* | --program-tr=* | --program-t=*)
1470 program_transform_name=$ac_optarg ;;
1472 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1474 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1475 pdfdir=$ac_optarg ;;
1477 -psdir | --psdir | --psdi | --psd | --ps)
1479 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483 | -silent | --silent | --silen | --sile | --sil)
1486 -runstatedir | --runstatedir | --runstatedi | --runstated \
1487 | --runstate | --runstat | --runsta | --runst | --runs \
1488 | --run | --ru | --r)
1489 ac_prev=runstatedir ;;
1490 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1491 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1492 | --run=* | --ru=* | --r=*)
1493 runstatedir=$ac_optarg ;;
1495 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1497 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1499 sbindir=$ac_optarg ;;
1501 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1502 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1503 | --sharedst | --shareds | --shared | --share | --shar \
1505 ac_prev=sharedstatedir ;;
1506 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1507 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1508 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1510 sharedstatedir=$ac_optarg ;;
1512 -site | --site | --sit)
1514 -site=* | --site=* | --sit=*)
1517 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1519 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1520 srcdir=$ac_optarg ;;
1522 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1523 | --syscon | --sysco | --sysc | --sys | --sy)
1524 ac_prev=sysconfdir ;;
1525 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1526 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1527 sysconfdir=$ac_optarg ;;
1529 -target | --target | --targe | --targ | --tar | --ta | --t)
1530 ac_prev=target_alias ;;
1531 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1532 target_alias=$ac_optarg ;;
1534 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1537 -version | --version | --versio | --versi | --vers | -V)
1538 ac_init_version=: ;;
1541 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1542 # Reject names that are not valid shell variable names.
1543 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1544 as_fn_error $? "invalid package name: $ac_useropt"
1545 ac_useropt_orig=$ac_useropt
1546 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1547 case $ac_user_opts in
1551 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1552 ac_unrecognized_sep=', ';;
1554 eval with_$ac_useropt=\$ac_optarg ;;
1556 -without-* | --without-*)
1557 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1558 # Reject names that are not valid shell variable names.
1559 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1560 as_fn_error $? "invalid package name: $ac_useropt"
1561 ac_useropt_orig=$ac_useropt
1562 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1563 case $ac_user_opts in
1567 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1568 ac_unrecognized_sep=', ';;
1570 eval with_$ac_useropt=no ;;
1573 # Obsolete; use --with-x.
1576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1577 | --x-incl | --x-inc | --x-in | --x-i)
1578 ac_prev=x_includes ;;
1579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1581 x_includes=$ac_optarg ;;
1583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1585 ac_prev=x_libraries ;;
1586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1588 x_libraries=$ac_optarg ;;
1590 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1591 Try \`$0 --help' for more information"
1595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1596 # Reject names that are not valid shell variable names.
1597 case $ac_envvar in #(
1598 '' | [0-9]* | *[!_$as_cr_alnum]* )
1599 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1601 eval $ac_envvar=\$ac_optarg
1602 export $ac_envvar ;;
1605 # FIXME: should be removed in autoconf 3.0.
1606 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1608 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1609 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1615 if test -n "$ac_prev"; then
1616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1617 as_fn_error $? "missing argument to $ac_option"
1620 if test -n "$ac_unrecognized_opts"; then
1621 case $enable_option_checking in
1623 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1624 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1628 # Check all directory arguments for consistency.
1629 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1630 datadir sysconfdir sharedstatedir localstatedir includedir \
1631 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1632 libdir localedir mandir runstatedir
1634 eval ac_val=\$$ac_var
1635 # Remove trailing slashes.
1638 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1639 eval $ac_var=\$ac_val;;
1641 # Be sure to have absolute directory names.
1643 [\\/$]* | ?:[\\/]* ) continue;;
1644 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1646 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1649 # There might be people who depend on the old broken behavior: `$host'
1650 # used to hold the argument of --host etc.
1651 # FIXME: To remove some day.
1654 target=$target_alias
1656 # FIXME: To remove some day.
1657 if test "x$host_alias" != x; then
1658 if test "x$build_alias" = x; then
1659 cross_compiling=maybe
1660 elif test "x$build_alias" != "x$host_alias"; then
1666 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1668 test "$silent" = yes && exec 6>/dev/null
1671 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1672 ac_ls_di=`ls -di .` &&
1673 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1674 as_fn_error $? "working directory cannot be determined"
1675 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1676 as_fn_error $? "pwd does not report name of working directory"
1679 # Find the source files, if location was not specified.
1680 if test -z "$srcdir"; then
1681 ac_srcdir_defaulted=yes
1682 # Try the directory containing this script, then the parent directory.
1683 ac_confdir=`$as_dirname -- "$as_myself" ||
1684 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1685 X"$as_myself" : 'X\(//\)[^/]' \| \
1686 X"$as_myself" : 'X\(//\)$' \| \
1687 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1688 $as_echo X"$as_myself" |
1689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1707 if test ! -r "$srcdir/$ac_unique_file"; then
1711 ac_srcdir_defaulted=no
1713 if test ! -r "$srcdir/$ac_unique_file"; then
1714 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1715 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1717 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1719 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1721 # When building in place, set srcdir=.
1722 if test "$ac_abs_confdir" = "$ac_pwd"; then
1725 # Remove unnecessary trailing slashes from srcdir.
1726 # Double slashes in file names in object file debugging info
1727 # mess up M-x gdb in Emacs.
1729 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1731 for ac_var in $ac_precious_vars; do
1732 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1733 eval ac_env_${ac_var}_value=\$${ac_var}
1734 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1735 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1739 # Report the --help message.
1741 if test "$ac_init_help" = "long"; then
1742 # Omit some internal or obsolete options to make the list less imposing.
1743 # This message is too long to be a string in the A/UX 3.1 sh.
1745 \`configure' configures curl - to adapt to many kinds of systems.
1747 Usage: $0 [OPTION]... [VAR=VALUE]...
1749 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1750 VAR=VALUE. See below for descriptions of some of the useful variables.
1752 Defaults for the options are specified in brackets.
1755 -h, --help display this help and exit
1756 --help=short display options specific to this package
1757 --help=recursive display the short help of all the included packages
1758 -V, --version display version information and exit
1759 -q, --quiet, --silent do not print \`checking ...' messages
1760 --cache-file=FILE cache test results in FILE [disabled]
1761 -C, --config-cache alias for \`--cache-file=config.cache'
1762 -n, --no-create do not create output files
1763 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1765 Installation directories:
1766 --prefix=PREFIX install architecture-independent files in PREFIX
1767 [$ac_default_prefix]
1768 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1771 By default, \`make install' will install all the files in
1772 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1773 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1774 for instance \`--prefix=\$HOME'.
1776 For better control, use the options below.
1778 Fine tuning of the installation directories:
1779 --bindir=DIR user executables [EPREFIX/bin]
1780 --sbindir=DIR system admin executables [EPREFIX/sbin]
1781 --libexecdir=DIR program executables [EPREFIX/libexec]
1782 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1783 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1784 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1785 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1786 --libdir=DIR object code libraries [EPREFIX/lib]
1787 --includedir=DIR C header files [PREFIX/include]
1788 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1789 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1790 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1791 --infodir=DIR info documentation [DATAROOTDIR/info]
1792 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1793 --mandir=DIR man documentation [DATAROOTDIR/man]
1794 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1795 --htmldir=DIR html documentation [DOCDIR]
1796 --dvidir=DIR dvi documentation [DOCDIR]
1797 --pdfdir=DIR pdf documentation [DOCDIR]
1798 --psdir=DIR ps documentation [DOCDIR]
1804 --program-prefix=PREFIX prepend PREFIX to installed program names
1805 --program-suffix=SUFFIX append SUFFIX to installed program names
1806 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1809 --build=BUILD configure for building on BUILD [guessed]
1810 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1814 if test -n "$ac_init_help"; then
1815 case $ac_init_help in
1816 short | recursive ) echo "Configuration of curl -:";;
1821 --disable-option-checking ignore unrecognized --enable/--with options
1822 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1823 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1824 --enable-maintainer-mode
1825 enable make rules and dependencies not useful (and
1826 sometimes confusing) to the casual installer
1827 --enable-silent-rules less verbose build output (undo: "make V=1")
1828 --disable-silent-rules verbose build output (undo: "make V=0")
1829 --enable-debug Enable debug build options
1830 --disable-debug Disable debug build options
1831 --enable-optimize Enable compiler optimizations
1832 --disable-optimize Disable compiler optimizations
1833 --enable-warnings Enable strict compiler warnings
1834 --disable-warnings Disable strict compiler warnings
1835 --enable-werror Enable compiler warnings as errors
1836 --disable-werror Disable compiler warnings as errors
1837 --enable-curldebug Enable curl debug memory tracking
1838 --disable-curldebug Disable curl debug memory tracking
1839 --enable-symbol-hiding Enable hiding of library internal symbols
1840 --disable-symbol-hiding Disable hiding of library internal symbols
1841 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1842 --disable-hidden-symbols
1843 To be deprecated, use --disable-symbol-hiding
1844 --enable-ares[=PATH] Enable c-ares for DNS lookups
1845 --disable-ares Disable c-ares for DNS lookups
1846 --disable-rt disable dependency on -lrt
1847 --enable-dependency-tracking
1848 do not reject slow dependency extractors
1849 --disable-dependency-tracking
1850 speeds up one-time build
1851 --disable-largefile omit support for large files
1852 --enable-shared[=PKGS] build shared libraries [default=yes]
1853 --enable-static[=PKGS] build static libraries [default=yes]
1854 --enable-fast-install[=PKGS]
1855 optimize for fast installation [default=yes]
1856 --disable-libtool-lock avoid locking (might break parallel builds)
1857 --enable-http Enable HTTP support
1858 --disable-http Disable HTTP support
1859 --enable-ftp Enable FTP support
1860 --disable-ftp Disable FTP support
1861 --enable-file Enable FILE support
1862 --disable-file Disable FILE support
1863 --enable-ldap Enable LDAP support
1864 --disable-ldap Disable LDAP support
1865 --enable-ldaps Enable LDAPS support
1866 --disable-ldaps Disable LDAPS support
1867 --enable-rtsp Enable RTSP support
1868 --disable-rtsp Disable RTSP support
1869 --enable-proxy Enable proxy support
1870 --disable-proxy Disable proxy support
1871 --enable-dict Enable DICT support
1872 --disable-dict Disable DICT support
1873 --enable-telnet Enable TELNET support
1874 --disable-telnet Disable TELNET support
1875 --enable-tftp Enable TFTP support
1876 --disable-tftp Disable TFTP support
1877 --enable-pop3 Enable POP3 support
1878 --disable-pop3 Disable POP3 support
1879 --enable-imap Enable IMAP support
1880 --disable-imap Disable IMAP support
1881 --enable-smb Enable SMB/CIFS support
1882 --disable-smb Disable SMB/CIFS support
1883 --enable-smtp Enable SMTP support
1884 --disable-smtp Disable SMTP support
1885 --enable-gopher Enable Gopher support
1886 --disable-gopher Disable Gopher support
1887 --enable-manual Enable built-in manual
1888 --disable-manual Disable built-in manual
1889 --enable-libcurl-option Enable --libcurl C code generation support
1890 --disable-libcurl-option
1891 Disable --libcurl C code generation support
1892 --enable-libgcc use libgcc when linking
1893 --enable-ipv6 Enable IPv6 (with IPv4) support
1894 --disable-ipv6 Disable IPv6 support
1895 --enable-versioned-symbols
1896 Enable versioned symbols in shared library
1897 --disable-versioned-symbols
1898 Disable versioned symbols in shared library
1899 --enable-threaded-resolver
1900 Enable threaded resolver
1901 --disable-threaded-resolver
1902 Disable threaded resolver
1903 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1904 --disable-pthreads Disable POSIX threads
1905 --enable-verbose Enable verbose strings
1906 --disable-verbose Disable verbose strings
1907 --enable-sspi Enable SSPI
1908 --disable-sspi Disable SSPI
1909 --enable-crypto-auth Enable cryptographic authentication
1910 --disable-crypto-auth Disable cryptographic authentication
1911 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1912 helper, where FILE is ntlm_auth's absolute filename
1913 (default: /usr/bin/ntlm_auth)
1914 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1916 --enable-tls-srp Enable TLS-SRP authentication
1917 --disable-tls-srp Disable TLS-SRP authentication
1918 --enable-unix-sockets Enable Unix domain sockets
1919 --disable-unix-sockets Disable Unix domain sockets
1920 --enable-cookies Enable cookies support
1921 --disable-cookies Disable cookies support
1922 --enable-soname-bump Enable enforced SONAME bump
1923 --disable-soname-bump Disable enforced SONAME bump
1926 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1927 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1928 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1930 --with-aix-soname=aix|svr4|both
1931 shared library versioning (aka "SONAME") variant to
1932 provide on AIX, [default=aix].
1933 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1934 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1935 compiler's sysroot if not specified).
1936 --with-zlib=PATH search for zlib in PATH
1937 --without-zlib disable use of zlib
1938 --with-ldap-lib=libname Specify name of ldap lib file
1939 --with-lber-lib=libname Specify name of lber lib file
1940 --with-gssapi-includes=DIR
1941 Specify location of GSS-API headers
1942 --with-gssapi-libs=DIR Specify location of GSS-API libs
1943 --with-gssapi=DIR Where to look for GSS-API
1944 --with-winssl enable Windows native SSL/TLS
1945 --without-winssl disable Windows native SSL/TLS
1946 --with-darwinssl enable Apple OS native SSL/TLS
1947 --without-darwinssl disable Apple OS native SSL/TLS
1948 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1949 installation (default: /usr/local/ssl); when
1950 possible, set the PKG_CONFIG_PATH environment
1951 variable instead of using this option
1952 --without-ssl disable OpenSSL
1953 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1954 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1955 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1957 --without-gnutls disable GnuTLS detection
1958 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1960 --without-polarssl disable PolarSSL detection
1961 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1963 --without-mbedtls disable mbedTLS detection
1964 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1965 installation root (default: system lib default)
1966 --without-cyassl disable CyaSSL detection
1967 --with-nss=PATH where to look for NSS, PATH points to the
1969 --without-nss disable NSS detection
1970 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
1971 installation prefix (default: /usr/local). Ignored
1972 if another SSL engine is selected.
1973 --without-axtls disable axTLS
1974 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
1976 --without-ca-bundle Don't use a default CA bundle
1977 --with-ca-path=DIRECTORY
1978 Path to a directory containing CA certificates
1979 stored individually, with their filenames in a hash
1980 format. This option can be used with OpenSSL, GnuTLS
1981 and PolarSSL backends. Refer to OpenSSL c_rehash for
1982 details. (example: /etc/certificates)
1983 --without-ca-path Don't use a default CA path
1984 --with-ca-fallback Use the built in CA store of the SSL library
1985 --without-ca-fallback Don't use the built in CA store of the SSL library
1986 --without-libpsl disable support for libpsl cookie checking
1987 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1989 --without-libmetalink disable libmetalink detection
1990 --with-libssh2=PATH Where to look for libssh2, PATH points to the
1991 LIBSSH2 installation; when possible, set the
1992 PKG_CONFIG_PATH environment variable instead of
1994 --without-libssh2 disable LIBSSH2
1995 --with-librtmp=PATH Where to look for librtmp, PATH points to the
1996 LIBRTMP installation; when possible, set the
1997 PKG_CONFIG_PATH environment variable instead of
1999 --without-librtmp disable LIBRTMP
2000 --with-winidn=PATH enable Windows native IDN
2001 --without-winidn disable Windows native IDN
2002 --with-libidn2=PATH Enable libidn2 usage
2003 --without-libidn2 Disable libidn2 usage
2004 --with-nghttp2=PATH Enable nghttp2 usage
2005 --without-nghttp2 Disable nghttp2 usage
2006 --with-zsh-functions-dir=PATH
2007 Install zsh completions to PATH
2008 --without-zsh-functions-dir
2009 Do not install zsh completions
2011 Some influential environment variables:
2012 CC C compiler command
2013 CFLAGS C compiler flags
2014 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2015 nonstandard directory <lib dir>
2016 LIBS libraries to pass to the linker, e.g. -l<library>
2017 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2018 you have headers in a nonstandard directory <include dir>
2021 User-defined run-time library search path.
2023 Use these variables to override the choices made by `configure' or to help
2024 it to find libraries and programs with nonstandard names/locations.
2026 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2031 if test "$ac_init_help" = "recursive"; then
2032 # If there are subdirs, report their specific --help.
2033 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2034 test -d "$ac_dir" ||
2035 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2043 # A ".." for each directory in $ac_dir_suffix.
2044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2045 case $ac_top_builddir_sub in
2046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2050 ac_abs_top_builddir=$ac_pwd
2051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2052 # for backward compatibility:
2053 ac_top_builddir=$ac_top_build_prefix
2056 .) # We are building in place.
2058 ac_top_srcdir=$ac_top_builddir_sub
2059 ac_abs_top_srcdir=$ac_pwd ;;
2060 [\\/]* | ?:[\\/]* ) # Absolute name.
2061 ac_srcdir=$srcdir$ac_dir_suffix;
2062 ac_top_srcdir=$srcdir
2063 ac_abs_top_srcdir=$srcdir ;;
2065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2066 ac_top_srcdir=$ac_top_build_prefix$srcdir
2067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2071 cd "$ac_dir" || { ac_status=$?; continue; }
2072 # Check for guested configure.
2073 if test -f "$ac_srcdir/configure.gnu"; then
2075 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2076 elif test -f "$ac_srcdir/configure"; then
2078 $SHELL "$ac_srcdir/configure" --help=recursive
2080 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2082 cd "$ac_pwd" || { ac_status=$?; break; }
2086 test -n "$ac_init_help" && exit $ac_status
2087 if $ac_init_version; then
2090 generated by GNU Autoconf 2.69
2092 Copyright (C) 2012 Free Software Foundation, Inc.
2093 This configure script is free software; the Free Software Foundation
2094 gives unlimited permission to copy, distribute and modify it.
2096 Copyright (c) 1998 - 2016 Daniel Stenberg, <daniel@haxx.se>
2097 This configure script may be copied, distributed and modified under the
2098 terms of the curl license; see COPYING for more details
2103 ## ------------------------ ##
2104 ## Autoconf initialization. ##
2105 ## ------------------------ ##
2107 # ac_fn_c_try_compile LINENO
2108 # --------------------------
2109 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2110 ac_fn_c_try_compile ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 rm -f conftest.$ac_objext
2114 if { { ac_try="$ac_compile"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_compile") 2>conftest.err
2123 if test -s conftest.err; then
2124 grep -v '^ *+' conftest.err >conftest.er1
2125 cat conftest.er1 >&5
2126 mv -f conftest.er1 conftest.err
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } && {
2130 test -z "$ac_c_werror_flag" ||
2131 test ! -s conftest.err
2132 } && test -s conftest.$ac_objext; then :
2135 $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 as_fn_set_status $ac_retval
2143 } # ac_fn_c_try_compile
2145 # ac_fn_c_try_cpp LINENO
2146 # ----------------------
2147 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 if { { ac_try="$ac_cpp conftest.$ac_ext"
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2157 $as_echo "$ac_try_echo"; } >&5
2158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2160 if test -s conftest.err; then
2161 grep -v '^ *+' conftest.err >conftest.er1
2162 cat conftest.er1 >&5
2163 mv -f conftest.er1 conftest.err
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166 test $ac_status = 0; } > conftest.i && {
2167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2168 test ! -s conftest.err
2172 $as_echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178 as_fn_set_status $ac_retval
2182 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2183 # -------------------------------------------------------
2184 # Tests whether HEADER exists and can be compiled using the include files in
2185 # INCLUDES, setting the cache variable VAR accordingly.
2186 ac_fn_c_check_header_compile ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if eval \${$3+:} false; then :
2192 $as_echo_n "(cached) " >&6
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2199 if ac_fn_c_try_compile "$LINENO"; then :
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211 } # ac_fn_c_check_header_compile
2213 # ac_fn_c_try_run LINENO
2214 # ----------------------
2215 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2216 # that executables *can* be run.
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 if { { ac_try="$ac_link"
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2226 $as_echo "$ac_try_echo"; } >&5
2227 (eval "$ac_link") 2>&5
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2231 { { case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_try") 2>&5
2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240 test $ac_status = 0; }; }; then :
2243 $as_echo "$as_me: program exited with status $ac_status" >&5
2244 $as_echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 ac_retval=$ac_status
2249 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 as_fn_set_status $ac_retval
2255 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2256 # --------------------------------------------
2257 # Tries to find the compile-time value of EXPR in a program that includes
2258 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2260 ac_fn_c_compute_int ()
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 if test "$cross_compiling" = yes; then
2264 # Depending upon the size, compute the lo and hi bounds.
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2270 static int test_array [1 - 2 * !(($2) >= 0)];
2272 return test_array [0];
2278 if ac_fn_c_try_compile "$LINENO"; then :
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2288 return test_array [0];
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 ac_hi=$ac_mid; break
2297 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2298 if test $ac_lo -le $ac_mid; then
2302 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2312 static int test_array [1 - 2 * !(($2) < 0)];
2314 return test_array [0];
2320 if ac_fn_c_try_compile "$LINENO"; then :
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2328 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2330 return test_array [0];
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337 ac_lo=$ac_mid; break
2339 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2340 if test $ac_mid -le $ac_hi; then
2344 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 # Binary search between lo and hi bounds.
2355 while test "x$ac_lo" != "x$ac_hi"; do
2356 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2362 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2364 return test_array [0];
2370 if ac_fn_c_try_compile "$LINENO"; then :
2373 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2385 static long int longval () { return $2; }
2386 static unsigned long int ulongval () { return $2; }
2392 FILE *f = fopen ("conftest.val", "w");
2397 long int i = longval ();
2400 fprintf (f, "%ld", i);
2404 unsigned long int i = ulongval ();
2407 fprintf (f, "%lu", i);
2409 /* Do not output a trailing newline, as this causes \r\n confusion
2410 on some platforms. */
2411 return ferror (f) || fclose (f) != 0;
2417 if ac_fn_c_try_run "$LINENO"; then :
2418 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2423 conftest.$ac_objext conftest.beam conftest.$ac_ext
2427 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428 as_fn_set_status $ac_retval
2430 } # ac_fn_c_compute_int
2432 # ac_fn_c_try_link LINENO
2433 # -----------------------
2434 # Try to link conftest.$ac_ext, and return whether this succeeded.
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 rm -f conftest.$ac_objext conftest$ac_exeext
2439 if { { ac_try="$ac_link"
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2445 $as_echo "$ac_try_echo"; } >&5
2446 (eval "$ac_link") 2>conftest.err
2448 if test -s conftest.err; then
2449 grep -v '^ *+' conftest.err >conftest.er1
2450 cat conftest.er1 >&5
2451 mv -f conftest.er1 conftest.err
2453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2454 test $ac_status = 0; } && {
2455 test -z "$ac_c_werror_flag" ||
2456 test ! -s conftest.err
2457 } && test -s conftest$ac_exeext && {
2458 test "$cross_compiling" = yes ||
2459 test -x conftest$ac_exeext
2463 $as_echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2468 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2469 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2470 # interfere with the next link command; also delete a directory that is
2471 # left behind by Apple's compiler. We do this before executing the actions.
2472 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474 as_fn_set_status $ac_retval
2476 } # ac_fn_c_try_link
2478 # ac_fn_c_check_func LINENO FUNC VAR
2479 # ----------------------------------
2480 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2481 ac_fn_c_check_func ()
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2485 $as_echo_n "checking for $2... " >&6; }
2486 if eval \${$3+:} false; then :
2487 $as_echo_n "(cached) " >&6
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2492 #define $2 innocuous_$2
2494 # include <limits.h>
2496 # include <assert.h>
2503 #if defined __stub_$2 || defined __stub___$2
2514 if ac_fn_c_try_link "$LINENO"; then :
2519 rm -f core conftest.err conftest.$ac_objext \
2520 conftest$ac_exeext conftest.$ac_ext
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524 $as_echo "$ac_res" >&6; }
2525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2527 } # ac_fn_c_check_func
2529 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2530 # -------------------------------------------------------
2531 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2532 # the include files in INCLUDES and setting the cache variable VAR
2534 ac_fn_c_check_header_mongrel ()
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 if eval \${$3+:} false; then :
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if eval \${$3+:} false; then :
2541 $as_echo_n "(cached) " >&6
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545 $as_echo "$ac_res" >&6; }
2547 # Is the header compilable?
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2549 $as_echo_n "checking $2 usability... " >&6; }
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2555 if ac_fn_c_try_compile "$LINENO"; then :
2556 ac_header_compiler=yes
2558 ac_header_compiler=no
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2562 $as_echo "$ac_header_compiler" >&6; }
2564 # Is the header present?
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2566 $as_echo_n "checking $2 presence... " >&6; }
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2571 if ac_fn_c_try_cpp "$LINENO"; then :
2572 ac_header_preproc=yes
2574 ac_header_preproc=no
2576 rm -f conftest.err conftest.i conftest.$ac_ext
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2578 $as_echo "$ac_header_preproc" >&6; }
2580 # So? What about this header?
2581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2584 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2586 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2590 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2592 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2594 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2596 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2598 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2599 ( $as_echo "## ----------------------------------------------------------------------- ##
2600 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2601 ## ----------------------------------------------------------------------- ##"
2602 ) | sed "s/^/$as_me: WARNING: /" >&2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2606 $as_echo_n "checking for $2... " >&6; }
2607 if eval \${$3+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 eval "$3=\$ac_header_compiler"
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614 $as_echo "$ac_res" >&6; }
2616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618 } # ac_fn_c_check_header_mongrel
2620 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2621 # -------------------------------------------
2622 # Tests whether TYPE exists after having included INCLUDES, setting cache
2623 # variable VAR accordingly.
2624 ac_fn_c_check_type ()
2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2628 $as_echo_n "checking for $2... " >&6; }
2629 if eval \${$3+:} false; then :
2630 $as_echo_n "(cached) " >&6
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2644 if ac_fn_c_try_compile "$LINENO"; then :
2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h. */
2656 if ac_fn_c_try_compile "$LINENO"; then :
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 $as_echo "$ac_res" >&6; }
2668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2670 } # ac_fn_c_check_type
2672 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2673 # ----------------------------------------------------
2674 # Tries to find if the field MEMBER exists in type AGGR, after including
2675 # INCLUDES, setting cache variable VAR accordingly.
2676 ac_fn_c_check_member ()
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2680 $as_echo_n "checking for $2.$3... " >&6; }
2681 if eval \${$4+:} false; then :
2682 $as_echo_n "(cached) " >&6
2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2696 if ac_fn_c_try_compile "$LINENO"; then :
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2705 if (sizeof ac_aggr.$3)
2711 if ac_fn_c_try_compile "$LINENO"; then :
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722 $as_echo "$ac_res" >&6; }
2723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2725 } # ac_fn_c_check_member
2726 cat >config.log <<_ACEOF
2727 This file contains any messages produced by compilers while
2728 running configure, to aid debugging if configure makes a mistake.
2730 It was created by curl $as_me -, which was
2731 generated by GNU Autoconf 2.69. Invocation command line was
2743 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2744 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2745 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2746 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2747 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2749 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2750 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2752 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2753 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2754 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2755 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2756 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2757 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2758 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 test -z "$as_dir" && as_dir=.
2767 $as_echo "PATH: $as_dir"
2783 # Keep a trace of the command line.
2784 # Strip out --no-create and --no-recursion so they do not pile up.
2785 # Strip out --silent because we don't want to record it for future runs.
2786 # Also quote any args containing shell meta-characters.
2787 # Make two passes to allow for proper duplicate-argument suppression.
2791 ac_must_keep_next=false
2797 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2799 | -silent | --silent | --silen | --sile | --sil)
2802 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2805 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2807 as_fn_append ac_configure_args1 " '$ac_arg'"
2808 if test $ac_must_keep_next = true; then
2809 ac_must_keep_next=false # Got value, back to normal.
2812 *=* | --config-cache | -C | -disable-* | --disable-* \
2813 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2814 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2815 | -with-* | --with-* | -without-* | --without-* | --x)
2816 case "$ac_configure_args0 " in
2817 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2820 -* ) ac_must_keep_next=true ;;
2823 as_fn_append ac_configure_args " '$ac_arg'"
2828 { ac_configure_args0=; unset ac_configure_args0;}
2829 { ac_configure_args1=; unset ac_configure_args1;}
2831 # When interrupted or exit'd, cleanup temporary files, and complete
2832 # config.log. We remove comments because anyway the quotes in there
2833 # would cause problems or look ugly.
2834 # WARNING: Use '\'' to represent an apostrophe within the trap.
2835 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2836 trap 'exit_status=$?
2837 # Save into config.log some information that might help in debugging.
2841 $as_echo "## ---------------- ##
2842 ## Cache variables. ##
2843 ## ---------------- ##"
2845 # The following way of writing the cache mishandles newlines in values,
2847 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2848 eval ac_val=\$$ac_var
2852 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2853 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2856 _ | IFS | as_nl) ;; #(
2857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2858 *) { eval $ac_var=; unset $ac_var;} ;;
2863 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2864 *${as_nl}ac_space=\ *)
2866 "s/'\''/'\''\\\\'\'''\''/g;
2867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2870 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2877 $as_echo "## ----------------- ##
2878 ## Output variables. ##
2879 ## ----------------- ##"
2881 for ac_var in $ac_subst_vars
2883 eval ac_val=\$$ac_var
2885 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2887 $as_echo "$ac_var='\''$ac_val'\''"
2891 if test -n "$ac_subst_files"; then
2892 $as_echo "## ------------------- ##
2893 ## File substitutions. ##
2894 ## ------------------- ##"
2896 for ac_var in $ac_subst_files
2898 eval ac_val=\$$ac_var
2900 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2902 $as_echo "$ac_var='\''$ac_val'\''"
2907 if test -s confdefs.h; then
2908 $as_echo "## ----------- ##
2915 test "$ac_signal" != 0 &&
2916 $as_echo "$as_me: caught signal $ac_signal"
2917 $as_echo "$as_me: exit $exit_status"
2919 rm -f core *.core core.conftest.* &&
2920 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2923 for ac_signal in 1 2 13 15; do
2924 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2928 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2929 rm -f -r conftest* confdefs.h
2931 $as_echo "/* confdefs.h */" > confdefs.h
2933 # Predefined preprocessor variables.
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE_NAME "$PACKAGE_NAME"
2939 cat >>confdefs.h <<_ACEOF
2940 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2943 cat >>confdefs.h <<_ACEOF
2944 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_STRING "$PACKAGE_STRING"
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_URL "$PACKAGE_URL"
2960 # Let the site file select an alternate cache file if it wants to.
2961 # Prefer an explicitly selected file to automatically selected ones.
2964 if test -n "$CONFIG_SITE"; then
2965 # We do not want a PATH search for config.site.
2966 case $CONFIG_SITE in #((
2967 -*) ac_site_file1=./$CONFIG_SITE;;
2968 */*) ac_site_file1=$CONFIG_SITE;;
2969 *) ac_site_file1=./$CONFIG_SITE;;
2971 elif test "x$prefix" != xNONE; then
2972 ac_site_file1=$prefix/share/config.site
2973 ac_site_file2=$prefix/etc/config.site
2975 ac_site_file1=$ac_default_prefix/share/config.site
2976 ac_site_file2=$ac_default_prefix/etc/config.site
2978 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2980 test "x$ac_site_file" = xNONE && continue
2981 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2983 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2984 sed 's/^/| /' "$ac_site_file" >&5
2986 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 as_fn_error $? "failed to load site script $ac_site_file
2989 See \`config.log' for more details" "$LINENO" 5; }
2993 if test -r "$cache_file"; then
2994 # Some versions of bash will fail to source /dev/null (special files
2995 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2996 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2998 $as_echo "$as_me: loading cache $cache_file" >&6;}
3000 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3001 *) . "./$cache_file";;
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3006 $as_echo "$as_me: creating cache $cache_file" >&6;}
3010 # Check that the precious variables saved in the cache have kept the same
3012 ac_cache_corrupted=false
3013 for ac_var in $ac_precious_vars; do
3014 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3015 eval ac_new_set=\$ac_env_${ac_var}_set
3016 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3017 eval ac_new_val=\$ac_env_${ac_var}_value
3018 case $ac_old_set,$ac_new_set in
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3021 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3022 ac_cache_corrupted=: ;;
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3025 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3026 ac_cache_corrupted=: ;;
3029 if test "x$ac_old_val" != "x$ac_new_val"; then
3030 # differences in whitespace do not lead to failure.
3031 ac_old_val_w=`echo x $ac_old_val`
3032 ac_new_val_w=`echo x $ac_new_val`
3033 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3035 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3036 ac_cache_corrupted=:
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3039 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3040 eval $ac_var=\$ac_old_val
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3043 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3045 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3048 # Pass precious variables to config.status.
3049 if test "$ac_new_set" = set; then
3051 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3052 *) ac_arg=$ac_var=$ac_new_val ;;
3054 case " $ac_configure_args " in
3055 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3056 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3060 if $ac_cache_corrupted; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3064 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3065 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3067 ## -------------------- ##
3068 ## Main body of script. ##
3069 ## -------------------- ##
3072 ac_cpp='$CPP $CPPFLAGS'
3073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 # using curl-override.m4
3089 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3094 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3095 # Check whether --enable-maintainer-mode was given.
3096 if test "${enable_maintainer_mode+set}" = set; then :
3097 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3099 USE_MAINTAINER_MODE=no
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3103 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3104 if test $USE_MAINTAINER_MODE = yes; then
3105 MAINTAINER_MODE_TRUE=
3106 MAINTAINER_MODE_FALSE='#'
3108 MAINTAINER_MODE_TRUE='#'
3109 MAINTAINER_MODE_FALSE=
3112 MAINT=$MAINTAINER_MODE_TRUE
3115 # Check whether --enable-silent-rules was given.
3116 if test "${enable_silent_rules+set}" = set; then :
3117 enableval=$enable_silent_rules;
3120 case $enable_silent_rules in # (((
3121 yes) AM_DEFAULT_VERBOSITY=0;;
3122 no) AM_DEFAULT_VERBOSITY=1;;
3123 *) AM_DEFAULT_VERBOSITY=0;;
3125 am_make=${MAKE-make}
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3127 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3128 if ${am_cv_make_support_nested_variables+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 if $as_echo 'TRUE=$(BAR$(V))
3137 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3138 am_cv_make_support_nested_variables=yes
3140 am_cv_make_support_nested_variables=no
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3144 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3145 if test $am_cv_make_support_nested_variables = yes; then
3147 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3149 AM_V=$AM_DEFAULT_VERBOSITY
3150 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3157 $as_echo_n "checking whether to enable debug build options... " >&6; }
3158 OPT_DEBUG_BUILD="default"
3159 # Check whether --enable-debug was given.
3160 if test "${enable_debug+set}" = set; then :
3161 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3164 case "$OPT_DEBUG_BUILD" in
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3176 $as_echo "$want_debug" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3180 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3181 OPT_COMPILER_OPTIMIZE="default"
3182 # Check whether --enable-optimize was given.
3183 if test "${enable_optimize+set}" = set; then :
3184 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3187 case "$OPT_COMPILER_OPTIMIZE" in
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3194 if test "$want_debug" = "yes"; then
3195 want_optimize="assume_no"
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3197 $as_echo "(assumed) no" >&6; }
3199 want_optimize="assume_yes"
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3201 $as_echo "(assumed) yes" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3213 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3214 OPT_COMPILER_WARNINGS="default"
3215 # Check whether --enable-warnings was given.
3216 if test "${enable_warnings+set}" = set; then :
3217 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3220 case "$OPT_COMPILER_WARNINGS" in
3225 want_warnings="$want_debug"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3232 $as_echo "$want_warnings" >&6; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3236 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3237 OPT_COMPILER_WERROR="default"
3238 # Check whether --enable-werror was given.
3239 if test "${enable_werror+set}" = set; then :
3240 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3243 case "$OPT_COMPILER_WERROR" in
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3255 $as_echo "$want_werror" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3259 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3260 OPT_CURLDEBUG_BUILD="default"
3261 # Check whether --enable-curldebug was given.
3262 if test "${enable_curldebug+set}" = set; then :
3263 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3266 case "$OPT_CURLDEBUG_BUILD" in
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3273 if test "$want_debug" = "yes"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3275 $as_echo "(assumed) yes" >&6; }
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3280 want_curldebug_assumed="yes"
3281 want_curldebug="$want_debug"
3284 want_curldebug="yes"
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3292 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3293 OPT_SYMBOL_HIDING="default"
3294 # Check whether --enable-symbol-hiding was given.
3295 if test "${enable_symbol_hiding+set}" = set; then :
3296 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3299 # Check whether --enable-hidden-symbols was given.
3300 if test "${enable_hidden_symbols+set}" = set; then :
3301 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3304 case "$OPT_SYMBOL_HIDING" in
3306 want_symbol_hiding="no"
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3311 want_symbol_hiding="yes"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3316 want_symbol_hiding="yes"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3324 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3326 # Check whether --enable-ares was given.
3327 if test "${enable_ares+set}" = set; then :
3328 enableval=$enable_ares; OPT_ARES=$enableval
3340 if test -n "$enableval" && test "$enableval" != "yes"; then
3341 want_ares_path="$enableval"
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3346 $as_echo "$want_ares" >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3350 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3352 # Check whether --enable-rt was given.
3353 if test "${enable_rt+set}" = set; then :
3354 enableval=$enable_rt; OPT_RT=$enableval
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3361 $as_echo "yes" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3366 $as_echo "(assumed no)" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3374 if test "$dontwant_rt" = "yes" && test "$want_thres" = "yes" ; then
3375 as_fn_error $? "options --disable-rt and --enable-thread-resolver are mutually exclusive, at most one can be selected." "$LINENO" 5
3380 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3383 if test -z "$xc_configure_preamble_result"; then
3384 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3388 # Check that 'PATH_SEPARATOR' has already been set.
3391 if test -z "$xc_PATH_SEPARATOR"; then
3392 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3394 if test -z "$PATH_SEPARATOR"; then
3395 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3398 $as_echo_n "checking for path separator... " >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3400 $as_echo "$PATH_SEPARATOR" >&6; }
3401 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3403 $as_echo_n "checking for initial path separator... " >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3405 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3406 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3411 # save the configure arguments
3413 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3416 CURL_CFLAG_EXTRAS=""
3417 if test X"$want_werror" = Xyes; then
3418 CURL_CFLAG_EXTRAS="-Werror"
3422 if test -z "$SED"; then
3423 # Extract the first word of "sed", so it can be a program name with args.
3424 set dummy sed; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_path_SED+:} false; then :
3428 $as_echo_n "(cached) " >&6
3432 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3437 for as_dir in $as_dummy
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3456 if test -n "$SED"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3458 $as_echo "$SED" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3465 if test -z "$SED" || test "$SED" = "not_found"; then
3466 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3471 if test -z "$GREP"; then
3472 # Extract the first word of "grep", so it can be a program name with args.
3473 set dummy grep; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_path_GREP+:} false; then :
3477 $as_echo_n "(cached) " >&6
3481 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3486 for as_dir in $as_dummy
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3504 GREP=$ac_cv_path_GREP
3505 if test -n "$GREP"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3507 $as_echo "$GREP" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3514 if test -z "$GREP" || test "$GREP" = "not_found"; then
3515 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3520 if test -z "$EGREP"; then
3521 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3523 $as_echo_n "checking for egrep... " >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3526 $as_echo "$EGREP" >&6; }
3528 # Extract the first word of "egrep", so it can be a program name with args.
3529 set dummy egrep; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_path_EGREP+:} false; then :
3533 $as_echo_n "(cached) " >&6
3537 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3542 for as_dir in $as_dummy
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3560 EGREP=$ac_cv_path_EGREP
3561 if test -n "$EGREP"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3563 $as_echo "$EGREP" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3572 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3573 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3577 if test -z "$AR"; then
3578 if test -n "$ac_tool_prefix"; then
3579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3580 set dummy ${ac_tool_prefix}ar; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if ${ac_cv_path_AR+:} false; then :
3584 $as_echo_n "(cached) " >&6
3588 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3593 for as_dir in $as_dummy
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 if test -n "$AR"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3613 $as_echo "$AR" >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3621 if test -z "$ac_cv_path_AR"; then
3623 # Extract the first word of "ar", so it can be a program name with args.
3624 set dummy ar; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if ${ac_cv_path_ac_pt_AR+:} false; then :
3628 $as_echo_n "(cached) " >&6
3632 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3637 for as_dir in $as_dummy
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 ac_pt_AR=$ac_cv_path_ac_pt_AR
3655 if test -n "$ac_pt_AR"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3657 $as_echo "$ac_pt_AR" >&6; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3663 if test "x$ac_pt_AR" = x; then
3666 case $cross_compiling:$ac_tool_warned in
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670 ac_tool_warned=yes ;;
3678 if test -z "$AR" || test "$AR" = "not_found"; then
3679 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3686 if test -f ${srcdir}/include/curl/curlbuild.h; then
3687 rm -f ${srcdir}/include/curl/curlbuild.h
3690 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3692 xc_prog_cc_prev_IFS=$IFS
3693 xc_prog_cc_prev_LIBS=$LIBS
3694 xc_prog_cc_prev_CFLAGS=$CFLAGS
3695 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3696 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3701 for xc_word in $LIBS; do
3711 if test $xc_bad_var_libs = yes; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3713 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3715 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3719 xc_bad_var_ldflags=no
3720 for xc_word in $LDFLAGS; do
3723 xc_bad_var_ldflags=yes
3726 xc_bad_var_ldflags=yes
3729 xc_bad_var_ldflags=yes
3732 xc_bad_var_ldflags=yes
3736 if test $xc_bad_var_ldflags = yes; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3738 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3739 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3740 for xc_word in $LDFLAGS; do
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3744 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3748 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3752 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3756 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3763 xc_bad_var_cppflags=no
3764 for xc_word in $CPPFLAGS; do
3767 xc_bad_var_cppflags=yes
3769 -L* | --library-path=*)
3770 xc_bad_var_cppflags=yes
3773 xc_bad_var_cppflags=yes
3777 if test $xc_bad_var_cppflags = yes; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3779 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3780 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3781 for xc_word in $CPPFLAGS; do
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3785 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3787 -L* | --library-path=*)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3789 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3793 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3800 xc_bad_var_cflags=no
3801 for xc_word in $CFLAGS; do
3804 xc_bad_var_cflags=yes
3807 xc_bad_var_cflags=yes
3810 xc_bad_var_cflags=yes
3813 xc_bad_var_cflags=yes
3815 -L* | --library-path=*)
3816 xc_bad_var_cflags=yes
3819 xc_bad_var_cflags=yes
3823 if test $xc_bad_var_cflags = yes; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3825 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3826 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3827 for xc_word in $CFLAGS; do
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3831 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3835 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3839 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3843 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3845 -L* | --library-path=*)
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3847 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3851 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3857 if test $xc_bad_var_libs = yes ||
3858 test $xc_bad_var_cflags = yes ||
3859 test $xc_bad_var_ldflags = yes ||
3860 test $xc_bad_var_cppflags = yes; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3862 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3866 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3867 if test -f "$ac_dir/install-sh"; then
3869 ac_install_sh="$ac_aux_dir/install-sh -c"
3871 elif test -f "$ac_dir/install.sh"; then
3873 ac_install_sh="$ac_aux_dir/install.sh -c"
3875 elif test -f "$ac_dir/shtool"; then
3877 ac_install_sh="$ac_aux_dir/shtool install -c"
3881 if test -z "$ac_aux_dir"; then
3882 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3885 # These three variables are undocumented and unsupported,
3886 # and are intended to be withdrawn in a future Autoconf release.
3887 # They can cause serious problems if a builder's source tree is in a directory
3888 # whose full name contains unusual characters.
3889 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3890 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3891 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3894 # Find a good install program. We prefer a C program (faster),
3895 # so one script is as good as another. But avoid the broken or
3896 # incompatible versions:
3897 # SysV /etc/install, /usr/sbin/install
3898 # SunOS /usr/etc/install
3899 # IRIX /sbin/install
3901 # AmigaOS /C/install, which installs bootblocks on floppy discs
3902 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3905 # OS/2's system install, which has a completely different semantic
3906 # ./install, which can be erroneously created by make from ./install.sh.
3907 # Reject install programs that cannot install multiple files.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3909 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3910 if test -z "$INSTALL"; then
3911 if ${ac_cv_path_install+:} false; then :
3912 $as_echo_n "(cached) " >&6
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir=.
3919 # Account for people who put trailing slashes in PATH elements.
3920 case $as_dir/ in #((
3921 ./ | .// | /[cC]/* | \
3922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3923 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3929 for ac_prog in ginstall scoinst install; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3936 elif test $ac_prog = install &&
3937 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3941 rm -rf conftest.one conftest.two conftest.dir
3942 echo one > conftest.one
3943 echo two > conftest.two
3945 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3946 test -s conftest.one && test -s conftest.two &&
3947 test -s conftest.dir/conftest.one &&
3948 test -s conftest.dir/conftest.two
3950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3963 rm -rf conftest.one conftest.two conftest.dir
3966 if test "${ac_cv_path_install+set}" = set; then
3967 INSTALL=$ac_cv_path_install
3969 # As a last resort, use the slow shell script. Don't cache a
3970 # value for INSTALL within a source directory, because that will
3971 # break other packages using the cache if that directory is
3972 # removed, or if the value is a relative name.
3973 INSTALL=$ac_install_sh
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3977 $as_echo "$INSTALL" >&6; }
3979 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3980 # It thinks the first close brace ends the variable substitution.
3981 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3983 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3985 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3987 # Expand $ac_aux_dir to an absolute path.
3988 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_prog_CC+:} false; then :
4001 $as_echo_n "(cached) " >&6
4003 if test -n "$CC"; then
4004 ac_cv_prog_CC="$CC" # Let the user override the test.
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 if test -n "$CC"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4026 $as_echo "$CC" >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4034 if test -z "$ac_cv_prog_CC"; then
4036 # Extract the first word of "gcc", so it can be a program name with args.
4037 set dummy gcc; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4041 $as_echo_n "(cached) " >&6
4043 if test -n "$ac_ct_CC"; then
4044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_ac_ct_CC="gcc"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4064 if test -n "$ac_ct_CC"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4066 $as_echo "$ac_ct_CC" >&6; }
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4072 if test "x$ac_ct_CC" = x; then
4075 case $cross_compiling:$ac_tool_warned in
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4087 if test -z "$CC"; then
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}cc; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_CC+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_CC="${ac_tool_prefix}cc"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 if test -n "$CC"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4128 if test -z "$CC"; then
4129 # Extract the first word of "cc", so it can be a program name with args.
4130 set dummy cc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_CC+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4148 ac_prog_rejected=yes
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 if test $ac_prog_rejected = yes; then
4160 # We found a bogon in the path, so make sure we never use it.
4161 set dummy $ac_cv_prog_CC
4163 if test $# != 0; then
4164 # We chose a different compiler from the bogus one.
4165 # However, it has the same basename, so the bogon will be chosen
4166 # first if we set CC to just the basename; use the full file name.
4168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4174 if test -n "$CC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4184 if test -z "$CC"; then
4185 if test -n "$ac_tool_prefix"; then
4186 for ac_prog in cl.exe
4188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if ${ac_cv_prog_CC+:} false; then :
4193 $as_echo_n "(cached) " >&6
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 if test -n "$CC"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218 $as_echo "$CC" >&6; }
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4225 test -n "$CC" && break
4228 if test -z "$CC"; then
4230 for ac_prog in cl.exe
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4237 $as_echo_n "(cached) " >&6
4239 if test -n "$ac_ct_CC"; then
4240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_ac_ct_CC="$ac_prog"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260 if test -n "$ac_ct_CC"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4262 $as_echo "$ac_ct_CC" >&6; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4269 test -n "$ac_ct_CC" && break
4272 if test "x$ac_ct_CC" = x; then
4275 case $cross_compiling:$ac_tool_warned in
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279 ac_tool_warned=yes ;;
4288 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290 as_fn_error $? "no acceptable C compiler found in \$PATH
4291 See \`config.log' for more details" "$LINENO" 5; }
4293 # Provide some information about the compiler.
4294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4297 for ac_option in --version -v -V -qversion; do
4298 { { ac_try="$ac_compiler $ac_option >&5"
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4307 if test -s conftest.err; then
4309 ... rest of stderr output deleted ...
4310 10q' conftest.err >conftest.er1
4311 cat conftest.er1 >&5
4313 rm -f conftest.er1 conftest.err
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4328 ac_clean_files_save=$ac_clean_files
4329 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4330 # Try to create an executable without -o first, disregard a.out.
4331 # It will help us diagnose broken compilers, and finding out an intuition
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4334 $as_echo_n "checking whether the C compiler works... " >&6; }
4335 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4337 # The possible output files:
4338 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4341 for ac_file in $ac_files
4344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4345 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4350 if { { ac_try="$ac_link_default"
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356 $as_echo "$ac_try_echo"; } >&5
4357 (eval "$ac_link_default") 2>&5
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; }; then :
4361 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4362 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4363 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4364 # so that the user can short-circuit this test for compilers unknown to
4366 for ac_file in $ac_files ''
4368 test -f "$ac_file" || continue
4370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4373 # We found the default executable, but exeext='' is most
4377 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4379 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4381 # We set ac_cv_exeext here because the later test for it is not
4382 # safe: cross compilers may not add the suffix if given an `-o'
4383 # argument, so we may need to know it at that point already.
4384 # Even if this section looks crufty: it has the advantage of
4391 test "$ac_cv_exeext" = no && ac_cv_exeext=
4396 if test -z "$ac_file"; then :
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 $as_echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4404 as_fn_error 77 "C compiler cannot create executables
4405 See \`config.log' for more details" "$LINENO" 5; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4408 $as_echo "yes" >&6; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4411 $as_echo_n "checking for C compiler default output file name... " >&6; }
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4413 $as_echo "$ac_file" >&6; }
4414 ac_exeext=$ac_cv_exeext
4416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4417 ac_clean_files=$ac_clean_files_save
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4419 $as_echo_n "checking for suffix of executables... " >&6; }
4420 if { { ac_try="$ac_link"
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4426 $as_echo "$ac_try_echo"; } >&5
4427 (eval "$ac_link") 2>&5
4429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430 test $ac_status = 0; }; then :
4431 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4432 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4433 # work properly (i.e., refer to `conftest.exe'), while it won't with
4435 for ac_file in conftest.exe conftest conftest.*; do
4436 test -f "$ac_file" || continue
4438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4439 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4447 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4448 See \`config.log' for more details" "$LINENO" 5; }
4450 rm -f conftest conftest$ac_cv_exeext
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4452 $as_echo "$ac_cv_exeext" >&6; }
4454 rm -f conftest.$ac_ext
4455 EXEEXT=$ac_cv_exeext
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4462 FILE *f = fopen ("conftest.out", "w");
4463 return ferror (f) || fclose (f) != 0;
4469 ac_clean_files="$ac_clean_files conftest.out"
4470 # Check that the compiler produces executables we can run. If not, either
4471 # the compiler is broken, or we cross compile.
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4473 $as_echo_n "checking whether we are cross compiling... " >&6; }
4474 if test "$cross_compiling" != yes; then
4475 { { ac_try="$ac_link"
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4481 $as_echo "$ac_try_echo"; } >&5
4482 (eval "$ac_link") 2>&5
4484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485 test $ac_status = 0; }
4486 if { ac_try='./conftest$ac_cv_exeext'
4487 { { case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4492 $as_echo "$ac_try_echo"; } >&5
4493 (eval "$ac_try") 2>&5
4495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4496 test $ac_status = 0; }; }; then
4499 if test "$cross_compiling" = maybe; then
4502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4504 as_fn_error $? "cannot run C compiled programs.
4505 If you meant to cross compile, use \`--host'.
4506 See \`config.log' for more details" "$LINENO" 5; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4511 $as_echo "$cross_compiling" >&6; }
4513 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4514 ac_clean_files=$ac_clean_files_save
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4516 $as_echo_n "checking for suffix of object files... " >&6; }
4517 if ${ac_cv_objext+:} false; then :
4518 $as_echo_n "(cached) " >&6
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4530 rm -f conftest.o conftest.obj
4531 if { { ac_try="$ac_compile"
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537 $as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_compile") 2>&5
4540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541 test $ac_status = 0; }; then :
4542 for ac_file in conftest.o conftest.obj conftest.*; do
4543 test -f "$ac_file" || continue;
4545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4546 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4551 $as_echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556 as_fn_error $? "cannot compute suffix of object files: cannot compile
4557 See \`config.log' for more details" "$LINENO" 5; }
4559 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4562 $as_echo "$ac_cv_objext" >&6; }
4563 OBJEXT=$ac_cv_objext
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4566 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4567 if ${ac_cv_c_compiler_gnu+:} false; then :
4568 $as_echo_n "(cached) " >&6
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4583 if ac_fn_c_try_compile "$LINENO"; then :
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4593 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4594 if test $ac_compiler_gnu = yes; then
4599 ac_test_CFLAGS=${CFLAGS+set}
4600 ac_save_CFLAGS=$CFLAGS
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4602 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4603 if ${ac_cv_prog_cc_g+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 ac_save_c_werror_flag=$ac_c_werror_flag
4607 ac_c_werror_flag=yes
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4620 if ac_fn_c_try_compile "$LINENO"; then :
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4634 if ac_fn_c_try_compile "$LINENO"; then :
4637 ac_c_werror_flag=$ac_save_c_werror_flag
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4649 if ac_fn_c_try_compile "$LINENO"; then :
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 ac_c_werror_flag=$ac_save_c_werror_flag
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4660 $as_echo "$ac_cv_prog_cc_g" >&6; }
4661 if test "$ac_test_CFLAGS" = set; then
4662 CFLAGS=$ac_save_CFLAGS
4663 elif test $ac_cv_prog_cc_g = yes; then
4664 if test "$GCC" = yes; then
4670 if test "$GCC" = yes; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4677 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4678 if ${ac_cv_prog_cc_c89+:} false; then :
4679 $as_echo_n "(cached) " >&6
4681 ac_cv_prog_cc_c89=no
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4689 struct buf { int x; };
4690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4691 static char *e (p, i)
4697 static char *f (char * (*g) (char **, int), char **p, ...)
4702 s = g (p, va_arg (v,int));
4707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4708 function prototypes and stuff, but not '\xHH' hex character constants.
4709 These don't provoke an error unfortunately, instead are silently treated
4710 as 'x'. The following induces an error, until -std is added to get
4711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4712 array size at least. It's necessary to write '\x00'==0 to get something
4713 that's true only with -std. */
4714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4717 inside strings and character constants. */
4719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4721 int test (int i, double x);
4722 struct s1 {int (*f) (int a);};
4723 struct s2 {int (*f) (double a);};
4724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4729 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4734 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4735 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4737 CC="$ac_save_CC $ac_arg"
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_cv_prog_cc_c89=$ac_arg
4741 rm -f core conftest.err conftest.$ac_objext
4742 test "x$ac_cv_prog_cc_c89" != "xno" && break
4744 rm -f conftest.$ac_ext
4749 case "x$ac_cv_prog_cc_c89" in
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4752 $as_echo "none needed" >&6; } ;;
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4755 $as_echo "unsupported" >&6; } ;;
4757 CC="$CC $ac_cv_prog_cc_c89"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4759 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4761 if test "x$ac_cv_prog_cc_c89" != xno; then :
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4772 ac_cpp='$CPP $CPPFLAGS'
4773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4777 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4778 if ${am_cv_prog_cc_c_o+:} false; then :
4779 $as_echo_n "(cached) " >&6
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4791 # Make sure it works both with $CC and with simple cc.
4792 # Following AC_PROG_CC_C_O, we do the test twice because some
4793 # compilers refuse to overwrite an existing .o file with -o,
4794 # though they will create one.
4795 am_cv_prog_cc_c_o=yes
4797 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4798 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } \
4802 && test -f conftest2.$ac_objext; then
4805 am_cv_prog_cc_c_o=no
4809 rm -f core conftest*
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4813 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4814 if test "$am_cv_prog_cc_c_o" != yes; then
4815 # Losing compiler, so override with the script.
4816 # FIXME: It is wrong to rewrite CC.
4817 # But if we don't then we get into trouble of one sort or another.
4818 # A longer-term fix would be to have automake use am__CC in this case,
4819 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4820 CC="$am_aux_dir/compile $CC"
4823 ac_cpp='$CPP $CPPFLAGS'
4824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4836 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4837 # On Suns, sometimes $CPP names a directory.
4838 if test -n "$CPP" && test -d "$CPP"; then
4841 if test -z "$CPP"; then
4842 if ${ac_cv_prog_CPP+:} false; then :
4843 $as_echo_n "(cached) " >&6
4845 # Double quotes because CPP needs to be expanded
4846 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4849 for ac_c_preproc_warn_flag in '' yes
4851 # Use a header file that comes with gcc, so configuring glibc
4852 # with a fresh cross-compiler works.
4853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4854 # <limits.h> exists even on freestanding compilers.
4855 # On the NeXT, cc -E runs the code through the compiler's parser,
4856 # not just through cpp. "Syntax error" is here to catch this case.
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4860 # include <limits.h>
4862 # include <assert.h>
4866 if ac_fn_c_try_cpp "$LINENO"; then :
4869 # Broken: fails on valid input.
4872 rm -f conftest.err conftest.i conftest.$ac_ext
4874 # OK, works on sane cases. Now check whether nonexistent headers
4875 # can be detected and how.
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4878 #include <ac_nonexistent.h>
4880 if ac_fn_c_try_cpp "$LINENO"; then :
4881 # Broken: success on invalid input.
4884 # Passes both tests.
4888 rm -f conftest.err conftest.i conftest.$ac_ext
4891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892 rm -f conftest.i conftest.err conftest.$ac_ext
4893 if $ac_preproc_ok; then :
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4906 $as_echo "$CPP" >&6; }
4908 for ac_c_preproc_warn_flag in '' yes
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4919 # include <limits.h>
4921 # include <assert.h>
4925 if ac_fn_c_try_cpp "$LINENO"; then :
4928 # Broken: fails on valid input.
4931 rm -f conftest.err conftest.i conftest.$ac_ext
4933 # OK, works on sane cases. Now check whether nonexistent headers
4934 # can be detected and how.
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4937 #include <ac_nonexistent.h>
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4940 # Broken: success on invalid input.
4943 # Passes both tests.
4947 rm -f conftest.err conftest.i conftest.$ac_ext
4950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4951 rm -f conftest.i conftest.err conftest.$ac_ext
4952 if $ac_preproc_ok; then :
4955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4958 See \`config.log' for more details" "$LINENO" 5; }
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 IFS=$xc_prog_cc_prev_IFS
4969 LIBS=$xc_prog_cc_prev_LIBS
4970 CFLAGS=$xc_prog_cc_prev_CFLAGS
4971 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4972 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4978 am__api_version='1.15'
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4981 $as_echo_n "checking whether build environment is sane... " >&6; }
4982 # Reject unsafe characters in $srcdir or the absolute working directory
4983 # name. Accept space and tab only in the latter.
4987 *[\\\"\#\$\&\'\`$am_lf]*)
4988 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4991 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4992 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4995 # Do 'set' in a subshell so we don't clobber the current shell's
4996 # arguments. Must try -L first in case configure is actually a
4997 # symlink; some systems play weird games with the mod time of symlinks
4998 # (eg FreeBSD returns the mod time of the symlink's containing
5002 for am_try in 1 2; do
5003 echo "timestamp, slept: $am_has_slept" > conftest.file
5004 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5005 if test "$*" = "X"; then
5007 set X `ls -t "$srcdir/configure" conftest.file`
5009 if test "$*" != "X $srcdir/configure conftest.file" \
5010 && test "$*" != "X conftest.file $srcdir/configure"; then
5012 # If neither matched, then we have a broken ls. This can happen
5013 # if, for instance, CONFIG_SHELL is bash and it inherits a
5014 # broken ls alias from the environment. This has actually
5015 # happened. Such a system could not be considered "sane".
5016 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5017 alias in your environment" "$LINENO" 5
5019 if test "$2" = conftest.file || test $am_try -eq 2; then
5026 test "$2" = conftest.file
5032 as_fn_error $? "newly created file is older than distributed files!
5033 Check your system clock" "$LINENO" 5
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5036 $as_echo "yes" >&6; }
5037 # If we didn't sleep, we still need to ensure time stamps of config.status and
5038 # generated files are strictly newer.
5040 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5047 test "$program_prefix" != NONE &&
5048 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5049 # Use a double $ so make ignores it.
5050 test "$program_suffix" != NONE &&
5051 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5052 # Double any \ or $.
5053 # By default was `s,x,x', remove it if useless.
5054 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5055 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5057 if test x"${MISSING+set}" != xset; then
5060 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5062 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5065 # Use eval to expand $SHELL
5066 if eval "$MISSING --is-lightweight"; then
5067 am_missing_run="$MISSING "
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5071 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5074 if test x"${install_sh+set}" != xset; then
5077 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5079 install_sh="\${SHELL} $am_aux_dir/install-sh"
5083 # Installed binaries are usually stripped using 'strip' when the user
5084 # run "make install-strip". However 'strip' might not be the right
5085 # tool to use in cross-compilation environments, therefore Automake
5086 # will honor the 'STRIP' environment variable to overrule this program.
5087 if test "$cross_compiling" != no; then
5088 if test -n "$ac_tool_prefix"; then
5089 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5090 set dummy ${ac_tool_prefix}strip; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_STRIP+:} false; then :
5094 $as_echo_n "(cached) " >&6
5096 if test -n "$STRIP"; then
5097 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 STRIP=$ac_cv_prog_STRIP
5117 if test -n "$STRIP"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5119 $as_echo "$STRIP" >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5127 if test -z "$ac_cv_prog_STRIP"; then
5129 # Extract the first word of "strip", so it can be a program name with args.
5130 set dummy strip; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5134 $as_echo_n "(cached) " >&6
5136 if test -n "$ac_ct_STRIP"; then
5137 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_ac_ct_STRIP="strip"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5157 if test -n "$ac_ct_STRIP"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5159 $as_echo "$ac_ct_STRIP" >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5165 if test "x$ac_ct_STRIP" = x; then
5168 case $cross_compiling:$ac_tool_warned in
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned=yes ;;
5177 STRIP="$ac_cv_prog_STRIP"
5181 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5184 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5185 if test -z "$MKDIR_P"; then
5186 if ${ac_cv_path_mkdir+:} false; then :
5187 $as_echo_n "(cached) " >&6
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5193 test -z "$as_dir" && as_dir=.
5194 for ac_prog in mkdir gmkdir; do
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5197 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5198 'mkdir (GNU coreutils) '* | \
5199 'mkdir (coreutils) '* | \
5200 'mkdir (fileutils) '4.1*)
5201 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5211 test -d ./--version && rmdir ./--version
5212 if test "${ac_cv_path_mkdir+set}" = set; then
5213 MKDIR_P="$ac_cv_path_mkdir -p"
5215 # As a last resort, use the slow shell script. Don't cache a
5216 # value for MKDIR_P within a source directory, because that will
5217 # break other packages using the cache if that directory is
5218 # removed, or if the value is a relative name.
5219 MKDIR_P="$ac_install_sh -d"
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5223 $as_echo "$MKDIR_P" >&6; }
5225 for ac_prog in gawk mawk nawk awk
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_AWK+:} false; then :
5232 $as_echo_n "(cached) " >&6
5234 if test -n "$AWK"; then
5235 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_AWK="$ac_prog"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 if test -n "$AWK"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5257 $as_echo "$AWK" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5264 test -n "$AWK" && break
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5268 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5270 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5271 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5272 $as_echo_n "(cached) " >&6
5274 cat >conftest.make <<\_ACEOF
5277 @echo '@@@%%%=$(MAKE)=@@@%%%'
5279 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5280 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5282 eval ac_cv_prog_make_${ac_make}_set=yes;;
5284 eval ac_cv_prog_make_${ac_make}_set=no;;
5288 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5290 $as_echo "yes" >&6; }
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 SET_MAKE="MAKE=${MAKE-make}"
5298 rm -rf .tst 2>/dev/null
5299 mkdir .tst 2>/dev/null
5300 if test -d .tst; then
5305 rmdir .tst 2>/dev/null
5307 DEPDIR="${am__leading_dot}deps"
5309 ac_config_commands="$ac_config_commands depfiles"
5312 am_make=${MAKE-make}
5313 cat > confinc << 'END'
5315 @echo this is the am__doit target
5318 # If we don't find an include directive, just comment out the code.
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5320 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5324 # First try GNU make style include.
5325 echo "include confinc" > confmf
5326 # Ignore all kinds of additional output from 'make'.
5327 case `$am_make -s -f confmf 2> /dev/null` in #(
5328 *the\ am__doit\ target*)
5334 # Now try BSD make style include.
5335 if test "$am__include" = "#"; then
5336 echo '.include "confinc"' > confmf
5337 case `$am_make -s -f confmf 2> /dev/null` in #(
5338 *the\ am__doit\ target*)
5339 am__include=.include
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5348 $as_echo "$_am_result" >&6; }
5349 rm -f confinc confmf
5351 # Check whether --enable-dependency-tracking was given.
5352 if test "${enable_dependency_tracking+set}" = set; then :
5353 enableval=$enable_dependency_tracking;
5356 if test "x$enable_dependency_tracking" != xno; then
5357 am_depcomp="$ac_aux_dir/depcomp"
5361 if test "x$enable_dependency_tracking" != xno; then
5370 ## --------------------------------------- ##
5371 ## Start of automake initialization code ##
5372 ## --------------------------------------- ##
5374 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5375 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5376 # is not polluted with repeated "-I."
5377 am__isrc=' -I$(srcdir)'
5378 # test to see if srcdir already configured
5379 if test -f $srcdir/config.status; then
5380 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5384 # test whether we have cygpath
5385 if test -z "$CYGPATH_W"; then
5386 if (cygpath --version) >/dev/null 2>/dev/null; then
5387 CYGPATH_W='cygpath -w'
5394 # Define the identity of the package.
5399 cat >>confdefs.h <<_ACEOF
5400 #define PACKAGE "$PACKAGE"
5404 cat >>confdefs.h <<_ACEOF
5405 #define VERSION "$VERSION"
5408 # Some tools Automake needs.
5410 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5413 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5416 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5419 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5422 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5424 # For better backward compatibility. To be removed once Automake 1.9.x
5425 # dies out for good. For more background, see:
5426 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5427 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5428 mkdir_p='$(MKDIR_P)'
5430 # We need awk for the "check" target (and possibly the TAP driver). The
5431 # system "awk" is bad on some platforms.
5432 # Always define AMTAR for backward compatibility. Yes, it's still used
5433 # in the wild :-( We should find a proper way to deprecate it ...
5437 # We'll loop over all known methods to create a tar archive until one works.
5438 _am_tools='gnutar pax cpio none'
5440 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5446 depcc="$CC" am_compiler_list=
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5449 $as_echo_n "checking dependency style of $depcc... " >&6; }
5450 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5451 $as_echo_n "(cached) " >&6
5453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5454 # We make a subdir and do the tests there. Otherwise we can end up
5455 # making bogus files that we don't know about and never remove. For
5456 # instance it was reported that on HP-UX the gcc test will end up
5457 # making a dummy file named 'D' -- because '-MD' means "put the output
5461 # Copy depcomp to subdir because otherwise we won't find it if we're
5462 # using a relative directory.
5463 cp "$am_depcomp" conftest.dir
5465 # We will build objects and dependencies in a subdirectory because
5466 # it helps to detect inapplicable dependency modes. For instance
5467 # both Tru64's cc and ICC support -MD to output dependencies as a
5468 # side effect of compilation, but ICC will put the dependencies in
5469 # the current directory while Tru64 will put them in the object
5473 am_cv_CC_dependencies_compiler_type=none
5474 if test "$am_compiler_list" = ""; then
5475 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5478 case " $depcc " in #(
5479 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5482 for depmode in $am_compiler_list; do
5483 # Setup a source with many dependencies, because some compilers
5484 # like to wrap large dependency lists on column 80 (with \), and
5485 # we should not choose a depcomp mode which is confused by this.
5487 # We need to recreate these files for each test, as the compiler may
5488 # overwrite some of them when testing with obscure command lines.
5489 # This happens at least with the AIX C compiler.
5491 for i in 1 2 3 4 5 6; do
5492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5493 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5494 # Solaris 10 /bin/sh.
5495 echo '/* dummy */' > sub/conftst$i.h
5497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5499 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5500 # mode. It turns out that the SunPro C++ compiler does not properly
5501 # handle '-M -o', and we need to detect this. Also, some Intel
5502 # versions had trouble with output in subdirs.
5503 am__obj=sub/conftest.${OBJEXT-o}
5504 am__minus_obj="-o $am__obj"
5507 # This depmode causes a compiler race in universal mode.
5508 test "$am__universal" = false || continue
5511 # After this tag, mechanisms are not by side-effect, so they'll
5512 # only be used when explicitly requested.
5513 if test "x$enable_dependency_tracking" = xyes; then
5519 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5520 # This compiler won't grok '-c -o', but also, the minuso test has
5521 # not run yet. These depmodes are late enough in the game, and
5522 # so weak that their functioning should not be impacted.
5523 am__obj=conftest.${OBJEXT-o}
5528 if depmode=$depmode \
5529 source=sub/conftest.c object=$am__obj \
5530 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5531 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5532 >/dev/null 2>conftest.err &&
5533 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5534 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5535 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5536 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5537 # icc doesn't choke on unknown options, it will just issue warnings
5538 # or remarks (even with -Werror). So we grep stderr for any message
5539 # that says an option was ignored or not supported.
5540 # When given -MP, icc 7.0 and 7.1 complain thusly:
5541 # icc: Command line warning: ignoring option '-M'; no argument required
5542 # The diagnosis changed in icc 8.0:
5543 # icc: Command line remark: option '-MP' not supported
5544 if (grep 'ignoring option' conftest.err ||
5545 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5546 am_cv_CC_dependencies_compiler_type=$depmode
5555 am_cv_CC_dependencies_compiler_type=none
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5560 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5561 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5564 test "x$enable_dependency_tracking" != xno \
5565 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5567 am__fastdepCC_FALSE='#'
5569 am__fastdepCC_TRUE='#'
5570 am__fastdepCC_FALSE=
5575 # POSIX will say in a future version that running "rm -f" with no argument
5576 # is OK; and we want to be able to make that assumption in our Makefile
5577 # recipes. So use an aggressive probe to check that the usage we want is
5578 # actually supported "in the wild" to an acceptable degree.
5579 # See automake bug#10828.
5580 # To make any issue more visible, cause the running configure to be aborted
5581 # by default if the 'rm' program in use doesn't match our expectations; the
5582 # user can still override this though.
5583 if rm -f && rm -fr && rm -rf; then : OK; else
5587 Your 'rm' program seems unable to run without file operands specified
5588 on the command line, even when the '-f' option is present. This is contrary
5589 to the behaviour of most rm programs out there, and not conforming with
5590 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5592 Please tell bug-automake@gnu.org about your system, including the value
5593 of your $PATH and any error possibly output before this message. This
5594 can help us improve future automake versions.
5597 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5598 echo 'Configuration will proceed anyway, since you have set the' >&2
5599 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5603 Aborting the configuration process, to ensure you take notice of the issue.
5605 You can download and install GNU coreutils to get an 'rm' implementation
5606 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5608 If you want to complete the configuration process using your problematic
5609 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5610 to "yes", and re-run configure.
5613 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5617 ## ------------------------------------- ##
5618 ## End of automake initialization code ##
5619 ## ------------------------------------- ##
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5623 $as_echo_n "checking curl version... " >&6; }
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5625 $as_echo "$CURLVERSION" >&6; }
5629 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5632 PKGADD_PKG="HAXXcurl"
5633 PKGADD_NAME="curl - a client that groks URLs"
5634 PKGADD_VENDOR="curl.haxx.se"
5639 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
5640 curl_ssh_msg="no (--with-libssh2)"
5641 curl_zlib_msg="no (--with-zlib)"
5642 curl_gss_msg="no (--with-gssapi)"
5643 curl_tls_srp_msg="no (--enable-tls-srp)"
5644 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5645 curl_ipv6_msg="no (--enable-ipv6)"
5646 curl_unix_sockets_msg="no (--enable-unix-sockets)"
5647 curl_idn_msg="no (--with-{libidn2,winidn})"
5648 curl_manual_msg="no (--enable-manual)"
5649 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5650 curl_verbose_msg="enabled (--disable-verbose)"
5651 curl_sspi_msg="no (--enable-sspi)"
5652 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5653 curl_ldaps_msg="no (--enable-ldaps)"
5654 curl_rtsp_msg="no (--enable-rtsp)"
5655 curl_rtmp_msg="no (--with-librtmp)"
5656 curl_mtlnk_msg="no (--with-libmetalink)"
5657 curl_psl_msg="no (--with-libpsl)"
5659 init_ssl_msg=${curl_ssl_msg}
5661 INITIAL_LDFLAGS=$LDFLAGS
5665 # Make sure we can run config.sub.
5666 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5667 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5670 $as_echo_n "checking build system type... " >&6; }
5671 if ${ac_cv_build+:} false; then :
5672 $as_echo_n "(cached) " >&6
5674 ac_build_alias=$build_alias
5675 test "x$ac_build_alias" = x &&
5676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5677 test "x$ac_build_alias" = x &&
5678 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5679 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5680 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5684 $as_echo "$ac_cv_build" >&6; }
5685 case $ac_cv_build in
5687 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5690 ac_save_IFS=$IFS; IFS='-'
5696 # Remember, the first character of IFS is used to create $*,
5697 # except with old shells:
5700 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5704 $as_echo_n "checking host system type... " >&6; }
5705 if ${ac_cv_host+:} false; then :
5706 $as_echo_n "(cached) " >&6
5708 if test "x$host_alias" = x; then
5709 ac_cv_host=$ac_cv_build
5711 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5717 $as_echo "$ac_cv_host" >&6; }
5720 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5723 ac_save_IFS=$IFS; IFS='-'
5729 # Remember, the first character of IFS is used to create $*,
5730 # except with old shells:
5733 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5737 cat >>confdefs.h <<_ACEOF
5738 #define OS "${host}"
5745 curl_includes_inttypes="\
5746 /* includes start */
5747 #ifdef HAVE_SYS_TYPES_H
5748 # include <sys/types.h>
5750 #ifdef HAVE_STDINT_H
5751 # include <stdint.h>
5753 #ifdef HAVE_INTTYPES_H
5754 # include <inttypes.h>
5759 ac_cv_header_stdint_h="no"
5762 for ac_header in sys/types.h stdint.h inttypes.h
5764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5765 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5767 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5768 cat >>confdefs.h <<_ACEOF
5769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5779 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5780 if ${ac_cv_path_GREP+:} false; then :
5781 $as_echo_n "(cached) " >&6
5783 if test -z "$GREP"; then
5784 ac_path_GREP_found=false
5785 # Loop through the user's path and test for each of PROGNAME-LIST
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5790 test -z "$as_dir" && as_dir=.
5791 for ac_prog in grep ggrep; do
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5794 as_fn_executable_p "$ac_path_GREP" || continue
5795 # Check for GNU ac_path_GREP and select it if it is found.
5796 # Check for GNU $ac_path_GREP
5797 case `"$ac_path_GREP" --version 2>&1` in
5799 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5802 $as_echo_n 0123456789 >"conftest.in"
5805 cat "conftest.in" "conftest.in" >"conftest.tmp"
5806 mv "conftest.tmp" "conftest.in"
5807 cp "conftest.in" "conftest.nl"
5808 $as_echo 'GREP' >> "conftest.nl"
5809 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5811 as_fn_arith $ac_count + 1 && ac_count=$as_val
5812 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5813 # Best one so far, save it but keep looking for a better one
5814 ac_cv_path_GREP="$ac_path_GREP"
5815 ac_path_GREP_max=$ac_count
5817 # 10*(2^10) chars as input seems more than enough
5818 test $ac_count -gt 10 && break
5820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5823 $ac_path_GREP_found && break 3
5828 if test -z "$ac_cv_path_GREP"; then
5829 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5832 ac_cv_path_GREP=$GREP
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5837 $as_echo "$ac_cv_path_GREP" >&6; }
5838 GREP="$ac_cv_path_GREP"
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5842 $as_echo_n "checking for egrep... " >&6; }
5843 if ${ac_cv_path_EGREP+:} false; then :
5844 $as_echo_n "(cached) " >&6
5846 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5847 then ac_cv_path_EGREP="$GREP -E"
5849 if test -z "$EGREP"; then
5850 ac_path_EGREP_found=false
5851 # Loop through the user's path and test for each of PROGNAME-LIST
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5856 test -z "$as_dir" && as_dir=.
5857 for ac_prog in egrep; do
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5860 as_fn_executable_p "$ac_path_EGREP" || continue
5861 # Check for GNU ac_path_EGREP and select it if it is found.
5862 # Check for GNU $ac_path_EGREP
5863 case `"$ac_path_EGREP" --version 2>&1` in
5865 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5868 $as_echo_n 0123456789 >"conftest.in"
5871 cat "conftest.in" "conftest.in" >"conftest.tmp"
5872 mv "conftest.tmp" "conftest.in"
5873 cp "conftest.in" "conftest.nl"
5874 $as_echo 'EGREP' >> "conftest.nl"
5875 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5877 as_fn_arith $ac_count + 1 && ac_count=$as_val
5878 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5879 # Best one so far, save it but keep looking for a better one
5880 ac_cv_path_EGREP="$ac_path_EGREP"
5881 ac_path_EGREP_max=$ac_count
5883 # 10*(2^10) chars as input seems more than enough
5884 test $ac_count -gt 10 && break
5886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5889 $ac_path_EGREP_found && break 3
5894 if test -z "$ac_cv_path_EGREP"; then
5895 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5898 ac_cv_path_EGREP=$EGREP
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5904 $as_echo "$ac_cv_path_EGREP" >&6; }
5905 EGREP="$ac_cv_path_EGREP"
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5909 $as_echo_n "checking for ANSI C header files... " >&6; }
5910 if ${ac_cv_header_stdc+:} false; then :
5911 $as_echo_n "(cached) " >&6
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 ac_cv_header_stdc=yes
5930 ac_cv_header_stdc=no
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 if test $ac_cv_header_stdc = yes; then
5935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5942 $EGREP "memchr" >/dev/null 2>&1; then :
5945 ac_cv_header_stdc=no
5951 if test $ac_cv_header_stdc = yes; then
5952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5959 $EGREP "free" >/dev/null 2>&1; then :
5962 ac_cv_header_stdc=no
5968 if test $ac_cv_header_stdc = yes; then
5969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5970 if test "$cross_compiling" = yes; then :
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5977 #if ((' ' & 0x0FF) == 0x020)
5978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5981 # define ISLOWER(c) \
5982 (('a' <= (c) && (c) <= 'i') \
5983 || ('j' <= (c) && (c) <= 'r') \
5984 || ('s' <= (c) && (c) <= 'z'))
5985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5993 for (i = 0; i < 256; i++)
5994 if (XOR (islower (i), ISLOWER (i))
5995 || toupper (i) != TOUPPER (i))
6000 if ac_fn_c_try_run "$LINENO"; then :
6003 ac_cv_header_stdc=no
6005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6006 conftest.$ac_objext conftest.beam conftest.$ac_ext
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6012 $as_echo "$ac_cv_header_stdc" >&6; }
6013 if test $ac_cv_header_stdc = yes; then
6015 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6021 inttypes.h stdint.h unistd.h
6023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6027 cat >>confdefs.h <<_ACEOF
6028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
6038 $as_echo_n "checking if cpp -P is needed... " >&6; }
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
6055 $as_echo "$cpp" >&6; }
6057 if test "x$cpp" = "xyes"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
6059 $as_echo_n "checking if cpp -P works... " >&6; }
6060 OLDCPPFLAGS=$CPPFLAGS
6061 CPPFLAGS="$CPPFLAGS -P"
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6070 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
6078 $as_echo "$cpp_p" >&6; }
6080 if test "x$cpp_p" = "xno"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
6082 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
6089 CPPFLAGS=$OLDCPPFLAGS
6098 if test -z "$SED"; then
6099 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6102 # The cast to long int works around a bug in the HP C Compiler
6103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6105 # This bug is HP SR number 8606223364.
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6107 $as_echo_n "checking size of long... " >&6; }
6108 if ${ac_cv_sizeof_long+:} false; then :
6109 $as_echo_n "(cached) " >&6
6111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6114 if test "$ac_cv_type_long" = yes; then
6115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6117 as_fn_error 77 "cannot compute sizeof (long)
6118 See \`config.log' for more details" "$LINENO" 5; }
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6126 $as_echo "$ac_cv_sizeof_long" >&6; }
6130 cat >>confdefs.h <<_ACEOF
6131 #define SIZEOF_LONG $ac_cv_sizeof_long
6135 # The cast to long int works around a bug in the HP C Compiler
6136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6138 # This bug is HP SR number 8606223364.
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6140 $as_echo_n "checking size of void*... " >&6; }
6141 if ${ac_cv_sizeof_voidp+:} false; then :
6142 $as_echo_n "(cached) " >&6
6144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
6147 if test "$ac_cv_type_voidp" = yes; then
6148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6150 as_fn_error 77 "cannot compute sizeof (void*)
6151 See \`config.log' for more details" "$LINENO" 5; }
6153 ac_cv_sizeof_voidp=0
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6159 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6163 cat >>confdefs.h <<_ACEOF
6164 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6169 if test -z "$ac_cv_sizeof_long" ||
6170 test "$ac_cv_sizeof_long" -eq "0"; then
6171 as_fn_error $? "cannot find out size of long." "$LINENO" 5
6173 if test -z "$ac_cv_sizeof_voidp" ||
6174 test "$ac_cv_sizeof_voidp" -eq "0"; then
6175 as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6181 if test "$ac_cv_sizeof_long" -eq "8" &&
6182 test "$ac_cv_sizeof_voidp" -ge "8"; then
6184 elif test "$ac_cv_sizeof_long" -eq "4" &&
6185 test "$ac_cv_sizeof_voidp" -ge "4"; then
6190 curl_typeof_curl_off_t="unknown"
6191 curl_sizeof_curl_off_t="unknown"
6192 curl_format_curl_off_t="unknown"
6193 curl_format_curl_off_tu="unknown"
6195 if test "$curl_typeof_curl_off_t" = "unknown"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6197 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6206 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6210 case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6212 tmp_includes="$curl_includes_inttypes"
6213 tmp_source="char f[] = PRId64;"
6217 tmp_includes="$curl_includes_inttypes"
6218 tmp_source="char f[] = PRId32;"
6222 tmp_includes="$curl_includes_inttypes"
6223 tmp_source="char f[] = PRId16;"
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6232 typedef $t8 curl_off_t;
6233 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6246 if ac_fn_c_try_compile "$LINENO"; then :
6248 if test -z "$tmp_fmt"; then
6249 curl_typeof_curl_off_t="$t8"
6250 curl_sizeof_curl_off_t="8"
6253 OLDCPPFLAGS=$CPPFLAGS
6254 # CPPPFLAG comes from CURL_CPP_P
6255 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
6256 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6257 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6258 if test -z "$SED"; then
6259 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6261 if test -z "$GREP"; then
6262 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6269 $curl_includes_inttypes
6271 CURL_DEF_TOKEN $tmp_fmt
6276 if ac_fn_c_try_cpp "$LINENO"; then :
6278 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6279 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6280 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6281 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6282 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6287 rm -f conftest.err conftest.i conftest.$ac_ext
6288 if test -z "$tmp_exp"; then
6289 eval "$as_ac_HaveDef=no"
6292 eval "$as_ac_HaveDef=yes"
6293 eval "$as_ac_Def=\$tmp_exp"
6296 CPPFLAGS=$OLDCPPFLAGS
6298 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6299 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6300 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6301 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6302 curl_typeof_curl_off_t="$t8"
6303 curl_sizeof_curl_off_t="8"
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6313 $as_echo "$curl_typeof_curl_off_t" >&6; }
6315 if test "$curl_typeof_curl_off_t" = "unknown"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6317 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6324 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6328 case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6330 tmp_includes="$curl_includes_inttypes"
6331 tmp_source="char f[] = PRId64;"
6335 tmp_includes="$curl_includes_inttypes"
6336 tmp_source="char f[] = PRId32;"
6340 tmp_includes="$curl_includes_inttypes"
6341 tmp_source="char f[] = PRId16;"
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6350 typedef $t4 curl_off_t;
6351 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6364 if ac_fn_c_try_compile "$LINENO"; then :
6366 if test -z "$tmp_fmt"; then
6367 curl_typeof_curl_off_t="$t4"
6368 curl_sizeof_curl_off_t="4"
6371 OLDCPPFLAGS=$CPPFLAGS
6372 # CPPPFLAG comes from CURL_CPP_P
6373 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
6374 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6375 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6376 if test -z "$SED"; then
6377 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6379 if test -z "$GREP"; then
6380 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6387 $curl_includes_inttypes
6389 CURL_DEF_TOKEN $tmp_fmt
6394 if ac_fn_c_try_cpp "$LINENO"; then :
6396 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6397 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6398 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6399 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6400 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6405 rm -f conftest.err conftest.i conftest.$ac_ext
6406 if test -z "$tmp_exp"; then
6407 eval "$as_ac_HaveDef=no"
6410 eval "$as_ac_HaveDef=yes"
6411 eval "$as_ac_Def=\$tmp_exp"
6414 CPPFLAGS=$OLDCPPFLAGS
6416 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6417 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6418 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6419 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6420 curl_typeof_curl_off_t="$t4"
6421 curl_sizeof_curl_off_t="4"
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6431 $as_echo "$curl_typeof_curl_off_t" >&6; }
6433 if test "$curl_typeof_curl_off_t" = "unknown"; then
6434 as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6438 $as_echo_n "checking size of curl_off_t... " >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6440 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6443 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6444 if test "$curl_format_curl_off_t" != "unknown"; then
6445 x_pull_headers="yes"
6446 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6447 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6448 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6449 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6452 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6453 long_long | __longlong | __longlong_t)
6454 curl_format_curl_off_t="lld"
6455 curl_format_curl_off_tu="llu"
6458 curl_format_curl_off_t="ld"
6459 curl_format_curl_off_tu="lu"
6462 curl_format_curl_off_t="d"
6463 curl_format_curl_off_tu="u"
6466 curl_format_curl_off_t="I64d"
6467 curl_format_curl_off_tu="I64u"
6470 curl_format_curl_off_t="I32d"
6471 curl_format_curl_off_tu="I32u"
6474 curl_format_curl_off_t="I16d"
6475 curl_format_curl_off_tu="I16u"
6478 as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6483 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6486 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6488 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6492 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6494 curl_suffix_curl_off_t="unknown"
6495 curl_suffix_curl_off_tu="unknown"
6497 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6498 long_long | __longlong | __longlong_t)
6508 tst_suffixes="LL:i64::"
6511 tst_suffixes="L:i32::"
6514 tst_suffixes="L:i16::"
6517 as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6521 old_IFS=$IFS; IFS=':'
6522 for tmp_ssuf in $tst_suffixes ; do
6524 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6527 tmp_usuf="u$tmp_ssuf"
6530 tmp_usuf="U$tmp_ssuf"
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6540 $curl_includes_inttypes
6541 typedef $curl_typeof_curl_off_t new_t;
6558 if ac_fn_c_try_compile "$LINENO"; then :
6560 curl_suffix_curl_off_t="$tmp_ssuf"
6561 curl_suffix_curl_off_tu="$tmp_usuf"
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6570 as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6573 $as_echo "$curl_suffix_curl_off_t" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6575 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6577 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6582 if test "$x_pull_headers" = "yes"; then
6583 if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6585 cat >>confdefs.h <<_EOF
6586 #define CURL_PULL_SYS_TYPES_H 1
6590 if test "x$ac_cv_header_stdint_h" = "xyes"; then
6592 cat >>confdefs.h <<_EOF
6593 #define CURL_PULL_STDINT_H 1
6597 if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6599 cat >>confdefs.h <<_EOF
6600 #define CURL_PULL_INTTYPES_H 1
6607 cat >>confdefs.h <<_EOF
6608 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6612 cat >>confdefs.h <<_EOF
6613 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6617 cat >>confdefs.h <<_EOF
6618 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6622 cat >>confdefs.h <<_EOF
6623 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6627 cat >>confdefs.h <<_EOF
6628 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6632 cat >>confdefs.h <<_EOF
6633 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6637 cat >>confdefs.h <<_EOF
6638 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6647 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6657 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6660 $as_echo "yes" >&6; }
6661 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6677 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6689 force compilation error
6697 if ac_fn_c_try_compile "$LINENO"; then :
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6700 $as_echo "yes" >&6; }
6701 tmp_thread_safe_initially_defined="yes"
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 tmp_thread_safe_initially_defined="no"
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 if test "$tmp_thread_safe_initially_defined" = "no"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6714 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6717 aix[123].* | aix4.[012].*)
6718 tmp_need_thread_safe="no"
6721 tmp_need_thread_safe="yes"
6724 tmp_need_thread_safe="no"
6728 if test "$tmp_need_thread_safe" = "yes"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6730 $as_echo "yes" >&6; }
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6738 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6739 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6740 test "$tmp_need_thread_safe" = "yes"; then
6743 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6745 cat >>confdefs.h <<_EOF
6746 #ifndef _THREAD_SAFE
6747 # define _THREAD_SAFE
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6752 $as_echo "yes" >&6; }
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6762 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6774 force compilation error
6782 if ac_fn_c_try_compile "$LINENO"; then :
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6785 $as_echo "yes" >&6; }
6786 tmp_reentrant_initially_defined="yes"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 tmp_reentrant_initially_defined="no"
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 if test "$tmp_reentrant_initially_defined" = "no"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6799 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6803 tmp_need_reentrant="yes"
6806 tmp_need_reentrant="no"
6810 if test "$tmp_need_reentrant" = "no"; then
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6829 if ac_fn_c_try_compile "$LINENO"; then :
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 if test "$tmp_errno" = "yes"; then
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6852 force compilation error
6860 if ac_fn_c_try_compile "$LINENO"; then :
6862 tmp_errno="errno_macro_defined"
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6879 force compilation error
6887 if ac_fn_c_try_compile "$LINENO"; then :
6889 tmp_errno="errno_macro_needs_reentrant"
6890 tmp_need_reentrant="yes"
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 if test "$tmp_need_reentrant" = "no"; then
6902 if test "$tmp_need_reentrant" = "no"; then
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6908 #define gmtime_r innocuous_gmtime_r
6910 # include <limits.h>
6912 # include <assert.h>
6919 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6931 if ac_fn_c_try_link "$LINENO"; then :
6940 rm -f core conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6942 if test "$tmp_gmtime_r" = "yes"; then
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6946 #include <sys/types.h>
6950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6951 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6953 tmp_gmtime_r="proto_declared"
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6961 #include <sys/types.h>
6965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6966 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6968 tmp_gmtime_r="proto_needs_reentrant"
6969 tmp_need_reentrant="yes"
6981 if test "$tmp_need_reentrant" = "no"; then
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6987 #define localtime_r innocuous_localtime_r
6989 # include <limits.h>
6991 # include <assert.h>
6997 char localtime_r ();
6998 #if defined __stub_localtime_r || defined __stub___localtime_r
7004 return localtime_r ();
7010 if ac_fn_c_try_link "$LINENO"; then :
7012 tmp_localtime_r="yes"
7016 tmp_localtime_r="no"
7019 rm -f core conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext
7021 if test "$tmp_localtime_r" = "yes"; then
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7025 #include <sys/types.h>
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "localtime_r" >/dev/null 2>&1; then :
7032 tmp_localtime_r="proto_declared"
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7040 #include <sys/types.h>
7044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7045 $EGREP "localtime_r" >/dev/null 2>&1; then :
7047 tmp_localtime_r="proto_needs_reentrant"
7048 tmp_need_reentrant="yes"
7060 if test "$tmp_need_reentrant" = "no"; then
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7066 #define strerror_r innocuous_strerror_r
7068 # include <limits.h>
7070 # include <assert.h>
7077 #if defined __stub_strerror_r || defined __stub___strerror_r
7083 return strerror_r ();
7089 if ac_fn_c_try_link "$LINENO"; then :
7091 tmp_strerror_r="yes"
7098 rm -f core conftest.err conftest.$ac_objext \
7099 conftest$ac_exeext conftest.$ac_ext
7100 if test "$tmp_strerror_r" = "yes"; then
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7104 #include <sys/types.h>
7108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7109 $EGREP "strerror_r" >/dev/null 2>&1; then :
7111 tmp_strerror_r="proto_declared"
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7119 #include <sys/types.h>
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124 $EGREP "strerror_r" >/dev/null 2>&1; then :
7126 tmp_strerror_r="proto_needs_reentrant"
7127 tmp_need_reentrant="yes"
7139 if test "$tmp_need_reentrant" = "no"; then
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7145 #define strtok_r innocuous_strtok_r
7147 # include <limits.h>
7149 # include <assert.h>
7156 #if defined __stub_strtok_r || defined __stub___strtok_r
7168 if ac_fn_c_try_link "$LINENO"; then :
7177 rm -f core conftest.err conftest.$ac_objext \
7178 conftest$ac_exeext conftest.$ac_ext
7179 if test "$tmp_strtok_r" = "yes"; then
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7183 #include <sys/types.h>
7187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7188 $EGREP "strtok_r" >/dev/null 2>&1; then :
7190 tmp_strtok_r="proto_declared"
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7198 #include <sys/types.h>
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "strtok_r" >/dev/null 2>&1; then :
7205 tmp_strtok_r="proto_needs_reentrant"
7206 tmp_need_reentrant="yes"
7218 if test "$tmp_need_reentrant" = "no"; then
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7224 #define inet_ntoa_r innocuous_inet_ntoa_r
7226 # include <limits.h>
7228 # include <assert.h>
7234 char inet_ntoa_r ();
7235 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7241 return inet_ntoa_r ();
7247 if ac_fn_c_try_link "$LINENO"; then :
7249 tmp_inet_ntoa_r="yes"
7253 tmp_inet_ntoa_r="no"
7256 rm -f core conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7258 if test "$tmp_inet_ntoa_r" = "yes"; then
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7262 #include <sys/types.h>
7263 #include <sys/socket.h>
7264 #include <netinet/in.h>
7265 #include <arpa/inet.h>
7268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7269 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7271 tmp_inet_ntoa_r="proto_declared"
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7279 #include <sys/types.h>
7280 #include <sys/socket.h>
7281 #include <netinet/in.h>
7282 #include <arpa/inet.h>
7285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7286 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7288 tmp_inet_ntoa_r="proto_needs_reentrant"
7289 tmp_need_reentrant="yes"
7301 if test "$tmp_need_reentrant" = "no"; then
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7307 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7309 # include <limits.h>
7311 # include <assert.h>
7313 #undef gethostbyaddr_r
7317 char gethostbyaddr_r ();
7318 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7324 return gethostbyaddr_r ();
7330 if ac_fn_c_try_link "$LINENO"; then :
7332 tmp_gethostbyaddr_r="yes"
7336 tmp_gethostbyaddr_r="no"
7339 rm -f core conftest.err conftest.$ac_objext \
7340 conftest$ac_exeext conftest.$ac_ext
7341 if test "$tmp_gethostbyaddr_r" = "yes"; then
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7345 #include <sys/types.h>
7349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7350 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7352 tmp_gethostbyaddr_r="proto_declared"
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7360 #include <sys/types.h>
7364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7365 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7367 tmp_gethostbyaddr_r="proto_needs_reentrant"
7368 tmp_need_reentrant="yes"
7380 if test "$tmp_need_reentrant" = "no"; then
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7386 #define gethostbyname_r innocuous_gethostbyname_r
7388 # include <limits.h>
7390 # include <assert.h>
7392 #undef gethostbyname_r
7396 char gethostbyname_r ();
7397 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7403 return gethostbyname_r ();
7409 if ac_fn_c_try_link "$LINENO"; then :
7411 tmp_gethostbyname_r="yes"
7415 tmp_gethostbyname_r="no"
7418 rm -f core conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7420 if test "$tmp_gethostbyname_r" = "yes"; then
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7424 #include <sys/types.h>
7428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7429 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7431 tmp_gethostbyname_r="proto_declared"
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7439 #include <sys/types.h>
7443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7446 tmp_gethostbyname_r="proto_needs_reentrant"
7447 tmp_need_reentrant="yes"
7459 if test "$tmp_need_reentrant" = "no"; then
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7465 #define getprotobyname_r innocuous_getprotobyname_r
7467 # include <limits.h>
7469 # include <assert.h>
7471 #undef getprotobyname_r
7475 char getprotobyname_r ();
7476 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7482 return getprotobyname_r ();
7488 if ac_fn_c_try_link "$LINENO"; then :
7490 tmp_getprotobyname_r="yes"
7494 tmp_getprotobyname_r="no"
7497 rm -f core conftest.err conftest.$ac_objext \
7498 conftest$ac_exeext conftest.$ac_ext
7499 if test "$tmp_getprotobyname_r" = "yes"; then
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7503 #include <sys/types.h>
7507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7508 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7510 tmp_getprotobyname_r="proto_declared"
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7518 #include <sys/types.h>
7522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7525 tmp_getprotobyname_r="proto_needs_reentrant"
7526 tmp_need_reentrant="yes"
7538 if test "$tmp_need_reentrant" = "no"; then
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7544 #define getservbyport_r innocuous_getservbyport_r
7546 # include <limits.h>
7548 # include <assert.h>
7550 #undef getservbyport_r
7554 char getservbyport_r ();
7555 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7561 return getservbyport_r ();
7567 if ac_fn_c_try_link "$LINENO"; then :
7569 tmp_getservbyport_r="yes"
7573 tmp_getservbyport_r="no"
7576 rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7578 if test "$tmp_getservbyport_r" = "yes"; then
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7582 #include <sys/types.h>
7586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7587 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7589 tmp_getservbyport_r="proto_declared"
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7597 #include <sys/types.h>
7601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7602 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7604 tmp_getservbyport_r="proto_needs_reentrant"
7605 tmp_need_reentrant="yes"
7619 if test "$tmp_need_reentrant" = "yes"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7621 $as_echo "yes" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7629 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7630 if test "$tmp_reentrant_initially_defined" = "yes" ||
7631 test "$tmp_need_reentrant" = "yes"; then
7634 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7636 cat >>confdefs.h <<_EOF
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7643 $as_echo "yes" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 # Check whether --enable-largefile was given.
7652 if test "${enable_largefile+set}" = set; then :
7653 enableval=$enable_largefile;
7656 if test "$enable_largefile" != no; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7659 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7660 if ${ac_cv_sys_largefile_CC+:} false; then :
7661 $as_echo_n "(cached) " >&6
7663 ac_cv_sys_largefile_CC=no
7664 if test "$GCC" != yes; then
7667 # IRIX 6.2 and later do not support large files by default,
7668 # so use the C compiler's -n32 option if that helps.
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7671 #include <sys/types.h>
7672 /* Check that off_t can represent 2**63 - 1 correctly.
7673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7674 since some C++ compilers masquerading as C compilers
7675 incorrectly reject 9223372036854775807. */
7676 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7678 && LARGE_OFF_T % 2147483647 == 1)
7687 if ac_fn_c_try_compile "$LINENO"; then :
7690 rm -f core conftest.err conftest.$ac_objext
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693 ac_cv_sys_largefile_CC=' -n32'; break
7695 rm -f core conftest.err conftest.$ac_objext
7699 rm -f conftest.$ac_ext
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7703 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7704 if test "$ac_cv_sys_largefile_CC" != no; then
7705 CC=$CC$ac_cv_sys_largefile_CC
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7709 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7710 if ${ac_cv_sys_file_offset_bits+:} false; then :
7711 $as_echo_n "(cached) " >&6
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 #include <sys/types.h>
7717 /* Check that off_t can represent 2**63 - 1 correctly.
7718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7719 since some C++ compilers masquerading as C compilers
7720 incorrectly reject 9223372036854775807. */
7721 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7723 && LARGE_OFF_T % 2147483647 == 1)
7732 if ac_fn_c_try_compile "$LINENO"; then :
7733 ac_cv_sys_file_offset_bits=no; break
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 #define _FILE_OFFSET_BITS 64
7739 #include <sys/types.h>
7740 /* Check that off_t can represent 2**63 - 1 correctly.
7741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7742 since some C++ compilers masquerading as C compilers
7743 incorrectly reject 9223372036854775807. */
7744 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7746 && LARGE_OFF_T % 2147483647 == 1)
7755 if ac_fn_c_try_compile "$LINENO"; then :
7756 ac_cv_sys_file_offset_bits=64; break
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 ac_cv_sys_file_offset_bits=unknown
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7764 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7765 case $ac_cv_sys_file_offset_bits in #(
7768 cat >>confdefs.h <<_ACEOF
7769 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7774 if test $ac_cv_sys_file_offset_bits = unknown; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7776 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7777 if ${ac_cv_sys_large_files+:} false; then :
7778 $as_echo_n "(cached) " >&6
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 #include <sys/types.h>
7784 /* Check that off_t can represent 2**63 - 1 correctly.
7785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7786 since some C++ compilers masquerading as C compilers
7787 incorrectly reject 9223372036854775807. */
7788 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7790 && LARGE_OFF_T % 2147483647 == 1)
7799 if ac_fn_c_try_compile "$LINENO"; then :
7800 ac_cv_sys_large_files=no; break
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 #define _LARGE_FILES 1
7806 #include <sys/types.h>
7807 /* Check that off_t can represent 2**63 - 1 correctly.
7808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7809 since some C++ compilers masquerading as C compilers
7810 incorrectly reject 9223372036854775807. */
7811 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7813 && LARGE_OFF_T % 2147483647 == 1)
7822 if ac_fn_c_try_compile "$LINENO"; then :
7823 ac_cv_sys_large_files=1; break
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 ac_cv_sys_large_files=unknown
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7831 $as_echo "$ac_cv_sys_large_files" >&6; }
7832 case $ac_cv_sys_large_files in #(
7835 cat >>confdefs.h <<_ACEOF
7836 #define _LARGE_FILES $ac_cv_sys_large_files
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7850 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7855 macro_version='2.4.6'
7856 macro_revision='2.4.6'
7870 ltmain=$ac_aux_dir/ltmain.sh
7872 # Backslashify metacharacters that are still active within
7873 # double-quoted strings.
7874 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7876 # Same as above, but do not quote variable references.
7877 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7879 # Sed substitution to delay expansion of an escaped shell variable in a
7880 # double_quote_subst'ed string.
7881 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7883 # Sed substitution to delay expansion of an escaped single quote.
7884 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7886 # Sed substitution to avoid accidental globbing in evaled expressions
7887 no_glob_subst='s/\*/\\\*/g'
7889 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7890 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7891 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7894 $as_echo_n "checking how to print strings... " >&6; }
7895 # Test print first, because it will be a builtin if present.
7896 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7897 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7899 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7902 # Use this function as a fallback that always works.
7903 func_fallback_echo ()
7905 eval 'cat <<_LTECHO_EOF
7909 ECHO='func_fallback_echo'
7912 # func_echo_all arg...
7913 # Invoke $ECHO with all args, space-separated.
7920 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7921 $as_echo "printf" >&6; } ;;
7922 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7923 $as_echo "print -r" >&6; } ;;
7924 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7925 $as_echo "cat" >&6; } ;;
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7942 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7943 if ${ac_cv_path_SED+:} false; then :
7944 $as_echo_n "(cached) " >&6
7946 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7947 for ac_i in 1 2 3 4 5 6 7; do
7948 ac_script="$ac_script$as_nl$ac_script"
7950 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7951 { ac_script=; unset ac_script;}
7952 if test -z "$SED"; then
7953 ac_path_SED_found=false
7954 # Loop through the user's path and test for each of PROGNAME-LIST
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_prog in sed gsed; do
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7963 as_fn_executable_p "$ac_path_SED" || continue
7964 # Check for GNU ac_path_SED and select it if it is found.
7965 # Check for GNU $ac_path_SED
7966 case `"$ac_path_SED" --version 2>&1` in
7968 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7971 $as_echo_n 0123456789 >"conftest.in"
7974 cat "conftest.in" "conftest.in" >"conftest.tmp"
7975 mv "conftest.tmp" "conftest.in"
7976 cp "conftest.in" "conftest.nl"
7977 $as_echo '' >> "conftest.nl"
7978 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7980 as_fn_arith $ac_count + 1 && ac_count=$as_val
7981 if test $ac_count -gt ${ac_path_SED_max-0}; then
7982 # Best one so far, save it but keep looking for a better one
7983 ac_cv_path_SED="$ac_path_SED"
7984 ac_path_SED_max=$ac_count
7986 # 10*(2^10) chars as input seems more than enough
7987 test $ac_count -gt 10 && break
7989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7992 $ac_path_SED_found && break 3
7997 if test -z "$ac_cv_path_SED"; then
7998 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8006 $as_echo "$ac_cv_path_SED" >&6; }
8007 SED="$ac_cv_path_SED"
8010 test -z "$SED" && SED=sed
8011 Xsed="$SED -e 1s/^X//"
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8024 $as_echo_n "checking for fgrep... " >&6; }
8025 if ${ac_cv_path_FGREP+:} false; then :
8026 $as_echo_n "(cached) " >&6
8028 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8029 then ac_cv_path_FGREP="$GREP -F"
8031 if test -z "$FGREP"; then
8032 ac_path_FGREP_found=false
8033 # Loop through the user's path and test for each of PROGNAME-LIST
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8038 test -z "$as_dir" && as_dir=.
8039 for ac_prog in fgrep; do
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8042 as_fn_executable_p "$ac_path_FGREP" || continue
8043 # Check for GNU ac_path_FGREP and select it if it is found.
8044 # Check for GNU $ac_path_FGREP
8045 case `"$ac_path_FGREP" --version 2>&1` in
8047 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8050 $as_echo_n 0123456789 >"conftest.in"
8053 cat "conftest.in" "conftest.in" >"conftest.tmp"
8054 mv "conftest.tmp" "conftest.in"
8055 cp "conftest.in" "conftest.nl"
8056 $as_echo 'FGREP' >> "conftest.nl"
8057 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8059 as_fn_arith $ac_count + 1 && ac_count=$as_val
8060 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8061 # Best one so far, save it but keep looking for a better one
8062 ac_cv_path_FGREP="$ac_path_FGREP"
8063 ac_path_FGREP_max=$ac_count
8065 # 10*(2^10) chars as input seems more than enough
8066 test $ac_count -gt 10 && break
8068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8071 $ac_path_FGREP_found && break 3
8076 if test -z "$ac_cv_path_FGREP"; then
8077 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8080 ac_cv_path_FGREP=$FGREP
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8086 $as_echo "$ac_cv_path_FGREP" >&6; }
8087 FGREP="$ac_cv_path_FGREP"
8090 test -z "$GREP" && GREP=grep
8110 # Check whether --with-gnu-ld was given.
8111 if test "${with_gnu_ld+set}" = set; then :
8112 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8118 if test yes = "$GCC"; then
8119 # Check if gcc -print-prog-name=ld gives a path.
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8121 $as_echo_n "checking for ld used by $CC... " >&6; }
8124 # gcc leaves a trailing carriage return, which upsets mingw
8125 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8127 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8130 # Accept absolute paths.
8132 re_direlt='/[^/][^/]*/\.\./'
8133 # Canonicalize the pathname of ld
8134 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8135 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8136 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8138 test -z "$LD" && LD=$ac_prog
8141 # If it fails, then pretend we aren't using GCC.
8145 # If it is relative, then search for the first ld in PATH.
8149 elif test yes = "$with_gnu_ld"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8151 $as_echo_n "checking for GNU ld... " >&6; }
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8154 $as_echo_n "checking for non-GNU ld... " >&6; }
8156 if ${lt_cv_path_LD+:} false; then :
8157 $as_echo_n "(cached) " >&6
8159 if test -z "$LD"; then
8160 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8161 for ac_dir in $PATH; do
8163 test -z "$ac_dir" && ac_dir=.
8164 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8165 lt_cv_path_LD=$ac_dir/$ac_prog
8166 # Check to see if the program is GNU ld. I'd rather use --version,
8167 # but apparently some variants of GNU ld only accept -v.
8168 # Break only if it was the GNU/non-GNU ld that we prefer.
8169 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8170 *GNU* | *'with BFD'*)
8171 test no != "$with_gnu_ld" && break
8174 test yes != "$with_gnu_ld" && break
8181 lt_cv_path_LD=$LD # Let the user override the test with a path.
8186 if test -n "$LD"; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8188 $as_echo "$LD" >&6; }
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8193 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8195 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8196 if ${lt_cv_prog_gnu_ld+:} false; then :
8197 $as_echo_n "(cached) " >&6
8199 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8200 case `$LD -v 2>&1 </dev/null` in
8201 *GNU* | *'with BFD'*)
8202 lt_cv_prog_gnu_ld=yes
8205 lt_cv_prog_gnu_ld=no
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8210 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8211 with_gnu_ld=$lt_cv_prog_gnu_ld
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8222 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8223 if ${lt_cv_path_NM+:} false; then :
8224 $as_echo_n "(cached) " >&6
8226 if test -n "$NM"; then
8227 # Let the user override the test.
8230 lt_nm_to_check=${ac_tool_prefix}nm
8231 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8232 lt_nm_to_check="$lt_nm_to_check nm"
8234 for lt_tmp_nm in $lt_nm_to_check; do
8235 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8236 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8238 test -z "$ac_dir" && ac_dir=.
8239 tmp_nm=$ac_dir/$lt_tmp_nm
8240 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8241 # Check to see if the nm accepts a BSD-compat flag.
8242 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8243 # nm: unknown option "B" ignored
8244 # Tru64's nm complains that /dev/null is an invalid object file
8245 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8247 mingw*) lt_bad_file=conftest.nm/nofile ;;
8248 *) lt_bad_file=/dev/null ;;
8250 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8251 *$lt_bad_file* | *'Invalid file or object type'*)
8252 lt_cv_path_NM="$tmp_nm -B"
8256 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8258 lt_cv_path_NM="$tmp_nm -p"
8262 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8263 continue # so that we can try to find one that supports BSD flags
8272 : ${lt_cv_path_NM=no}
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8276 $as_echo "$lt_cv_path_NM" >&6; }
8277 if test no != "$lt_cv_path_NM"; then
8280 # Didn't find any BSD compatible name lister, look for dumpbin.
8281 if test -n "$DUMPBIN"; then :
8282 # Let the user override the test.
8284 if test -n "$ac_tool_prefix"; then
8285 for ac_prog in dumpbin "link -dump"
8287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if ${ac_cv_prog_DUMPBIN+:} false; then :
8292 $as_echo_n "(cached) " >&6
8294 if test -n "$DUMPBIN"; then
8295 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8304 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 DUMPBIN=$ac_cv_prog_DUMPBIN
8315 if test -n "$DUMPBIN"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8317 $as_echo "$DUMPBIN" >&6; }
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8324 test -n "$DUMPBIN" && break
8327 if test -z "$DUMPBIN"; then
8328 ac_ct_DUMPBIN=$DUMPBIN
8329 for ac_prog in dumpbin "link -dump"
8331 # Extract the first word of "$ac_prog", so it can be a program name with args.
8332 set dummy $ac_prog; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8336 $as_echo_n "(cached) " >&6
8338 if test -n "$ac_ct_DUMPBIN"; then
8339 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8359 if test -n "$ac_ct_DUMPBIN"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8361 $as_echo "$ac_ct_DUMPBIN" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8368 test -n "$ac_ct_DUMPBIN" && break
8371 if test "x$ac_ct_DUMPBIN" = x; then
8374 case $cross_compiling:$ac_tool_warned in
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8378 ac_tool_warned=yes ;;
8380 DUMPBIN=$ac_ct_DUMPBIN
8384 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8386 DUMPBIN="$DUMPBIN -symbols -headers"
8394 if test : != "$DUMPBIN"; then
8398 test -z "$NM" && NM=nm
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8406 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8407 if ${lt_cv_nm_interface+:} false; then :
8408 $as_echo_n "(cached) " >&6
8410 lt_cv_nm_interface="BSD nm"
8411 echo "int some_variable = 0;" > conftest.$ac_ext
8412 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8413 (eval "$ac_compile" 2>conftest.err)
8414 cat conftest.err >&5
8415 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8416 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8417 cat conftest.err >&5
8418 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8419 cat conftest.out >&5
8420 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8421 lt_cv_nm_interface="MS dumpbin"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8426 $as_echo "$lt_cv_nm_interface" >&6; }
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8429 $as_echo_n "checking whether ln -s works... " >&6; }
8431 if test "$LN_S" = "ln -s"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8433 $as_echo "yes" >&6; }
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8436 $as_echo "no, using $LN_S" >&6; }
8439 # find the maximum length of command line arguments
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8441 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8442 if ${lt_cv_sys_max_cmd_len+:} false; then :
8443 $as_echo_n "(cached) " >&6
8450 # On DJGPP, this test can blow up pretty badly due to problems in libc
8451 # (any single argument exceeding 2000 bytes causes a buffer overrun
8452 # during glob expansion). Even if it were fixed, the result of this
8453 # check would be larger than it should be.
8454 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8458 # Under GNU Hurd, this test is not required because there is
8459 # no limit to the length of command line arguments.
8460 # Libtool will interpret -1 as no limit whatsoever
8461 lt_cv_sys_max_cmd_len=-1;
8464 cygwin* | mingw* | cegcc*)
8465 # On Win9x/ME, this test blows up -- it succeeds, but takes
8466 # about 5 minutes as the teststring grows exponentially.
8467 # Worse, since 9x/ME are not pre-emptively multitasking,
8468 # you end up with a "frozen" computer, even though with patience
8469 # the test eventually succeeds (with a max line length of 256k).
8470 # Instead, let's just punt: use the minimum linelength reported by
8471 # all of the supported platforms: 8192 (on NT/2K/XP).
8472 lt_cv_sys_max_cmd_len=8192;
8476 # On MiNT this can take a long time and run out of memory.
8477 lt_cv_sys_max_cmd_len=8192;
8481 # On AmigaOS with pdksh, this test takes hours, literally.
8482 # So we just punt and use a minimum line length of 8192.
8483 lt_cv_sys_max_cmd_len=8192;
8486 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8487 # This has been around since 386BSD, at least. Likely further.
8488 if test -x /sbin/sysctl; then
8489 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8490 elif test -x /usr/sbin/sysctl; then
8491 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8493 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8495 # And add a safety zone
8496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8501 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8502 lt_cv_sys_max_cmd_len=196608
8506 # The test takes a long time on OS/2.
8507 lt_cv_sys_max_cmd_len=8192
8511 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8512 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8513 # nice to cause kernel panics so lets avoid the loop below.
8514 # First set a reasonable default.
8515 lt_cv_sys_max_cmd_len=16384
8517 if test -x /sbin/sysconfig; then
8518 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8519 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8524 lt_cv_sys_max_cmd_len=102400
8526 sysv5* | sco5v6* | sysv4.2uw2*)
8527 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8528 if test -n "$kargmax"; then
8529 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8531 lt_cv_sys_max_cmd_len=32768
8535 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8536 if test -n "$lt_cv_sys_max_cmd_len" && \
8537 test undefined != "$lt_cv_sys_max_cmd_len"; then
8538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8541 # Make teststring a little bigger before we do anything with it.
8542 # a 1K string should be a reasonable start.
8543 for i in 1 2 3 4 5 6 7 8; do
8544 teststring=$teststring$teststring
8546 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8547 # If test is not a shell built-in, we'll probably end up computing a
8548 # maximum length that is only half of the actual maximum length, but
8550 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8551 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8552 test 17 != "$i" # 1/2 MB should be enough
8555 teststring=$teststring$teststring
8557 # Only check the string length outside the loop.
8558 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8560 # Add a significant safety factor because C++ compilers can tack on
8561 # massive amounts of additional arguments before passing them to the
8562 # linker. It appears as though 1/2 is a usable value.
8563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8570 if test -n "$lt_cv_sys_max_cmd_len"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8572 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8575 $as_echo "none" >&6; }
8577 max_cmd_len=$lt_cv_sys_max_cmd_len
8588 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8598 # test EBCDIC or ASCII
8599 case `echo X|tr X '\101'` in
8600 A) # ASCII based system
8601 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8602 lt_SP2NL='tr \040 \012'
8603 lt_NL2SP='tr \015\012 \040\040'
8605 *) # EBCDIC based system
8606 lt_SP2NL='tr \100 \n'
8607 lt_NL2SP='tr \r\n \100\100'
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8620 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8621 if ${lt_cv_to_host_file_cmd+:} false; then :
8622 $as_echo_n "(cached) " >&6
8627 *-*-mingw* ) # actually msys
8628 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8631 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8633 * ) # otherwise, assume *nix
8634 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8640 *-*-mingw* ) # actually msys
8641 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8644 lt_cv_to_host_file_cmd=func_convert_file_noop
8646 * ) # otherwise, assume *nix
8647 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8651 * ) # unhandled hosts (and "normal" native builds)
8652 lt_cv_to_host_file_cmd=func_convert_file_noop
8658 to_host_file_cmd=$lt_cv_to_host_file_cmd
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8660 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8667 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8668 if ${lt_cv_to_tool_file_cmd+:} false; then :
8669 $as_echo_n "(cached) " >&6
8671 #assume ordinary cross tools, or native build.
8672 lt_cv_to_tool_file_cmd=func_convert_file_noop
8676 *-*-mingw* ) # actually msys
8677 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8685 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8687 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8694 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8695 if ${lt_cv_ld_reload_flag+:} false; then :
8696 $as_echo_n "(cached) " >&6
8698 lt_cv_ld_reload_flag='-r'
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8701 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8702 reload_flag=$lt_cv_ld_reload_flag
8703 case $reload_flag in
8705 *) reload_flag=" $reload_flag" ;;
8707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8709 cygwin* | mingw* | pw32* | cegcc*)
8710 if test yes != "$GCC"; then
8715 if test yes = "$GCC"; then
8716 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8718 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8731 if test -n "$ac_tool_prefix"; then
8732 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8733 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_prog_OBJDUMP+:} false; then :
8737 $as_echo_n "(cached) " >&6
8739 if test -n "$OBJDUMP"; then
8740 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8749 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 OBJDUMP=$ac_cv_prog_OBJDUMP
8760 if test -n "$OBJDUMP"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8762 $as_echo "$OBJDUMP" >&6; }
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8770 if test -z "$ac_cv_prog_OBJDUMP"; then
8771 ac_ct_OBJDUMP=$OBJDUMP
8772 # Extract the first word of "objdump", so it can be a program name with args.
8773 set dummy objdump; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8777 $as_echo_n "(cached) " >&6
8779 if test -n "$ac_ct_OBJDUMP"; then
8780 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8789 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8800 if test -n "$ac_ct_OBJDUMP"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8802 $as_echo "$ac_ct_OBJDUMP" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8808 if test "x$ac_ct_OBJDUMP" = x; then
8811 case $cross_compiling:$ac_tool_warned in
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8815 ac_tool_warned=yes ;;
8817 OBJDUMP=$ac_ct_OBJDUMP
8820 OBJDUMP="$ac_cv_prog_OBJDUMP"
8823 test -z "$OBJDUMP" && OBJDUMP=objdump
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8831 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8832 if ${lt_cv_deplibs_check_method+:} false; then :
8833 $as_echo_n "(cached) " >&6
8835 lt_cv_file_magic_cmd='$MAGIC_CMD'
8836 lt_cv_file_magic_test_file=
8837 lt_cv_deplibs_check_method='unknown'
8838 # Need to set the preceding variable on all platforms that support
8839 # interlibrary dependencies.
8840 # 'none' -- dependencies not supported.
8841 # 'unknown' -- same as none, but documents that we really don't know.
8842 # 'pass_all' -- all dependencies passed with no checks.
8843 # 'test_compile' -- check by making test program.
8844 # 'file_magic [[regex]]' -- check by looking for files in library path
8845 # that responds to the $file_magic_cmd with a given extended regex.
8846 # If you have 'file' or equivalent on your system and you're not sure
8847 # whether 'pass_all' will *always* work, you probably want this one.
8851 lt_cv_deplibs_check_method=pass_all
8855 lt_cv_deplibs_check_method=pass_all
8859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8860 lt_cv_file_magic_cmd='/usr/bin/file -L'
8861 lt_cv_file_magic_test_file=/shlib/libc.so
8865 # func_win32_libid is a shell function defined in ltmain.sh
8866 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8867 lt_cv_file_magic_cmd='func_win32_libid'
8871 # Base MSYS/MinGW do not provide the 'file' command needed by
8872 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8873 # unless we find 'file', for example because we are cross-compiling.
8874 if ( file / ) >/dev/null 2>&1; then
8875 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8876 lt_cv_file_magic_cmd='func_win32_libid'
8878 # Keep this pattern in sync with the one in func_win32_libid.
8879 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8880 lt_cv_file_magic_cmd='$OBJDUMP -f'
8885 # use the weaker test based on 'objdump'. See mingw*.
8886 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8887 lt_cv_file_magic_cmd='$OBJDUMP -f'
8890 darwin* | rhapsody*)
8891 lt_cv_deplibs_check_method=pass_all
8894 freebsd* | dragonfly*)
8895 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8898 # Not sure whether the presence of OpenBSD here was a mistake.
8899 # Let's accept both of them until this is cleared up.
8900 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8901 lt_cv_file_magic_cmd=/usr/bin/file
8902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8906 lt_cv_deplibs_check_method=pass_all
8911 lt_cv_deplibs_check_method=pass_all
8914 hpux10.20* | hpux11*)
8915 lt_cv_file_magic_cmd=/usr/bin/file
8918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8919 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8922 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]'
8923 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8927 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8933 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8937 irix5* | irix6* | nonstopux*)
8939 *-32|*"-32 ") libmagic=32-bit;;
8940 *-n32|*"-n32 ") libmagic=N32;;
8941 *-64|*"-64 ") libmagic=64-bit;;
8942 *) libmagic=never-match;;
8944 lt_cv_deplibs_check_method=pass_all
8947 # This must be glibc/ELF.
8948 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8949 lt_cv_deplibs_check_method=pass_all
8952 netbsd* | netbsdelf*-gnu)
8953 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8962 lt_cv_file_magic_cmd=/usr/bin/file
8963 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8967 lt_cv_deplibs_check_method=pass_all
8971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8978 osf3* | osf4* | osf5*)
8979 lt_cv_deplibs_check_method=pass_all
8983 lt_cv_deplibs_check_method=pass_all
8987 lt_cv_deplibs_check_method=pass_all
8990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8991 lt_cv_deplibs_check_method=pass_all
8995 case $host_vendor in
8997 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]'
8998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9001 lt_cv_deplibs_check_method=pass_all
9004 lt_cv_file_magic_cmd='/bin/file'
9005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9008 lt_cv_file_magic_cmd='/bin/file'
9009 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9010 lt_cv_file_magic_test_file=/lib/libc.so
9013 lt_cv_deplibs_check_method=pass_all
9016 lt_cv_deplibs_check_method=pass_all
9022 lt_cv_deplibs_check_method=pass_all
9025 lt_cv_deplibs_check_method=pass_all
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9031 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9035 if test "$build" = "$host"; then
9038 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9041 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9047 file_magic_cmd=$lt_cv_file_magic_cmd
9048 deplibs_check_method=$lt_cv_deplibs_check_method
9049 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9072 if test -n "$ac_tool_prefix"; then
9073 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9074 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076 $as_echo_n "checking for $ac_word... " >&6; }
9077 if ${ac_cv_prog_DLLTOOL+:} false; then :
9078 $as_echo_n "(cached) " >&6
9080 if test -n "$DLLTOOL"; then
9081 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 test -z "$as_dir" && as_dir=.
9088 for ac_exec_ext in '' $ac_executable_extensions; do
9089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9090 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9100 DLLTOOL=$ac_cv_prog_DLLTOOL
9101 if test -n "$DLLTOOL"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9103 $as_echo "$DLLTOOL" >&6; }
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106 $as_echo "no" >&6; }
9111 if test -z "$ac_cv_prog_DLLTOOL"; then
9112 ac_ct_DLLTOOL=$DLLTOOL
9113 # Extract the first word of "dlltool", so it can be a program name with args.
9114 set dummy dlltool; ac_word=$2
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116 $as_echo_n "checking for $ac_word... " >&6; }
9117 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9118 $as_echo_n "(cached) " >&6
9120 if test -n "$ac_ct_DLLTOOL"; then
9121 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9130 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9141 if test -n "$ac_ct_DLLTOOL"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9143 $as_echo "$ac_ct_DLLTOOL" >&6; }
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9149 if test "x$ac_ct_DLLTOOL" = x; then
9152 case $cross_compiling:$ac_tool_warned in
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9156 ac_tool_warned=yes ;;
9158 DLLTOOL=$ac_ct_DLLTOOL
9161 DLLTOOL="$ac_cv_prog_DLLTOOL"
9164 test -z "$DLLTOOL" && DLLTOOL=dlltool
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9173 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9174 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9175 $as_echo_n "(cached) " >&6
9177 lt_cv_sharedlib_from_linklib_cmd='unknown'
9180 cygwin* | mingw* | pw32* | cegcc*)
9181 # two different shell functions defined in ltmain.sh;
9182 # decide which one to use based on capabilities of $DLLTOOL
9183 case `$DLLTOOL --help 2>&1` in
9184 *--identify-strict*)
9185 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9188 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9193 # fallback: assume linklib IS sharedlib
9194 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9200 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9201 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9202 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9210 if test -n "$ac_tool_prefix"; then
9213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if ${ac_cv_prog_AR+:} false; then :
9218 $as_echo_n "(cached) " >&6
9220 if test -n "$AR"; then
9221 ac_cv_prog_AR="$AR" # Let the user override the test.
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227 test -z "$as_dir" && as_dir=.
9228 for ac_exec_ext in '' $ac_executable_extensions; do
9229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9230 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241 if test -n "$AR"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9243 $as_echo "$AR" >&6; }
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9250 test -n "$AR" && break
9253 if test -z "$AR"; then
9257 # Extract the first word of "$ac_prog", so it can be a program name with args.
9258 set dummy $ac_prog; ac_word=$2
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9260 $as_echo_n "checking for $ac_word... " >&6; }
9261 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9262 $as_echo_n "(cached) " >&6
9264 if test -n "$ac_ct_AR"; then
9265 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
9273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9274 ac_cv_prog_ac_ct_AR="$ac_prog"
9275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9284 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9285 if test -n "$ac_ct_AR"; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9287 $as_echo "$ac_ct_AR" >&6; }
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9294 test -n "$ac_ct_AR" && break
9297 if test "x$ac_ct_AR" = x; then
9300 case $cross_compiling:$ac_tool_warned in
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9304 ac_tool_warned=yes ;;
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9324 $as_echo_n "checking for archiver @FILE support... " >&6; }
9325 if ${lt_cv_ar_at_file+:} false; then :
9326 $as_echo_n "(cached) " >&6
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9339 if ac_fn_c_try_compile "$LINENO"; then :
9340 echo conftest.$ac_objext > conftest.lst
9341 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9343 (eval $lt_ar_try) 2>&5
9345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9346 test $ac_status = 0; }
9347 if test 0 -eq "$ac_status"; then
9348 # Ensure the archiver fails upon bogus file names.
9349 rm -f conftest.$ac_objext libconftest.a
9350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9351 (eval $lt_ar_try) 2>&5
9353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9354 test $ac_status = 0; }
9355 if test 0 -ne "$ac_status"; then
9359 rm -f conftest.* libconftest.a
9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9366 $as_echo "$lt_cv_ar_at_file" >&6; }
9368 if test no = "$lt_cv_ar_at_file"; then
9371 archiver_list_spec=$lt_cv_ar_at_file
9380 if test -n "$ac_tool_prefix"; then
9381 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9382 set dummy ${ac_tool_prefix}strip; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if ${ac_cv_prog_STRIP+:} false; then :
9386 $as_echo_n "(cached) " >&6
9388 if test -n "$STRIP"; then
9389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9398 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 STRIP=$ac_cv_prog_STRIP
9409 if test -n "$STRIP"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9411 $as_echo "$STRIP" >&6; }
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9419 if test -z "$ac_cv_prog_STRIP"; then
9421 # Extract the first word of "strip", so it can be a program name with args.
9422 set dummy strip; ac_word=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9426 $as_echo_n "(cached) " >&6
9428 if test -n "$ac_ct_STRIP"; then
9429 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9438 ac_cv_prog_ac_ct_STRIP="strip"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9448 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9449 if test -n "$ac_ct_STRIP"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9451 $as_echo "$ac_ct_STRIP" >&6; }
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9457 if test "x$ac_ct_STRIP" = x; then
9460 case $cross_compiling:$ac_tool_warned in
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9464 ac_tool_warned=yes ;;
9469 STRIP="$ac_cv_prog_STRIP"
9472 test -z "$STRIP" && STRIP=:
9479 if test -n "$ac_tool_prefix"; then
9480 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9481 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if ${ac_cv_prog_RANLIB+:} false; then :
9485 $as_echo_n "(cached) " >&6
9487 if test -n "$RANLIB"; then
9488 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9497 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 RANLIB=$ac_cv_prog_RANLIB
9508 if test -n "$RANLIB"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9510 $as_echo "$RANLIB" >&6; }
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9518 if test -z "$ac_cv_prog_RANLIB"; then
9519 ac_ct_RANLIB=$RANLIB
9520 # Extract the first word of "ranlib", so it can be a program name with args.
9521 set dummy ranlib; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9525 $as_echo_n "(cached) " >&6
9527 if test -n "$ac_ct_RANLIB"; then
9528 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_prog_ac_ct_RANLIB="ranlib"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9548 if test -n "$ac_ct_RANLIB"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9550 $as_echo "$ac_ct_RANLIB" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9556 if test "x$ac_ct_RANLIB" = x; then
9559 case $cross_compiling:$ac_tool_warned in
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9563 ac_tool_warned=yes ;;
9565 RANLIB=$ac_ct_RANLIB
9568 RANLIB="$ac_cv_prog_RANLIB"
9571 test -z "$RANLIB" && RANLIB=:
9578 # Determine commands to create old-style static archives.
9579 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9580 old_postinstall_cmds='chmod 644 $oldlib'
9581 old_postuninstall_cmds=
9583 if test -n "$RANLIB"; then
9586 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9589 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9592 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9597 lock_old_archive_extraction=yes ;;
9599 lock_old_archive_extraction=no ;;
9640 # If no C compiler was specified, use CC.
9643 # If no C compiler flags were specified, use CFLAGS.
9644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9646 # Allow CC to be a program name with arguments.
9650 # Check for command to grab the raw symbol name followed by C symbol from nm.
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9652 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9653 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9654 $as_echo_n "(cached) " >&6
9657 # These are sane defaults that work on at least a few old systems.
9658 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9660 # Character class describing NM global symbol codes.
9661 symcode='[BCDEGRST]'
9663 # Regexp to match symbols that can be accessed directly from C.
9664 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9666 # Define system-specific variables.
9671 cygwin* | mingw* | pw32* | cegcc*)
9672 symcode='[ABCDGISTW]'
9675 if test ia64 = "$host_cpu"; then
9676 symcode='[ABCDEGRST]'
9680 symcode='[BCDEGRST]'
9683 symcode='[BCDEGQRST]'
9694 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9702 # If we're using GNU nm, then use its standard symbol codes.
9703 case `$NM -V 2>&1` in
9704 *GNU* | *'with BFD'*)
9705 symcode='[ABCDGIRSTW]' ;;
9708 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9709 # Gets list of data symbols to import.
9710 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9711 # Adjust the below global symbol transforms to fixup imported variables.
9712 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9713 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9714 lt_c_name_lib_hook="\
9715 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9716 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9718 # Disable hooks by default.
9719 lt_cv_sys_global_symbol_to_import=
9725 # Transform an extracted symbol line into a proper C declaration.
9726 # Some systems (esp. on ia64) link data and code symbols differently,
9727 # so use this general approach.
9728 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9730 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9731 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9733 # Transform an extracted symbol line into symbol name and symbol address
9734 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9736 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9737 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9739 # Transform an extracted symbol line into symbol name with lib prefix and
9741 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9742 $lt_c_name_lib_hook\
9743 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9744 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9745 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9747 # Handle CRLF in mingw tool chain
9751 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9755 # Try without a prefix underscore, then with it.
9756 for ac_symprfx in "" "_"; do
9758 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9759 symxfrm="\\1 $ac_symprfx\\2 \\2"
9761 # Write the raw and C identifiers.
9762 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9763 # Fake it for dumpbin and say T for any non-static function,
9764 # D for any global variable and I for any imported variable.
9765 # Also find C++ and __fastcall symbols from MSVC++,
9766 # which start with @ or ?.
9767 lt_cv_sys_global_symbol_pipe="$AWK '"\
9768 " {last_section=section; section=\$ 3};"\
9769 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9770 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9771 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9772 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9773 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9774 " \$ 0!~/External *\|/{next};"\
9775 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9776 " {if(hide[section]) next};"\
9777 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9778 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9779 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9780 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9781 " ' prfx=^$ac_symprfx"
9783 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9785 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9787 # Check to see that the pipe works correctly.
9791 cat > conftest.$ac_ext <<_LT_EOF
9796 void nm_test_func(void);
9797 void nm_test_func(void){}
9801 int main(){nm_test_var='a';nm_test_func();return(0);}
9804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9805 (eval $ac_compile) 2>&5
9807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808 test $ac_status = 0; }; then
9809 # Now try to grab the symbols.
9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9812 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815 test $ac_status = 0; } && test -s "$nlist"; then
9816 # Try sorting and uniquifying the output.
9817 if sort "$nlist" | uniq > "$nlist"T; then
9818 mv -f "$nlist"T "$nlist"
9823 # Make sure that we snagged all the symbols we need.
9824 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9825 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9826 cat <<_LT_EOF > conftest.$ac_ext
9827 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9828 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9829 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9830 relocations are performed -- see ld's documentation on pseudo-relocs. */
9831 # define LT_DLSYM_CONST
9832 #elif defined __osf__
9833 /* This system does not cope well with relocations in const data. */
9834 # define LT_DLSYM_CONST
9836 # define LT_DLSYM_CONST const
9844 # Now generate the symbol file.
9845 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9847 cat <<_LT_EOF >> conftest.$ac_ext
9849 /* The mapping between symbol names and symbols. */
9850 LT_DLSYM_CONST struct {
9854 lt__PROGRAM__LTX_preloaded_symbols[] =
9856 { "@PROGRAM@", (void *) 0 },
9858 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9859 cat <<\_LT_EOF >> conftest.$ac_ext
9863 /* This works around a problem in FreeBSD linker */
9864 #ifdef FREEBSD_WORKAROUND
9865 static const void *lt_preloaded_setup() {
9866 return lt__PROGRAM__LTX_preloaded_symbols;
9874 # Now try linking the two files.
9875 mv -f conftest.$ac_objext conftstm.$ac_objext
9876 lt_globsym_save_LIBS=$LIBS
9877 lt_globsym_save_CFLAGS=$CFLAGS
9878 LIBS=conftstm.$ac_objext
9879 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9881 (eval $ac_link) 2>&5
9883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9884 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9887 LIBS=$lt_globsym_save_LIBS
9888 CFLAGS=$lt_globsym_save_CFLAGS
9890 echo "cannot find nm_test_func in $nlist" >&5
9893 echo "cannot find nm_test_var in $nlist" >&5
9896 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9899 echo "$progname: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9902 rm -rf conftest* conftst*
9904 # Do not use the global_symbol_pipe unless it works.
9905 if test yes = "$pipe_works"; then
9908 lt_cv_sys_global_symbol_pipe=
9914 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9915 lt_cv_sys_global_symbol_to_cdecl=
9917 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9919 $as_echo "failed" >&6; }
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9922 $as_echo "ok" >&6; }
9925 # Response file support.
9926 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9927 nm_file_list_spec='@'
9928 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9929 nm_file_list_spec='@'
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9969 $as_echo_n "checking for sysroot... " >&6; }
9971 # Check whether --with-sysroot was given.
9972 if test "${with_sysroot+set}" = set; then :
9973 withval=$with_sysroot;
9980 case $with_sysroot in #(
9982 if test yes = "$GCC"; then
9983 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9987 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9993 $as_echo "$with_sysroot" >&6; }
9994 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9999 $as_echo "${lt_sysroot:-no}" >&6; }
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10006 $as_echo_n "checking for a working dd... " >&6; }
10007 if ${ac_cv_path_lt_DD+:} false; then :
10008 $as_echo_n "(cached) " >&6
10010 printf 0123456789abcdef0123456789abcdef >conftest.i
10011 cat conftest.i conftest.i >conftest2.i
10013 if test -z "$lt_DD"; then
10014 ac_path_lt_DD_found=false
10015 # Loop through the user's path and test for each of PROGNAME-LIST
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in $PATH
10020 test -z "$as_dir" && as_dir=.
10021 for ac_prog in dd; do
10022 for ac_exec_ext in '' $ac_executable_extensions; do
10023 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10024 as_fn_executable_p "$ac_path_lt_DD" || continue
10025 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10026 cmp -s conftest.i conftest.out \
10027 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10029 $ac_path_lt_DD_found && break 3
10034 if test -z "$ac_cv_path_lt_DD"; then
10038 ac_cv_path_lt_DD=$lt_DD
10041 rm -f conftest.i conftest2.i conftest.out
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10044 $as_echo "$ac_cv_path_lt_DD" >&6; }
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10048 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10049 if ${lt_cv_truncate_bin+:} false; then :
10050 $as_echo_n "(cached) " >&6
10052 printf 0123456789abcdef0123456789abcdef >conftest.i
10053 cat conftest.i conftest.i >conftest2.i
10054 lt_cv_truncate_bin=
10055 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10056 cmp -s conftest.i conftest.out \
10057 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10059 rm -f conftest.i conftest2.i conftest.out
10060 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10063 $as_echo "$lt_cv_truncate_bin" >&6; }
10071 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10072 func_cc_basename ()
10074 for cc_temp in $*""; do
10076 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10077 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10082 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10085 # Check whether --enable-libtool-lock was given.
10086 if test "${enable_libtool_lock+set}" = set; then :
10087 enableval=$enable_libtool_lock;
10090 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10092 # Some flags need to be propagated to the compiler or linker for good
10096 # Find out what ABI is being produced by ac_compile, and set mode
10097 # options accordingly.
10098 echo 'int i;' > conftest.$ac_ext
10099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10100 (eval $ac_compile) 2>&5
10102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10103 test $ac_status = 0; }; then
10104 case `/usr/bin/file conftest.$ac_objext` in
10116 # Find out what ABI is being produced by ac_compile, and set linker
10117 # options accordingly.
10118 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10120 (eval $ac_compile) 2>&5
10122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10123 test $ac_status = 0; }; then
10124 if test yes = "$lt_cv_prog_gnu_ld"; then
10125 case `/usr/bin/file conftest.$ac_objext` in
10127 LD="${LD-ld} -melf32bsmip"
10130 LD="${LD-ld} -melf32bmipn32"
10133 LD="${LD-ld} -melf64bmip"
10137 case `/usr/bin/file conftest.$ac_objext` in
10154 # Find out what ABI is being produced by ac_compile, and set linker
10155 # options accordingly.
10156 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10158 (eval $ac_compile) 2>&5
10160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10161 test $ac_status = 0; }; then
10163 case `/usr/bin/file conftest.$ac_objext` in
10171 case `/usr/bin/file conftest.$ac_objext` in
10173 emul="${emul}btsmip"
10176 emul="${emul}ltsmip"
10179 case `/usr/bin/file conftest.$ac_objext` in
10184 LD="${LD-ld} -m $emul"
10189 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10190 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10191 # Find out what ABI is being produced by ac_compile, and set linker
10192 # options accordingly. Note that the listed cases only cover the
10193 # situations where additional linker options are needed (such as when
10194 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10195 # vice versa); the common cases where no linker options are needed do
10196 # not appear in the list.
10197 echo 'int i;' > conftest.$ac_ext
10198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10199 (eval $ac_compile) 2>&5
10201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10202 test $ac_status = 0; }; then
10203 case `/usr/bin/file conftest.o` in
10206 x86_64-*kfreebsd*-gnu)
10207 LD="${LD-ld} -m elf_i386_fbsd"
10210 case `/usr/bin/file conftest.o` in
10212 LD="${LD-ld} -m elf32_x86_64"
10215 LD="${LD-ld} -m elf_i386"
10219 powerpc64le-*linux*)
10220 LD="${LD-ld} -m elf32lppclinux"
10223 LD="${LD-ld} -m elf32ppclinux"
10226 LD="${LD-ld} -m elf_s390"
10229 LD="${LD-ld} -m elf32_sparc"
10235 x86_64-*kfreebsd*-gnu)
10236 LD="${LD-ld} -m elf_x86_64_fbsd"
10239 LD="${LD-ld} -m elf_x86_64"
10242 LD="${LD-ld} -m elf64lppc"
10245 LD="${LD-ld} -m elf64ppc"
10247 s390*-*linux*|s390*-*tpf*)
10248 LD="${LD-ld} -m elf64_s390"
10251 LD="${LD-ld} -m elf64_sparc"
10261 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10262 SAVE_CFLAGS=$CFLAGS
10263 CFLAGS="$CFLAGS -belf"
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10265 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10266 if ${lt_cv_cc_needs_belf+:} false; then :
10267 $as_echo_n "(cached) " >&6
10270 ac_cpp='$CPP $CPPFLAGS'
10271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10285 if ac_fn_c_try_link "$LINENO"; then :
10286 lt_cv_cc_needs_belf=yes
10288 lt_cv_cc_needs_belf=no
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10293 ac_cpp='$CPP $CPPFLAGS'
10294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10300 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10301 if test yes != "$lt_cv_cc_needs_belf"; then
10302 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10303 CFLAGS=$SAVE_CFLAGS
10307 # Find out what ABI is being produced by ac_compile, and set linker
10308 # options accordingly.
10309 echo 'int i;' > conftest.$ac_ext
10310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10311 (eval $ac_compile) 2>&5
10313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314 test $ac_status = 0; }; then
10315 case `/usr/bin/file conftest.o` in
10317 case $lt_cv_prog_gnu_ld in
10320 i?86-*-solaris*|x86_64-*-solaris*)
10321 LD="${LD-ld} -m elf_x86_64"
10324 LD="${LD-ld} -m elf64_sparc"
10327 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10328 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10333 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10345 need_locks=$enable_libtool_lock
10347 if test -n "$ac_tool_prefix"; then
10348 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10349 set dummy ${ac_tool_prefix}mt; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10353 $as_echo_n "(cached) " >&6
10355 if test -n "$MANIFEST_TOOL"; then
10356 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10375 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10376 if test -n "$MANIFEST_TOOL"; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10378 $as_echo "$MANIFEST_TOOL" >&6; }
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10386 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10387 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10388 # Extract the first word of "mt", so it can be a program name with args.
10389 set dummy mt; ac_word=$2
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391 $as_echo_n "checking for $ac_word... " >&6; }
10392 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10393 $as_echo_n "(cached) " >&6
10395 if test -n "$ac_ct_MANIFEST_TOOL"; then
10396 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $PATH
10402 test -z "$as_dir" && as_dir=.
10403 for ac_exec_ext in '' $ac_executable_extensions; do
10404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10405 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10416 if test -n "$ac_ct_MANIFEST_TOOL"; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10418 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421 $as_echo "no" >&6; }
10424 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10427 case $cross_compiling:$ac_tool_warned in
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10431 ac_tool_warned=yes ;;
10433 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10436 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10439 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10441 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10442 if ${lt_cv_path_mainfest_tool+:} false; then :
10443 $as_echo_n "(cached) " >&6
10445 lt_cv_path_mainfest_tool=no
10446 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10447 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10448 cat conftest.err >&5
10449 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10450 lt_cv_path_mainfest_tool=yes
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10455 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10456 if test yes != "$lt_cv_path_mainfest_tool"; then
10466 rhapsody* | darwin*)
10467 if test -n "$ac_tool_prefix"; then
10468 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10469 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10473 $as_echo_n "(cached) " >&6
10475 if test -n "$DSYMUTIL"; then
10476 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10485 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10496 if test -n "$DSYMUTIL"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10498 $as_echo "$DSYMUTIL" >&6; }
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10506 if test -z "$ac_cv_prog_DSYMUTIL"; then
10507 ac_ct_DSYMUTIL=$DSYMUTIL
10508 # Extract the first word of "dsymutil", so it can be a program name with args.
10509 set dummy dsymutil; ac_word=$2
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10511 $as_echo_n "checking for $ac_word... " >&6; }
10512 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10513 $as_echo_n "(cached) " >&6
10515 if test -n "$ac_ct_DSYMUTIL"; then
10516 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10519 for as_dir in $PATH
10522 test -z "$as_dir" && as_dir=.
10523 for ac_exec_ext in '' $ac_executable_extensions; do
10524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10525 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10536 if test -n "$ac_ct_DSYMUTIL"; then
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10538 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 $as_echo "no" >&6; }
10544 if test "x$ac_ct_DSYMUTIL" = x; then
10547 case $cross_compiling:$ac_tool_warned in
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10551 ac_tool_warned=yes ;;
10553 DSYMUTIL=$ac_ct_DSYMUTIL
10556 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10559 if test -n "$ac_tool_prefix"; then
10560 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10561 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if ${ac_cv_prog_NMEDIT+:} false; then :
10565 $as_echo_n "(cached) " >&6
10567 if test -n "$NMEDIT"; then
10568 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10577 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 NMEDIT=$ac_cv_prog_NMEDIT
10588 if test -n "$NMEDIT"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10590 $as_echo "$NMEDIT" >&6; }
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10598 if test -z "$ac_cv_prog_NMEDIT"; then
10599 ac_ct_NMEDIT=$NMEDIT
10600 # Extract the first word of "nmedit", so it can be a program name with args.
10601 set dummy nmedit; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10605 $as_echo_n "(cached) " >&6
10607 if test -n "$ac_ct_NMEDIT"; then
10608 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10614 test -z "$as_dir" && as_dir=.
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10617 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10628 if test -n "$ac_ct_NMEDIT"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10630 $as_echo "$ac_ct_NMEDIT" >&6; }
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10636 if test "x$ac_ct_NMEDIT" = x; then
10639 case $cross_compiling:$ac_tool_warned in
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10643 ac_tool_warned=yes ;;
10645 NMEDIT=$ac_ct_NMEDIT
10648 NMEDIT="$ac_cv_prog_NMEDIT"
10651 if test -n "$ac_tool_prefix"; then
10652 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10653 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_prog_LIPO+:} false; then :
10657 $as_echo_n "(cached) " >&6
10659 if test -n "$LIPO"; then
10660 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 LIPO=$ac_cv_prog_LIPO
10680 if test -n "$LIPO"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10682 $as_echo "$LIPO" >&6; }
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10690 if test -z "$ac_cv_prog_LIPO"; then
10692 # Extract the first word of "lipo", so it can be a program name with args.
10693 set dummy lipo; ac_word=$2
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10695 $as_echo_n "checking for $ac_word... " >&6; }
10696 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10697 $as_echo_n "(cached) " >&6
10699 if test -n "$ac_ct_LIPO"; then
10700 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10709 ac_cv_prog_ac_ct_LIPO="lipo"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10720 if test -n "$ac_ct_LIPO"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10722 $as_echo "$ac_ct_LIPO" >&6; }
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10728 if test "x$ac_ct_LIPO" = x; then
10731 case $cross_compiling:$ac_tool_warned in
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10735 ac_tool_warned=yes ;;
10740 LIPO="$ac_cv_prog_LIPO"
10743 if test -n "$ac_tool_prefix"; then
10744 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10745 set dummy ${ac_tool_prefix}otool; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if ${ac_cv_prog_OTOOL+:} false; then :
10749 $as_echo_n "(cached) " >&6
10751 if test -n "$OTOOL"; then
10752 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 OTOOL=$ac_cv_prog_OTOOL
10772 if test -n "$OTOOL"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10774 $as_echo "$OTOOL" >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10782 if test -z "$ac_cv_prog_OTOOL"; then
10784 # Extract the first word of "otool", so it can be a program name with args.
10785 set dummy otool; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10789 $as_echo_n "(cached) " >&6
10791 if test -n "$ac_ct_OTOOL"; then
10792 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_prog_ac_ct_OTOOL="otool"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10812 if test -n "$ac_ct_OTOOL"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10814 $as_echo "$ac_ct_OTOOL" >&6; }
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10820 if test "x$ac_ct_OTOOL" = x; then
10823 case $cross_compiling:$ac_tool_warned in
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10827 ac_tool_warned=yes ;;
10832 OTOOL="$ac_cv_prog_OTOOL"
10835 if test -n "$ac_tool_prefix"; then
10836 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10837 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10839 $as_echo_n "checking for $ac_word... " >&6; }
10840 if ${ac_cv_prog_OTOOL64+:} false; then :
10841 $as_echo_n "(cached) " >&6
10843 if test -n "$OTOOL64"; then
10844 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847 for as_dir in $PATH
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10853 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10863 OTOOL64=$ac_cv_prog_OTOOL64
10864 if test -n "$OTOOL64"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10866 $as_echo "$OTOOL64" >&6; }
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10874 if test -z "$ac_cv_prog_OTOOL64"; then
10875 ac_ct_OTOOL64=$OTOOL64
10876 # Extract the first word of "otool64", so it can be a program name with args.
10877 set dummy otool64; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10881 $as_echo_n "(cached) " >&6
10883 if test -n "$ac_ct_OTOOL64"; then
10884 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_prog_ac_ct_OTOOL64="otool64"
10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10904 if test -n "$ac_ct_OTOOL64"; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10906 $as_echo "$ac_ct_OTOOL64" >&6; }
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909 $as_echo "no" >&6; }
10912 if test "x$ac_ct_OTOOL64" = x; then
10915 case $cross_compiling:$ac_tool_warned in
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10919 ac_tool_warned=yes ;;
10921 OTOOL64=$ac_ct_OTOOL64
10924 OTOOL64="$ac_cv_prog_OTOOL64"
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10954 $as_echo_n "checking for -single_module linker flag... " >&6; }
10955 if ${lt_cv_apple_cc_single_mod+:} false; then :
10956 $as_echo_n "(cached) " >&6
10958 lt_cv_apple_cc_single_mod=no
10959 if test -z "$LT_MULTI_MODULE"; then
10960 # By default we will add the -single_module flag. You can override
10961 # by either setting the environment variable LT_MULTI_MODULE
10962 # non-empty at configure time, or by adding -multi_module to the
10964 rm -rf libconftest.dylib*
10965 echo "int foo(void){return 1;}" > conftest.c
10966 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10967 -dynamiclib -Wl,-single_module conftest.c" >&5
10968 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10969 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10971 # If there is a non-empty error log, and "single_module"
10972 # appears in it, assume the flag caused a linker warning
10973 if test -s conftest.err && $GREP single_module conftest.err; then
10974 cat conftest.err >&5
10975 # Otherwise, if the output was created with a 0 exit code from
10976 # the compiler, it worked.
10977 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10978 lt_cv_apple_cc_single_mod=yes
10980 cat conftest.err >&5
10982 rm -rf libconftest.dylib*
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10987 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10990 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10991 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10992 $as_echo_n "(cached) " >&6
10994 lt_cv_ld_exported_symbols_list=no
10995 save_LDFLAGS=$LDFLAGS
10996 echo "_main" > conftest.sym
10997 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 lt_cv_ld_exported_symbols_list=yes
11011 lt_cv_ld_exported_symbols_list=no
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LDFLAGS=$save_LDFLAGS
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11019 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11022 $as_echo_n "checking for -force_load linker flag... " >&6; }
11023 if ${lt_cv_ld_force_load+:} false; then :
11024 $as_echo_n "(cached) " >&6
11026 lt_cv_ld_force_load=no
11027 cat > conftest.c << _LT_EOF
11028 int forced_loaded() { return 2;}
11030 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11031 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11032 echo "$AR cru libconftest.a conftest.o" >&5
11033 $AR cru libconftest.a conftest.o 2>&5
11034 echo "$RANLIB libconftest.a" >&5
11035 $RANLIB libconftest.a 2>&5
11036 cat > conftest.c << _LT_EOF
11037 int main() { return 0;}
11039 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11040 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11042 if test -s conftest.err && $GREP force_load conftest.err; then
11043 cat conftest.err >&5
11044 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11045 lt_cv_ld_force_load=yes
11047 cat conftest.err >&5
11049 rm -f conftest.err libconftest.a conftest conftest.c
11050 rm -rf conftest.dSYM
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11054 $as_echo "$lt_cv_ld_force_load" >&6; }
11056 rhapsody* | darwin1.[012])
11057 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11059 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11060 darwin*) # darwin 5.x on
11061 # if running on 10.5 or later, the deployment target defaults
11062 # to the OS version, if on x86, and 10.4, the deployment
11063 # target defaults to 10.4. Don't you love it?
11064 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11065 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11066 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11068 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11070 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11074 if test yes = "$lt_cv_apple_cc_single_mod"; then
11075 _lt_dar_single_mod='$single_module'
11077 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11078 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11080 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11082 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11083 _lt_dsymutil='~$DSYMUTIL $lib || :'
11090 # func_munge_path_list VARIABLE PATH
11091 # -----------------------------------
11092 # VARIABLE is name of variable containing _space_ separated list of
11093 # directories to be munged by the contents of PATH, which is string
11096 # string "DIR[ DIR]" will be prepended to VARIABLE
11098 # string "DIR[ DIR]" will be appended to VARIABLE
11099 # "DIRP[:DIRP]::[DIRA:]DIRA"
11100 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11101 # "DIRA[ DIRA]" will be appended to VARIABLE
11103 # VARIABLE will be replaced by "DIR[ DIR]"
11104 func_munge_path_list ()
11110 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11113 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11116 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11117 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11120 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11125 for ac_header in dlfcn.h
11127 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11129 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11130 cat >>confdefs.h <<_ACEOF
11131 #define HAVE_DLFCN_H 1
11138 # ------------------------------------ #
11139 # Determine libtool default behavior #
11140 # ------------------------------------ #
11143 # Default behavior is to enable shared and static libraries on systems
11144 # where libtool knows how to build both library versions, and does not
11145 # require separate configuration and build runs for each flavor.
11148 xc_lt_want_enable_shared='yes'
11149 xc_lt_want_enable_static='yes'
11152 # User may have disabled shared or static libraries.
11154 case "x$enable_shared" in # (
11156 xc_lt_want_enable_shared='no'
11159 case "x$enable_static" in # (
11161 xc_lt_want_enable_static='no'
11164 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11165 test "x$xc_lt_want_enable_static" = 'xno'; then
11166 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11170 # Default behavior on systems that require independent configuration
11171 # and build runs for shared and static is to enable shared libraries
11172 # and disable static ones. On these systems option '--disable-shared'
11173 # must be used in order to build a proper static library.
11176 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11177 test "x$xc_lt_want_enable_static" = 'xyes'; then
11178 case $host_os in # (
11179 pw32* | cegcc* | os2* | aix*)
11180 xc_lt_want_enable_static='no'
11186 # Make libtool aware of current shared and static library preferences
11187 # taking in account that, depending on host characteristics, libtool
11188 # may modify these option preferences later in this configure script.
11191 enable_shared=$xc_lt_want_enable_shared
11192 enable_static=$xc_lt_want_enable_static
11195 # Default behavior is to build PIC objects for shared libraries and
11196 # non-PIC objects for static libraries.
11199 xc_lt_want_with_pic='default'
11202 # User may have specified PIC preference.
11205 case "x$with_pic" in # ((
11207 xc_lt_want_with_pic='no'
11210 xc_lt_want_with_pic='yes'
11215 # Default behavior on some systems where building a shared library out
11216 # of non-PIC compiled objects will fail with following linker error
11217 # "relocation R_X86_64_32 can not be used when making a shared object"
11218 # is to build PIC objects even for static libraries. This behavior may
11219 # be overriden using 'configure --disable-shared --without-pic'.
11222 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11223 case $host_cpu in # (
11224 x86_64 | amd64 | ia64)
11225 case $host_os in # (
11227 xc_lt_want_with_pic='yes'
11235 # Make libtool aware of current PIC preference taking in account that,
11236 # depending on host characteristics, libtool may modify PIC default
11237 # behavior to fit host system idiosyncrasies later in this script.
11240 with_pic=$xc_lt_want_with_pic
11242 ## ----------------------- ##
11243 ## Start of libtool code ##
11244 ## ----------------------- ##
11250 enable_win32_dll=yes
11253 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11254 if test -n "$ac_tool_prefix"; then
11255 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11256 set dummy ${ac_tool_prefix}as; ac_word=$2
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258 $as_echo_n "checking for $ac_word... " >&6; }
11259 if ${ac_cv_prog_AS+:} false; then :
11260 $as_echo_n "(cached) " >&6
11262 if test -n "$AS"; then
11263 ac_cv_prog_AS="$AS" # Let the user override the test.
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11269 test -z "$as_dir" && as_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272 ac_cv_prog_AS="${ac_tool_prefix}as"
11273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 if test -n "$AS"; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11285 $as_echo "$AS" >&6; }
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11293 if test -z "$ac_cv_prog_AS"; then
11295 # Extract the first word of "as", so it can be a program name with args.
11296 set dummy as; ac_word=$2
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298 $as_echo_n "checking for $ac_word... " >&6; }
11299 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11300 $as_echo_n "(cached) " >&6
11302 if test -n "$ac_ct_AS"; then
11303 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11309 test -z "$as_dir" && as_dir=.
11310 for ac_exec_ext in '' $ac_executable_extensions; do
11311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11312 ac_cv_prog_ac_ct_AS="as"
11313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11323 if test -n "$ac_ct_AS"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11325 $as_echo "$ac_ct_AS" >&6; }
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11331 if test "x$ac_ct_AS" = x; then
11334 case $cross_compiling:$ac_tool_warned in
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11338 ac_tool_warned=yes ;;
11343 AS="$ac_cv_prog_AS"
11346 if test -n "$ac_tool_prefix"; then
11347 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11348 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11350 $as_echo_n "checking for $ac_word... " >&6; }
11351 if ${ac_cv_prog_DLLTOOL+:} false; then :
11352 $as_echo_n "(cached) " >&6
11354 if test -n "$DLLTOOL"; then
11355 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in $PATH
11361 test -z "$as_dir" && as_dir=.
11362 for ac_exec_ext in '' $ac_executable_extensions; do
11363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11364 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 DLLTOOL=$ac_cv_prog_DLLTOOL
11375 if test -n "$DLLTOOL"; then
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11377 $as_echo "$DLLTOOL" >&6; }
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11385 if test -z "$ac_cv_prog_DLLTOOL"; then
11386 ac_ct_DLLTOOL=$DLLTOOL
11387 # Extract the first word of "dlltool", so it can be a program name with args.
11388 set dummy dlltool; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11392 $as_echo_n "(cached) " >&6
11394 if test -n "$ac_ct_DLLTOOL"; then
11395 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11415 if test -n "$ac_ct_DLLTOOL"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11417 $as_echo "$ac_ct_DLLTOOL" >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11423 if test "x$ac_ct_DLLTOOL" = x; then
11426 case $cross_compiling:$ac_tool_warned in
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11430 ac_tool_warned=yes ;;
11432 DLLTOOL=$ac_ct_DLLTOOL
11435 DLLTOOL="$ac_cv_prog_DLLTOOL"
11438 if test -n "$ac_tool_prefix"; then
11439 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11440 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if ${ac_cv_prog_OBJDUMP+:} false; then :
11444 $as_echo_n "(cached) " >&6
11446 if test -n "$OBJDUMP"; then
11447 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11453 test -z "$as_dir" && as_dir=.
11454 for ac_exec_ext in '' $ac_executable_extensions; do
11455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11456 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 OBJDUMP=$ac_cv_prog_OBJDUMP
11467 if test -n "$OBJDUMP"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11469 $as_echo "$OBJDUMP" >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11477 if test -z "$ac_cv_prog_OBJDUMP"; then
11478 ac_ct_OBJDUMP=$OBJDUMP
11479 # Extract the first word of "objdump", so it can be a program name with args.
11480 set dummy objdump; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11484 $as_echo_n "(cached) " >&6
11486 if test -n "$ac_ct_OBJDUMP"; then
11487 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11507 if test -n "$ac_ct_OBJDUMP"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11509 $as_echo "$ac_ct_OBJDUMP" >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11515 if test "x$ac_ct_OBJDUMP" = x; then
11518 case $cross_compiling:$ac_tool_warned in
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11522 ac_tool_warned=yes ;;
11524 OBJDUMP=$ac_ct_OBJDUMP
11527 OBJDUMP="$ac_cv_prog_OBJDUMP"
11533 test -z "$AS" && AS=as
11539 test -z "$DLLTOOL" && DLLTOOL=dlltool
11545 test -z "$OBJDUMP" && OBJDUMP=objdump
11557 # Check whether --enable-shared was given.
11558 if test "${enable_shared+set}" = set; then :
11559 enableval=$enable_shared; p=${PACKAGE-default}
11561 yes) enable_shared=yes ;;
11562 no) enable_shared=no ;;
11565 # Look at the argument we got. We use all the common list separators.
11566 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11567 for pkg in $enableval; do
11569 if test "X$pkg" = "X$p"; then
11588 # Check whether --enable-static was given.
11589 if test "${enable_static+set}" = set; then :
11590 enableval=$enable_static; p=${PACKAGE-default}
11592 yes) enable_static=yes ;;
11593 no) enable_static=no ;;
11596 # Look at the argument we got. We use all the common list separators.
11597 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11598 for pkg in $enableval; do
11600 if test "X$pkg" = "X$p"; then
11620 # Check whether --with-pic was given.
11621 if test "${with_pic+set}" = set; then :
11622 withval=$with_pic; lt_p=${PACKAGE-default}
11624 yes|no) pic_mode=$withval ;;
11627 # Look at the argument we got. We use all the common list separators.
11628 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11629 for lt_pkg in $withval; do
11631 if test "X$lt_pkg" = "X$lt_p"; then
11649 # Check whether --enable-fast-install was given.
11650 if test "${enable_fast_install+set}" = set; then :
11651 enableval=$enable_fast_install; p=${PACKAGE-default}
11653 yes) enable_fast_install=yes ;;
11654 no) enable_fast_install=no ;;
11656 enable_fast_install=no
11657 # Look at the argument we got. We use all the common list separators.
11658 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11659 for pkg in $enableval; do
11661 if test "X$pkg" = "X$p"; then
11662 enable_fast_install=yes
11669 enable_fast_install=yes
11679 shared_archive_member_spec=
11680 case $host,$enable_shared in
11681 power*-*-aix[5-9]*,yes)
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11683 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11685 # Check whether --with-aix-soname was given.
11686 if test "${with_aix_soname+set}" = set; then :
11687 withval=$with_aix_soname; case $withval in
11691 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11694 lt_cv_with_aix_soname=$with_aix_soname
11696 if ${lt_cv_with_aix_soname+:} false; then :
11697 $as_echo_n "(cached) " >&6
11699 lt_cv_with_aix_soname=aix
11702 with_aix_soname=$lt_cv_with_aix_soname
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11706 $as_echo "$with_aix_soname" >&6; }
11707 if test aix != "$with_aix_soname"; then
11708 # For the AIX way of multilib, we name the shared archive member
11709 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11710 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11711 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11712 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11713 if test 64 = "${OBJECT_MODE-32}"; then
11714 shared_archive_member_spec=shr_64
11716 shared_archive_member_spec=shr
11721 with_aix_soname=aix
11734 # This can be used to rebuild libtool when needed
11735 LIBTOOL_DEPS=$ltmain
11737 # Always use our own libtool.
11738 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11769 test -z "$LN_S" && LN_S="ln -s"
11784 if test -n "${ZSH_VERSION+set}"; then
11785 setopt NO_GLOB_SUBST
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11789 $as_echo_n "checking for objdir... " >&6; }
11790 if ${lt_cv_objdir+:} false; then :
11791 $as_echo_n "(cached) " >&6
11793 rm -f .libs 2>/dev/null
11794 mkdir .libs 2>/dev/null
11795 if test -d .libs; then
11798 # MS-DOS does not allow filenames that begin with a dot.
11801 rmdir .libs 2>/dev/null
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11804 $as_echo "$lt_cv_objdir" >&6; }
11805 objdir=$lt_cv_objdir
11811 cat >>confdefs.h <<_ACEOF
11812 #define LT_OBJDIR "$lt_cv_objdir/"
11820 # AIX sometimes has problems with the GCC collect2 program. For some
11821 # reason, if we set the COLLECT_NAMES environment variable, the problems
11822 # vanish in a puff of smoke.
11823 if test set != "${COLLECT_NAMES+set}"; then
11825 export COLLECT_NAMES
11830 # Global variables:
11832 can_build_shared=yes
11834 # All known linkers require a '.a' archive for static linking (except MSVC,
11835 # which needs '.lib').
11838 with_gnu_ld=$lt_cv_prog_gnu_ld
11843 # Set sane defaults for various variables
11844 test -z "$CC" && CC=cc
11845 test -z "$LTCC" && LTCC=$CC
11846 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11847 test -z "$LD" && LD=ld
11848 test -z "$ac_objext" && ac_objext=o
11850 func_cc_basename $compiler
11851 cc_basename=$func_cc_basename_result
11854 # Only perform the check for file, if the check method requires it
11855 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11856 case $deplibs_check_method in
11858 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11860 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11861 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11862 $as_echo_n "(cached) " >&6
11866 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11869 lt_save_MAGIC_CMD=$MAGIC_CMD
11870 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11871 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11872 for ac_dir in $ac_dummy; do
11874 test -z "$ac_dir" && ac_dir=.
11875 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11876 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11877 if test -n "$file_magic_test_file"; then
11878 case $deplibs_check_method in
11880 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11881 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11882 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11883 $EGREP "$file_magic_regex" > /dev/null; then
11888 *** Warning: the command libtool uses to detect shared libraries,
11889 *** $file_magic_cmd, produces output that libtool cannot recognize.
11890 *** The result is that libtool may fail to recognize shared libraries
11891 *** as such. This will affect the creation of libtool libraries that
11892 *** depend on shared libraries, but programs linked with such libtool
11893 *** libraries will work regardless of this problem. Nevertheless, you
11894 *** may want to report the problem to your system manager and/or to
11895 *** bug-libtool@gnu.org
11905 MAGIC_CMD=$lt_save_MAGIC_CMD
11910 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11911 if test -n "$MAGIC_CMD"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11913 $as_echo "$MAGIC_CMD" >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11923 if test -z "$lt_cv_path_MAGIC_CMD"; then
11924 if test -n "$ac_tool_prefix"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11926 $as_echo_n "checking for file... " >&6; }
11927 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11928 $as_echo_n "(cached) " >&6
11932 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11935 lt_save_MAGIC_CMD=$MAGIC_CMD
11936 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11937 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11938 for ac_dir in $ac_dummy; do
11940 test -z "$ac_dir" && ac_dir=.
11941 if test -f "$ac_dir/file"; then
11942 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11943 if test -n "$file_magic_test_file"; then
11944 case $deplibs_check_method in
11946 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11947 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11948 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11949 $EGREP "$file_magic_regex" > /dev/null; then
11954 *** Warning: the command libtool uses to detect shared libraries,
11955 *** $file_magic_cmd, produces output that libtool cannot recognize.
11956 *** The result is that libtool may fail to recognize shared libraries
11957 *** as such. This will affect the creation of libtool libraries that
11958 *** depend on shared libraries, but programs linked with such libtool
11959 *** libraries will work regardless of this problem. Nevertheless, you
11960 *** may want to report the problem to your system manager and/or to
11961 *** bug-libtool@gnu.org
11971 MAGIC_CMD=$lt_save_MAGIC_CMD
11976 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11977 if test -n "$MAGIC_CMD"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11979 $as_echo "$MAGIC_CMD" >&6; }
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11995 # Use C for the default configuration in the libtool script
11999 ac_cpp='$CPP $CPPFLAGS'
12000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12005 # Source file extension for C test sources.
12008 # Object file extension for compiled C test sources.
12012 # Code to be used in simple compile tests
12013 lt_simple_compile_test_code="int some_variable = 0;"
12015 # Code to be used in simple link tests
12016 lt_simple_link_test_code='int main(){return(0);}'
12024 # If no C compiler was specified, use CC.
12027 # If no C compiler flags were specified, use CFLAGS.
12028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12030 # Allow CC to be a program name with arguments.
12033 # Save the default compiler, since it gets overwritten when the other
12034 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12035 compiler_DEFAULT=$CC
12037 # save warnings/boilerplate of simple test code
12038 ac_outfile=conftest.$ac_objext
12039 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12040 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12041 _lt_compiler_boilerplate=`cat conftest.err`
12044 ac_outfile=conftest.$ac_objext
12045 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12046 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12047 _lt_linker_boilerplate=`cat conftest.err`
12052 ## There is no encapsulation within the following macros, do not change
12053 ## the running order or otherwise move them around unless you know exactly
12054 ## what you are doing...
12055 if test -n "$compiler"; then
12057 lt_prog_compiler_no_builtin_flag=
12059 if test yes = "$GCC"; then
12060 case $cc_basename in
12062 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12064 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12068 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12069 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12070 $as_echo_n "(cached) " >&6
12072 lt_cv_prog_compiler_rtti_exceptions=no
12073 ac_outfile=conftest.$ac_objext
12074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12075 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12076 # Insert the option either (1) after the last *FLAGS variable, or
12077 # (2) before a word containing "conftest.", or (3) at the end.
12078 # Note that $ac_compile itself does not contain backslashes and begins
12079 # with a dollar sign (not a hyphen), so the echo should work correctly.
12080 # The option is referenced via a variable to avoid confusing sed.
12081 lt_compile=`echo "$ac_compile" | $SED \
12082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12084 -e 's:$: $lt_compiler_flag:'`
12085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12086 (eval "$lt_compile" 2>conftest.err)
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 if (exit $ac_status) && test -s "$ac_outfile"; then
12091 # The compiler can only warn and ignore the option if not recognized
12092 # So say no if there are warnings other than the usual output.
12093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12096 lt_cv_prog_compiler_rtti_exceptions=yes
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12103 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12105 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12106 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12118 lt_prog_compiler_wl=
12119 lt_prog_compiler_pic=
12120 lt_prog_compiler_static=
12123 if test yes = "$GCC"; then
12124 lt_prog_compiler_wl='-Wl,'
12125 lt_prog_compiler_static='-static'
12129 # All AIX code is PIC.
12130 if test ia64 = "$host_cpu"; then
12131 # AIX 5 now supports IA64 processor
12132 lt_prog_compiler_static='-Bstatic'
12134 lt_prog_compiler_pic='-fPIC'
12140 # see comment about AmigaOS4 .so support
12141 lt_prog_compiler_pic='-fPIC'
12144 # FIXME: we need at least 68020 code to build shared libraries, but
12145 # adding the '-m68020' flag to GCC prevents building anything better,
12147 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12152 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12153 # PIC is the default for these OSes.
12156 mingw* | cygwin* | pw32* | os2* | cegcc*)
12157 # This hack is so that the source file can tell whether it is being
12158 # built for inclusion in a dll (and should export symbols for example).
12159 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12160 # (--disable-auto-import) libraries
12161 lt_prog_compiler_pic='-DDLL_EXPORT'
12164 lt_prog_compiler_static='$wl-static'
12169 darwin* | rhapsody*)
12170 # PIC is the default on this platform
12171 # Common symbols not allowed in MH_DYLIB files
12172 lt_prog_compiler_pic='-fno-common'
12176 # PIC is the default for Haiku.
12177 # The "-static" flag exists, but is broken.
12178 lt_prog_compiler_static=
12182 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12183 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12184 # sets the default TLS model and affects inlining.
12190 lt_prog_compiler_pic='-fPIC'
12196 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12197 # Instead, we relocate shared libraries at runtime.
12201 # Just because we use GCC doesn't mean we suddenly get shared libraries
12202 # on systems that don't support them.
12203 lt_prog_compiler_can_build_shared=no
12208 # QNX uses GNU C++, but need to define -shared option too, otherwise
12209 # it will coredump.
12210 lt_prog_compiler_pic='-fPIC -shared'
12214 if test -d /usr/nec; then
12215 lt_prog_compiler_pic=-Kconform_pic
12220 lt_prog_compiler_pic='-fPIC'
12224 case $cc_basename in
12225 nvcc*) # Cuda Compiler Driver 2.2
12226 lt_prog_compiler_wl='-Xlinker '
12227 if test -n "$lt_prog_compiler_pic"; then
12228 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12233 # PORTME Check for flag to pass linker flags through the system compiler.
12236 lt_prog_compiler_wl='-Wl,'
12237 if test ia64 = "$host_cpu"; then
12238 # AIX 5 now supports IA64 processor
12239 lt_prog_compiler_static='-Bstatic'
12241 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12245 darwin* | rhapsody*)
12246 # PIC is the default on this platform
12247 # Common symbols not allowed in MH_DYLIB files
12248 lt_prog_compiler_pic='-fno-common'
12249 case $cc_basename in
12251 # NAG Fortran compiler
12252 lt_prog_compiler_wl='-Wl,-Wl,,'
12253 lt_prog_compiler_pic='-PIC'
12254 lt_prog_compiler_static='-Bstatic'
12259 mingw* | cygwin* | pw32* | os2* | cegcc*)
12260 # This hack is so that the source file can tell whether it is being
12261 # built for inclusion in a dll (and should export symbols for example).
12262 lt_prog_compiler_pic='-DDLL_EXPORT'
12265 lt_prog_compiler_static='$wl-static'
12270 hpux9* | hpux10* | hpux11*)
12271 lt_prog_compiler_wl='-Wl,'
12272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12273 # not for PA HP-UX.
12279 lt_prog_compiler_pic='+Z'
12282 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12283 lt_prog_compiler_static='$wl-a ${wl}archive'
12286 irix5* | irix6* | nonstopux*)
12287 lt_prog_compiler_wl='-Wl,'
12288 # PIC (with -KPIC) is the default.
12289 lt_prog_compiler_static='-non_shared'
12292 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12293 case $cc_basename in
12294 # old Intel for x86_64, which still supported -KPIC.
12296 lt_prog_compiler_wl='-Wl,'
12297 lt_prog_compiler_pic='-KPIC'
12298 lt_prog_compiler_static='-static'
12300 # icc used to be incompatible with GCC.
12301 # ICC 10 doesn't accept -KPIC any more.
12303 lt_prog_compiler_wl='-Wl,'
12304 lt_prog_compiler_pic='-fPIC'
12305 lt_prog_compiler_static='-static'
12307 # Lahey Fortran 8.1.
12309 lt_prog_compiler_wl='-Wl,'
12310 lt_prog_compiler_pic='--shared'
12311 lt_prog_compiler_static='--static'
12314 # NAG Fortran compiler
12315 lt_prog_compiler_wl='-Wl,-Wl,,'
12316 lt_prog_compiler_pic='-PIC'
12317 lt_prog_compiler_static='-Bstatic'
12320 # Fabrice Bellard et al's Tiny C Compiler
12321 lt_prog_compiler_wl='-Wl,'
12322 lt_prog_compiler_pic='-fPIC'
12323 lt_prog_compiler_static='-static'
12325 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12326 # Portland Group compilers (*not* the Pentium gcc compiler,
12327 # which looks to be a dead project)
12328 lt_prog_compiler_wl='-Wl,'
12329 lt_prog_compiler_pic='-fpic'
12330 lt_prog_compiler_static='-Bstatic'
12333 lt_prog_compiler_wl='-Wl,'
12334 # All Alpha code is PIC.
12335 lt_prog_compiler_static='-non_shared'
12337 xl* | bgxl* | bgf* | mpixl*)
12338 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12339 lt_prog_compiler_wl='-Wl,'
12340 lt_prog_compiler_pic='-qpic'
12341 lt_prog_compiler_static='-qstaticlink'
12344 case `$CC -V 2>&1 | sed 5q` in
12345 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12346 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12347 lt_prog_compiler_pic='-KPIC'
12348 lt_prog_compiler_static='-Bstatic'
12349 lt_prog_compiler_wl=''
12351 *Sun\ F* | *Sun*Fortran*)
12352 lt_prog_compiler_pic='-KPIC'
12353 lt_prog_compiler_static='-Bstatic'
12354 lt_prog_compiler_wl='-Qoption ld '
12358 lt_prog_compiler_pic='-KPIC'
12359 lt_prog_compiler_static='-Bstatic'
12360 lt_prog_compiler_wl='-Wl,'
12362 *Intel*\ [CF]*Compiler*)
12363 lt_prog_compiler_wl='-Wl,'
12364 lt_prog_compiler_pic='-fPIC'
12365 lt_prog_compiler_static='-static'
12368 lt_prog_compiler_wl='-Wl,'
12369 lt_prog_compiler_pic='-fpic'
12370 lt_prog_compiler_static='-Bstatic'
12378 lt_prog_compiler_pic='-KPIC'
12379 lt_prog_compiler_static='-Bstatic'
12383 # QNX uses GNU C++, but need to define -shared option too, otherwise
12384 # it will coredump.
12385 lt_prog_compiler_pic='-fPIC -shared'
12388 osf3* | osf4* | osf5*)
12389 lt_prog_compiler_wl='-Wl,'
12390 # All OSF/1 code is PIC.
12391 lt_prog_compiler_static='-non_shared'
12395 lt_prog_compiler_static='-non_shared'
12399 lt_prog_compiler_pic='-KPIC'
12400 lt_prog_compiler_static='-Bstatic'
12401 case $cc_basename in
12402 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12403 lt_prog_compiler_wl='-Qoption ld ';;
12405 lt_prog_compiler_wl='-Wl,';;
12410 lt_prog_compiler_wl='-Qoption ld '
12411 lt_prog_compiler_pic='-PIC'
12412 lt_prog_compiler_static='-Bstatic'
12415 sysv4 | sysv4.2uw2* | sysv4.3*)
12416 lt_prog_compiler_wl='-Wl,'
12417 lt_prog_compiler_pic='-KPIC'
12418 lt_prog_compiler_static='-Bstatic'
12422 if test -d /usr/nec; then
12423 lt_prog_compiler_pic='-Kconform_pic'
12424 lt_prog_compiler_static='-Bstatic'
12428 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12429 lt_prog_compiler_wl='-Wl,'
12430 lt_prog_compiler_pic='-KPIC'
12431 lt_prog_compiler_static='-Bstatic'
12435 lt_prog_compiler_wl='-Wl,'
12436 lt_prog_compiler_can_build_shared=no
12440 lt_prog_compiler_pic='-pic'
12441 lt_prog_compiler_static='-Bstatic'
12445 lt_prog_compiler_can_build_shared=no
12451 # For platforms that do not support PIC, -DPIC is meaningless:
12453 lt_prog_compiler_pic=
12456 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12461 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12462 if ${lt_cv_prog_compiler_pic+:} false; then :
12463 $as_echo_n "(cached) " >&6
12465 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12468 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12469 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12472 # Check to make sure the PIC flag actually works.
12474 if test -n "$lt_prog_compiler_pic"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12476 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12477 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12478 $as_echo_n "(cached) " >&6
12480 lt_cv_prog_compiler_pic_works=no
12481 ac_outfile=conftest.$ac_objext
12482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12483 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12484 # Insert the option either (1) after the last *FLAGS variable, or
12485 # (2) before a word containing "conftest.", or (3) at the end.
12486 # Note that $ac_compile itself does not contain backslashes and begins
12487 # with a dollar sign (not a hyphen), so the echo should work correctly.
12488 # The option is referenced via a variable to avoid confusing sed.
12489 lt_compile=`echo "$ac_compile" | $SED \
12490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12492 -e 's:$: $lt_compiler_flag:'`
12493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12494 (eval "$lt_compile" 2>conftest.err)
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 if (exit $ac_status) && test -s "$ac_outfile"; then
12499 # The compiler can only warn and ignore the option if not recognized
12500 # So say no if there are warnings other than the usual output.
12501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12504 lt_cv_prog_compiler_pic_works=yes
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12511 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12513 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12514 case $lt_prog_compiler_pic in
12516 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12519 lt_prog_compiler_pic=
12520 lt_prog_compiler_can_build_shared=no
12536 # Check to make sure the static flag actually works.
12538 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12540 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12541 if ${lt_cv_prog_compiler_static_works+:} false; then :
12542 $as_echo_n "(cached) " >&6
12544 lt_cv_prog_compiler_static_works=no
12545 save_LDFLAGS=$LDFLAGS
12546 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12547 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12548 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12549 # The linker can only warn and ignore the option if not recognized
12550 # So say no if there are warnings
12551 if test -s conftest.err; then
12552 # Append any errors to the config.log.
12553 cat conftest.err 1>&5
12554 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12556 if diff conftest.exp conftest.er2 >/dev/null; then
12557 lt_cv_prog_compiler_static_works=yes
12560 lt_cv_prog_compiler_static_works=yes
12564 LDFLAGS=$save_LDFLAGS
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12568 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12570 if test yes = "$lt_cv_prog_compiler_static_works"; then
12573 lt_prog_compiler_static=
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12583 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12584 if ${lt_cv_prog_compiler_c_o+:} false; then :
12585 $as_echo_n "(cached) " >&6
12587 lt_cv_prog_compiler_c_o=no
12588 $RM -r conftest 2>/dev/null
12592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12594 lt_compiler_flag="-o out/conftest2.$ac_objext"
12595 # Insert the option either (1) after the last *FLAGS variable, or
12596 # (2) before a word containing "conftest.", or (3) at the end.
12597 # Note that $ac_compile itself does not contain backslashes and begins
12598 # with a dollar sign (not a hyphen), so the echo should work correctly.
12599 lt_compile=`echo "$ac_compile" | $SED \
12600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12602 -e 's:$: $lt_compiler_flag:'`
12603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12604 (eval "$lt_compile" 2>out/conftest.err)
12606 cat out/conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12610 # The compiler can only warn and ignore the option if not recognized
12611 # So say no if there are warnings
12612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12615 lt_cv_prog_compiler_c_o=yes
12620 # SGI C++ compiler will create directory out/ii_files/ for
12621 # template instantiation
12622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12623 $RM out/* && rmdir out
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12630 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12639 if ${lt_cv_prog_compiler_c_o+:} false; then :
12640 $as_echo_n "(cached) " >&6
12642 lt_cv_prog_compiler_c_o=no
12643 $RM -r conftest 2>/dev/null
12647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12649 lt_compiler_flag="-o out/conftest2.$ac_objext"
12650 # Insert the option either (1) after the last *FLAGS variable, or
12651 # (2) before a word containing "conftest.", or (3) at the end.
12652 # Note that $ac_compile itself does not contain backslashes and begins
12653 # with a dollar sign (not a hyphen), so the echo should work correctly.
12654 lt_compile=`echo "$ac_compile" | $SED \
12655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12657 -e 's:$: $lt_compiler_flag:'`
12658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12659 (eval "$lt_compile" 2>out/conftest.err)
12661 cat out/conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12665 # The compiler can only warn and ignore the option if not recognized
12666 # So say no if there are warnings
12667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12668 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12669 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12670 lt_cv_prog_compiler_c_o=yes
12675 # SGI C++ compiler will create directory out/ii_files/ for
12676 # template instantiation
12677 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12678 $RM out/* && rmdir out
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12685 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12690 hard_links=nottested
12691 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12692 # do not overwrite the value of need_locks provided by the user
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12694 $as_echo_n "checking if we can lock with hard links... " >&6; }
12697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12699 ln conftest.a conftest.b 2>&5 || hard_links=no
12700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12702 $as_echo "$hard_links" >&6; }
12703 if test no = "$hard_links"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12705 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12718 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12721 allow_undefined_flag=
12722 always_export_symbols=no
12724 archive_expsym_cmds=
12725 compiler_needs_object=no
12726 enable_shared_with_static_runtimes=no
12727 export_dynamic_flag_spec=
12728 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12729 hardcode_automatic=no
12731 hardcode_direct_absolute=no
12732 hardcode_libdir_flag_spec=
12733 hardcode_libdir_separator=
12734 hardcode_minus_L=no
12735 hardcode_shlibpath_var=unsupported
12737 link_all_deplibs=unknown
12739 module_expsym_cmds=
12740 old_archive_from_new_cmds=
12741 old_archive_from_expsyms_cmds=
12742 thread_safe_flag_spec=
12743 whole_archive_flag_spec=
12744 # include_expsyms should be a list of space-separated symbols to be *always*
12745 # included in the symbol list
12747 # exclude_expsyms can be an extended regexp of symbols to exclude
12748 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12749 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12750 # as well as any symbol that contains 'd'.
12751 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12752 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12753 # platforms (ab)use it in PIC code, but their linkers get confused if
12754 # the symbol is explicitly referenced. Since portable code cannot
12755 # rely on this symbol name, it's probably fine to never include it in
12756 # preloaded symbol tables.
12757 # Exclude shared library initialization/finalization symbols.
12758 extract_expsyms_cmds=
12761 cygwin* | mingw* | pw32* | cegcc*)
12762 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12763 # When not using gcc, we currently assume that we are using
12764 # Microsoft Visual C++.
12765 if test yes != "$GCC"; then
12770 # we just hope/assume this is gcc and not c89 (= MSVC++)
12773 openbsd* | bitrig*)
12776 linux* | k*bsd*-gnu | gnu*)
12777 link_all_deplibs=no
12783 # On some targets, GNU ld is compatible enough with the native linker
12784 # that we're better off using the native interface for both.
12785 lt_use_gnu_ld_interface=no
12786 if test yes = "$with_gnu_ld"; then
12789 # The AIX port of GNU ld has always aspired to compatibility
12790 # with the native linker. However, as the warning in the GNU ld
12791 # block says, versions before 2.19.5* couldn't really create working
12792 # shared libraries, regardless of the interface used.
12793 case `$LD -v 2>&1` in
12794 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12795 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12796 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12798 lt_use_gnu_ld_interface=yes
12803 lt_use_gnu_ld_interface=yes
12808 if test yes = "$lt_use_gnu_ld_interface"; then
12809 # If archive_cmds runs LD, not CC, wlarc should be empty
12812 # Set some defaults for GNU ld with shared library support. These
12813 # are reset later if shared libraries are not supported. Putting them
12814 # here allows them to be overridden if necessary.
12815 runpath_var=LD_RUN_PATH
12816 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12817 export_dynamic_flag_spec='$wl--export-dynamic'
12818 # ancient GNU ld didn't support --whole-archive et. al.
12819 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12820 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12822 whole_archive_flag_spec=
12824 supports_anon_versioning=no
12825 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12826 *GNU\ gold*) supports_anon_versioning=yes ;;
12827 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12828 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12829 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12830 *\ 2.11.*) ;; # other 2.11 versions
12831 *) supports_anon_versioning=yes ;;
12834 # See if GNU ld supports shared libraries.
12837 # On AIX/PPC, the GNU linker is very broken
12838 if test ia64 != "$host_cpu"; then
12842 *** Warning: the GNU linker, at least up to release 2.19, is reported
12843 *** to be unable to reliably create shared libraries on AIX.
12844 *** Therefore, libtool is disabling shared libraries support. If you
12845 *** really care for shared libraries, you may want to install binutils
12846 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12847 *** You will then need to restart the configuration process.
12856 # see comment about AmigaOS4 .so support
12857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12858 archive_expsym_cmds=''
12861 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)'
12862 hardcode_libdir_flag_spec='-L$libdir'
12863 hardcode_minus_L=yes
12869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12870 allow_undefined_flag=unsupported
12871 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12872 # support --undefined. This deserves some investigation. FIXME
12873 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12879 cygwin* | mingw* | pw32* | cegcc*)
12880 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12881 # as there is no search path for DLLs.
12882 hardcode_libdir_flag_spec='-L$libdir'
12883 export_dynamic_flag_spec='$wl--export-all-symbols'
12884 allow_undefined_flag=unsupported
12885 always_export_symbols=no
12886 enable_shared_with_static_runtimes=yes
12887 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'
12888 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12890 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12892 # If the export-symbols file already is a .def file, use it as
12893 # is; otherwise, prepend EXPORTS...
12894 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12895 cp $export_symbols $output_objdir/$soname.def;
12897 echo EXPORTS > $output_objdir/$soname.def;
12898 cat $export_symbols >> $output_objdir/$soname.def;
12900 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12908 link_all_deplibs=yes
12912 hardcode_libdir_flag_spec='-L$libdir'
12913 hardcode_minus_L=yes
12914 allow_undefined_flag=unsupported
12916 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12917 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12918 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12919 $ECHO EXPORTS >> $output_objdir/$libname.def~
12920 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12921 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12922 emximp -o $lib $output_objdir/$libname.def'
12923 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12924 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12925 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12926 $ECHO EXPORTS >> $output_objdir/$libname.def~
12927 prefix_cmds="$SED"~
12928 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12929 prefix_cmds="$prefix_cmds -e 1d";
12931 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12932 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12933 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12934 emximp -o $lib $output_objdir/$libname.def'
12935 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12936 enable_shared_with_static_runtimes=yes
12941 hardcode_shlibpath_var=no
12942 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12943 export_dynamic_flag_spec='$wl-E'
12944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12945 # Instead, shared libraries are loaded at an image base (0x10000000 by
12946 # default) and relocated if they conflict, which is a slow very memory
12947 # consuming and fragmenting process. To avoid this, we pick a random,
12948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12950 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12951 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'
12954 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12956 if test linux-dietlibc = "$host_os"; then
12957 case $cc_basename in
12958 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12961 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12962 && test no = "$tmp_diet"
12964 tmp_addflag=' $pic_flag'
12965 tmp_sharedflag='-shared'
12966 case $cc_basename,$host_cpu in
12967 pgcc*) # Portland Group C compiler
12968 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'
12969 tmp_addflag=' $pic_flag'
12971 pgf77* | pgf90* | pgf95* | pgfortran*)
12972 # Portland Group f77 and f90 compilers
12973 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'
12974 tmp_addflag=' $pic_flag -Mnomain' ;;
12975 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12976 tmp_addflag=' -i_dynamic' ;;
12977 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12978 tmp_addflag=' -i_dynamic -nofor_main' ;;
12979 ifc* | ifort*) # Intel Fortran compiler
12980 tmp_addflag=' -nofor_main' ;;
12981 lf95*) # Lahey Fortran 8.1
12982 whole_archive_flag_spec=
12983 tmp_sharedflag='--shared' ;;
12984 nagfor*) # NAGFOR 5.3
12985 tmp_sharedflag='-Wl,-shared' ;;
12986 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12987 tmp_sharedflag='-qmkshrobj'
12989 nvcc*) # Cuda Compiler Driver 2.2
12990 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'
12991 compiler_needs_object=yes
12994 case `$CC -V 2>&1 | sed 5q` in
12995 *Sun\ C*) # Sun C 5.9
12996 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'
12997 compiler_needs_object=yes
12998 tmp_sharedflag='-G' ;;
12999 *Sun\ F*) # Sun Fortran 8.3
13000 tmp_sharedflag='-G' ;;
13002 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13004 if test yes = "$supports_anon_versioning"; then
13005 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13007 echo "local: *; };" >> $output_objdir/$libname.ver~
13008 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13011 case $cc_basename in
13013 export_dynamic_flag_spec='-rdynamic'
13015 xlf* | bgf* | bgxlf* | mpixlf*)
13016 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13017 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13018 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13019 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13020 if test yes = "$supports_anon_versioning"; then
13021 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13022 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13023 echo "local: *; };" >> $output_objdir/$libname.ver~
13024 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13033 netbsd* | netbsdelf*-gnu)
13034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13035 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13039 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13044 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13048 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13049 *** create shared libraries on Solaris systems. Therefore, libtool
13050 *** is disabling shared libraries support. We urge you to upgrade GNU
13051 *** binutils to release 2.9.1 or newer. Another option is to modify
13052 *** your PATH or compiler configuration so that the native linker is
13053 *** used, and then restart.
13056 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13057 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13058 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13065 case `$LD -v 2>&1` in
13066 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13070 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13071 *** reliably create shared libraries on SCO systems. Therefore, libtool
13072 *** is disabling shared libraries support. We urge you to upgrade GNU
13073 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13074 *** your PATH or compiler configuration so that the native linker is
13075 *** used, and then restart.
13080 # For security reasons, it is highly recommended that you always
13081 # use absolute paths for naming shared libraries, and exclude the
13082 # DT_RUNPATH tag from executables and libraries. But doing so
13083 # requires that you compile everything twice, which is a pain.
13084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13085 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13096 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13098 hardcode_direct=yes
13099 hardcode_shlibpath_var=no
13103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13105 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13112 if test no = "$ld_shlibs"; then
13114 hardcode_libdir_flag_spec=
13115 export_dynamic_flag_spec=
13116 whole_archive_flag_spec=
13119 # PORTME fill in a description of your system's linker (not GNU ld)
13122 allow_undefined_flag=unsupported
13123 always_export_symbols=yes
13124 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'
13125 # Note: this linker hardcodes the directories in LIBPATH if there
13126 # are no directories specified by -L.
13127 hardcode_minus_L=yes
13128 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13129 # Neither direct hardcoding nor static linking is supported with a
13131 hardcode_direct=unsupported
13136 if test ia64 = "$host_cpu"; then
13137 # On IA64, the linker does run time linking by default, so we don't
13138 # have to do anything special.
13139 aix_use_runtimelinking=no
13140 exp_sym_flag='-Bexport'
13143 # If we're using GNU nm, then we don't want the "-C" option.
13144 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13145 # Without the "-l" option, or with the "-B" option, AIX nm treats
13146 # weak defined symbols like other global defined symbols, whereas
13147 # GNU nm marks them as "W".
13148 # While the 'weak' keyword is ignored in the Export File, we need
13149 # it in the Import File for the 'aix-soname' feature, so we have
13150 # to replace the "-B" option with "-P" for AIX nm.
13151 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13152 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'
13154 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'
13156 aix_use_runtimelinking=no
13158 # Test if we are trying to use run time linking or normal
13159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13160 # have runtime linking enabled, and use it for executables.
13161 # For shared libraries, we enable/disable runtime linking
13162 # depending on the kind of the shared library created -
13163 # when "with_aix_soname,aix_use_runtimelinking" is:
13164 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13165 # "aix,yes" lib.so shared, rtl:yes, for executables
13166 # lib.a static archive
13167 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13168 # lib.a(lib.so.V) shared, rtl:no, for executables
13169 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13170 # lib.a(lib.so.V) shared, rtl:no
13171 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13172 # lib.a static archive
13173 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13174 for ld_flag in $LDFLAGS; do
13175 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13176 aix_use_runtimelinking=yes
13180 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13181 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13182 # so we don't have lib.a shared libs to link our executables.
13183 # We have to force runtime linking in this case.
13184 aix_use_runtimelinking=yes
13185 LDFLAGS="$LDFLAGS -Wl,-brtl"
13190 exp_sym_flag='-bexport'
13191 no_entry_flag='-bnoentry'
13194 # When large executables or shared objects are built, AIX ld can
13195 # have problems creating the table of contents. If linking a library
13196 # or program results in "error TOC overflow" add -mminimal-toc to
13197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13201 hardcode_direct=yes
13202 hardcode_direct_absolute=yes
13203 hardcode_libdir_separator=':'
13204 link_all_deplibs=yes
13205 file_list_spec='$wl-f,'
13206 case $with_aix_soname,$aix_use_runtimelinking in
13207 aix,*) ;; # traditional, no import file
13208 svr4,* | *,yes) # use import file
13209 # The Import File defines what to hardcode.
13211 hardcode_direct_absolute=no
13215 if test yes = "$GCC"; then
13216 case $host_os in aix4.[012]|aix4.[012].*)
13217 # We only want to do this on AIX 4.2 and lower, the check
13218 # below for broken collect2 doesn't work under 4.3+
13219 collect2name=`$CC -print-prog-name=collect2`
13220 if test -f "$collect2name" &&
13221 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13223 # We have reworked collect2
13226 # We have old collect2
13227 hardcode_direct=unsupported
13228 # It fails to find uninstalled libraries when the uninstalled
13229 # path is not listed in the libpath. Setting hardcode_minus_L
13230 # to unsupported forces relinking
13231 hardcode_minus_L=yes
13232 hardcode_libdir_flag_spec='-L$libdir'
13233 hardcode_libdir_separator=
13237 shared_flag='-shared'
13238 if test yes = "$aix_use_runtimelinking"; then
13239 shared_flag="$shared_flag "'$wl-G'
13241 # Need to ensure runtime linking is disabled for the traditional
13242 # shared library, or the linker may eventually find shared libraries
13243 # /with/ Import File - we do not want to mix them.
13244 shared_flag_aix='-shared'
13245 shared_flag_svr4='-shared $wl-G'
13248 if test ia64 = "$host_cpu"; then
13249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13250 # chokes on -Wl,-G. The following line is correct:
13253 if test yes = "$aix_use_runtimelinking"; then
13254 shared_flag='$wl-G'
13256 shared_flag='$wl-bM:SRE'
13258 shared_flag_aix='$wl-bM:SRE'
13259 shared_flag_svr4='$wl-G'
13263 export_dynamic_flag_spec='$wl-bexpall'
13264 # It seems that -bexpall does not export symbols beginning with
13265 # underscore (_), so it is better to generate a list of symbols to export.
13266 always_export_symbols=yes
13267 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13268 # Warning - without using the other runtime loading flags (-brtl),
13269 # -berok will link without error, but may produce a broken library.
13270 allow_undefined_flag='-berok'
13271 # Determine the default libpath from the value encoded in an
13272 # empty executable.
13273 if test set = "${lt_cv_aix_libpath+set}"; then
13274 aix_libpath=$lt_cv_aix_libpath
13276 if ${lt_cv_aix_libpath_+:} false; then :
13277 $as_echo_n "(cached) " >&6
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h. */
13289 if ac_fn_c_try_link "$LINENO"; then :
13291 lt_aix_libpath_sed='
13292 /Import File Strings/,/^$/ {
13294 s/^0 *\([^ ]*\) *$/\1/
13298 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13299 # Check for a 64-bit object if we didn't find anything.
13300 if test -z "$lt_cv_aix_libpath_"; then
13301 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13304 rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext conftest.$ac_ext
13306 if test -z "$lt_cv_aix_libpath_"; then
13307 lt_cv_aix_libpath_=/usr/lib:/lib
13312 aix_libpath=$lt_cv_aix_libpath_
13315 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13316 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
13318 if test ia64 = "$host_cpu"; then
13319 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13320 allow_undefined_flag="-z nodefs"
13321 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"
13323 # Determine the default libpath from the value encoded in an
13324 # empty executable.
13325 if test set = "${lt_cv_aix_libpath+set}"; then
13326 aix_libpath=$lt_cv_aix_libpath
13328 if ${lt_cv_aix_libpath_+:} false; then :
13329 $as_echo_n "(cached) " >&6
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13341 if ac_fn_c_try_link "$LINENO"; then :
13343 lt_aix_libpath_sed='
13344 /Import File Strings/,/^$/ {
13346 s/^0 *\([^ ]*\) *$/\1/
13350 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13351 # Check for a 64-bit object if we didn't find anything.
13352 if test -z "$lt_cv_aix_libpath_"; then
13353 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 if test -z "$lt_cv_aix_libpath_"; then
13359 lt_cv_aix_libpath_=/usr/lib:/lib
13364 aix_libpath=$lt_cv_aix_libpath_
13367 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13368 # Warning - without using the other run time loading flags,
13369 # -berok will link without error, but may produce a broken library.
13370 no_undefined_flag=' $wl-bernotok'
13371 allow_undefined_flag=' $wl-berok'
13372 if test yes = "$with_gnu_ld"; then
13373 # We only use this code for GNU lds that support --whole-archive.
13374 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13376 # Exported symbols can be pulled into shared objects from archives
13377 whole_archive_flag_spec='$convenience'
13379 archive_cmds_need_lc=yes
13380 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13381 # -brtl affects multiple linker settings, -berok does not and is overridden later
13382 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13383 if test svr4 != "$with_aix_soname"; then
13384 # This is similar to how AIX traditionally builds its shared libraries.
13385 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'
13387 if test aix != "$with_aix_soname"; then
13388 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'
13390 # used by -dlpreopen to get the symbols
13391 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13393 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13401 # see comment about AmigaOS4 .so support
13402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13403 archive_expsym_cmds=''
13406 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)'
13407 hardcode_libdir_flag_spec='-L$libdir'
13408 hardcode_minus_L=yes
13414 export_dynamic_flag_spec=-rdynamic
13417 cygwin* | mingw* | pw32* | cegcc*)
13418 # When not using gcc, we currently assume that we are using
13419 # Microsoft Visual C++.
13420 # hardcode_libdir_flag_spec is actually meaningless, as there is
13421 # no search path for DLLs.
13422 case $cc_basename in
13425 hardcode_libdir_flag_spec=' '
13426 allow_undefined_flag=unsupported
13427 always_export_symbols=yes
13429 # Tell ltmain to make .lib files, not .a files.
13431 # Tell ltmain to make .dll files, not .so files.
13433 # FIXME: Setting linknames here is a bad hack.
13434 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13435 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13436 cp "$export_symbols" "$output_objdir/$soname.def";
13437 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13439 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13441 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13443 # The linker will not automatically build a static lib if we build a DLL.
13444 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13445 enable_shared_with_static_runtimes=yes
13446 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13449 old_postinstall_cmds='chmod 644 $oldlib'
13450 postlink_cmds='lt_outputfile="@OUTPUT@"~
13451 lt_tool_outputfile="@TOOL_OUTPUT@"~
13452 case $lt_outputfile in
13455 lt_outputfile=$lt_outputfile.exe
13456 lt_tool_outputfile=$lt_tool_outputfile.exe
13459 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13460 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13461 $RM "$lt_outputfile.manifest";
13465 # Assume MSVC wrapper
13466 hardcode_libdir_flag_spec=' '
13467 allow_undefined_flag=unsupported
13468 # Tell ltmain to make .lib files, not .a files.
13470 # Tell ltmain to make .dll files, not .so files.
13472 # FIXME: Setting linknames here is a bad hack.
13473 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13474 # The linker will automatically build a .lib file if we build a DLL.
13475 old_archive_from_new_cmds='true'
13476 # FIXME: Should let the user specify the lib program.
13477 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13478 enable_shared_with_static_runtimes=yes
13483 darwin* | rhapsody*)
13486 archive_cmds_need_lc=no
13488 hardcode_automatic=yes
13489 hardcode_shlibpath_var=unsupported
13490 if test yes = "$lt_cv_ld_force_load"; then
13491 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\"`'
13494 whole_archive_flag_spec=''
13496 link_all_deplibs=yes
13497 allow_undefined_flag=$_lt_dar_allow_undefined
13498 case $cc_basename in
13499 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13500 *) _lt_dar_can_shared=$GCC ;;
13502 if test yes = "$_lt_dar_can_shared"; then
13503 output_verbose_link_cmd=func_echo_all
13504 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13505 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13506 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"
13507 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"
13516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13517 hardcode_libdir_flag_spec='-L$libdir'
13518 hardcode_shlibpath_var=no
13521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13522 # support. Future versions do this automatically, but an explicit c++rt0.o
13523 # does not break anything, and helps significantly (at the cost of a little
13526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13527 hardcode_libdir_flag_spec='-R$libdir'
13528 hardcode_direct=yes
13529 hardcode_shlibpath_var=no
13532 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13535 hardcode_direct=yes
13536 hardcode_minus_L=yes
13537 hardcode_shlibpath_var=no
13540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13541 freebsd* | dragonfly*)
13542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13543 hardcode_libdir_flag_spec='-R$libdir'
13544 hardcode_direct=yes
13545 hardcode_shlibpath_var=no
13549 if test yes = "$GCC"; then
13550 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'
13552 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'
13554 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13555 hardcode_libdir_separator=:
13556 hardcode_direct=yes
13558 # hardcode_minus_L: Not really in the search PATH,
13559 # but as the default location of the library.
13560 hardcode_minus_L=yes
13561 export_dynamic_flag_spec='$wl-E'
13565 if test yes,no = "$GCC,$with_gnu_ld"; then
13566 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13568 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13570 if test no = "$with_gnu_ld"; then
13571 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13572 hardcode_libdir_separator=:
13573 hardcode_direct=yes
13574 hardcode_direct_absolute=yes
13575 export_dynamic_flag_spec='$wl-E'
13576 # hardcode_minus_L: Not really in the search PATH,
13577 # but as the default location of the library.
13578 hardcode_minus_L=yes
13583 if test yes,no = "$GCC,$with_gnu_ld"; then
13586 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13592 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13598 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13601 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13605 # Older versions of the 11.00 compiler do not understand -b yet
13606 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13608 $as_echo_n "checking if $CC understands -b... " >&6; }
13609 if ${lt_cv_prog_compiler__b+:} false; then :
13610 $as_echo_n "(cached) " >&6
13612 lt_cv_prog_compiler__b=no
13613 save_LDFLAGS=$LDFLAGS
13614 LDFLAGS="$LDFLAGS -b"
13615 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13616 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13617 # The linker can only warn and ignore the option if not recognized
13618 # So say no if there are warnings
13619 if test -s conftest.err; then
13620 # Append any errors to the config.log.
13621 cat conftest.err 1>&5
13622 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13624 if diff conftest.exp conftest.er2 >/dev/null; then
13625 lt_cv_prog_compiler__b=yes
13628 lt_cv_prog_compiler__b=yes
13632 LDFLAGS=$save_LDFLAGS
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13636 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13638 if test yes = "$lt_cv_prog_compiler__b"; then
13639 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13641 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13647 if test no = "$with_gnu_ld"; then
13648 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13649 hardcode_libdir_separator=:
13654 hardcode_shlibpath_var=no
13657 hardcode_direct=yes
13658 hardcode_direct_absolute=yes
13659 export_dynamic_flag_spec='$wl-E'
13661 # hardcode_minus_L: Not really in the search PATH,
13662 # but as the default location of the library.
13663 hardcode_minus_L=yes
13669 irix5* | irix6* | nonstopux*)
13670 if test yes = "$GCC"; then
13671 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'
13672 # Try to use the -exported_symbol ld option, if it does not
13673 # work, assume that -exports_file does not work either and
13674 # implicitly export all symbols.
13675 # This should be the same for all languages, so no per-tag cache variable.
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13677 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13678 if ${lt_cv_irix_exported_symbol+:} false; then :
13679 $as_echo_n "(cached) " >&6
13681 save_LDFLAGS=$LDFLAGS
13682 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 int foo (void) { return 0; }
13687 if ac_fn_c_try_link "$LINENO"; then :
13688 lt_cv_irix_exported_symbol=yes
13690 lt_cv_irix_exported_symbol=no
13692 rm -f core conftest.err conftest.$ac_objext \
13693 conftest$ac_exeext conftest.$ac_ext
13694 LDFLAGS=$save_LDFLAGS
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13697 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13698 if test yes = "$lt_cv_irix_exported_symbol"; then
13699 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'
13701 link_all_deplibs=no
13703 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'
13704 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'
13706 archive_cmds_need_lc='no'
13707 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13708 hardcode_libdir_separator=:
13710 link_all_deplibs=yes
13714 case $cc_basename in
13716 # Fabrice Bellard et al's Tiny C Compiler
13718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13723 netbsd* | netbsdelf*-gnu)
13724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13727 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13729 hardcode_libdir_flag_spec='-R$libdir'
13730 hardcode_direct=yes
13731 hardcode_shlibpath_var=no
13735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13736 hardcode_direct=yes
13737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13738 hardcode_libdir_separator=:
13739 hardcode_shlibpath_var=no
13745 openbsd* | bitrig*)
13746 if test -f /usr/libexec/ld.so; then
13747 hardcode_direct=yes
13748 hardcode_shlibpath_var=no
13749 hardcode_direct_absolute=yes
13750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13751 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13752 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13753 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13754 export_dynamic_flag_spec='$wl-E'
13756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13757 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13765 hardcode_libdir_flag_spec='-L$libdir'
13766 hardcode_minus_L=yes
13767 allow_undefined_flag=unsupported
13769 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13770 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13771 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13772 $ECHO EXPORTS >> $output_objdir/$libname.def~
13773 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13774 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13775 emximp -o $lib $output_objdir/$libname.def'
13776 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13777 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13778 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13779 $ECHO EXPORTS >> $output_objdir/$libname.def~
13780 prefix_cmds="$SED"~
13781 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13782 prefix_cmds="$prefix_cmds -e 1d";
13784 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13785 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13786 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13787 emximp -o $lib $output_objdir/$libname.def'
13788 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13789 enable_shared_with_static_runtimes=yes
13793 if test yes = "$GCC"; then
13794 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13795 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'
13797 allow_undefined_flag=' -expect_unresolved \*'
13798 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'
13800 archive_cmds_need_lc='no'
13801 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13802 hardcode_libdir_separator=:
13805 osf4* | osf5*) # as osf3* with the addition of -msym flag
13806 if test yes = "$GCC"; then
13807 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13808 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'
13809 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13811 allow_undefined_flag=' -expect_unresolved \*'
13812 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'
13813 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~
13814 $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'
13816 # Both c and cxx compiler support -rpath directly
13817 hardcode_libdir_flag_spec='-rpath $libdir'
13819 archive_cmds_need_lc='no'
13820 hardcode_libdir_separator=:
13824 no_undefined_flag=' -z defs'
13825 if test yes = "$GCC"; then
13827 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13829 $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'
13831 case `$CC -V 2>&1` in
13834 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13836 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13840 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13842 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13846 hardcode_libdir_flag_spec='-R$libdir'
13847 hardcode_shlibpath_var=no
13849 solaris2.[0-5] | solaris2.[0-5].*) ;;
13851 # The compiler driver will combine and reorder linker options,
13852 # but understands '-z linker_flag'. GCC discards it without '$wl',
13853 # but is careful enough not to reorder.
13854 # Supported since Solaris 2.6 (maybe 2.5.1?)
13855 if test yes = "$GCC"; then
13856 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13858 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13862 link_all_deplibs=yes
13866 if test sequent = "$host_vendor"; then
13867 # Use $CC to link under sequent, because it throws in some extra .o
13868 # files that make .init and .fini sections work.
13869 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13871 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13873 hardcode_libdir_flag_spec='-L$libdir'
13874 hardcode_direct=yes
13875 hardcode_minus_L=yes
13876 hardcode_shlibpath_var=no
13880 case $host_vendor in
13882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13883 hardcode_direct=yes # is this really true???
13886 ## LD is ld it makes a PLAMLIB
13887 ## CC just makes a GrossModule.
13888 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13889 reload_cmds='$CC -r -o $output$reload_objs'
13893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13897 runpath_var='LD_RUN_PATH'
13898 hardcode_shlibpath_var=no
13902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13903 hardcode_shlibpath_var=no
13904 export_dynamic_flag_spec='-Bexport'
13908 if test -d /usr/nec; then
13909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13910 hardcode_shlibpath_var=no
13911 runpath_var=LD_RUN_PATH
13912 hardcode_runpath_var=yes
13917 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13918 no_undefined_flag='$wl-z,text'
13919 archive_cmds_need_lc=no
13920 hardcode_shlibpath_var=no
13921 runpath_var='LD_RUN_PATH'
13923 if test yes = "$GCC"; then
13924 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13925 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13928 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13932 sysv5* | sco3.2v5* | sco5v6*)
13933 # Note: We CANNOT use -z defs as we might desire, because we do not
13934 # link with -lc, and that would cause any symbols used from libc to
13935 # always be unresolved, which means just about no library would
13936 # ever link correctly. If we're not using GNU ld we use -z text
13937 # though, which does catch some bad symbols but isn't as heavy-handed
13939 no_undefined_flag='$wl-z,text'
13940 allow_undefined_flag='$wl-z,nodefs'
13941 archive_cmds_need_lc=no
13942 hardcode_shlibpath_var=no
13943 hardcode_libdir_flag_spec='$wl-R,$libdir'
13944 hardcode_libdir_separator=':'
13945 link_all_deplibs=yes
13946 export_dynamic_flag_spec='$wl-Bexport'
13947 runpath_var='LD_RUN_PATH'
13949 if test yes = "$GCC"; then
13950 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13953 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13954 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13960 hardcode_libdir_flag_spec='-L$libdir'
13961 hardcode_shlibpath_var=no
13969 if test sni = "$host_vendor"; then
13971 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13972 export_dynamic_flag_spec='$wl-Blargedynsym'
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13979 $as_echo "$ld_shlibs" >&6; }
13980 test no = "$ld_shlibs" && can_build_shared=no
13982 with_gnu_ld=$with_gnu_ld
13999 # Do we need to explicitly link libc?
14001 case "x$archive_cmds_need_lc" in
14003 # Assume -lc should be added
14004 archive_cmds_need_lc=yes
14006 if test yes,yes = "$GCC,$enable_shared"; then
14007 case $archive_cmds in
14009 # FIXME: we may have to deal with multi-command sequences.
14012 # Test whether the compiler implicitly links with -lc since on some
14013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14014 # to ld, don't add -lc before -lgcc.
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14016 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14017 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14018 $as_echo_n "(cached) " >&6
14021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14024 (eval $ac_compile) 2>&5
14026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14027 test $ac_status = 0; } 2>conftest.err; then
14030 libobjs=conftest.$ac_objext
14032 wl=$lt_prog_compiler_wl
14033 pic_flag=$lt_prog_compiler_pic
14039 lt_save_allow_undefined_flag=$allow_undefined_flag
14040 allow_undefined_flag=
14041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14042 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14045 test $ac_status = 0; }
14047 lt_cv_archive_cmds_need_lc=no
14049 lt_cv_archive_cmds_need_lc=yes
14051 allow_undefined_flag=$lt_save_allow_undefined_flag
14053 cat conftest.err 1>&5
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14059 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14060 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14219 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14221 if test yes = "$GCC"; then
14223 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14224 *) lt_awk_arg='/^libraries:/' ;;
14227 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14228 *) lt_sed_strip_eq='s|=/|/|g' ;;
14230 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14231 case $lt_search_path_spec in
14233 # if the path contains ";" then we assume it to be the separator
14234 # otherwise default to the standard path separator (i.e. ":") - it is
14235 # assumed that no part of a normal pathname contains ";" but that should
14236 # okay in the real world where ";" in dirpaths is itself problematic.
14237 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14240 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14243 # Ok, now we have the path, separated by spaces, we can step through it
14244 # and add multilib dir if necessary...
14245 lt_tmp_lt_search_path_spec=
14246 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14247 # ...but if some path component already ends with the multilib dir we assume
14248 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14249 case "$lt_multi_os_dir; $lt_search_path_spec " in
14250 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14254 for lt_sys_path in $lt_search_path_spec; do
14255 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14257 elif test -n "$lt_multi_os_dir"; then
14258 test -d "$lt_sys_path" && \
14259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14262 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14263 BEGIN {RS = " "; FS = "/|\n";} {
14266 for (lt_i = NF; lt_i > 0; lt_i--) {
14267 if ($lt_i != "" && $lt_i != ".") {
14268 if ($lt_i == "..") {
14271 if (lt_count == 0) {
14272 lt_foo = "/" $lt_i lt_foo;
14279 if (lt_foo != "") { lt_freq[lt_foo]++; }
14280 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14282 # AWK program above erroneously prepends '/' to C:/dos/paths
14285 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14286 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14288 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14290 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14292 library_names_spec=
14293 libname_spec='lib$name'
14297 postuninstall_cmds=
14301 shlibpath_overrides_runpath=unknown
14303 dynamic_linker="$host_os ld.so"
14304 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14305 need_lib_prefix=unknown
14306 hardcode_into_libs=no
14308 # when you set need_version to no, make sure it does not cause -set_version
14309 # flags to be left without arguments
14310 need_version=unknown
14316 version_type=linux # correct to gnu/linux during the next big refactor
14317 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14318 shlibpath_var=LIBPATH
14320 # AIX 3 has no versioning support, so we append a major version to the name.
14321 soname_spec='$libname$release$shared_ext$major'
14325 version_type=linux # correct to gnu/linux during the next big refactor
14328 hardcode_into_libs=yes
14329 if test ia64 = "$host_cpu"; then
14330 # AIX 5 supports IA64
14331 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14332 shlibpath_var=LD_LIBRARY_PATH
14334 # With GCC up to 2.95.x, collect2 would create an import file
14335 # for dependence libraries. The import file would start with
14336 # the line '#! .'. This would cause the generated library to
14337 # depend on '.', always an invalid library. This was fixed in
14338 # development snapshots of GCC prior to 3.0.
14340 aix4 | aix4.[01] | aix4.[01].*)
14341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14343 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14346 can_build_shared=no
14350 # Using Import Files as archive members, it is possible to support
14351 # filename-based versioning of shared library archives on AIX. While
14352 # this would work for both with and without runtime linking, it will
14353 # prevent static linking of such archives. So we do filename-based
14354 # shared library versioning with .so extension only, which is used
14355 # when both runtime linking and shared linking is enabled.
14356 # Unfortunately, runtime linking may impact performance, so we do
14357 # not want this to be the default eventually. Also, we use the
14358 # versioned .so libs for executables only if there is the -brtl
14359 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14360 # To allow for filename-based versioning support, we need to create
14361 # libNAME.so.V as an archive file, containing:
14362 # *) an Import File, referring to the versioned filename of the
14363 # archive as well as the shared archive member, telling the
14364 # bitwidth (32 or 64) of that shared object, and providing the
14365 # list of exported symbols of that shared object, eventually
14366 # decorated with the 'weak' keyword
14367 # *) the shared object with the F_LOADONLY flag set, to really avoid
14368 # it being seen by the linker.
14369 # At run time we better use the real file rather than another symlink,
14370 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14372 case $with_aix_soname,$aix_use_runtimelinking in
14373 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14374 # soname into executable. Probably we can add versioning support to
14375 # collect2, so additional links can be useful in future.
14376 aix,yes) # traditional libtool
14377 dynamic_linker='AIX unversionable lib.so'
14378 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14379 # instead of lib<name>.a to let people know that these are not
14380 # typical AIX shared libraries.
14381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14383 aix,no) # traditional AIX only
14384 dynamic_linker='AIX lib.a(lib.so.V)'
14385 # We preserve .a as extension for shared libraries through AIX4.2
14386 # and later when we are not doing run time linking.
14387 library_names_spec='$libname$release.a $libname.a'
14388 soname_spec='$libname$release$shared_ext$major'
14390 svr4,*) # full svr4 only
14391 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14392 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14393 # We do not specify a path in Import Files, so LIBPATH fires.
14394 shlibpath_overrides_runpath=yes
14396 *,yes) # both, prefer svr4
14397 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14398 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14399 # unpreferred sharedlib libNAME.a needs extra handling
14400 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"'
14401 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"'
14402 # We do not specify a path in Import Files, so LIBPATH fires.
14403 shlibpath_overrides_runpath=yes
14405 *,no) # both, prefer aix
14406 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14407 library_names_spec='$libname$release.a $libname.a'
14408 soname_spec='$libname$release$shared_ext$major'
14409 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14410 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)'
14411 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"'
14414 shlibpath_var=LIBPATH
14421 # Since July 2007 AmigaOS4 officially supports .so libraries.
14422 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14426 library_names_spec='$libname.ixlibrary $libname.a'
14427 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14428 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'
14434 library_names_spec='$libname$shared_ext'
14435 dynamic_linker="$host_os ld.so"
14436 shlibpath_var=LIBRARY_PATH
14440 version_type=linux # correct to gnu/linux during the next big refactor
14442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14443 soname_spec='$libname$release$shared_ext$major'
14444 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14447 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14448 # the default ld.so.conf also contains /usr/contrib/lib and
14449 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14450 # libtool to hard-code these into programs
14453 cygwin* | mingw* | pw32* | cegcc*)
14454 version_type=windows
14459 case $GCC,$cc_basename in
14462 library_names_spec='$libname.dll.a'
14463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14464 postinstall_cmds='base_file=`basename \$file`~
14465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14466 dldir=$destdir/`dirname \$dlpath`~
14467 test -d \$dldir || mkdir -p \$dldir~
14468 $install_prog $dir/$dlname \$dldir/$dlname~
14469 chmod a+x \$dldir/$dlname~
14470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14474 dlpath=$dir/\$dldll~
14476 shlibpath_overrides_runpath=yes
14480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14481 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14483 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14486 # MinGW DLLs use traditional 'lib' prefix
14487 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14490 # pw32 DLLs use 'pw' prefix rather than 'lib'
14491 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14494 dynamic_linker='Win32 ld.exe'
14499 libname_spec='$name'
14500 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14501 library_names_spec='$libname.dll.lib'
14505 sys_lib_search_path_spec=
14508 for lt_path in $LIB
14511 # Let DOS variable expansion print the short 8.3 style file name.
14512 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14513 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14516 # Convert to MSYS style.
14517 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14520 # Convert to unix form, then to dos form, then back to unix form
14521 # but this time dos style (no spaces!) so that the unix form looks
14522 # like /cygdrive/c/PROGRA~1:/cygdr...
14523 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14524 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14525 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14528 sys_lib_search_path_spec=$LIB
14529 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14530 # It is most probably a Windows format PATH.
14531 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14533 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14535 # FIXME: find the short name or the path components, as spaces are
14536 # common. (e.g. "Program Files" -> "PROGRA~1")
14540 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14541 postinstall_cmds='base_file=`basename \$file`~
14542 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14543 dldir=$destdir/`dirname \$dlpath`~
14544 test -d \$dldir || mkdir -p \$dldir~
14545 $install_prog $dir/$dlname \$dldir/$dlname'
14546 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14547 dlpath=$dir/\$dldll~
14549 shlibpath_overrides_runpath=yes
14550 dynamic_linker='Win32 link.exe'
14554 # Assume MSVC wrapper
14555 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14556 dynamic_linker='Win32 ld.exe'
14559 # FIXME: first we should search . and the directory the executable is in
14563 darwin* | rhapsody*)
14564 dynamic_linker="$host_os dyld"
14565 version_type=darwin
14568 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14569 soname_spec='$libname$release$major$shared_ext'
14570 shlibpath_overrides_runpath=yes
14571 shlibpath_var=DYLD_LIBRARY_PATH
14572 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14574 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14575 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14579 version_type=linux # correct to gnu/linux during the next big refactor
14582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14583 soname_spec='$libname$release$shared_ext$major'
14584 shlibpath_var=LD_LIBRARY_PATH
14587 freebsd* | dragonfly*)
14588 # DragonFly does not have aout. When/if they implement a new
14589 # versioning mechanism, adjust this.
14590 if test -x /usr/bin/objformat; then
14591 objformat=`/usr/bin/objformat`
14594 freebsd[23].*) objformat=aout ;;
14595 *) objformat=elf ;;
14598 version_type=freebsd-$objformat
14599 case $version_type in
14601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14602 soname_spec='$libname$release$shared_ext$major'
14607 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14611 shlibpath_var=LD_LIBRARY_PATH
14614 shlibpath_overrides_runpath=yes
14616 freebsd3.[01]* | freebsdelf3.[01]*)
14617 shlibpath_overrides_runpath=yes
14618 hardcode_into_libs=yes
14620 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14621 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14622 shlibpath_overrides_runpath=no
14623 hardcode_into_libs=yes
14625 *) # from 4.6 on, and DragonFly
14626 shlibpath_overrides_runpath=yes
14627 hardcode_into_libs=yes
14633 version_type=linux # correct to gnu/linux during the next big refactor
14636 dynamic_linker="$host_os runtime_loader"
14637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14638 soname_spec='$libname$release$shared_ext$major'
14639 shlibpath_var=LIBRARY_PATH
14640 shlibpath_overrides_runpath=no
14641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14642 hardcode_into_libs=yes
14645 hpux9* | hpux10* | hpux11*)
14646 # Give a soname corresponding to the major version so that dld.sl refuses to
14647 # link against other versions.
14654 hardcode_into_libs=yes
14655 dynamic_linker="$host_os dld.so"
14656 shlibpath_var=LD_LIBRARY_PATH
14657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14659 soname_spec='$libname$release$shared_ext$major'
14660 if test 32 = "$HPUX_IA64_MODE"; then
14661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14662 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14664 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14665 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14670 hardcode_into_libs=yes
14671 dynamic_linker="$host_os dld.sl"
14672 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14675 soname_spec='$libname$release$shared_ext$major'
14676 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14681 dynamic_linker="$host_os dld.sl"
14682 shlibpath_var=SHLIB_PATH
14683 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14685 soname_spec='$libname$release$shared_ext$major'
14688 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14689 postinstall_cmds='chmod 555 $lib'
14690 # or fails outright, so override atomically:
14691 install_override_mode=555
14695 version_type=linux # correct to gnu/linux during the next big refactor
14698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14699 soname_spec='$libname$release$shared_ext$major'
14700 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 shlibpath_overrides_runpath=no
14703 hardcode_into_libs=yes
14706 irix5* | irix6* | nonstopux*)
14708 nonstopux*) version_type=nonstopux ;;
14710 if test yes = "$lt_cv_prog_gnu_ld"; then
14711 version_type=linux # correct to gnu/linux during the next big refactor
14718 soname_spec='$libname$release$shared_ext$major'
14719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14721 irix5* | nonstopux*)
14722 libsuff= shlibsuff=
14725 case $LD in # libtool.m4 will add one of these switches to LD
14726 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14727 libsuff= shlibsuff= libmagic=32-bit;;
14728 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14729 libsuff=32 shlibsuff=N32 libmagic=N32;;
14730 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14731 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14732 *) libsuff= shlibsuff= libmagic=never-match;;
14736 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14737 shlibpath_overrides_runpath=no
14738 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14739 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14740 hardcode_into_libs=yes
14743 # No shared lib support for Linux oldld, aout, or coff.
14744 linux*oldld* | linux*aout* | linux*coff*)
14749 version_type=none # Android doesn't support versioned libraries.
14752 library_names_spec='$libname$release$shared_ext'
14753 soname_spec='$libname$release$shared_ext'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=yes
14758 # This implies no fast_install, which is unacceptable.
14759 # Some rework will be needed to allow for fast_install
14760 # before this can be enabled.
14761 hardcode_into_libs=yes
14763 dynamic_linker='Android linker'
14764 # Don't embed -rpath directories since the linker doesn't support them.
14765 hardcode_libdir_flag_spec='-L$libdir'
14768 # This must be glibc/ELF.
14769 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14770 version_type=linux # correct to gnu/linux during the next big refactor
14773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14774 soname_spec='$libname$release$shared_ext$major'
14775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14776 shlibpath_var=LD_LIBRARY_PATH
14777 shlibpath_overrides_runpath=no
14779 # Some binutils ld are patched to set DT_RUNPATH
14780 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14781 $as_echo_n "(cached) " >&6
14783 lt_cv_shlibpath_overrides_runpath=no
14784 save_LDFLAGS=$LDFLAGS
14785 save_libdir=$libdir
14786 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14787 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14798 if ac_fn_c_try_link "$LINENO"; then :
14799 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14800 lt_cv_shlibpath_overrides_runpath=yes
14803 rm -f core conftest.err conftest.$ac_objext \
14804 conftest$ac_exeext conftest.$ac_ext
14805 LDFLAGS=$save_LDFLAGS
14806 libdir=$save_libdir
14810 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14812 # This implies no fast_install, which is unacceptable.
14813 # Some rework will be needed to allow for fast_install
14814 # before this can be enabled.
14815 hardcode_into_libs=yes
14817 # Ideally, we could use ldconfig to report *all* directores which are
14818 # searched for libraries, however this is still not possible. Aside from not
14819 # being certain /sbin/ldconfig is available, command
14820 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14821 # even though it is searched at run-time. Try to do the best guess by
14822 # appending ld.so.conf contents (and includes) to the search path.
14823 if test -f /etc/ld.so.conf; then
14824 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' ' '`
14825 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14828 # We used to test for /lib/ld.so.1 and disable shared libraries on
14829 # powerpc, because MkLinux only supported shared libraries with the
14830 # GNU dynamic linker. Since this was broken with cross compilers,
14831 # most powerpc-linux boxes support dynamic linking these days and
14832 # people can always --disable-shared, the test was removed, and we
14833 # assume the GNU/Linux dynamic linker is in use.
14834 dynamic_linker='GNU/Linux ld.so'
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 shlibpath_overrides_runpath=no
14845 hardcode_into_libs=yes
14846 dynamic_linker='NetBSD ld.elf_so'
14853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14854 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14856 dynamic_linker='NetBSD (a.out) ld.so'
14858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14859 soname_spec='$libname$release$shared_ext$major'
14860 dynamic_linker='NetBSD ld.elf_so'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 shlibpath_overrides_runpath=yes
14864 hardcode_into_libs=yes
14868 version_type=linux # correct to gnu/linux during the next big refactor
14869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath=yes
14878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14879 soname_spec='$libname$release$shared_ext$major'
14880 shlibpath_var=LD_LIBRARY_PATH
14881 shlibpath_overrides_runpath=no
14882 hardcode_into_libs=yes
14883 dynamic_linker='ldqnx.so'
14886 openbsd* | bitrig*)
14888 sys_lib_dlsearch_path_spec=/usr/lib
14890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14895 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=yes
14902 libname_spec='$name'
14903 version_type=windows
14907 # OS/2 can only load a DLL with a base name of 8 characters or less.
14908 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14909 v=$($ECHO $release$versuffix | tr -d .-);
14910 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14911 $ECHO $n$v`$shared_ext'
14912 library_names_spec='${libname}_dll.$libext'
14913 dynamic_linker='OS/2 ld.exe'
14914 shlibpath_var=BEGINLIBPATH
14915 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14917 postinstall_cmds='base_file=`basename \$file`~
14918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14919 dldir=$destdir/`dirname \$dlpath`~
14920 test -d \$dldir || mkdir -p \$dldir~
14921 $install_prog $dir/$dlname \$dldir/$dlname~
14922 chmod a+x \$dldir/$dlname~
14923 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14924 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14926 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14927 dlpath=$dir/\$dldll~
14931 osf3* | osf4* | osf5*)
14935 soname_spec='$libname$release$shared_ext$major'
14936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14947 version_type=linux # correct to gnu/linux during the next big refactor
14950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14951 soname_spec='$libname$release$shared_ext$major'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 shlibpath_overrides_runpath=yes
14954 hardcode_into_libs=yes
14955 # ldd complains unless libraries are executable
14956 postinstall_cmds='chmod +x $lib'
14961 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14962 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14963 shlibpath_var=LD_LIBRARY_PATH
14964 shlibpath_overrides_runpath=yes
14965 if test yes = "$with_gnu_ld"; then
14972 version_type=linux # correct to gnu/linux during the next big refactor
14973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14974 soname_spec='$libname$release$shared_ext$major'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 case $host_vendor in
14978 shlibpath_overrides_runpath=no
14980 runpath_var=LD_RUN_PATH
14988 shlibpath_overrides_runpath=no
14989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14995 if test -d /usr/nec; then
14996 version_type=linux # correct to gnu/linux during the next big refactor
14997 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14998 soname_spec='$libname$shared_ext.$major'
14999 shlibpath_var=LD_LIBRARY_PATH
15003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15008 soname_spec='$libname$release$shared_ext$major'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 shlibpath_overrides_runpath=yes
15011 hardcode_into_libs=yes
15012 if test yes = "$with_gnu_ld"; then
15013 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15015 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15018 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15022 sys_lib_dlsearch_path_spec='/usr/lib'
15026 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15027 version_type=linux # correct to gnu/linux during the next big refactor
15030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15031 shlibpath_var=LD_LIBRARY_PATH
15032 shlibpath_overrides_runpath=no
15033 hardcode_into_libs=yes
15037 version_type=linux # correct to gnu/linux during the next big refactor
15038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15039 soname_spec='$libname$release$shared_ext$major'
15040 shlibpath_var=LD_LIBRARY_PATH
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15048 $as_echo "$dynamic_linker" >&6; }
15049 test no = "$dynamic_linker" && can_build_shared=no
15051 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15052 if test yes = "$GCC"; then
15053 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15056 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15057 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15060 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15061 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15064 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15065 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15067 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15068 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15070 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15071 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15170 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15172 if test -n "$hardcode_libdir_flag_spec" ||
15173 test -n "$runpath_var" ||
15174 test yes = "$hardcode_automatic"; then
15176 # We can hardcode non-existent directories.
15177 if test no != "$hardcode_direct" &&
15178 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15179 # have to relink, otherwise we might link with an installed library
15180 # when we should be linking with a yet-to-be-installed one
15181 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15182 test no != "$hardcode_minus_L"; then
15183 # Linking always hardcodes the temporary library directory.
15184 hardcode_action=relink
15186 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15187 hardcode_action=immediate
15190 # We cannot hardcode anything, or else we can only hardcode existing
15192 hardcode_action=unsupported
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15195 $as_echo "$hardcode_action" >&6; }
15197 if test relink = "$hardcode_action" ||
15198 test yes = "$inherit_rpath"; then
15199 # Fast installation is not supported
15200 enable_fast_install=no
15201 elif test yes = "$shlibpath_overrides_runpath" ||
15202 test no = "$enable_shared"; then
15203 # Fast installation is not necessary
15204 enable_fast_install=needless
15212 if test yes != "$enable_dlopen"; then
15213 enable_dlopen=unknown
15214 enable_dlopen_self=unknown
15215 enable_dlopen_self_static=unknown
15222 lt_cv_dlopen=load_add_on
15224 lt_cv_dlopen_self=yes
15227 mingw* | pw32* | cegcc*)
15228 lt_cv_dlopen=LoadLibrary
15233 lt_cv_dlopen=dlopen
15238 # if libdl is installed we need to link against it
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15240 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15241 if ${ac_cv_lib_dl_dlopen+:} false; then :
15242 $as_echo_n "(cached) " >&6
15244 ac_check_lib_save_LIBS=$LIBS
15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h. */
15261 if ac_fn_c_try_link "$LINENO"; then :
15262 ac_cv_lib_dl_dlopen=yes
15264 ac_cv_lib_dl_dlopen=no
15266 rm -f core conftest.err conftest.$ac_objext \
15267 conftest$ac_exeext conftest.$ac_ext
15268 LIBS=$ac_check_lib_save_LIBS
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15271 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15272 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15273 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15278 lt_cv_dlopen_self=yes
15285 # Don't try to run any link tests for TPF. We know it's impossible
15286 # because TPF is a cross-compiler, and we know how we open DSOs.
15287 lt_cv_dlopen=dlopen
15289 lt_cv_dlopen_self=no
15293 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15294 if test "x$ac_cv_func_shl_load" = xyes; then :
15295 lt_cv_dlopen=shl_load
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15298 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15299 if ${ac_cv_lib_dld_shl_load+:} false; then :
15300 $as_echo_n "(cached) " >&6
15302 ac_check_lib_save_LIBS=$LIBS
15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305 /* end confdefs.h. */
15314 return shl_load ();
15319 if ac_fn_c_try_link "$LINENO"; then :
15320 ac_cv_lib_dld_shl_load=yes
15322 ac_cv_lib_dld_shl_load=no
15324 rm -f core conftest.err conftest.$ac_objext \
15325 conftest$ac_exeext conftest.$ac_ext
15326 LIBS=$ac_check_lib_save_LIBS
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15329 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15330 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15331 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15333 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15334 if test "x$ac_cv_func_dlopen" = xyes; then :
15335 lt_cv_dlopen=dlopen
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15339 if ${ac_cv_lib_dl_dlopen+:} false; then :
15340 $as_echo_n "(cached) " >&6
15342 ac_check_lib_save_LIBS=$LIBS
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15359 if ac_fn_c_try_link "$LINENO"; then :
15360 ac_cv_lib_dl_dlopen=yes
15362 ac_cv_lib_dl_dlopen=no
15364 rm -f core conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext conftest.$ac_ext
15366 LIBS=$ac_check_lib_save_LIBS
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15369 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15370 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15374 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15375 if ${ac_cv_lib_svld_dlopen+:} false; then :
15376 $as_echo_n "(cached) " >&6
15378 ac_check_lib_save_LIBS=$LIBS
15379 LIBS="-lsvld $LIBS"
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15395 if ac_fn_c_try_link "$LINENO"; then :
15396 ac_cv_lib_svld_dlopen=yes
15398 ac_cv_lib_svld_dlopen=no
15400 rm -f core conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402 LIBS=$ac_check_lib_save_LIBS
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15405 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15406 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15407 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15410 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15411 if ${ac_cv_lib_dld_dld_link+:} false; then :
15412 $as_echo_n "(cached) " >&6
15414 ac_check_lib_save_LIBS=$LIBS
15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15426 return dld_link ();
15431 if ac_fn_c_try_link "$LINENO"; then :
15432 ac_cv_lib_dld_dld_link=yes
15434 ac_cv_lib_dld_dld_link=no
15436 rm -f core conftest.err conftest.$ac_objext \
15437 conftest$ac_exeext conftest.$ac_ext
15438 LIBS=$ac_check_lib_save_LIBS
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15441 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15442 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15443 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15464 if test no = "$lt_cv_dlopen"; then
15470 case $lt_cv_dlopen in
15472 save_CPPFLAGS=$CPPFLAGS
15473 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15475 save_LDFLAGS=$LDFLAGS
15476 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15479 LIBS="$lt_cv_dlopen_libs $LIBS"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15482 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15483 if ${lt_cv_dlopen_self+:} false; then :
15484 $as_echo_n "(cached) " >&6
15486 if test yes = "$cross_compiling"; then :
15487 lt_cv_dlopen_self=cross
15489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15490 lt_status=$lt_dlunknown
15491 cat > conftest.$ac_ext <<_LT_EOF
15492 #line $LINENO "configure"
15493 #include "confdefs.h"
15502 # define LT_DLGLOBAL RTLD_GLOBAL
15505 # define LT_DLGLOBAL DL_GLOBAL
15507 # define LT_DLGLOBAL 0
15511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15512 find out it does not work in some platform. */
15513 #ifndef LT_DLLAZY_OR_NOW
15515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15518 # define LT_DLLAZY_OR_NOW DL_LAZY
15521 # define LT_DLLAZY_OR_NOW RTLD_NOW
15524 # define LT_DLLAZY_OR_NOW DL_NOW
15526 # define LT_DLLAZY_OR_NOW 0
15533 /* When -fvisibility=hidden is used, assume the code has been annotated
15534 correspondingly for the symbols needed. */
15535 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15536 int fnord () __attribute__((visibility("default")));
15539 int fnord () { return 42; }
15542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15543 int status = $lt_dlunknown;
15547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15550 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15551 else puts (dlerror ());
15553 /* dlclose (self); */
15561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15562 (eval $ac_link) 2>&5
15564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15565 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15566 (./conftest; exit; ) >&5 2>/dev/null
15568 case x$lt_status in
15569 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15570 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15571 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15574 # compilation failed
15575 lt_cv_dlopen_self=no
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15583 $as_echo "$lt_cv_dlopen_self" >&6; }
15585 if test yes = "$lt_cv_dlopen_self"; then
15586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15588 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15589 if ${lt_cv_dlopen_self_static+:} false; then :
15590 $as_echo_n "(cached) " >&6
15592 if test yes = "$cross_compiling"; then :
15593 lt_cv_dlopen_self_static=cross
15595 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15596 lt_status=$lt_dlunknown
15597 cat > conftest.$ac_ext <<_LT_EOF
15598 #line $LINENO "configure"
15599 #include "confdefs.h"
15608 # define LT_DLGLOBAL RTLD_GLOBAL
15611 # define LT_DLGLOBAL DL_GLOBAL
15613 # define LT_DLGLOBAL 0
15617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15618 find out it does not work in some platform. */
15619 #ifndef LT_DLLAZY_OR_NOW
15621 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15624 # define LT_DLLAZY_OR_NOW DL_LAZY
15627 # define LT_DLLAZY_OR_NOW RTLD_NOW
15630 # define LT_DLLAZY_OR_NOW DL_NOW
15632 # define LT_DLLAZY_OR_NOW 0
15639 /* When -fvisibility=hidden is used, assume the code has been annotated
15640 correspondingly for the symbols needed. */
15641 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15642 int fnord () __attribute__((visibility("default")));
15645 int fnord () { return 42; }
15648 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15649 int status = $lt_dlunknown;
15653 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15656 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15657 else puts (dlerror ());
15659 /* dlclose (self); */
15667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15668 (eval $ac_link) 2>&5
15670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15671 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15672 (./conftest; exit; ) >&5 2>/dev/null
15674 case x$lt_status in
15675 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15676 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15677 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15680 # compilation failed
15681 lt_cv_dlopen_self_static=no
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15689 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15692 CPPFLAGS=$save_CPPFLAGS
15693 LDFLAGS=$save_LDFLAGS
15698 case $lt_cv_dlopen_self in
15699 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15700 *) enable_dlopen_self=unknown ;;
15703 case $lt_cv_dlopen_self_static in
15704 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15705 *) enable_dlopen_self_static=unknown ;;
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15728 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15729 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15730 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15731 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15733 $as_echo "yes" >&6; }
15735 # FIXME - insert some real tests, host_os isn't really good enough
15738 if test -n "$STRIP"; then
15739 striplib="$STRIP -x"
15740 old_striplib="$STRIP -S"
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15742 $as_echo "yes" >&6; }
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15745 $as_echo "no" >&6; }
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750 $as_echo "no" >&6; }
15766 # Report what library types will actually be built
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15768 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15770 $as_echo "$can_build_shared" >&6; }
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15773 $as_echo_n "checking whether to build shared libraries... " >&6; }
15774 test no = "$can_build_shared" && enable_shared=no
15776 # On AIX, shared libraries and static libraries use the same namespace, and
15777 # are all built from PIC.
15780 test yes = "$enable_shared" && enable_static=no
15781 if test -n "$RANLIB"; then
15782 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15783 postinstall_cmds='$RANLIB $lib'
15788 if test ia64 != "$host_cpu"; then
15789 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15790 yes,aix,yes) ;; # shared object as lib.so file only
15791 yes,svr4,*) ;; # shared object as lib.so archive member only
15792 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15798 $as_echo "$enable_shared" >&6; }
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15801 $as_echo_n "checking whether to build static libraries... " >&6; }
15802 # Make sure either enable_shared or enable_static is yes.
15803 test yes = "$enable_shared" || enable_static=yes
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15805 $as_echo "$enable_static" >&6; }
15812 ac_cpp='$CPP $CPPFLAGS'
15813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15833 ac_config_commands="$ac_config_commands libtool"
15838 # Only expand once:
15841 ## --------------------- ##
15842 ## End of libtool code ##
15843 ## --------------------- ##
15846 # Verify if finally libtool shared libraries will be built
15849 case "x$enable_shared" in # ((
15851 xc_lt_build_shared=$enable_shared
15854 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15859 # Verify if finally libtool static libraries will be built
15862 case "x$enable_static" in # ((
15864 xc_lt_build_static=$enable_static
15867 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15872 # Verify if libtool shared libraries should be linked using flag -version-info
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15876 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15877 xc_lt_shlib_use_version_info='yes'
15878 if test "x$version_type" = 'xnone'; then
15879 xc_lt_shlib_use_version_info='no'
15881 case $host_os in # (
15883 xc_lt_shlib_use_version_info='yes'
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15887 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15890 # Verify if libtool shared libraries should be linked using flag -no-undefined
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15894 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15895 xc_lt_shlib_use_no_undefined='no'
15896 if test "x$allow_undefined" = 'xno'; then
15897 xc_lt_shlib_use_no_undefined='yes'
15898 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15899 xc_lt_shlib_use_no_undefined='yes'
15901 case $host_os in # (
15902 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15903 xc_lt_shlib_use_no_undefined='yes'
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15907 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15910 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15914 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15915 xc_lt_shlib_use_mimpure_text='no'
15916 case $host_os in # (
15918 if test "x$GCC" = 'xyes'; then
15919 xc_lt_shlib_use_mimpure_text='yes'
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15924 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15927 # Find out wether libtool libraries would be built wit PIC
15930 case "x$pic_mode" in # ((((
15932 xc_lt_build_shared_with_pic='yes'
15933 xc_lt_build_static_with_pic='no'
15936 xc_lt_build_shared_with_pic='yes'
15937 xc_lt_build_static_with_pic='yes'
15940 xc_lt_build_shared_with_pic='no'
15941 xc_lt_build_static_with_pic='no'
15944 xc_lt_build_shared_with_pic='unknown'
15945 xc_lt_build_static_with_pic='unknown'
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15947 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15951 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15953 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15955 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15957 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15960 # Verify if libtool shared libraries will be built while static not built
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15964 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15965 if test "$xc_lt_build_shared" = 'yes' &&
15966 test "$xc_lt_build_static" = 'no'; then
15967 xc_lt_build_shared_only='yes'
15969 xc_lt_build_shared_only='no'
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15972 $as_echo "$xc_lt_build_shared_only" >&6; }
15975 # Verify if libtool static libraries will be built while shared not built
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15979 $as_echo_n "checking whether to build static libraries only... " >&6; }
15980 if test "$xc_lt_build_static" = 'yes' &&
15981 test "$xc_lt_build_shared" = 'no'; then
15982 xc_lt_build_static_only='yes'
15984 xc_lt_build_static_only='no'
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15987 $as_echo "$xc_lt_build_static_only" >&6; }
15993 # Automake conditionals based on libtool related checks
15996 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15997 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15998 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
16000 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
16001 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
16004 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16005 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16006 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16008 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16009 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16012 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16013 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16014 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16016 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16017 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16022 # Due to libtool and automake machinery limitations of not allowing
16023 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
16024 # inclusion of these in shared or static libraries, we are forced to
16025 # build using separate configure runs for shared and static libraries
16026 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
16027 # to compile objects for each kind of library. Notice that relying on
16028 # the '-DPIC' CFLAG that libtool provides is not valid given that the
16029 # user might for example choose to build static libraries with PIC.
16033 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16034 # targeting a static library and not building its shared counterpart.
16037 if test "x$xc_lt_build_static_only" = 'xyes'; then
16038 USE_CPPFLAG_CURL_STATICLIB_TRUE=
16039 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16041 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16042 USE_CPPFLAG_CURL_STATICLIB_FALSE=
16047 # Make staticlib CPPFLAG variable and its definition visible in output
16048 # files unconditionally, providing an empty definition unless strictly
16049 # targeting a static library and not building its shared counterpart.
16052 CPPFLAG_CURL_STATICLIB=
16053 if test "x$xc_lt_build_static_only" = 'xyes'; then
16054 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16059 # Determine whether all dependent libraries must be specified when linking
16060 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16062 REQUIRE_LIB_DEPS=no
16064 REQUIRE_LIB_DEPS=yes
16067 if test x$REQUIRE_LIB_DEPS = xyes; then
16068 USE_EXPLICIT_LIB_DEPS_TRUE=
16069 USE_EXPLICIT_LIB_DEPS_FALSE='#'
16071 USE_EXPLICIT_LIB_DEPS_TRUE='#'
16072 USE_EXPLICIT_LIB_DEPS_FALSE=
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16077 $as_echo_n "checking for inline... " >&6; }
16078 if ${ac_cv_c_inline+:} false; then :
16079 $as_echo_n "(cached) " >&6
16082 for ac_kw in inline __inline__ __inline; do
16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16085 #ifndef __cplusplus
16087 static $ac_kw foo_t static_foo () {return 0; }
16088 $ac_kw foo_t foo () {return 0; }
16092 if ac_fn_c_try_compile "$LINENO"; then :
16093 ac_cv_c_inline=$ac_kw
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 test "$ac_cv_c_inline" != no && break
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16101 $as_echo "$ac_cv_c_inline" >&6; }
16103 case $ac_cv_c_inline in
16106 case $ac_cv_c_inline in
16108 *) ac_val=$ac_cv_c_inline;;
16110 cat >>confdefs.h <<_ACEOF
16111 #ifndef __cplusplus
16112 #define inline $ac_val
16122 compiler_id="unknown"
16125 flags_dbg_all="unknown"
16126 flags_dbg_yes="unknown"
16127 flags_dbg_off="unknown"
16128 flags_opt_all="unknown"
16129 flags_opt_yes="unknown"
16130 flags_opt_off="unknown"
16132 flags_prefer_cppflags="no"
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16136 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16138 OLDCPPFLAGS=$CPPFLAGS
16139 # CPPPFLAG comes from CURL_CPP_P
16140 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16141 if test -z "$SED"; then
16142 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16144 if test -z "$GREP"; then
16145 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16154 CURL_DEF_TOKEN __DECC
16159 if ac_fn_c_try_cpp "$LINENO"; then :
16161 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16162 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16163 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16164 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16165 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16170 rm -f conftest.err conftest.i conftest.$ac_ext
16171 if test -z "$tmp_exp"; then
16172 curl_cv_have_def___DECC=no
16175 curl_cv_have_def___DECC=yes
16176 curl_cv_def___DECC=$tmp_exp
16179 CPPFLAGS=$OLDCPPFLAGS
16182 OLDCPPFLAGS=$CPPFLAGS
16183 # CPPPFLAG comes from CURL_CPP_P
16184 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16185 if test -z "$SED"; then
16186 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16188 if test -z "$GREP"; then
16189 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16198 CURL_DEF_TOKEN __DECC_VER
16203 if ac_fn_c_try_cpp "$LINENO"; then :
16205 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16206 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16207 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16208 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16209 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16214 rm -f conftest.err conftest.i conftest.$ac_ext
16215 if test -z "$tmp_exp"; then
16216 curl_cv_have_def___DECC_VER=no
16219 curl_cv_have_def___DECC_VER=yes
16220 curl_cv_def___DECC_VER=$tmp_exp
16223 CPPFLAGS=$OLDCPPFLAGS
16225 if test "$curl_cv_have_def___DECC" = "yes" &&
16226 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16228 $as_echo "yes" >&6; }
16229 compiler_id="DEC_C"
16230 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16231 flags_dbg_yes="-g2"
16233 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16234 flags_opt_yes="-O1"
16235 flags_opt_off="-O0"
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16243 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16245 OLDCPPFLAGS=$CPPFLAGS
16246 # CPPPFLAG comes from CURL_CPP_P
16247 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16248 if test -z "$SED"; then
16249 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16251 if test -z "$GREP"; then
16252 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16261 CURL_DEF_TOKEN __HP_cc
16266 if ac_fn_c_try_cpp "$LINENO"; then :
16268 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16269 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16270 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16271 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16272 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16277 rm -f conftest.err conftest.i conftest.$ac_ext
16278 if test -z "$tmp_exp"; then
16279 curl_cv_have_def___HP_cc=no
16282 curl_cv_have_def___HP_cc=yes
16283 curl_cv_def___HP_cc=$tmp_exp
16286 CPPFLAGS=$OLDCPPFLAGS
16288 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16290 $as_echo "yes" >&6; }
16291 compiler_id="HP_UX_C"
16292 flags_dbg_all="-g -s"
16295 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16296 flags_opt_yes="+O2"
16297 flags_opt_off="+O0"
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16300 $as_echo "no" >&6; }
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16305 $as_echo_n "checking if compiler is IBM C... " >&6; }
16307 OLDCPPFLAGS=$CPPFLAGS
16308 # CPPPFLAG comes from CURL_CPP_P
16309 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16310 if test -z "$SED"; then
16311 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16313 if test -z "$GREP"; then
16314 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16319 /* end confdefs.h. */
16323 CURL_DEF_TOKEN __IBMC__
16328 if ac_fn_c_try_cpp "$LINENO"; then :
16330 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16331 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16332 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16333 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16334 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16339 rm -f conftest.err conftest.i conftest.$ac_ext
16340 if test -z "$tmp_exp"; then
16341 curl_cv_have_def___IBMC__=no
16344 curl_cv_have_def___IBMC__=yes
16345 curl_cv_def___IBMC__=$tmp_exp
16348 CPPFLAGS=$OLDCPPFLAGS
16350 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16352 $as_echo "yes" >&6; }
16353 compiler_id="IBM_C"
16354 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16357 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16358 flags_opt_all="$flags_opt_all -qnooptimize"
16359 flags_opt_all="$flags_opt_all -qoptimize=0"
16360 flags_opt_all="$flags_opt_all -qoptimize=1"
16361 flags_opt_all="$flags_opt_all -qoptimize=2"
16362 flags_opt_all="$flags_opt_all -qoptimize=3"
16363 flags_opt_all="$flags_opt_all -qoptimize=4"
16364 flags_opt_all="$flags_opt_all -qoptimize=5"
16365 flags_opt_yes="-O2"
16366 flags_opt_off="-qnooptimize"
16367 flags_prefer_cppflags="yes"
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16370 $as_echo "no" >&6; }
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16375 $as_echo_n "checking if compiler is Intel C... " >&6; }
16377 OLDCPPFLAGS=$CPPFLAGS
16378 # CPPPFLAG comes from CURL_CPP_P
16379 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16380 if test -z "$SED"; then
16381 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16383 if test -z "$GREP"; then
16384 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16392 #ifdef __INTEL_COMPILER
16393 CURL_DEF_TOKEN __INTEL_COMPILER
16398 if ac_fn_c_try_cpp "$LINENO"; then :
16400 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16401 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16402 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16403 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16404 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16409 rm -f conftest.err conftest.i conftest.$ac_ext
16410 if test -z "$tmp_exp"; then
16411 curl_cv_have_def___INTEL_COMPILER=no
16414 curl_cv_have_def___INTEL_COMPILER=yes
16415 curl_cv_def___INTEL_COMPILER=$tmp_exp
16418 CPPFLAGS=$OLDCPPFLAGS
16420 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16422 $as_echo "yes" >&6; }
16423 compiler_num="$curl_cv_def___INTEL_COMPILER"
16425 OLDCPPFLAGS=$CPPFLAGS
16426 # CPPPFLAG comes from CURL_CPP_P
16427 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16428 if test -z "$SED"; then
16429 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16431 if test -z "$GREP"; then
16432 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h. */
16441 CURL_DEF_TOKEN __unix__
16446 if ac_fn_c_try_cpp "$LINENO"; then :
16448 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16449 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16450 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16451 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16452 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16457 rm -f conftest.err conftest.i conftest.$ac_ext
16458 if test -z "$tmp_exp"; then
16459 curl_cv_have_def___unix__=no
16462 curl_cv_have_def___unix__=yes
16463 curl_cv_def___unix__=$tmp_exp
16466 CPPFLAGS=$OLDCPPFLAGS
16468 if test "$curl_cv_have_def___unix__" = "yes"; then
16469 compiler_id="INTEL_UNIX_C"
16470 flags_dbg_all="-g -g0"
16473 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16474 flags_opt_yes="-O2"
16475 flags_opt_off="-O0"
16477 compiler_id="INTEL_WINDOWS_C"
16478 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16479 flags_dbg_all="$flags_dbg_all /debug"
16480 flags_dbg_all="$flags_dbg_all /debug:none"
16481 flags_dbg_all="$flags_dbg_all /debug:minimal"
16482 flags_dbg_all="$flags_dbg_all /debug:partial"
16483 flags_dbg_all="$flags_dbg_all /debug:full"
16484 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16485 flags_dbg_all="$flags_dbg_all /debug:extended"
16486 flags_dbg_yes="/Zi /Oy-"
16487 flags_dbg_off="/debug:none /Oy-"
16488 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16489 flags_opt_yes="/O2"
16490 flags_opt_off="/Od"
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 $as_echo "no" >&6; }
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16499 $as_echo_n "checking if compiler is clang... " >&6; }
16501 OLDCPPFLAGS=$CPPFLAGS
16502 # CPPPFLAG comes from CURL_CPP_P
16503 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16504 if test -z "$SED"; then
16505 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16507 if test -z "$GREP"; then
16508 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16517 CURL_DEF_TOKEN __clang__
16522 if ac_fn_c_try_cpp "$LINENO"; then :
16524 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16525 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16526 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16527 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16528 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16533 rm -f conftest.err conftest.i conftest.$ac_ext
16534 if test -z "$tmp_exp"; then
16535 curl_cv_have_def___clang__=no
16538 curl_cv_have_def___clang__=yes
16539 curl_cv_def___clang__=$tmp_exp
16542 CPPFLAGS=$OLDCPPFLAGS
16544 if test "$curl_cv_have_def___clang__" = "yes"; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16546 $as_echo "yes" >&6; }
16547 compiler_id="CLANG"
16548 clangver=`$CC -dumpversion`
16549 clangvhi=`echo $clangver | cut -d . -f1`
16550 clangvlo=`echo $clangver | cut -d . -f2`
16551 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16552 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16553 flags_dbg_all="$flags_dbg_all -ggdb"
16554 flags_dbg_all="$flags_dbg_all -gstabs"
16555 flags_dbg_all="$flags_dbg_all -gstabs+"
16556 flags_dbg_all="$flags_dbg_all -gcoff"
16557 flags_dbg_all="$flags_dbg_all -gxcoff"
16558 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16559 flags_dbg_all="$flags_dbg_all -gvms"
16562 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16563 flags_opt_yes="-Os"
16564 flags_opt_off="-O0"
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16567 $as_echo "no" >&6; }
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16572 $as_echo_n "checking if compiler is GNU C... " >&6; }
16574 OLDCPPFLAGS=$CPPFLAGS
16575 # CPPPFLAG comes from CURL_CPP_P
16576 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16577 if test -z "$SED"; then
16578 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16580 if test -z "$GREP"; then
16581 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16590 CURL_DEF_TOKEN __GNUC__
16595 if ac_fn_c_try_cpp "$LINENO"; then :
16597 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16598 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16599 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16600 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16601 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16606 rm -f conftest.err conftest.i conftest.$ac_ext
16607 if test -z "$tmp_exp"; then
16608 curl_cv_have_def___GNUC__=no
16611 curl_cv_have_def___GNUC__=yes
16612 curl_cv_def___GNUC__=$tmp_exp
16615 CPPFLAGS=$OLDCPPFLAGS
16617 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16618 test "$compiler_id" = "unknown"; then
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16620 $as_echo "yes" >&6; }
16621 compiler_id="GNU_C"
16622 gccver=`$CC -dumpversion`
16623 gccvhi=`echo $gccver | cut -d . -f1`
16624 gccvlo=`echo $gccver | cut -d . -f2`
16625 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16626 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16627 flags_dbg_all="$flags_dbg_all -ggdb"
16628 flags_dbg_all="$flags_dbg_all -gstabs"
16629 flags_dbg_all="$flags_dbg_all -gstabs+"
16630 flags_dbg_all="$flags_dbg_all -gcoff"
16631 flags_dbg_all="$flags_dbg_all -gxcoff"
16632 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16633 flags_dbg_all="$flags_dbg_all -gvms"
16636 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16637 flags_opt_yes="-O2"
16638 flags_opt_off="-O0"
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. */
16656 CURL_DEF_TOKEN _WIN32
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" = "_WIN32"; then
16672 rm -f conftest.err conftest.i conftest.$ac_ext
16673 if test -z "$tmp_exp"; then
16674 curl_cv_have_def__WIN32=no
16677 curl_cv_have_def__WIN32=yes
16678 curl_cv_def__WIN32=$tmp_exp
16681 CPPFLAGS=$OLDCPPFLAGS
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16685 $as_echo "no" >&6; }
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16690 $as_echo_n "checking if compiler is LCC... " >&6; }
16692 OLDCPPFLAGS=$CPPFLAGS
16693 # CPPPFLAG comes from CURL_CPP_P
16694 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16695 if test -z "$SED"; then
16696 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16698 if test -z "$GREP"; then
16699 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16708 CURL_DEF_TOKEN __LCC__
16713 if ac_fn_c_try_cpp "$LINENO"; then :
16715 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16716 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16717 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16718 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16719 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16724 rm -f conftest.err conftest.i conftest.$ac_ext
16725 if test -z "$tmp_exp"; then
16726 curl_cv_have_def___LCC__=no
16729 curl_cv_have_def___LCC__=yes
16730 curl_cv_def___LCC__=$tmp_exp
16733 CPPFLAGS=$OLDCPPFLAGS
16735 if test "$curl_cv_have_def___LCC__" = "yes"; then
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16737 $as_echo "yes" >&6; }
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16747 $as_echo "no" >&6; }
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16752 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16754 OLDCPPFLAGS=$CPPFLAGS
16755 # CPPPFLAG comes from CURL_CPP_P
16756 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16757 if test -z "$SED"; then
16758 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16760 if test -z "$GREP"; then
16761 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16770 CURL_DEF_TOKEN __GNUC__
16775 if ac_fn_c_try_cpp "$LINENO"; then :
16777 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16778 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16779 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16780 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16781 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16786 rm -f conftest.err conftest.i conftest.$ac_ext
16787 if test -z "$tmp_exp"; then
16788 curl_cv_have_def___GNUC__=no
16791 curl_cv_have_def___GNUC__=yes
16792 curl_cv_def___GNUC__=$tmp_exp
16795 CPPFLAGS=$OLDCPPFLAGS
16798 OLDCPPFLAGS=$CPPFLAGS
16799 # CPPPFLAG comes from CURL_CPP_P
16800 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16801 if test -z "$SED"; then
16802 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16804 if test -z "$GREP"; then
16805 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16813 #ifdef _COMPILER_VERSION
16814 CURL_DEF_TOKEN _COMPILER_VERSION
16819 if ac_fn_c_try_cpp "$LINENO"; then :
16821 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16822 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16823 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16824 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16825 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16830 rm -f conftest.err conftest.i conftest.$ac_ext
16831 if test -z "$tmp_exp"; then
16832 curl_cv_have_def__COMPILER_VERSION=no
16835 curl_cv_have_def__COMPILER_VERSION=yes
16836 curl_cv_def__COMPILER_VERSION=$tmp_exp
16839 CPPFLAGS=$OLDCPPFLAGS
16842 OLDCPPFLAGS=$CPPFLAGS
16843 # CPPPFLAG comes from CURL_CPP_P
16844 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16845 if test -z "$SED"; then
16846 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16848 if test -z "$GREP"; then
16849 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854 /* end confdefs.h. */
16857 #ifdef _SGI_COMPILER_VERSION
16858 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16863 if ac_fn_c_try_cpp "$LINENO"; then :
16865 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16866 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16867 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16868 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16869 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16874 rm -f conftest.err conftest.i conftest.$ac_ext
16875 if test -z "$tmp_exp"; then
16876 curl_cv_have_def__SGI_COMPILER_VERSION=no
16879 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16880 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16883 CPPFLAGS=$OLDCPPFLAGS
16885 if test "$curl_cv_have_def___GNUC__" = "no" &&
16886 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16887 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16889 $as_echo "yes" >&6; }
16890 compiler_id="SGI_MIPSPRO_C"
16891 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16894 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16895 flags_opt_yes="-O2"
16896 flags_opt_off="-O0"
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16899 $as_echo "no" >&6; }
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16904 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16906 OLDCPPFLAGS=$CPPFLAGS
16907 # CPPPFLAG comes from CURL_CPP_P
16908 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16909 if test -z "$SED"; then
16910 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16912 if test -z "$GREP"; then
16913 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918 /* end confdefs.h. */
16922 CURL_DEF_TOKEN __GNUC__
16927 if ac_fn_c_try_cpp "$LINENO"; then :
16929 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16930 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16931 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16932 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16933 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16938 rm -f conftest.err conftest.i conftest.$ac_ext
16939 if test -z "$tmp_exp"; then
16940 curl_cv_have_def___GNUC__=no
16943 curl_cv_have_def___GNUC__=yes
16944 curl_cv_def___GNUC__=$tmp_exp
16947 CPPFLAGS=$OLDCPPFLAGS
16950 OLDCPPFLAGS=$CPPFLAGS
16951 # CPPPFLAG comes from CURL_CPP_P
16952 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16953 if test -z "$SED"; then
16954 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16956 if test -z "$GREP"; then
16957 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16966 CURL_DEF_TOKEN __sgi
16971 if ac_fn_c_try_cpp "$LINENO"; then :
16973 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16974 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16975 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16976 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16977 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16982 rm -f conftest.err conftest.i conftest.$ac_ext
16983 if test -z "$tmp_exp"; then
16984 curl_cv_have_def___sgi=no
16987 curl_cv_have_def___sgi=yes
16988 curl_cv_def___sgi=$tmp_exp
16991 CPPFLAGS=$OLDCPPFLAGS
16993 if test "$curl_cv_have_def___GNUC__" = "no" &&
16994 test "$curl_cv_have_def___sgi" = "yes" &&
16995 test "$compiler_id" = "unknown"; then
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16997 $as_echo "yes" >&6; }
16998 compiler_id="SGI_MIPS_C"
16999 flags_dbg_all="-g -g0 -g1 -g2 -g3"
17002 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17003 flags_opt_yes="-O2"
17004 flags_opt_off="-O0"
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17007 $as_echo "no" >&6; }
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17012 $as_echo_n "checking if compiler is SunPro C... " >&6; }
17014 OLDCPPFLAGS=$CPPFLAGS
17015 # CPPPFLAG comes from CURL_CPP_P
17016 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17017 if test -z "$SED"; then
17018 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17020 if test -z "$GREP"; then
17021 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17030 CURL_DEF_TOKEN __SUNPRO_C
17035 if ac_fn_c_try_cpp "$LINENO"; then :
17037 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17038 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17039 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17040 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17041 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17046 rm -f conftest.err conftest.i conftest.$ac_ext
17047 if test -z "$tmp_exp"; then
17048 curl_cv_have_def___SUNPRO_C=no
17051 curl_cv_have_def___SUNPRO_C=yes
17052 curl_cv_def___SUNPRO_C=$tmp_exp
17055 CPPFLAGS=$OLDCPPFLAGS
17057 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17059 $as_echo "yes" >&6; }
17060 compiler_id="SUNPRO_C"
17061 flags_dbg_all="-g -s"
17064 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17065 flags_opt_yes="-xO2"
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069 $as_echo "no" >&6; }
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17074 $as_echo_n "checking if compiler is Tiny C... " >&6; }
17076 OLDCPPFLAGS=$CPPFLAGS
17077 # CPPPFLAG comes from CURL_CPP_P
17078 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17079 if test -z "$SED"; then
17080 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17082 if test -z "$GREP"; then
17083 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h. */
17092 CURL_DEF_TOKEN __TINYC__
17097 if ac_fn_c_try_cpp "$LINENO"; then :
17099 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17100 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17101 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17102 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17103 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17108 rm -f conftest.err conftest.i conftest.$ac_ext
17109 if test -z "$tmp_exp"; then
17110 curl_cv_have_def___TINYC__=no
17113 curl_cv_have_def___TINYC__=yes
17114 curl_cv_def___TINYC__=$tmp_exp
17117 CPPFLAGS=$OLDCPPFLAGS
17119 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17121 $as_echo "yes" >&6; }
17122 compiler_id="TINY_C"
17123 flags_dbg_all="-g -b"
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17136 $as_echo_n "checking if compiler is Watcom C... " >&6; }
17138 OLDCPPFLAGS=$CPPFLAGS
17139 # CPPPFLAG comes from CURL_CPP_P
17140 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17141 if test -z "$SED"; then
17142 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17144 if test -z "$GREP"; then
17145 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150 /* end confdefs.h. */
17154 CURL_DEF_TOKEN __WATCOMC__
17159 if ac_fn_c_try_cpp "$LINENO"; then :
17161 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17162 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17163 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17164 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17165 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17170 rm -f conftest.err conftest.i conftest.$ac_ext
17171 if test -z "$tmp_exp"; then
17172 curl_cv_have_def___WATCOMC__=no
17175 curl_cv_have_def___WATCOMC__=yes
17176 curl_cv_def___WATCOMC__=$tmp_exp
17179 CPPFLAGS=$OLDCPPFLAGS
17181 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17183 $as_echo "yes" >&6; }
17185 OLDCPPFLAGS=$CPPFLAGS
17186 # CPPPFLAG comes from CURL_CPP_P
17187 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17188 if test -z "$SED"; then
17189 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17191 if test -z "$GREP"; then
17192 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17197 /* end confdefs.h. */
17201 CURL_DEF_TOKEN __UNIX__
17206 if ac_fn_c_try_cpp "$LINENO"; then :
17208 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17209 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17210 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17211 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17212 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17217 rm -f conftest.err conftest.i conftest.$ac_ext
17218 if test -z "$tmp_exp"; then
17219 curl_cv_have_def___UNIX__=no
17222 curl_cv_have_def___UNIX__=yes
17223 curl_cv_def___UNIX__=$tmp_exp
17226 CPPFLAGS=$OLDCPPFLAGS
17228 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17229 compiler_id="WATCOM_UNIX_C"
17230 flags_dbg_all="-g1 -g1+ -g2 -g3"
17231 flags_dbg_yes="-g2"
17233 flags_opt_all="-O0 -O1 -O2 -O3"
17234 flags_opt_yes="-O2"
17235 flags_opt_off="-O0"
17237 compiler_id="WATCOM_WINDOWS_C"
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17247 $as_echo "no" >&6; }
17251 if test "$compiler_id" = "unknown"; then
17254 *** Warning: This configure script does not have information about the
17255 *** compiler you are using, relative to the flags required to enable or
17256 *** disable generation of debug info, optimization options or warnings.
17258 *** Whatever settings are present in CFLAGS will be used for this run.
17260 *** If you wish to help the curl project to better support your compiler
17261 *** you can report this and the required info on the libcurl development
17262 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17270 eval _sqz_input=\$$1
17271 for _sqz_token in $_sqz_input; do
17272 if test -z "$_sqz_result"; then
17273 _sqz_result="$_sqz_token"
17275 _sqz_result="$_sqz_result $_sqz_token"
17278 eval $1=\$_sqz_result
17284 if test "$compiler_id" != "unknown"; then
17286 if test "$compiler_id" = "GNU_C" ||
17287 test "$compiler_id" = "CLANG"; then
17289 if test "$compiler_id" = "GNU_C" ||
17290 test "$compiler_id" = "CLANG"; then
17291 tmp_has_include="no"
17292 tmp_chg_FLAGS="$CFLAGS"
17293 for word1 in $tmp_chg_FLAGS; do
17296 tmp_has_include="yes"
17300 if test "$tmp_has_include" = "yes"; then
17301 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17302 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17303 CFLAGS="$tmp_chg_FLAGS"
17306 tmp_has_include="no"
17307 tmp_chg_FLAGS="$CPPFLAGS"
17308 for word1 in $tmp_chg_FLAGS; do
17311 tmp_has_include="yes"
17315 if test "$tmp_has_include" = "yes"; then
17316 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17317 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17318 CPPFLAGS="$tmp_chg_FLAGS"
17325 tmp_save_CPPFLAGS="$CPPFLAGS"
17326 tmp_save_CFLAGS="$CFLAGS"
17330 case "$compiler_id" in
17334 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17339 tmp_CFLAGS="$tmp_CFLAGS -std1"
17340 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17341 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17342 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17347 tmp_CFLAGS="$tmp_CFLAGS"
17352 tmp_CFLAGS="$tmp_CFLAGS -z"
17353 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17358 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17359 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17360 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17365 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17366 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17367 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17372 tmp_CFLAGS="$tmp_CFLAGS"
17377 tmp_CFLAGS="$tmp_CFLAGS -n"
17382 tmp_CFLAGS="$tmp_CFLAGS"
17387 tmp_CFLAGS="$tmp_CFLAGS"
17392 tmp_CFLAGS="$tmp_CFLAGS"
17397 tmp_CFLAGS="$tmp_CFLAGS"
17402 tmp_CFLAGS="$tmp_CFLAGS"
17407 tmp_CFLAGS="$tmp_CFLAGS"
17412 squeeze tmp_CPPFLAGS
17415 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17417 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17418 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17419 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17423 tmp_compiler_works="unknown"
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17440 if ac_fn_c_try_compile "$LINENO"; then :
17442 tmp_compiler_works="yes"
17446 tmp_compiler_works="no"
17448 sed 's/^/cc-fail: /' conftest.err >&6
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17453 if test "$tmp_compiler_works" = "yes"; then
17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455 /* end confdefs.h. */
17470 if ac_fn_c_try_link "$LINENO"; then :
17472 tmp_compiler_works="yes"
17476 tmp_compiler_works="no"
17478 sed 's/^/link-fail: /' conftest.err >&6
17482 rm -f core conftest.err conftest.$ac_objext \
17483 conftest$ac_exeext conftest.$ac_ext
17485 if test "x$cross_compiling" != "xyes" &&
17486 test "$tmp_compiler_works" = "yes"; then
17487 if test "$cross_compiling" = yes; then :
17488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17490 as_fn_error $? "cannot run test program while cross compiling
17491 See \`config.log' for more details" "$LINENO" 5; }
17493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17494 /* end confdefs.h. */
17498 # include <stdlib.h>
17512 if ac_fn_c_try_run "$LINENO"; then :
17514 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
17529 if test "$tmp_compiler_works" = "yes"; then
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17532 $as_echo "yes" >&6; }
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17534 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17539 $as_echo "no" >&6; }
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17541 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17542 CPPFLAGS="$tmp_save_CPPFLAGS"
17543 CFLAGS="$tmp_save_CFLAGS"
17553 if test "$compiler_id" != "unknown"; then
17555 tmp_save_CFLAGS="$CFLAGS"
17556 tmp_save_CPPFLAGS="$CPPFLAGS"
17559 tmp_CFLAGS="$CFLAGS"
17560 tmp_CPPFLAGS="$CPPFLAGS"
17563 for word1 in $tmp_CFLAGS; do
17564 ac_var_strip_word="no"
17565 for word2 in $flags_dbg_all; do
17566 if test "$word1" = "$word2"; then
17567 ac_var_strip_word="yes"
17570 if test "$ac_var_strip_word" = "no"; then
17571 ac_var_stripped="$ac_var_stripped $word1"
17574 tmp_CFLAGS="$ac_var_stripped"
17579 for word1 in $tmp_CPPFLAGS; do
17580 ac_var_strip_word="no"
17581 for word2 in $flags_dbg_all; do
17582 if test "$word1" = "$word2"; then
17583 ac_var_strip_word="yes"
17586 if test "$ac_var_strip_word" = "no"; then
17587 ac_var_stripped="$ac_var_stripped $word1"
17590 tmp_CPPFLAGS="$ac_var_stripped"
17591 squeeze tmp_CPPFLAGS
17594 if test "$want_debug" = "yes"; then
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17596 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17597 tmp_options="$flags_dbg_yes"
17599 if test "$want_debug" = "no"; then
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17601 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17602 tmp_options="$flags_dbg_off"
17605 if test "$flags_prefer_cppflags" = "yes"; then
17606 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17607 CFLAGS="$tmp_CFLAGS"
17609 CPPFLAGS="$tmp_CPPFLAGS"
17610 CFLAGS="$tmp_CFLAGS $tmp_options"
17615 tmp_compiler_works="unknown"
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17632 if ac_fn_c_try_compile "$LINENO"; then :
17634 tmp_compiler_works="yes"
17638 tmp_compiler_works="no"
17640 sed 's/^/cc-fail: /' conftest.err >&6
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645 if test "$tmp_compiler_works" = "yes"; then
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17662 if ac_fn_c_try_link "$LINENO"; then :
17664 tmp_compiler_works="yes"
17668 tmp_compiler_works="no"
17670 sed 's/^/link-fail: /' conftest.err >&6
17674 rm -f core conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17677 if test "x$cross_compiling" != "xyes" &&
17678 test "$tmp_compiler_works" = "yes"; then
17679 if test "$cross_compiling" = yes; then :
17680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17682 as_fn_error $? "cannot run test program while cross compiling
17683 See \`config.log' for more details" "$LINENO" 5; }
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17690 # include <stdlib.h>
17704 if ac_fn_c_try_run "$LINENO"; then :
17706 tmp_compiler_works="yes"
17710 tmp_compiler_works="no"
17712 echo "run-fail: test program exited with status $ac_status" >&6
17716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17717 conftest.$ac_objext conftest.beam conftest.$ac_ext
17721 if test "$tmp_compiler_works" = "yes"; then
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17724 $as_echo "yes" >&6; }
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17726 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17731 $as_echo "no" >&6; }
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17733 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17734 CPPFLAGS="$tmp_save_CPPFLAGS"
17735 CFLAGS="$tmp_save_CFLAGS"
17744 if test "$compiler_id" != "unknown"; then
17746 tmp_save_CFLAGS="$CFLAGS"
17747 tmp_save_CPPFLAGS="$CPPFLAGS"
17750 tmp_CFLAGS="$CFLAGS"
17751 tmp_CPPFLAGS="$CPPFLAGS"
17752 honor_optimize_option="yes"
17755 if test "$want_optimize" = "assume_no" ||
17756 test "$want_optimize" = "assume_yes"; then
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17758 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17761 ac_var_match_word="no"
17762 for word1 in $tmp_CFLAGS; do
17763 for word2 in $flags_opt_all; do
17764 if test "$word1" = "$word2"; then
17765 ac_var_match_word="yes"
17770 if test "$ac_var_match_word" = "yes"; then
17772 honor_optimize_option="no"
17779 ac_var_match_word="no"
17780 for word1 in $tmp_CPPFLAGS; do
17781 for word2 in $flags_opt_all; do
17782 if test "$word1" = "$word2"; then
17783 ac_var_match_word="yes"
17788 if test "$ac_var_match_word" = "yes"; then
17790 honor_optimize_option="no"
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17796 $as_echo "$honor_optimize_option" >&6; }
17797 if test "$honor_optimize_option" = "yes"; then
17798 if test "$want_optimize" = "assume_yes"; then
17799 want_optimize="yes"
17801 if test "$want_optimize" = "assume_no"; then
17807 if test "$honor_optimize_option" = "yes"; then
17810 for word1 in $tmp_CFLAGS; do
17811 ac_var_strip_word="no"
17812 for word2 in $flags_opt_all; do
17813 if test "$word1" = "$word2"; then
17814 ac_var_strip_word="yes"
17817 if test "$ac_var_strip_word" = "no"; then
17818 ac_var_stripped="$ac_var_stripped $word1"
17821 tmp_CFLAGS="$ac_var_stripped"
17826 for word1 in $tmp_CPPFLAGS; do
17827 ac_var_strip_word="no"
17828 for word2 in $flags_opt_all; do
17829 if test "$word1" = "$word2"; then
17830 ac_var_strip_word="yes"
17833 if test "$ac_var_strip_word" = "no"; then
17834 ac_var_stripped="$ac_var_stripped $word1"
17837 tmp_CPPFLAGS="$ac_var_stripped"
17838 squeeze tmp_CPPFLAGS
17840 if test "$want_optimize" = "yes"; then
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17842 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17843 tmp_options="$flags_opt_yes"
17845 if test "$want_optimize" = "no"; then
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17847 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17848 tmp_options="$flags_opt_off"
17850 if test "$flags_prefer_cppflags" = "yes"; then
17851 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17852 CFLAGS="$tmp_CFLAGS"
17854 CPPFLAGS="$tmp_CPPFLAGS"
17855 CFLAGS="$tmp_CFLAGS $tmp_options"
17860 tmp_compiler_works="unknown"
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17877 if ac_fn_c_try_compile "$LINENO"; then :
17879 tmp_compiler_works="yes"
17883 tmp_compiler_works="no"
17885 sed 's/^/cc-fail: /' conftest.err >&6
17889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17890 if test "$tmp_compiler_works" = "yes"; then
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17907 if ac_fn_c_try_link "$LINENO"; then :
17909 tmp_compiler_works="yes"
17913 tmp_compiler_works="no"
17915 sed 's/^/link-fail: /' conftest.err >&6
17919 rm -f core conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17922 if test "x$cross_compiling" != "xyes" &&
17923 test "$tmp_compiler_works" = "yes"; then
17924 if test "$cross_compiling" = yes; then :
17925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17927 as_fn_error $? "cannot run test program while cross compiling
17928 See \`config.log' for more details" "$LINENO" 5; }
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17935 # include <stdlib.h>
17949 if ac_fn_c_try_run "$LINENO"; then :
17951 tmp_compiler_works="yes"
17955 tmp_compiler_works="no"
17957 echo "run-fail: test program exited with status $ac_status" >&6
17961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17962 conftest.$ac_objext conftest.beam conftest.$ac_ext
17966 if test "$tmp_compiler_works" = "yes"; then
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17969 $as_echo "yes" >&6; }
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17971 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17976 $as_echo "no" >&6; }
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17978 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17979 CPPFLAGS="$tmp_save_CPPFLAGS"
17980 CFLAGS="$tmp_save_CFLAGS"
17990 if test "$compiler_id" != "unknown"; then
17992 tmp_save_CPPFLAGS="$CPPFLAGS"
17993 tmp_save_CFLAGS="$CFLAGS"
17997 case "$compiler_id" in
18001 if test "$want_warnings" = "yes"; then
18002 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18003 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18004 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18005 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
18006 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18007 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18008 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18009 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18010 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18011 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18012 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18013 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18014 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18015 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18016 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18017 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18018 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
18020 if test "$compiler_num" -ge "101"; then
18021 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
18028 if test "$want_warnings" = "yes"; then
18029 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18035 if test "$want_warnings" = "yes"; then
18037 if test "x$cross_compiling" != "xyes" ||
18038 test "$compiler_num" -ge "300"; then
18039 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18042 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
18044 if test "$compiler_num" -ge "104"; then
18045 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18046 if test "x$cross_compiling" != "xyes" ||
18047 test "$compiler_num" -ge "300"; then
18048 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
18052 if test "$compiler_num" -ge "207"; then
18053 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18054 if test "x$cross_compiling" != "xyes" ||
18055 test "$compiler_num" -ge "300"; then
18056 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18057 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18061 if test "$compiler_num" -ge "295"; then
18062 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18065 if test "$compiler_num" -ge "296"; then
18066 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18067 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18068 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18071 if test "$compiler_num" -ge "297"; then
18072 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18075 if test "$compiler_num" -ge "300"; then
18076 tmp_CFLAGS="$tmp_CFLAGS"
18079 if test "$compiler_num" -ge "303"; then
18080 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18083 if test "$compiler_num" -ge "304"; then
18084 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18087 if test "$compiler_num" -ge "400"; then
18088 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18091 if test "$compiler_num" -ge "402"; then
18092 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18095 if test "$compiler_num" -ge "403"; then
18096 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18097 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18098 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18099 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18102 if test "$compiler_num" -ge "405"; then
18103 if test "$curl_cv_have_def__WIN32" = "yes"; then
18104 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18110 if test "$compiler_num" -ge "300"; then
18111 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18113 if test "x$cross_compiling" = "xyes"; then
18114 if test "$compiler_num" -ge "104"; then
18115 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18117 if test "$compiler_num" -ge "207"; then
18118 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18119 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18127 if test "$want_warnings" = "yes"; then
18128 tmp_CFLAGS="$tmp_CFLAGS +w1"
18134 tmp_CFLAGS="$tmp_CFLAGS"
18139 if test "$want_warnings" = "yes"; then
18140 if test "$compiler_num" -gt "600"; then
18141 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18142 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18143 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18144 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18145 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18146 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18147 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18148 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18149 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18150 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18151 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18154 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18155 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18156 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18157 if test "$compiler_num" -ge "1000"; then
18158 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18164 tmp_CFLAGS="$tmp_CFLAGS"
18169 if test "$want_warnings" = "yes"; then
18170 tmp_CFLAGS="$tmp_CFLAGS"
18176 if test "$want_warnings" = "yes"; then
18177 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18183 if test "$want_warnings" = "yes"; then
18184 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18185 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18191 if test "$want_warnings" = "yes"; then
18192 tmp_CFLAGS="$tmp_CFLAGS -v"
18198 if test "$want_warnings" = "yes"; then
18199 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18200 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18201 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18207 if test "$want_warnings" = "yes"; then
18208 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18214 tmp_CFLAGS="$tmp_CFLAGS"
18219 squeeze tmp_CPPFLAGS
18222 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18224 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18225 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18226 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18230 tmp_compiler_works="unknown"
18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h. */
18247 if ac_fn_c_try_compile "$LINENO"; then :
18249 tmp_compiler_works="yes"
18253 tmp_compiler_works="no"
18255 sed 's/^/cc-fail: /' conftest.err >&6
18259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260 if test "$tmp_compiler_works" = "yes"; then
18261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h. */
18277 if ac_fn_c_try_link "$LINENO"; then :
18279 tmp_compiler_works="yes"
18283 tmp_compiler_works="no"
18285 sed 's/^/link-fail: /' conftest.err >&6
18289 rm -f core conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18292 if test "x$cross_compiling" != "xyes" &&
18293 test "$tmp_compiler_works" = "yes"; then
18294 if test "$cross_compiling" = yes; then :
18295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18297 as_fn_error $? "cannot run test program while cross compiling
18298 See \`config.log' for more details" "$LINENO" 5; }
18300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18305 # include <stdlib.h>
18319 if ac_fn_c_try_run "$LINENO"; then :
18321 tmp_compiler_works="yes"
18325 tmp_compiler_works="no"
18327 echo "run-fail: test program exited with status $ac_status" >&6
18331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18332 conftest.$ac_objext conftest.beam conftest.$ac_ext
18336 if test "$tmp_compiler_works" = "yes"; then
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18339 $as_echo "yes" >&6; }
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18341 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18346 $as_echo "no" >&6; }
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18348 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18349 CPPFLAGS="$tmp_save_CPPFLAGS"
18350 CFLAGS="$tmp_save_CFLAGS"
18359 if test "$compiler_id" = "INTEL_UNIX_C"; then
18361 if test "$compiler_num" -ge "1000"; then
18362 CFLAGS="$CFLAGS -shared-intel"
18363 elif test "$compiler_num" -ge "900"; then
18364 CFLAGS="$CFLAGS -i-dynamic"
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18371 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373 /* end confdefs.h. */
18380 force compilation error
18387 if ac_fn_c_try_compile "$LINENO"; then :
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18390 $as_echo "no" >&6; }
18391 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18396 $as_echo "yes" >&6; }
18399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18403 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18408 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18420 if ac_fn_c_try_compile "$LINENO"; then :
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423 $as_echo "no" >&6; }
18424 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18429 $as_echo "yes" >&6; }
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18436 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18441 # include <stdlib.h>
18455 int j = rand(i[0]);
18464 if ac_fn_c_try_compile "$LINENO"; then :
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18467 $as_echo "no" >&6; }
18468 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18473 $as_echo "yes" >&6; }
18476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18480 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18481 supports_symbol_hiding="no"
18482 symbol_hiding_CFLAGS=""
18483 symbol_hiding_EXTERN=""
18486 case "$compiler_id" in
18488 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18489 tmp_CFLAGS="-fvisibility=hidden"
18490 supports_symbol_hiding="yes"
18493 if test "$compiler_num" -ge "304"; then
18494 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18495 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18496 tmp_CFLAGS="-fvisibility=hidden"
18497 supports_symbol_hiding="yes"
18502 if test "$compiler_num" -ge "900"; then
18503 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18504 tmp_save_CFLAGS="$CFLAGS"
18505 CFLAGS="$CFLAGS -fvisibility=hidden"
18506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18507 /* end confdefs.h. */
18510 # include <stdio.h>
18515 printf("icc fvisibility bug test");
18522 if ac_fn_c_try_link "$LINENO"; then :
18524 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18525 tmp_CFLAGS="-fvisibility=hidden"
18526 supports_symbol_hiding="yes"
18529 rm -f core conftest.err conftest.$ac_objext \
18530 conftest$ac_exeext conftest.$ac_ext
18531 CFLAGS="$tmp_save_CFLAGS"
18536 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18537 tmp_EXTERN="__global"
18538 tmp_CFLAGS="-xldscope=hidden"
18539 supports_symbol_hiding="yes"
18543 if test "$supports_symbol_hiding" = "yes"; then
18544 tmp_save_CFLAGS="$CFLAGS"
18545 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18548 /* end confdefs.h. */
18551 $tmp_EXTERN char *dummy(char *buff);
18552 char *dummy(char *buff)
18564 char *r = dummy(&b[0]);
18573 if ac_fn_c_try_compile "$LINENO"; then :
18575 supports_symbol_hiding="yes"
18576 if test -f conftest.err; then
18577 grep 'visibility' conftest.err >/dev/null
18578 if test "$?" -eq "0"; then
18579 supports_symbol_hiding="no"
18585 supports_symbol_hiding="no"
18587 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18588 sed 's/^/cc-err: /' conftest.err >&6
18592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18593 CFLAGS="$tmp_save_CFLAGS"
18595 if test "$supports_symbol_hiding" = "yes"; then
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18597 $as_echo "yes" >&6; }
18598 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18599 symbol_hiding_EXTERN="$tmp_EXTERN"
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18607 supports_curldebug="unknown"
18608 if test "$want_curldebug" = "yes"; then
18609 if test "x$enable_shared" != "xno" &&
18610 test "x$enable_shared" != "xyes"; then
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18612 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18613 supports_curldebug="no"
18615 if test "x$enable_static" != "xno" &&
18616 test "x$enable_static" != "xyes"; then
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18618 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18619 supports_curldebug="no"
18621 if test "$supports_curldebug" != "no"; then
18622 if test "$enable_shared" = "yes" &&
18623 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18624 supports_curldebug="no"
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18626 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18631 if test "$want_curldebug" = "yes"; then
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18633 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18634 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18636 $as_echo "$supports_curldebug" >&6; }
18637 if test "$supports_curldebug" = "no"; then
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18639 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18640 want_curldebug="no"
18644 if test "$want_curldebug" = "yes"; then
18645 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18648 if test "$want_debug" = "yes"; then
18649 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18653 if test x$want_curldebug = xyes; then
18655 CURLDEBUG_FALSE='#'
18662 supports_unittests=yes
18663 # cross-compilation of unit tests static library/programs fails when
18664 # libcurl shared library is built. This might be due to a libtool or
18665 # automake issue. In this case we disable unit tests.
18666 if test "x$cross_compiling" != "xno" &&
18667 test "x$enable_shared" != "xno"; then
18668 supports_unittests=no
18671 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18672 # a problem related with OpenSSL headers and library versions not matching.
18673 # Disable unit tests while time to further investigate this is found.
18676 if test "$compiler_id" = "GNU_C"; then
18677 supports_unittests=no
18682 # All AIX autobuilds fails unit tests linking against unittests library
18683 # due to unittests library being built with no symbols or members. Libtool ?
18684 # Disable unit tests while time to further investigate this is found.
18687 supports_unittests=no
18691 if test "x$want_debug" = "xyes" &&
18692 test "x$supports_unittests" = "xyes"; then
18697 if test x$want_unittests = xyes; then
18698 BUILD_UNITTESTS_TRUE=
18699 BUILD_UNITTESTS_FALSE='#'
18701 BUILD_UNITTESTS_TRUE='#'
18702 BUILD_UNITTESTS_FALSE=
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18710 $as_echo_n "checking for windows.h... " >&6; }
18711 if ${curl_cv_header_windows_h+:} false; then :
18712 $as_echo_n "(cached) " >&6
18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18720 #ifndef WIN32_LEAN_AND_MEAN
18721 #define WIN32_LEAN_AND_MEAN
18723 #include <windows.h>
18728 #if defined(__CYGWIN__) || defined(__CEGCC__)
18729 HAVE_WINDOWS_H shall not be defined.
18731 int dummy=2*WINVER;
18739 if ac_fn_c_try_compile "$LINENO"; then :
18741 curl_cv_header_windows_h="yes"
18745 curl_cv_header_windows_h="no"
18748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18752 $as_echo "$curl_cv_header_windows_h" >&6; }
18753 case "$curl_cv_header_windows_h" in
18756 cat >>confdefs.h <<_ACEOF
18757 #define HAVE_WINDOWS_H 1
18761 cat >>confdefs.h <<_ACEOF
18762 #define WIN32_LEAN_AND_MEAN 1
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18770 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18771 if ${curl_cv_native_windows+:} false; then :
18772 $as_echo_n "(cached) " >&6
18775 if test "$curl_cv_header_windows_h" = "no"; then
18776 curl_cv_native_windows="no"
18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779 /* end confdefs.h. */
18786 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18787 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18790 Not a native Windows build target.
18798 if ac_fn_c_try_compile "$LINENO"; then :
18800 curl_cv_native_windows="yes"
18804 curl_cv_native_windows="no"
18807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18812 $as_echo "$curl_cv_native_windows" >&6; }
18813 if test "x$curl_cv_native_windows" = xyes; then
18814 DOING_NATIVE_WINDOWS_TRUE=
18815 DOING_NATIVE_WINDOWS_FALSE='#'
18817 DOING_NATIVE_WINDOWS_TRUE='#'
18818 DOING_NATIVE_WINDOWS_FALSE=
18822 case X-"$curl_cv_native_windows" in
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18826 $as_echo_n "checking for winsock.h... " >&6; }
18827 if ${curl_cv_header_winsock_h+:} false; then :
18828 $as_echo_n "(cached) " >&6
18831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18836 #ifndef WIN32_LEAN_AND_MEAN
18837 #define WIN32_LEAN_AND_MEAN
18839 #include <windows.h>
18840 #include <winsock.h>
18845 #if defined(__CYGWIN__) || defined(__CEGCC__)
18846 HAVE_WINSOCK_H shall not be defined.
18848 int dummy=WSACleanup();
18856 if ac_fn_c_try_compile "$LINENO"; then :
18858 curl_cv_header_winsock_h="yes"
18862 curl_cv_header_winsock_h="no"
18865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18869 $as_echo "$curl_cv_header_winsock_h" >&6; }
18870 case "$curl_cv_header_winsock_h" in
18873 cat >>confdefs.h <<_ACEOF
18874 #define HAVE_WINSOCK_H 1
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18882 $as_echo_n "checking for winsock2.h... " >&6; }
18883 if ${curl_cv_header_winsock2_h+:} false; then :
18884 $as_echo_n "(cached) " >&6
18887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h. */
18892 #ifndef WIN32_LEAN_AND_MEAN
18893 #define WIN32_LEAN_AND_MEAN
18895 #include <windows.h>
18896 #include <winsock2.h>
18901 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18902 HAVE_WINSOCK2_H shall not be defined.
18904 int dummy=2*IPPROTO_ESP;
18912 if ac_fn_c_try_compile "$LINENO"; then :
18914 curl_cv_header_winsock2_h="yes"
18918 curl_cv_header_winsock2_h="no"
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18925 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18926 case "$curl_cv_header_winsock2_h" in
18929 cat >>confdefs.h <<_ACEOF
18930 #define HAVE_WINSOCK2_H 1
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18938 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18939 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18940 $as_echo_n "(cached) " >&6
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h. */
18948 #ifndef WIN32_LEAN_AND_MEAN
18949 #define WIN32_LEAN_AND_MEAN
18951 #include <windows.h>
18952 #include <winsock2.h>
18953 #include <ws2tcpip.h>
18958 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18959 HAVE_WS2TCPIP_H shall not be defined.
18961 int dummy=2*IP_PKTINFO;
18969 if ac_fn_c_try_compile "$LINENO"; then :
18971 curl_cv_header_ws2tcpip_h="yes"
18975 curl_cv_header_ws2tcpip_h="no"
18978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18982 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18983 case "$curl_cv_header_ws2tcpip_h" in
18986 cat >>confdefs.h <<_ACEOF
18987 #define HAVE_WS2TCPIP_H 1
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18995 $as_echo_n "checking for winldap.h... " >&6; }
18996 if ${curl_cv_header_winldap_h+:} false; then :
18997 $as_echo_n "(cached) " >&6
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19005 #ifdef HAVE_WINDOWS_H
19006 #ifndef WIN32_LEAN_AND_MEAN
19007 #define WIN32_LEAN_AND_MEAN
19009 #include <windows.h>
19011 #include <winldap.h>
19016 #if defined(__CYGWIN__) || defined(__CEGCC__)
19017 HAVE_WINLDAP_H shall not be defined.
19019 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
19020 ULONG res = ldap_unbind(ldp);
19028 if ac_fn_c_try_compile "$LINENO"; then :
19030 curl_cv_header_winldap_h="yes"
19034 curl_cv_header_winldap_h="no"
19037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
19041 $as_echo "$curl_cv_header_winldap_h" >&6; }
19042 case "$curl_cv_header_winldap_h" in
19045 cat >>confdefs.h <<_ACEOF
19046 #define HAVE_WINLDAP_H 1
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
19054 $as_echo_n "checking for winber.h... " >&6; }
19055 if ${curl_cv_header_winber_h+:} false; then :
19056 $as_echo_n "(cached) " >&6
19059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19060 /* end confdefs.h. */
19064 #ifdef HAVE_WINDOWS_H
19065 #ifndef WIN32_LEAN_AND_MEAN
19066 #define WIN32_LEAN_AND_MEAN
19068 #include <windows.h>
19070 #include <winldap.h>
19071 #include <winber.h>
19076 #if defined(__CYGWIN__) || defined(__CEGCC__)
19077 HAVE_WINBER_H shall not be defined.
19079 BERVAL *bvp = NULL;
19080 BerElement *bep = ber_init(bvp);
19089 if ac_fn_c_try_compile "$LINENO"; then :
19091 curl_cv_header_winber_h="yes"
19095 curl_cv_header_winber_h="no"
19098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19102 $as_echo "$curl_cv_header_winber_h" >&6; }
19103 case "$curl_cv_header_winber_h" in
19106 cat >>confdefs.h <<_ACEOF
19107 #define HAVE_WINBER_H 1
19115 curl_cv_header_winsock_h="no"
19116 curl_cv_header_winsock2_h="no"
19117 curl_cv_header_ws2tcpip_h="no"
19118 curl_cv_header_winldap_h="no"
19119 curl_cv_header_winber_h="no"
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19124 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19125 curl_win32_file_api="no"
19126 if test "$curl_cv_header_windows_h" = "yes"; then
19127 if test x"$enable_largefile" != "xno"; then
19128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h. */
19136 #if !defined(_WIN32_WCE) && \
19137 (defined(__MINGW32__) || \
19138 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19141 WIN32 large file API not supported.
19149 if ac_fn_c_try_compile "$LINENO"; then :
19151 curl_win32_file_api="win32_large_files"
19154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19156 if test "$curl_win32_file_api" = "no"; then
19157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19158 /* end confdefs.h. */
19165 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19168 WIN32 small file API not supported.
19176 if ac_fn_c_try_compile "$LINENO"; then :
19178 curl_win32_file_api="win32_small_files"
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 case "$curl_win32_file_api" in
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19187 $as_echo "yes (large file enabled)" >&6; }
19189 cat >>confdefs.h <<_ACEOF
19190 #define USE_WIN32_LARGE_FILES 1
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19196 $as_echo "yes (large file disabled)" >&6; }
19198 cat >>confdefs.h <<_ACEOF
19199 #define USE_WIN32_SMALL_FILES 1
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19205 $as_echo "no" >&6; }
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19220 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19222 $as_echo "$tst_cflags" >&6; };
19224 if test "$tst_cflags" = "yes"; then
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19226 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19228 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19229 min="-mmacosx-version-min=10.8"
19230 CFLAGS="$CFLAGS $min"
19232 if test -z "$min"; then
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19234 $as_echo "set by user" >&6; }
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19237 $as_echo "$min set" >&6; }
19241 CFLAGS="$CFLAGS -Werror=partial-availability"
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19243 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19254 if ac_fn_c_try_compile "$LINENO"; then :
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19256 $as_echo "yes" >&6; }
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259 $as_echo "no" >&6; }
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19268 $as_echo_n "checking whether to support http... " >&6; }
19269 # Check whether --enable-http was given.
19270 if test "${enable_http+set}" = set; then :
19271 enableval=$enable_http; case "$enableval" in
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19274 $as_echo "no" >&6; }
19276 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19279 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19280 CURL_DISABLE_HTTP=1
19283 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19285 CURL_DISABLE_RTSP=1
19288 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19289 $as_echo "yes" >&6; }
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19294 $as_echo "yes" >&6; }
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19299 $as_echo_n "checking whether to support ftp... " >&6; }
19300 # Check whether --enable-ftp was given.
19301 if test "${enable_ftp+set}" = set; then :
19302 enableval=$enable_ftp; case "$enableval" in
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 $as_echo "no" >&6; }
19307 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19312 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19313 $as_echo "yes" >&6; }
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19318 $as_echo "yes" >&6; }
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19323 $as_echo_n "checking whether to support file... " >&6; }
19324 # Check whether --enable-file was given.
19325 if test "${enable_file+set}" = set; then :
19326 enableval=$enable_file; case "$enableval" in
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19329 $as_echo "no" >&6; }
19331 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19333 CURL_DISABLE_FILE=1
19336 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19337 $as_echo "yes" >&6; }
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19342 $as_echo "yes" >&6; }
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19347 $as_echo_n "checking whether to support ldap... " >&6; }
19348 # Check whether --enable-ldap was given.
19349 if test "${enable_ldap+set}" = set; then :
19350 enableval=$enable_ldap; case "$enableval" in
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19353 $as_echo "no" >&6; }
19355 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19357 CURL_DISABLE_LDAP=1
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19362 $as_echo "yes" >&6; }
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19368 $as_echo "yes" >&6; }
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19373 $as_echo_n "checking whether to support ldaps... " >&6; }
19374 # Check whether --enable-ldaps was given.
19375 if test "${enable_ldaps+set}" = set; then :
19376 enableval=$enable_ldaps; case "$enableval" in
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19379 $as_echo "no" >&6; }
19381 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19383 CURL_DISABLE_LDAPS=1
19386 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19388 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19390 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19392 CURL_DISABLE_LDAPS=1
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19396 $as_echo "yes" >&6; }
19398 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19407 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19409 $as_echo "no" >&6; }
19411 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19413 CURL_DISABLE_LDAPS=1
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19417 $as_echo "yes" >&6; }
19419 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19429 $as_echo_n "checking whether to support rtsp... " >&6; }
19430 # Check whether --enable-rtsp was given.
19431 if test "${enable_rtsp+set}" = set; then :
19432 enableval=$enable_rtsp; case "$enableval" in
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19435 $as_echo "no" >&6; }
19437 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19439 CURL_DISABLE_RTSP=1
19442 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19443 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19446 $as_echo "yes" >&6; }
19447 curl_rtsp_msg="enabled"
19452 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19454 $as_echo "yes" >&6; }
19455 curl_rtsp_msg="enabled"
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19458 $as_echo "no" >&6; }
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19465 $as_echo_n "checking whether to support proxies... " >&6; }
19466 # Check whether --enable-proxy was given.
19467 if test "${enable_proxy+set}" = set; then :
19468 enableval=$enable_proxy; case "$enableval" in
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19473 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19475 CURL_DISABLE_PROXY=1
19478 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19479 $as_echo "yes" >&6; }
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484 $as_echo "yes" >&6; }
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19490 $as_echo_n "checking whether to support dict... " >&6; }
19491 # Check whether --enable-dict was given.
19492 if test "${enable_dict+set}" = set; then :
19493 enableval=$enable_dict; case "$enableval" in
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19496 $as_echo "no" >&6; }
19498 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19500 CURL_DISABLE_DICT=1
19503 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19504 $as_echo "yes" >&6; }
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19509 $as_echo "yes" >&6; }
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19514 $as_echo_n "checking whether to support telnet... " >&6; }
19515 # Check whether --enable-telnet was given.
19516 if test "${enable_telnet+set}" = set; then :
19517 enableval=$enable_telnet; case "$enableval" in
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19520 $as_echo "no" >&6; }
19522 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19524 CURL_DISABLE_TELNET=1
19527 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19528 $as_echo "yes" >&6; }
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19533 $as_echo "yes" >&6; }
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19538 $as_echo_n "checking whether to support tftp... " >&6; }
19539 # Check whether --enable-tftp was given.
19540 if test "${enable_tftp+set}" = set; then :
19541 enableval=$enable_tftp; case "$enableval" in
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19544 $as_echo "no" >&6; }
19546 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19548 CURL_DISABLE_TFTP=1
19551 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19552 $as_echo "yes" >&6; }
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19557 $as_echo "yes" >&6; }
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19563 $as_echo_n "checking whether to support pop3... " >&6; }
19564 # Check whether --enable-pop3 was given.
19565 if test "${enable_pop3+set}" = set; then :
19566 enableval=$enable_pop3; case "$enableval" in
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19569 $as_echo "no" >&6; }
19571 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19573 CURL_DISABLE_POP3=1
19576 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19577 $as_echo "yes" >&6; }
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19582 $as_echo "yes" >&6; }
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19589 $as_echo_n "checking whether to support imap... " >&6; }
19590 # Check whether --enable-imap was given.
19591 if test "${enable_imap+set}" = set; then :
19592 enableval=$enable_imap; case "$enableval" in
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19595 $as_echo "no" >&6; }
19597 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19599 CURL_DISABLE_IMAP=1
19602 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19603 $as_echo "yes" >&6; }
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19608 $as_echo "yes" >&6; }
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19615 $as_echo_n "checking whether to support smb... " >&6; }
19616 # Check whether --enable-smb was given.
19617 if test "${enable_smb+set}" = set; then :
19618 enableval=$enable_smb; case "$enableval" in
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19621 $as_echo "no" >&6; }
19623 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19628 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19629 $as_echo "yes" >&6; }
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19634 $as_echo "yes" >&6; }
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19640 $as_echo_n "checking whether to support smtp... " >&6; }
19641 # Check whether --enable-smtp was given.
19642 if test "${enable_smtp+set}" = set; then :
19643 enableval=$enable_smtp; case "$enableval" in
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19646 $as_echo "no" >&6; }
19648 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19650 CURL_DISABLE_SMTP=1
19653 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19654 $as_echo "yes" >&6; }
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19659 $as_echo "yes" >&6; }
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19665 $as_echo_n "checking whether to support gopher... " >&6; }
19666 # Check whether --enable-gopher was given.
19667 if test "${enable_gopher+set}" = set; then :
19668 enableval=$enable_gopher; case "$enableval" in
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19671 $as_echo "no" >&6; }
19673 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19675 CURL_DISABLE_GOPHER=1
19678 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19679 $as_echo "yes" >&6; }
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19684 $as_echo "yes" >&6; }
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19692 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19693 # Check whether --enable-manual was given.
19694 if test "${enable_manual+set}" = set; then :
19695 enableval=$enable_manual; case "$enableval" in
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19698 $as_echo "no" >&6; }
19700 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19701 $as_echo "yes" >&6; }
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19707 $as_echo "yes" >&6; }
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19714 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19715 # Check whether --enable-libcurl_option was given.
19716 if test "${enable_libcurl_option+set}" = set; then :
19717 enableval=$enable_libcurl_option; case "$enableval" in
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19720 $as_echo "no" >&6; }
19722 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19724 curl_libcurl_msg="no"
19726 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19727 $as_echo "yes" >&6; }
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19732 $as_echo "yes" >&6; }
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19739 $as_echo_n "checking whether to use libgcc... " >&6; }
19740 # Check whether --enable-libgcc was given.
19741 if test "${enable_libgcc+set}" = set; then :
19742 enableval=$enable_libgcc; case "$enableval" in
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19746 $as_echo "yes" >&6; }
19748 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19749 $as_echo "no" >&6; }
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19754 $as_echo "no" >&6; }
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19761 $as_echo_n "checking if X/Open network library is required... " >&6; }
19762 tst_lib_xnet_required="no"
19763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19764 /* end confdefs.h. */
19769 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19771 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19774 force compilation error
19780 if ac_fn_c_try_compile "$LINENO"; then :
19782 tst_lib_xnet_required="yes"
19783 LIBS="-lxnet $LIBS"
19786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19788 $as_echo "$tst_lib_xnet_required" >&6; }
19791 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19792 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19793 HAVE_GETHOSTBYNAME="1"
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19797 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19798 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19799 $as_echo_n "(cached) " >&6
19801 ac_check_lib_save_LIBS=$LIBS
19803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804 /* end confdefs.h. */
19810 char gethostbyname ();
19813 return gethostbyname ();
19818 if ac_fn_c_try_link "$LINENO"; then :
19819 ac_cv_lib_nsl_gethostbyname=yes
19821 ac_cv_lib_nsl_gethostbyname=no
19823 rm -f core conftest.err conftest.$ac_objext \
19824 conftest$ac_exeext conftest.$ac_ext
19825 LIBS=$ac_check_lib_save_LIBS
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19828 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19829 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19830 HAVE_GETHOSTBYNAME="1"
19839 if test "$HAVE_GETHOSTBYNAME" != "1"
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19842 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19843 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19844 $as_echo_n "(cached) " >&6
19846 ac_check_lib_save_LIBS=$LIBS
19847 LIBS="-lsocket $LIBS"
19848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19849 /* end confdefs.h. */
19855 char gethostbyname ();
19858 return gethostbyname ();
19863 if ac_fn_c_try_link "$LINENO"; then :
19864 ac_cv_lib_socket_gethostbyname=yes
19866 ac_cv_lib_socket_gethostbyname=no
19868 rm -f core conftest.err conftest.$ac_objext \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19873 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19874 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19875 HAVE_GETHOSTBYNAME="1"
19876 LIBS="-lsocket $LIBS"
19882 if test "$HAVE_GETHOSTBYNAME" != "1"
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19885 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19886 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19887 $as_echo_n "(cached) " >&6
19889 ac_check_lib_save_LIBS=$LIBS
19890 LIBS="-lwatt $LIBS"
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19898 char gethostbyname ();
19901 return gethostbyname ();
19906 if ac_fn_c_try_link "$LINENO"; then :
19907 ac_cv_lib_watt_gethostbyname=yes
19909 ac_cv_lib_watt_gethostbyname=no
19911 rm -f core conftest.err conftest.$ac_objext \
19912 conftest$ac_exeext conftest.$ac_ext
19913 LIBS=$ac_check_lib_save_LIBS
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19916 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19917 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19918 HAVE_GETHOSTBYNAME="1"
19919 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19920 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19921 LIBS="-lwatt $LIBS"
19927 if test "$HAVE_GETHOSTBYNAME" != "1"
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19930 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19931 my_ac_save_LIBS=$LIBS
19932 LIBS="-lnsl -lsocket $LIBS"
19933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934 /* end confdefs.h. */
19948 if ac_fn_c_try_link "$LINENO"; then :
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19951 $as_echo "yes" >&6; }
19952 HAVE_GETHOSTBYNAME="1"
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19957 $as_echo "no" >&6; }
19958 LIBS=$my_ac_save_LIBS
19961 rm -f core conftest.err conftest.$ac_objext \
19962 conftest$ac_exeext conftest.$ac_ext
19965 if test "$HAVE_GETHOSTBYNAME" != "1"
19967 if test "$curl_cv_header_windows_h" = "yes"; then
19968 if test "$curl_cv_header_winsock_h" = "yes"; then
19971 winsock_LIB="-lwinsock"
19974 winsock_LIB="-lwsock32"
19978 if test "$curl_cv_header_winsock2_h" = "yes"; then
19979 winsock_LIB="-lws2_32"
19981 if test ! -z "$winsock_LIB"; then
19982 my_ac_save_LIBS=$LIBS
19983 LIBS="$winsock_LIB $LIBS"
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19985 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19990 #ifdef HAVE_WINDOWS_H
19991 #ifndef WIN32_LEAN_AND_MEAN
19992 #define WIN32_LEAN_AND_MEAN
19994 #include <windows.h>
19995 #ifdef HAVE_WINSOCK2_H
19996 #include <winsock2.h>
19998 #ifdef HAVE_WINSOCK_H
19999 #include <winsock.h>
20007 gethostbyname("www.dummysite.com");
20014 if ac_fn_c_try_link "$LINENO"; then :
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20017 $as_echo "yes" >&6; }
20018 HAVE_GETHOSTBYNAME="1"
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20023 $as_echo "no" >&6; }
20025 LIBS=$my_ac_save_LIBS
20028 rm -f core conftest.err conftest.$ac_objext \
20029 conftest$ac_exeext conftest.$ac_ext
20034 if test "$HAVE_GETHOSTBYNAME" != "1"
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
20037 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h. */
20042 /* Older Minix versions may need <net/gen/netdb.h> here instead */
20048 gethostbyname("www.dummysite.com");
20055 if ac_fn_c_try_link "$LINENO"; then :
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20058 $as_echo "yes" >&6; }
20059 HAVE_GETHOSTBYNAME="1"
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20064 $as_echo "no" >&6; }
20067 rm -f core conftest.err conftest.$ac_objext \
20068 conftest$ac_exeext conftest.$ac_ext
20071 if test "$HAVE_GETHOSTBYNAME" != "1"
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20074 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076 /* end confdefs.h. */
20085 gethostbyname("www.dummysite.com");
20092 if ac_fn_c_try_link "$LINENO"; then :
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20095 $as_echo "yes" >&6; }
20096 HAVE_GETHOSTBYNAME="1"
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20101 $as_echo "no" >&6; }
20104 rm -f core conftest.err conftest.$ac_objext \
20105 conftest$ac_exeext conftest.$ac_ext
20108 if test "$HAVE_GETHOSTBYNAME" != "1"
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20111 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20112 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20113 $as_echo_n "(cached) " >&6
20115 ac_check_lib_save_LIBS=$LIBS
20116 LIBS="-lnetwork $LIBS"
20117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h. */
20124 char gethostbyname ();
20127 return gethostbyname ();
20132 if ac_fn_c_try_link "$LINENO"; then :
20133 ac_cv_lib_network_gethostbyname=yes
20135 ac_cv_lib_network_gethostbyname=no
20137 rm -f core conftest.err conftest.$ac_objext \
20138 conftest$ac_exeext conftest.$ac_ext
20139 LIBS=$ac_check_lib_save_LIBS
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20142 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20143 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20144 HAVE_GETHOSTBYNAME="1"
20145 LIBS="-lnetwork $LIBS"
20151 if test "$HAVE_GETHOSTBYNAME" != "1"
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20154 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20155 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20156 $as_echo_n "(cached) " >&6
20158 ac_check_lib_save_LIBS=$LIBS
20160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h. */
20167 char gethostbyname ();
20170 return gethostbyname ();
20175 if ac_fn_c_try_link "$LINENO"; then :
20176 ac_cv_lib_net_gethostbyname=yes
20178 ac_cv_lib_net_gethostbyname=no
20180 rm -f core conftest.err conftest.$ac_objext \
20181 conftest$ac_exeext conftest.$ac_ext
20182 LIBS=$ac_check_lib_save_LIBS
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20185 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20186 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20187 HAVE_GETHOSTBYNAME="1"
20195 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20196 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20200 curl_includes_winsock2="\
20201 /* includes start */
20202 #ifdef HAVE_WINDOWS_H
20203 # ifndef WIN32_LEAN_AND_MEAN
20204 # define WIN32_LEAN_AND_MEAN
20206 # include <windows.h>
20207 # ifdef HAVE_WINSOCK2_H
20208 # include <winsock2.h>
20210 # ifdef HAVE_WINSOCK_H
20211 # include <winsock.h>
20215 /* includes end */"
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20218 $as_echo_n "checking for windows.h... " >&6; }
20219 if ${curl_cv_header_windows_h+:} false; then :
20220 $as_echo_n "(cached) " >&6
20223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h. */
20228 #ifndef WIN32_LEAN_AND_MEAN
20229 #define WIN32_LEAN_AND_MEAN
20231 #include <windows.h>
20236 #if defined(__CYGWIN__) || defined(__CEGCC__)
20237 HAVE_WINDOWS_H shall not be defined.
20239 int dummy=2*WINVER;
20247 if ac_fn_c_try_compile "$LINENO"; then :
20249 curl_cv_header_windows_h="yes"
20253 curl_cv_header_windows_h="no"
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20260 $as_echo "$curl_cv_header_windows_h" >&6; }
20261 case "$curl_cv_header_windows_h" in
20264 cat >>confdefs.h <<_ACEOF
20265 #define HAVE_WINDOWS_H 1
20269 cat >>confdefs.h <<_ACEOF
20270 #define WIN32_LEAN_AND_MEAN 1
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20278 $as_echo_n "checking for winsock.h... " >&6; }
20279 if ${curl_cv_header_winsock_h+:} false; then :
20280 $as_echo_n "(cached) " >&6
20283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h. */
20288 #ifndef WIN32_LEAN_AND_MEAN
20289 #define WIN32_LEAN_AND_MEAN
20291 #include <windows.h>
20292 #include <winsock.h>
20297 #if defined(__CYGWIN__) || defined(__CEGCC__)
20298 HAVE_WINSOCK_H shall not be defined.
20300 int dummy=WSACleanup();
20308 if ac_fn_c_try_compile "$LINENO"; then :
20310 curl_cv_header_winsock_h="yes"
20314 curl_cv_header_winsock_h="no"
20317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20321 $as_echo "$curl_cv_header_winsock_h" >&6; }
20322 case "$curl_cv_header_winsock_h" in
20325 cat >>confdefs.h <<_ACEOF
20326 #define HAVE_WINSOCK_H 1
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20334 $as_echo_n "checking for winsock2.h... " >&6; }
20335 if ${curl_cv_header_winsock2_h+:} false; then :
20336 $as_echo_n "(cached) " >&6
20339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20340 /* end confdefs.h. */
20344 #ifndef WIN32_LEAN_AND_MEAN
20345 #define WIN32_LEAN_AND_MEAN
20347 #include <windows.h>
20348 #include <winsock2.h>
20353 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20354 HAVE_WINSOCK2_H shall not be defined.
20356 int dummy=2*IPPROTO_ESP;
20364 if ac_fn_c_try_compile "$LINENO"; then :
20366 curl_cv_header_winsock2_h="yes"
20370 curl_cv_header_winsock2_h="no"
20373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20377 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20378 case "$curl_cv_header_winsock2_h" in
20381 cat >>confdefs.h <<_ACEOF
20382 #define HAVE_WINSOCK2_H 1
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20391 $as_echo_n "checking for connect in libraries... " >&6; }
20392 tst_connect_save_LIBS="$LIBS"
20393 tst_connect_need_LIBS="unknown"
20394 for tst_lib in '' '-lsocket' ; do
20395 if test "$tst_connect_need_LIBS" = "unknown"; then
20396 LIBS="$tst_lib $tst_connect_save_LIBS"
20397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h. */
20401 $curl_includes_winsock2
20402 #ifndef HAVE_WINDOWS_H
20403 int connect(int, void*, int);
20409 if(0 != connect(0, 0, 0))
20417 if ac_fn_c_try_link "$LINENO"; then :
20419 tst_connect_need_LIBS="$tst_lib"
20422 rm -f core conftest.err conftest.$ac_objext \
20423 conftest$ac_exeext conftest.$ac_ext
20426 LIBS="$tst_connect_save_LIBS"
20428 case X-"$tst_connect_need_LIBS" in
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20431 $as_echo "cannot find connect" >&6; }
20432 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20436 $as_echo "yes" >&6; }
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20440 $as_echo "$tst_connect_need_LIBS" >&6; }
20441 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20446 CURL_NETWORK_LIBS=$LIBS
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20449 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20450 if ${ac_cv_header_time+:} false; then :
20451 $as_echo_n "(cached) " >&6
20453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h. */
20455 #include <sys/types.h>
20456 #include <sys/time.h>
20461 if ((struct tm *) 0)
20467 if ac_fn_c_try_compile "$LINENO"; then :
20468 ac_cv_header_time=yes
20470 ac_cv_header_time=no
20472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20475 $as_echo "$ac_cv_header_time" >&6; }
20476 if test $ac_cv_header_time = yes; then
20478 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20483 for ac_header in sys/types.h sys/time.h time.h
20485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20486 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20487 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20488 cat >>confdefs.h <<_ACEOF
20489 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20497 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20499 if test "x$dontwant_rt" = "xno" ; then
20500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20501 /* end confdefs.h. */
20504 #ifdef HAVE_SYS_TYPES_H
20505 #include <sys/types.h>
20507 #ifdef HAVE_SYS_TIME_H
20508 #include <sys/time.h>
20509 #ifdef TIME_WITH_SYS_TIME
20521 struct timespec ts;
20522 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20529 if ac_fn_c_try_compile "$LINENO"; then :
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20532 $as_echo "yes" >&6; }
20533 curl_func_clock_gettime="yes"
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20538 $as_echo "no" >&6; }
20539 curl_func_clock_gettime="no"
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20547 if test "$curl_func_clock_gettime" = "yes"; then
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20550 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20552 curl_cv_save_LIBS="$LIBS"
20553 curl_cv_gclk_LIBS="unknown"
20555 for x_xlibs in '' '-lrt' '-lposix4' ; do
20556 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20557 if test -z "$x_xlibs"; then
20558 LIBS="$curl_cv_save_LIBS"
20560 LIBS="$x_xlibs $curl_cv_save_LIBS"
20562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20563 /* end confdefs.h. */
20566 #ifdef HAVE_SYS_TYPES_H
20567 #include <sys/types.h>
20569 #ifdef HAVE_SYS_TIME_H
20570 #include <sys/time.h>
20571 #ifdef TIME_WITH_SYS_TIME
20583 struct timespec ts;
20584 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20591 if ac_fn_c_try_link "$LINENO"; then :
20593 curl_cv_gclk_LIBS="$x_xlibs"
20596 rm -f core conftest.err conftest.$ac_objext \
20597 conftest$ac_exeext conftest.$ac_ext
20601 LIBS="$curl_cv_save_LIBS"
20603 case X-"$curl_cv_gclk_LIBS" in
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20606 $as_echo "cannot find clock_gettime" >&6; }
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20608 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20609 curl_func_clock_gettime="no"
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20613 $as_echo "no additional lib required" >&6; }
20614 curl_func_clock_gettime="yes"
20617 if test -z "$curl_cv_save_LIBS"; then
20618 LIBS="$curl_cv_gclk_LIBS"
20620 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20623 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20624 curl_func_clock_gettime="yes"
20628 if test "x$cross_compiling" != "xyes" &&
20629 test "$curl_func_clock_gettime" = "yes"; then
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20631 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20632 if test "$cross_compiling" = yes; then :
20633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20635 as_fn_error $? "cannot run test program while cross compiling
20636 See \`config.log' for more details" "$LINENO" 5; }
20638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639 /* end confdefs.h. */
20642 #ifdef HAVE_STDLIB_H
20643 #include <stdlib.h>
20645 #ifdef HAVE_SYS_TYPES_H
20646 #include <sys/types.h>
20648 #ifdef HAVE_SYS_TIME_H
20649 #include <sys/time.h>
20650 #ifdef TIME_WITH_SYS_TIME
20662 struct timespec ts;
20663 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20673 if ac_fn_c_try_run "$LINENO"; then :
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20676 $as_echo "yes" >&6; }
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20681 $as_echo "no" >&6; }
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20683 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20684 curl_func_clock_gettime="no"
20685 LIBS="$curl_cv_save_LIBS"
20688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20689 conftest.$ac_objext conftest.beam conftest.$ac_ext
20694 case "$curl_func_clock_gettime" in
20697 cat >>confdefs.h <<_ACEOF
20698 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20708 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20712 clean_CPPFLAGS=$CPPFLAGS
20713 clean_LDFLAGS=$LDFLAGS
20717 # Check whether --with-zlib was given.
20718 if test "${with_zlib+set}" = set; then :
20719 withval=$with_zlib; OPT_ZLIB="$withval"
20723 if test "$OPT_ZLIB" = "no" ; then
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20725 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20727 if test "$OPT_ZLIB" = "yes" ; then
20732 if test -n "$PKG_CONFIG"; then
20733 PKGCONFIG="$PKG_CONFIG"
20735 if test -n "$ac_tool_prefix"; then
20736 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20737 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20739 $as_echo_n "checking for $ac_word... " >&6; }
20740 if ${ac_cv_path_PKGCONFIG+:} false; then :
20741 $as_echo_n "(cached) " >&6
20745 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20749 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20750 for as_dir in $as_dummy
20753 test -z "$as_dir" && as_dir=.
20754 for ac_exec_ext in '' $ac_executable_extensions; do
20755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20756 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20767 PKGCONFIG=$ac_cv_path_PKGCONFIG
20768 if test -n "$PKGCONFIG"; then
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20770 $as_echo "$PKGCONFIG" >&6; }
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20773 $as_echo "no" >&6; }
20778 if test -z "$ac_cv_path_PKGCONFIG"; then
20779 ac_pt_PKGCONFIG=$PKGCONFIG
20780 # Extract the first word of "pkg-config", so it can be a program name with args.
20781 set dummy pkg-config; ac_word=$2
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20783 $as_echo_n "checking for $ac_word... " >&6; }
20784 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20785 $as_echo_n "(cached) " >&6
20787 case $ac_pt_PKGCONFIG in
20789 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20793 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20794 for as_dir in $as_dummy
20797 test -z "$as_dir" && as_dir=.
20798 for ac_exec_ext in '' $ac_executable_extensions; do
20799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20800 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20811 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20812 if test -n "$ac_pt_PKGCONFIG"; then
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20814 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20817 $as_echo "no" >&6; }
20820 if test "x$ac_pt_PKGCONFIG" = x; then
20823 case $cross_compiling:$ac_tool_warned in
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20827 ac_tool_warned=yes ;;
20829 PKGCONFIG=$ac_pt_PKGCONFIG
20832 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20837 if test "x$PKGCONFIG" != "xno"; then
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20839 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20841 if test -n ""; then
20842 PKG_CONFIG_LIBDIR=""
20843 export PKG_CONFIG_LIBDIR
20845 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20847 if test -z "$itexists"; then
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20850 $as_echo "no" >&6; }
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20853 $as_echo "found" >&6; }
20858 if test "$PKGCONFIG" != "no" ; then
20859 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20860 LDFLAGS="`$PKGCONFIG --libs-only-L zlib` $LDFLAGS"
20861 CPPFLAGS="`$PKGCONFIG --cflags-only-I zlib` $CPPFLAGS"
20866 if test -z "$OPT_ZLIB" ; then
20868 if test -z "$HAVE_LIBZ"; then
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20872 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20873 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20874 $as_echo_n "(cached) " >&6
20876 ac_check_lib_save_LIBS=$LIBS
20878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20879 /* end confdefs.h. */
20885 char inflateEnd ();
20888 return inflateEnd ();
20893 if ac_fn_c_try_link "$LINENO"; then :
20894 ac_cv_lib_z_inflateEnd=yes
20896 ac_cv_lib_z_inflateEnd=no
20898 rm -f core conftest.err conftest.$ac_objext \
20899 conftest$ac_exeext conftest.$ac_ext
20900 LIBS=$ac_check_lib_save_LIBS
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20903 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20904 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20908 OPT_ZLIB="/usr/local"
20914 if test -n "$OPT_ZLIB"; then
20915 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20916 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20919 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20920 if test "x$ac_cv_header_zlib_h" = xyes; then :
20923 if test "$HAVE_LIBZ" != "1"; then
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20925 $as_echo_n "checking for gzread in -lz... " >&6; }
20926 if ${ac_cv_lib_z_gzread+:} false; then :
20927 $as_echo_n "(cached) " >&6
20929 ac_check_lib_save_LIBS=$LIBS
20931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20932 /* end confdefs.h. */
20946 if ac_fn_c_try_link "$LINENO"; then :
20947 ac_cv_lib_z_gzread=yes
20949 ac_cv_lib_z_gzread=no
20951 rm -f core conftest.err conftest.$ac_objext \
20952 conftest$ac_exeext conftest.$ac_ext
20953 LIBS=$ac_check_lib_save_LIBS
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20956 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20957 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20963 CPPFLAGS=$clean_CPPFLAGS
20964 LDFLAGS=$clean_LDFLAGS
20971 CPPFLAGS=$clean_CPPFLAGS
20972 LDFLAGS=$clean_LDFLAGS
20978 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20981 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20983 CPPFLAGS=$clean_CPPFLAGS
20984 LDFLAGS=$clean_LDFLAGS
20986 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20989 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20990 CPPFLAGS=$clean_CPPFLAGS
20991 LDFLAGS=$clean_LDFLAGS
20993 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20997 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
21000 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
21004 LIBS="-lz $clean_LIBS"
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
21008 $as_echo "$as_me: found both libz and libz.h header" >&6;}
21009 curl_zlib_msg="enabled"
21013 if test x"$AMFIXLIB" = x1; then
21015 HAVE_LIBZ_FALSE='#'
21026 # Check whether --with-ldap-lib was given.
21027 if test "${with_ldap_lib+set}" = set; then :
21028 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21034 # Check whether --with-lber-lib was given.
21035 if test "${with_lber_lib+set}" = set; then :
21036 withval=$with_lber_lib; LBERLIBNAME="$withval"
21040 if test x$CURL_DISABLE_LDAP != x1 ; then
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21044 $as_echo_n "checking for lber.h... " >&6; }
21045 if ${curl_cv_header_lber_h+:} false; then :
21046 $as_echo_n "(cached) " >&6
21049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21050 /* end confdefs.h. */
21054 #ifdef HAVE_WINDOWS_H
21055 #ifndef WIN32_LEAN_AND_MEAN
21056 #define WIN32_LEAN_AND_MEAN
21058 #include <windows.h>
21060 #ifdef HAVE_SYS_TYPES_H
21061 #include <sys/types.h>
21065 #define NULL (void *)0
21072 BerValue *bvp = NULL;
21073 BerElement *bep = ber_init(bvp);
21081 if ac_fn_c_try_compile "$LINENO"; then :
21083 curl_cv_header_lber_h="yes"
21087 curl_cv_header_lber_h="no"
21090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21094 $as_echo "$curl_cv_header_lber_h" >&6; }
21095 if test "$curl_cv_header_lber_h" = "yes"; then
21097 cat >>confdefs.h <<_ACEOF
21098 #define HAVE_LBER_H 1
21102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21103 /* end confdefs.h. */
21107 #ifdef HAVE_WINDOWS_H
21108 #ifndef WIN32_LEAN_AND_MEAN
21109 #define WIN32_LEAN_AND_MEAN
21111 #include <windows.h>
21113 #ifdef HAVE_SYS_TYPES_H
21114 #include <sys/types.h>
21118 #define NULL (void *)0
21120 #ifndef LDAP_DEPRECATED
21121 #define LDAP_DEPRECATED 1
21128 BerValue *bvp = NULL;
21129 BerElement *bep = ber_init(bvp);
21137 if ac_fn_c_try_compile "$LINENO"; then :
21139 curl_cv_need_header_lber_h="no"
21143 curl_cv_need_header_lber_h="yes"
21146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21148 case "$curl_cv_need_header_lber_h" in
21151 cat >>confdefs.h <<_ACEOF
21152 #define NEED_LBER_H 1
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21161 $as_echo_n "checking for ldap.h... " >&6; }
21162 if ${curl_cv_header_ldap_h+:} false; then :
21163 $as_echo_n "(cached) " >&6
21166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h. */
21171 #ifdef HAVE_WINDOWS_H
21172 #ifndef WIN32_LEAN_AND_MEAN
21173 #define WIN32_LEAN_AND_MEAN
21175 #include <windows.h>
21177 #ifdef HAVE_SYS_TYPES_H
21178 #include <sys/types.h>
21181 #ifndef LDAP_DEPRECATED
21182 #define LDAP_DEPRECATED 1
21192 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21193 int res = ldap_unbind(ldp);
21200 if ac_fn_c_try_compile "$LINENO"; then :
21202 curl_cv_header_ldap_h="yes"
21206 curl_cv_header_ldap_h="no"
21209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21213 $as_echo "$curl_cv_header_ldap_h" >&6; }
21214 case "$curl_cv_header_ldap_h" in
21217 cat >>confdefs.h <<_ACEOF
21218 #define HAVE_LDAP_H 1
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21226 $as_echo_n "checking for ldapssl.h... " >&6; }
21227 if ${curl_cv_header_ldapssl_h+:} false; then :
21228 $as_echo_n "(cached) " >&6
21231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21232 /* end confdefs.h. */
21236 #ifdef HAVE_WINDOWS_H
21237 #ifndef WIN32_LEAN_AND_MEAN
21238 #define WIN32_LEAN_AND_MEAN
21240 #include <windows.h>
21242 #ifdef HAVE_SYS_TYPES_H
21243 #include <sys/types.h>
21247 #define NULL (void *)0
21249 #ifndef LDAP_DEPRECATED
21250 #define LDAP_DEPRECATED 1
21258 #include <ldapssl.h>
21263 char *cert_label = NULL;
21264 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21271 if ac_fn_c_try_compile "$LINENO"; then :
21273 curl_cv_header_ldapssl_h="yes"
21277 curl_cv_header_ldapssl_h="no"
21280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21284 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21285 case "$curl_cv_header_ldapssl_h" in
21288 cat >>confdefs.h <<_ACEOF
21289 #define HAVE_LDAPSSL_H 1
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21297 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21298 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21299 $as_echo_n "(cached) " >&6
21302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21303 /* end confdefs.h. */
21307 #ifdef HAVE_WINDOWS_H
21308 #ifndef WIN32_LEAN_AND_MEAN
21309 #define WIN32_LEAN_AND_MEAN
21311 #include <windows.h>
21313 #ifdef HAVE_SYS_TYPES_H
21314 #include <sys/types.h>
21317 #ifndef LDAP_DEPRECATED
21318 #define LDAP_DEPRECATED 1
21326 #include <ldap_ssl.h>
21331 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21338 if ac_fn_c_try_compile "$LINENO"; then :
21340 curl_cv_header_ldap_ssl_h="yes"
21344 curl_cv_header_ldap_ssl_h="no"
21347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21351 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21352 case "$curl_cv_header_ldap_ssl_h" in
21355 cat >>confdefs.h <<_ACEOF
21356 #define HAVE_LDAP_SSL_H 1
21363 if test -z "$LDAPLIBNAME" ; then
21364 if test "$curl_cv_native_windows" = "yes"; then
21365 LDAPLIBNAME="wldap32"
21370 if test "$LDAPLIBNAME" ; then
21371 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21373 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21374 if eval \${$as_ac_Lib+:} false; then :
21375 $as_echo_n "(cached) " >&6
21377 ac_check_lib_save_LIBS=$LIBS
21378 LIBS="-l"$LDAPLIBNAME" $LIBS"
21379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h. */
21389 return ldap_init ();
21394 if ac_fn_c_try_link "$LINENO"; then :
21395 eval "$as_ac_Lib=yes"
21397 eval "$as_ac_Lib=no"
21399 rm -f core conftest.err conftest.$ac_objext \
21400 conftest$ac_exeext conftest.$ac_ext
21401 LIBS=$ac_check_lib_save_LIBS
21403 eval ac_res=\$$as_ac_Lib
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21405 $as_echo "$ac_res" >&6; }
21406 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21407 cat >>confdefs.h <<_ACEOF
21408 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21411 LIBS="-l"$LDAPLIBNAME" $LIBS"
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21416 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21418 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21420 CURL_DISABLE_LDAP=1
21423 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21425 CURL_DISABLE_LDAPS=1
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21433 $as_echo_n "checking for LDAP libraries... " >&6; }
21439 curl_cv_save_LIBS="$LIBS"
21440 curl_cv_ldap_LIBS="unknown"
21442 for x_nlibs in '' "$u_libs" \
21446 '-lldapssl -lldapx -lldapsdk' \
21447 '-lldapsdk -lldapx -lldapssl' ; do
21448 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21449 if test -z "$x_nlibs"; then
21450 LIBS="$curl_cv_save_LIBS"
21452 LIBS="$x_nlibs $curl_cv_save_LIBS"
21454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h. */
21459 #ifdef HAVE_WINDOWS_H
21460 #ifndef WIN32_LEAN_AND_MEAN
21461 #define WIN32_LEAN_AND_MEAN
21463 #include <windows.h>
21465 #ifdef HAVE_SYS_TYPES_H
21466 #include <sys/types.h>
21470 #define NULL (void *)0
21472 #ifndef LDAP_DEPRECATED
21473 #define LDAP_DEPRECATED 1
21485 BerValue *bvp = NULL;
21486 BerElement *bep = ber_init(bvp);
21487 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21488 int res = ldap_unbind(ldp);
21496 if ac_fn_c_try_link "$LINENO"; then :
21498 curl_cv_ldap_LIBS="$x_nlibs"
21501 rm -f core conftest.err conftest.$ac_objext \
21502 conftest$ac_exeext conftest.$ac_ext
21506 LIBS="$curl_cv_save_LIBS"
21508 case X-"$curl_cv_ldap_LIBS" in
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21511 $as_echo "cannot find LDAP libraries" >&6; }
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21515 $as_echo "no additional lib required" >&6; }
21518 if test -z "$curl_cv_save_LIBS"; then
21519 LIBS="$curl_cv_ldap_LIBS"
21521 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21524 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21529 case X-"$curl_cv_ldap_LIBS" in
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21532 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21534 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21536 CURL_DISABLE_LDAP=1
21539 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21541 CURL_DISABLE_LDAPS=1
21548 if test x$CURL_DISABLE_LDAP != x1 ; then
21550 if test "$LBERLIBNAME" ; then
21551 if test "$LBERLIBNAME" != "no" ; then
21552 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21554 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21555 if eval \${$as_ac_Lib+:} false; then :
21556 $as_echo_n "(cached) " >&6
21558 ac_check_lib_save_LIBS=$LIBS
21559 LIBS="-l"$LBERLIBNAME" $LIBS"
21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h. */
21570 return ber_free ();
21575 if ac_fn_c_try_link "$LINENO"; then :
21576 eval "$as_ac_Lib=yes"
21578 eval "$as_ac_Lib=no"
21580 rm -f core conftest.err conftest.$ac_objext \
21581 conftest$ac_exeext conftest.$ac_ext
21582 LIBS=$ac_check_lib_save_LIBS
21584 eval ac_res=\$$as_ac_Lib
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21586 $as_echo "$ac_res" >&6; }
21587 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21588 cat >>confdefs.h <<_ACEOF
21589 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21592 LIBS="-l"$LBERLIBNAME" $LIBS"
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21597 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21599 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21601 CURL_DISABLE_LDAP=1
21604 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21606 CURL_DISABLE_LDAPS=1
21614 if test x$CURL_DISABLE_LDAP != x1 ; then
21615 for ac_func in ldap_url_parse ldap_init_fd
21617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21618 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21619 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21620 cat >>confdefs.h <<_ACEOF
21621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21628 if test "$LDAPLIBNAME" = "wldap32"; then
21629 curl_ldap_msg="enabled (winldap)"
21631 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21634 curl_ldap_msg="enabled (OpenLDAP)"
21635 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21637 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21645 if test x$CURL_DISABLE_LDAPS != x1 ; then
21646 curl_ldaps_msg="enabled"
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21651 $as_echo_n "checking whether to enable IPv6... " >&6; }
21652 # Check whether --enable-ipv6 was given.
21653 if test "${enable_ipv6+set}" = set; then :
21654 enableval=$enable_ipv6; case "$enableval" in
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21657 $as_echo "no" >&6; }
21660 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21661 $as_echo "yes" >&6; }
21666 if test "$cross_compiling" = yes; then :
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21668 $as_echo "yes" >&6; }
21672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21673 /* end confdefs.h. */
21674 /* is AF_INET6 available? */
21675 #include <sys/types.h>
21676 #ifdef HAVE_WINSOCK2_H
21677 #include <winsock2.h>
21679 #include <sys/socket.h>
21681 #include <stdlib.h> /* for exit() */
21684 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21691 if ac_fn_c_try_run "$LINENO"; then :
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21693 $as_echo "yes" >&6; }
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21701 conftest.$ac_objext conftest.beam conftest.$ac_ext
21707 if test "$ipv6" = "yes"; then
21708 curl_ipv6_msg="enabled"
21711 # Check if struct sockaddr_in6 have sin6_scope_id member
21712 if test "$ipv6" = yes; then
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21714 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21716 /* end confdefs.h. */
21718 #include <sys/types.h>
21719 #ifdef HAVE_WINSOCK2_H
21720 #include <winsock2.h>
21721 #include <ws2tcpip.h>
21723 #include <netinet/in.h>
21727 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21732 if ac_fn_c_try_compile "$LINENO"; then :
21733 have_sin6_scope_id=yes
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21736 if test "$have_sin6_scope_id" = yes; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21738 $as_echo "yes" >&6; }
21740 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21744 $as_echo "no" >&6; }
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21750 $as_echo_n "checking if argv can be written to... " >&6; }
21751 if test "$cross_compiling" = yes; then :
21753 curl_cv_writable_argv=cross
21756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h. */
21760 int main(int argc, char ** argv) {
21762 return (argv[0][0] == ' ')?0:1;
21767 if ac_fn_c_try_run "$LINENO"; then :
21769 curl_cv_writable_argv=yes
21773 curl_cv_writable_argv=no
21776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21777 conftest.$ac_objext conftest.beam conftest.$ac_ext
21780 case $curl_cv_writable_argv in
21783 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21786 $as_echo "yes" >&6; }
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21790 $as_echo "no" >&6; }
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21794 $as_echo "no" >&6; }
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21796 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21804 # Check whether --with-gssapi-includes was given.
21805 if test "${with_gssapi_includes+set}" = set; then :
21806 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21813 # Check whether --with-gssapi-libs was given.
21814 if test "${with_gssapi_libs+set}" = set; then :
21815 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21822 # Check whether --with-gssapi was given.
21823 if test "${with_gssapi+set}" = set; then :
21824 withval=$with_gssapi;
21825 GSSAPI_ROOT="$withval"
21826 if test x"$GSSAPI_ROOT" != xno; then
21828 if test x"$GSSAPI_ROOT" = xyes; then
21836 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21838 save_CPPFLAGS="$CPPFLAGS"
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21840 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21841 if test x"$want_gss" = xyes; then
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21843 $as_echo "yes" >&6; }
21845 if test -z "$GSSAPI_INCS"; then
21846 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21847 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21848 elif test -f "$KRB5CONFIG"; then
21849 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21850 elif test "$GSSAPI_ROOT" != "yes"; then
21851 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21855 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21857 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21858 if test "x$ac_cv_header_gss_h" = xyes; then :
21861 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21867 for ac_header in gssapi/gssapi.h
21869 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21870 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21871 cat >>confdefs.h <<_ACEOF
21872 #define HAVE_GSSAPI_GSSAPI_H 1
21881 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21885 $ac_includes_default
21886 #ifdef HAVE_GSSAPI_GSSAPI_H
21887 #include <gssapi/gssapi.h>
21891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21892 cat >>confdefs.h <<_ACEOF
21893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21902 if test "x$not_mit" = "x1"; then
21903 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21904 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21907 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21914 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21922 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21925 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21927 /* end confdefs.h. */
21930 #include <gssapi/gssapi.h>
21931 #include <gssapi/gssapi_generic.h>
21932 #include <gssapi/gssapi_krb5.h>
21940 GSS_C_NT_HOSTBASED_SERVICE,
21948 if ac_fn_c_try_compile "$LINENO"; then :
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21951 $as_echo "yes" >&6; }
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21956 $as_echo "no" >&6; }
21958 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21971 $as_echo "no" >&6; }
21973 if test x"$want_gss" = xyes; then
21975 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21978 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21980 if test -n "$gnu_gss"; then
21981 curl_gss_msg="enabled (GNU GSS)"
21982 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21984 elif test -z "$GSSAPI_LIB_DIR"; then
21987 LIBS="-lgssapi_krb5 -lresolv $LIBS"
21990 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21991 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21992 LIBS="$gss_libs $LIBS"
21993 elif test -f "$KRB5CONFIG"; then
21994 gss_libs=`$KRB5CONFIG --libs gssapi`
21995 LIBS="$gss_libs $LIBS"
22002 gss_libname="gssapi"
22006 if test "$GSSAPI_ROOT" != "yes"; then
22007 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22008 LIBS="-l$gss_libname $LIBS"
22010 LIBS="-l$gss_libname $LIBS"
22016 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22022 LIBS="-lgssapi $LIBS"
22027 CPPFLAGS="$save_CPPFLAGS"
22033 # Check whether --with-winssl was given.
22034 if test "${with_winssl+set}" = set; then :
22035 withval=$with_winssl; OPT_WINSSL=$withval
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22040 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22041 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22042 if test "x$OPT_WINSSL" != "xno" &&
22043 test "x$curl_cv_native_windows" = "xyes"; then
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22045 $as_echo "yes" >&6; }
22047 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22051 curl_ssl_msg="enabled (Windows-native)"
22053 # --with-winssl implies --enable-sspi
22055 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22059 curl_sspi_msg="enabled"
22060 LIBS="-lcrypt32 $LIBS"
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22063 $as_echo "no" >&6; }
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22067 $as_echo "no" >&6; }
22072 # Check whether --with-darwinssl was given.
22073 if test "${with_darwinssl+set}" = set; then :
22074 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22079 $as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
22080 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22081 if test "x$OPT_DARWINSSL" != "xno" &&
22082 test -d "/System/Library/Frameworks/Security.framework"; then
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22084 $as_echo "yes" >&6; }
22086 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22090 curl_ssl_msg="enabled (Apple OS-native)"
22091 DARWINSSL_ENABLED=1
22092 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22095 $as_echo "no" >&6; }
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22099 $as_echo "no" >&6; }
22106 # Check whether --with-ssl was given.
22107 if test "${with_ssl+set}" = set; then :
22108 withval=$with_ssl; OPT_SSL=$withval
22112 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
22113 CLEANLDFLAGS="$LDFLAGS"
22114 CLEANCPPFLAGS="$CPPFLAGS"
22118 *-*-msys* | *-*-mingw*)
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22120 $as_echo_n "checking for gdi32... " >&6; }
22121 my_ac_save_LIBS=$LIBS
22122 LIBS="-lgdi32 $LIBS"
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22125 #include <windef.h>
22126 #include <wingdi.h>
22134 if ac_fn_c_try_link "$LINENO"; then :
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22136 $as_echo "yes" >&6; }
22138 LIBS=$my_ac_save_LIBS
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22140 $as_echo "no" >&6; }
22143 rm -f core conftest.err conftest.$ac_objext \
22144 conftest$ac_exeext conftest.$ac_ext
22150 if test x$cross_compiling != xyes; then
22153 PREFIX_OPENSSL=/usr/local/ssl
22154 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22157 if test x$cross_compiling != xyes; then
22164 PREFIX_OPENSSL=$OPT_SSL
22166 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22168 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22169 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22173 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22174 if test "$PREFIX_OPENSSL" != "/usr" ; then
22175 SSL_LDFLAGS="-L$LIB_OPENSSL"
22176 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22178 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22182 if test "$PKGTEST" = "yes"; then
22185 if test -n "$PKG_CONFIG"; then
22186 PKGCONFIG="$PKG_CONFIG"
22188 if test -n "$ac_tool_prefix"; then
22189 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22190 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22192 $as_echo_n "checking for $ac_word... " >&6; }
22193 if ${ac_cv_path_PKGCONFIG+:} false; then :
22194 $as_echo_n "(cached) " >&6
22198 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22202 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22203 for as_dir in $as_dummy
22206 test -z "$as_dir" && as_dir=.
22207 for ac_exec_ext in '' $ac_executable_extensions; do
22208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22209 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22220 PKGCONFIG=$ac_cv_path_PKGCONFIG
22221 if test -n "$PKGCONFIG"; then
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22223 $as_echo "$PKGCONFIG" >&6; }
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22226 $as_echo "no" >&6; }
22231 if test -z "$ac_cv_path_PKGCONFIG"; then
22232 ac_pt_PKGCONFIG=$PKGCONFIG
22233 # Extract the first word of "pkg-config", so it can be a program name with args.
22234 set dummy pkg-config; ac_word=$2
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22236 $as_echo_n "checking for $ac_word... " >&6; }
22237 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22238 $as_echo_n "(cached) " >&6
22240 case $ac_pt_PKGCONFIG in
22242 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22246 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22247 for as_dir in $as_dummy
22250 test -z "$as_dir" && as_dir=.
22251 for ac_exec_ext in '' $ac_executable_extensions; do
22252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22253 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22264 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22265 if test -n "$ac_pt_PKGCONFIG"; then
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22267 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22270 $as_echo "no" >&6; }
22273 if test "x$ac_pt_PKGCONFIG" = x; then
22276 case $cross_compiling:$ac_tool_warned in
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22280 ac_tool_warned=yes ;;
22282 PKGCONFIG=$ac_pt_PKGCONFIG
22285 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22290 if test "x$PKGCONFIG" != "xno"; then
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22292 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22294 if test -n "$OPENSSL_PCDIR"; then
22295 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22296 export PKG_CONFIG_LIBDIR
22298 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22300 if test -z "$itexists"; then
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22303 $as_echo "no" >&6; }
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22306 $as_echo "found" >&6; }
22311 if test "$PKGCONFIG" != "no" ; then
22313 if test -n "$OPENSSL_PCDIR"; then
22314 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22315 export PKG_CONFIG_LIBDIR
22317 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22320 if test -n "$OPENSSL_PCDIR"; then
22321 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22322 export PKG_CONFIG_LIBDIR
22324 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22327 if test -n "$OPENSSL_PCDIR"; then
22328 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22329 export PKG_CONFIG_LIBDIR
22331 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22335 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22337 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22339 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22341 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22343 LIBS="$SSL_LIBS $LIBS"
22347 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22348 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22351 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22352 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22353 $as_echo_n "(cached) " >&6
22355 ac_check_lib_save_LIBS=$LIBS
22356 LIBS="-lcrypto $LIBS"
22357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22358 /* end confdefs.h. */
22364 char HMAC_Update ();
22367 return HMAC_Update ();
22372 if ac_fn_c_try_link "$LINENO"; then :
22373 ac_cv_lib_crypto_HMAC_Update=yes
22375 ac_cv_lib_crypto_HMAC_Update=no
22377 rm -f core conftest.err conftest.$ac_objext \
22378 conftest$ac_exeext conftest.$ac_ext
22379 LIBS=$ac_check_lib_save_LIBS
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22382 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22383 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22386 LIBS="-lcrypto $LIBS"
22390 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22391 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22393 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22394 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22395 $as_echo_n "(cached) " >&6
22397 ac_check_lib_save_LIBS=$LIBS
22398 LIBS="-lcrypto $LIBS"
22399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h. */
22406 char HMAC_Init_ex ();
22409 return HMAC_Init_ex ();
22414 if ac_fn_c_try_link "$LINENO"; then :
22415 ac_cv_lib_crypto_HMAC_Init_ex=yes
22417 ac_cv_lib_crypto_HMAC_Init_ex=no
22419 rm -f core conftest.err conftest.$ac_objext \
22420 conftest$ac_exeext conftest.$ac_ext
22421 LIBS=$ac_check_lib_save_LIBS
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22424 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22425 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22428 LIBS="-lcrypto $LIBS"
22431 LDFLAGS="$CLEANLDFLAGS"
22432 CPPFLAGS="$CLEANCPPFLAGS"
22442 if test X"$HAVECRYPTO" = X"yes"; then
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking without -ldl" >&5
22444 $as_echo_n "checking OpenSSL linking without -ldl... " >&6; }
22446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h. */
22449 #include <openssl/evp.h>
22454 SSLeay_add_all_algorithms();
22460 if ac_fn_c_try_link "$LINENO"; then :
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22463 $as_echo "yes" >&6; }
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22469 $as_echo "no" >&6; }
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22471 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h. */
22476 #include <openssl/evp.h>
22481 SSLeay_add_all_algorithms();
22487 if ac_fn_c_try_link "$LINENO"; then :
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22490 $as_echo "yes" >&6; }
22491 LIBS="$saved_libs -ldl"
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22496 $as_echo "no" >&6; }
22501 rm -f core conftest.err conftest.$ac_objext \
22502 conftest$ac_exeext conftest.$ac_ext
22507 rm -f core conftest.err conftest.$ac_objext \
22508 conftest$ac_exeext conftest.$ac_ext
22512 if test X"$HAVECRYPTO" = X"yes"; then
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22515 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22516 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22517 $as_echo_n "(cached) " >&6
22519 ac_check_lib_save_LIBS=$LIBS
22521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22522 /* end confdefs.h. */
22528 char SSL_connect ();
22531 return SSL_connect ();
22536 if ac_fn_c_try_link "$LINENO"; then :
22537 ac_cv_lib_ssl_SSL_connect=yes
22539 ac_cv_lib_ssl_SSL_connect=no
22541 rm -f core conftest.err conftest.$ac_objext \
22542 conftest$ac_exeext conftest.$ac_ext
22543 LIBS=$ac_check_lib_save_LIBS
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22546 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22547 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22548 cat >>confdefs.h <<_ACEOF
22549 #define HAVE_LIBSSL 1
22557 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22559 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22561 LIBS="-lRSAglue -lrsaref $LIBS"
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22563 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22564 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22565 $as_echo_n "(cached) " >&6
22567 ac_check_lib_save_LIBS=$LIBS
22569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22570 /* end confdefs.h. */
22576 char SSL_connect ();
22579 return SSL_connect ();
22584 if ac_fn_c_try_link "$LINENO"; then :
22585 ac_cv_lib_ssl_SSL_connect=yes
22587 ac_cv_lib_ssl_SSL_connect=no
22589 rm -f core conftest.err conftest.$ac_objext \
22590 conftest$ac_exeext conftest.$ac_ext
22591 LIBS=$ac_check_lib_save_LIBS
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22594 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22595 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_LIBSSL 1
22604 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22606 $as_echo "no" >&6; }
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22610 $as_echo "yes" >&6; }
22615 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22616 openssl/pem.h openssl/ssl.h openssl/err.h
22618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22619 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22621 cat >>confdefs.h <<_ACEOF
22622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22624 curl_ssl_msg="enabled (OpenSSL)"
22627 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22634 if test $ac_cv_header_openssl_x509_h = no; then
22635 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22638 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22639 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22640 cat >>confdefs.h <<_ACEOF
22641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22649 if test $ac_cv_header_x509_h = yes &&
22650 test $ac_cv_header_crypto_h = yes &&
22651 test $ac_cv_header_ssl_h = yes; then
22652 curl_ssl_msg="enabled (OpenSSL)"
22658 if test X"$OPENSSL_ENABLED" = X"1"; then
22659 for ac_header in openssl/pkcs12.h
22661 ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
22662 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
22663 cat >>confdefs.h <<_ACEOF
22664 #define HAVE_OPENSSL_PKCS12_H 1
22675 if test X"$OPT_SSL" != Xoff &&
22676 test "$OPENSSL_ENABLED" != "1"; then
22677 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22681 if test X"$OPENSSL_ENABLED" = X"1"; then
22682 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22683 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22685 for ac_header in openssl/engine.h
22687 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22688 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22689 cat >>confdefs.h <<_ACEOF
22690 #define HAVE_OPENSSL_ENGINE_H 1
22697 for ac_func in ENGINE_load_builtin_engines
22699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22702 cat >>confdefs.h <<_ACEOF
22703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22714 for ac_func in RAND_egd \
22717 SSLv2_client_method
22719 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22721 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22722 cat >>confdefs.h <<_ACEOF
22723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22731 $as_echo_n "checking for BoringSSL... " >&6; }
22732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22733 /* end confdefs.h. */
22736 #include <openssl/base.h>
22741 #ifndef OPENSSL_IS_BORINGSSL
22742 #error not boringssl
22750 if ac_fn_c_try_compile "$LINENO"; then :
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22753 $as_echo "yes" >&6; }
22755 cat >>confdefs.h <<_ACEOF
22756 #define HAVE_BORINGSSL 1
22759 curl_ssl_msg="enabled (BoringSSL)"
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764 $as_echo "no" >&6; }
22767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22770 $as_echo_n "checking for libressl... " >&6; }
22771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22772 /* end confdefs.h. */
22775 #include <openssl/opensslv.h>
22780 int dummy = LIBRESSL_VERSION_NUMBER;
22787 if ac_fn_c_try_compile "$LINENO"; then :
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22790 $as_echo "yes" >&6; }
22792 cat >>confdefs.h <<_ACEOF
22793 #define HAVE_LIBRESSL 1
22796 curl_ssl_msg="enabled (libressl)"
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22801 $as_echo "no" >&6; }
22804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 if test "$OPENSSL_ENABLED" = "1"; then
22808 if test -n "$LIB_OPENSSL"; then
22809 if test "x$cross_compiling" != "xyes"; then
22810 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22811 export LD_LIBRARY_PATH
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22813 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22823 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22825 OLDCPPFLAGS=$CPPFLAGS
22826 # CPPPFLAG comes from CURL_CPP_P
22827 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22828 if test -z "$SED"; then
22829 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22831 if test -z "$GREP"; then
22832 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22837 /* end confdefs.h. */
22840 # ifdef USE_OPENSSL
22841 # include <openssl/crypto.h>
22843 # include <crypto.h>
22846 #ifdef OPENSSL_VERSION_NUMBER
22847 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22852 if ac_fn_c_try_cpp "$LINENO"; then :
22854 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22855 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22856 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22857 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22858 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22863 rm -f conftest.err conftest.i conftest.$ac_ext
22864 if test -z "$tmp_exp"; then
22865 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22868 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22869 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22872 CPPFLAGS=$OLDCPPFLAGS
22874 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22875 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22876 case "x$tst_verlen" in
22878 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22879 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22880 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22881 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22884 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22885 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22886 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22887 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22894 0x110) tst_show="1.1.0" ;;
22895 0x102) tst_show="1.0.2" ;;
22896 0x101) tst_show="1.0.1" ;;
22897 0x100) tst_show="1.0.0" ;;
22898 0x099) tst_show="0.9.9" ;;
22899 0x098) tst_show="0.9.8" ;;
22900 0x097) tst_show="0.9.7" ;;
22901 0x096) tst_show="0.9.6" ;;
22902 0x095) tst_show="0.9.5" ;;
22903 0x094) tst_show="0.9.4" ;;
22904 0x093) tst_show="0.9.3" ;;
22905 0x092) tst_show="0.9.2" ;;
22906 0x091) tst_show="0.9.1" ;;
22907 *) tst_show="unknown" ;;
22909 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22914 $as_echo "$tst_show" >&6; }
22916 curl_openssl_api_headers=$tst_api
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22923 $as_echo_n "checking for OpenSSL library version... " >&6; }
22924 if test "$tst_api" = "unknown"; then
22927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928 /* end confdefs.h. */
22931 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22933 # include <limits.h>
22935 # include <assert.h>
22937 #undef SSL_CTX_set_not_resumbl_sess_cb
22941 char SSL_CTX_set_not_resumbl_sess_cb ();
22942 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22948 return SSL_CTX_set_not_resumbl_sess_cb ();
22954 if ac_fn_c_try_link "$LINENO"; then :
22959 rm -f core conftest.err conftest.$ac_objext \
22960 conftest$ac_exeext conftest.$ac_ext
22963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22964 /* end confdefs.h. */
22967 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22969 # include <limits.h>
22971 # include <assert.h>
22973 #undef SSL_CTX_set_not_resumable_session_callback
22977 char SSL_CTX_set_not_resumable_session_callback ();
22978 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22984 return SSL_CTX_set_not_resumable_session_callback ();
22990 if ac_fn_c_try_link "$LINENO"; then :
22995 rm -f core conftest.err conftest.$ac_objext \
22996 conftest$ac_exeext conftest.$ac_ext
23000 if test "$tst_api" = "unknown"; then
23001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23002 /* end confdefs.h. */
23005 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23007 # include <limits.h>
23009 # include <assert.h>
23011 #undef SSL_CONF_CTX_new
23015 char SSL_CONF_CTX_new ();
23016 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23022 return SSL_CONF_CTX_new ();
23028 if ac_fn_c_try_link "$LINENO"; then :
23033 rm -f core conftest.err conftest.$ac_objext \
23034 conftest$ac_exeext conftest.$ac_ext
23036 if test "$tst_api" = "unknown"; then
23037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23038 /* end confdefs.h. */
23041 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23043 # include <limits.h>
23045 # include <assert.h>
23047 #undef SSL_renegotiate_abbreviated
23051 char SSL_renegotiate_abbreviated ();
23052 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23058 return SSL_renegotiate_abbreviated ();
23064 if ac_fn_c_try_link "$LINENO"; then :
23069 rm -f core conftest.err conftest.$ac_objext \
23070 conftest$ac_exeext conftest.$ac_ext
23072 if test "$tst_api" = "unknown"; then
23073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23074 /* end confdefs.h. */
23077 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23079 # include <limits.h>
23081 # include <assert.h>
23083 #undef OBJ_add_sigid
23087 char OBJ_add_sigid ();
23088 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23094 return OBJ_add_sigid ();
23100 if ac_fn_c_try_link "$LINENO"; then :
23105 rm -f core conftest.err conftest.$ac_objext \
23106 conftest$ac_exeext conftest.$ac_ext
23108 if test "$tst_api" = "unknown"; then
23109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23110 /* end confdefs.h. */
23113 #define ERR_set_mark innocuous_ERR_set_mark
23115 # include <limits.h>
23117 # include <assert.h>
23119 #undef ERR_set_mark
23123 char ERR_set_mark ();
23124 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23130 return ERR_set_mark ();
23136 if ac_fn_c_try_link "$LINENO"; then :
23141 rm -f core conftest.err conftest.$ac_objext \
23142 conftest$ac_exeext conftest.$ac_ext
23144 if test "$tst_api" = "unknown"; then
23145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23146 /* end confdefs.h. */
23149 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23151 # include <limits.h>
23153 # include <assert.h>
23155 #undef ERR_peek_last_error
23159 char ERR_peek_last_error ();
23160 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23166 return ERR_peek_last_error ();
23172 if ac_fn_c_try_link "$LINENO"; then :
23177 rm -f core conftest.err conftest.$ac_objext \
23178 conftest$ac_exeext conftest.$ac_ext
23180 if test "$tst_api" = "unknown"; then
23181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23182 /* end confdefs.h. */
23185 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23187 # include <limits.h>
23189 # include <assert.h>
23191 #undef c2i_ASN1_OBJECT
23195 char c2i_ASN1_OBJECT ();
23196 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23202 return c2i_ASN1_OBJECT ();
23208 if ac_fn_c_try_link "$LINENO"; then :
23213 rm -f core conftest.err conftest.$ac_objext \
23214 conftest$ac_exeext conftest.$ac_ext
23216 if test "$tst_api" = "unknown"; then
23217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23218 /* end confdefs.h. */
23221 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23223 # include <limits.h>
23225 # include <assert.h>
23227 #undef SSL_CTX_set_purpose
23231 char SSL_CTX_set_purpose ();
23232 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23238 return SSL_CTX_set_purpose ();
23244 if ac_fn_c_try_link "$LINENO"; then :
23249 rm -f core conftest.err conftest.$ac_objext \
23250 conftest$ac_exeext conftest.$ac_ext
23252 if test "$tst_api" = "unknown"; then
23253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23254 /* end confdefs.h. */
23257 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23259 # include <limits.h>
23261 # include <assert.h>
23267 char OBJ_obj2txt ();
23268 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23274 return OBJ_obj2txt ();
23280 if ac_fn_c_try_link "$LINENO"; then :
23285 rm -f core conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
23288 if test "$tst_api" = "unknown"; then
23289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23290 /* end confdefs.h. */
23293 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23295 # include <limits.h>
23297 # include <assert.h>
23299 #undef SSL_get_verify_depth
23303 char SSL_get_verify_depth ();
23304 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23310 return SSL_get_verify_depth ();
23316 if ac_fn_c_try_link "$LINENO"; then :
23321 rm -f core conftest.err conftest.$ac_objext \
23322 conftest$ac_exeext conftest.$ac_ext
23324 if test "$tst_api" = "unknown"; then
23325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23326 /* end confdefs.h. */
23329 #define SSL_library_init innocuous_SSL_library_init
23331 # include <limits.h>
23333 # include <assert.h>
23335 #undef SSL_library_init
23339 char SSL_library_init ();
23340 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23346 return SSL_library_init ();
23352 if ac_fn_c_try_link "$LINENO"; then :
23357 rm -f core conftest.err conftest.$ac_objext \
23358 conftest$ac_exeext conftest.$ac_ext
23360 if test "$tst_api" = "unknown"; then
23361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23362 /* end confdefs.h. */
23365 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23367 # include <limits.h>
23369 # include <assert.h>
23371 #undef SSL_CTX_set_cipher_list
23375 char SSL_CTX_set_cipher_list ();
23376 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23382 return SSL_CTX_set_cipher_list ();
23388 if ac_fn_c_try_link "$LINENO"; then :
23393 rm -f core conftest.err conftest.$ac_objext \
23394 conftest$ac_exeext conftest.$ac_ext
23397 0x110) tst_show="1.1.0" ;;
23398 0x102) tst_show="1.0.2" ;;
23399 0x101) tst_show="1.0.1" ;;
23400 0x100) tst_show="1.0.0" ;;
23401 0x099) tst_show="0.9.9" ;;
23402 0x098) tst_show="0.9.8" ;;
23403 0x097) tst_show="0.9.7" ;;
23404 0x096) tst_show="0.9.6" ;;
23405 0x095) tst_show="0.9.5" ;;
23406 0x094) tst_show="0.9.4" ;;
23407 0x093) tst_show="0.9.3" ;;
23408 0x092) tst_show="0.9.2" ;;
23409 0x091) tst_show="0.9.1" ;;
23410 *) tst_show="unknown" ;;
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23413 $as_echo "$tst_show" >&6; }
23415 curl_openssl_api_library=$tst_api
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23421 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23422 if test "$curl_openssl_api_headers" = "unknown" ||
23423 test "$curl_openssl_api_library" = "unknown"; then
23425 tst_warns="Can not compare OpenSSL headers and library versions."
23426 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23428 tst_warns="OpenSSL headers and library versions do not match."
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23431 $as_echo "$tst_match" >&6; }
23432 if test "$tst_match" != "yes"; then
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23434 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23442 if test X"$OPENSSL_ENABLED" = X"1"; then
23444 # Check whether --with-egd-socket was given.
23445 if test "${with_egd_socket+set}" = set; then :
23446 withval=$with_egd_socket; EGD_SOCKET="$withval"
23450 if test -n "$EGD_SOCKET" ; then
23452 cat >>confdefs.h <<_ACEOF
23453 #define EGD_SOCKET "$EGD_SOCKET"
23459 # Check whether --with-random was given.
23460 if test "${with_random+set}" = set; then :
23461 withval=$with_random; RANDOM_FILE="$withval"
23464 if test x$cross_compiling != xyes; then
23465 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23467 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23468 if eval \${$as_ac_File+:} false; then :
23469 $as_echo_n "(cached) " >&6
23471 test "$cross_compiling" = yes &&
23472 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23473 if test -r ""/dev/urandom""; then
23474 eval "$as_ac_File=yes"
23476 eval "$as_ac_File=no"
23479 eval ac_res=\$$as_ac_File
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23481 $as_echo "$ac_res" >&6; }
23482 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23483 RANDOM_FILE="/dev/urandom"
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23488 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23494 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23497 cat >>confdefs.h <<_ACEOF
23498 #define RANDOM_FILE "$RANDOM_FILE"
23504 if test "$OPENSSL_ENABLED" = "1"; then
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23506 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23507 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23508 $as_echo_n "(cached) " >&6
23510 ac_check_lib_save_LIBS=$LIBS
23511 LIBS="-lcrypto $LIBS"
23512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h. */
23519 char SRP_Calc_client_key ();
23522 return SRP_Calc_client_key ();
23527 if ac_fn_c_try_link "$LINENO"; then :
23528 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23530 ac_cv_lib_crypto_SRP_Calc_client_key=no
23532 rm -f core conftest.err conftest.$ac_objext \
23533 conftest$ac_exeext conftest.$ac_ext
23534 LIBS=$ac_check_lib_save_LIBS
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23537 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23538 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23541 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23554 # Check whether --with-gnutls was given.
23555 if test "${with_gnutls+set}" = set; then :
23556 withval=$with_gnutls; OPT_GNUTLS=$withval
23560 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23562 if test X"$OPT_GNUTLS" != Xno; then
23570 if test "x$OPT_GNUTLS" = "xyes"; then
23572 if test -n "$PKG_CONFIG"; then
23573 PKGCONFIG="$PKG_CONFIG"
23575 if test -n "$ac_tool_prefix"; then
23576 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23577 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23579 $as_echo_n "checking for $ac_word... " >&6; }
23580 if ${ac_cv_path_PKGCONFIG+:} false; then :
23581 $as_echo_n "(cached) " >&6
23585 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23589 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23590 for as_dir in $as_dummy
23593 test -z "$as_dir" && as_dir=.
23594 for ac_exec_ext in '' $ac_executable_extensions; do
23595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23596 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23607 PKGCONFIG=$ac_cv_path_PKGCONFIG
23608 if test -n "$PKGCONFIG"; then
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23610 $as_echo "$PKGCONFIG" >&6; }
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23613 $as_echo "no" >&6; }
23618 if test -z "$ac_cv_path_PKGCONFIG"; then
23619 ac_pt_PKGCONFIG=$PKGCONFIG
23620 # Extract the first word of "pkg-config", so it can be a program name with args.
23621 set dummy pkg-config; ac_word=$2
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23623 $as_echo_n "checking for $ac_word... " >&6; }
23624 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23625 $as_echo_n "(cached) " >&6
23627 case $ac_pt_PKGCONFIG in
23629 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23633 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23634 for as_dir in $as_dummy
23637 test -z "$as_dir" && as_dir=.
23638 for ac_exec_ext in '' $ac_executable_extensions; do
23639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23640 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23651 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23652 if test -n "$ac_pt_PKGCONFIG"; then
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23654 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23657 $as_echo "no" >&6; }
23660 if test "x$ac_pt_PKGCONFIG" = x; then
23663 case $cross_compiling:$ac_tool_warned in
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23667 ac_tool_warned=yes ;;
23669 PKGCONFIG=$ac_pt_PKGCONFIG
23672 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23677 if test "x$PKGCONFIG" != "xno"; then
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23679 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23681 if test -n ""; then
23682 PKG_CONFIG_LIBDIR=""
23683 export PKG_CONFIG_LIBDIR
23685 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23687 if test -z "$itexists"; then
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23690 $as_echo "no" >&6; }
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23693 $as_echo "found" >&6; }
23698 if test "$PKGCONFIG" != "no" ; then
23699 addlib=`$PKGCONFIG --libs-only-l gnutls`
23700 addld=`$PKGCONFIG --libs-only-L gnutls`
23701 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23702 version=`$PKGCONFIG --modversion gnutls`
23703 gtlslib=`echo $addld | $SED -e 's/-L//'`
23705 check=`libgnutls-config --version 2>/dev/null`
23706 if test -n "$check"; then
23707 addlib=`libgnutls-config --libs`
23708 addcflags=`libgnutls-config --cflags`
23709 version=`libgnutls-config --version`
23710 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23714 cfg=$OPT_GNUTLS/bin/libgnutls-config
23715 check=`$cfg --version 2>/dev/null`
23716 if test -n "$check"; then
23717 addlib=`$cfg --libs`
23718 addcflags=`$cfg --cflags`
23719 version=`$cfg --version`
23720 gtlslib=`$cfg --prefix`/lib$libsuff
23723 addld=-L$OPT_GNUTLS/lib$libsuff
23724 addcflags=-I$OPT_GNUTLS/include
23725 version="" # we just don't know
23726 gtlslib=$OPT_GNUTLS/lib$libsuff
23730 if test -z "$version"; then
23734 if test -n "$addlib"; then
23737 CLEANCPPFLAGS="$CPPFLAGS"
23738 CLEANLDFLAGS="$LDFLAGS"
23740 LIBS="$addlib $LIBS"
23741 LDFLAGS="$LDFLAGS $addld"
23742 if test "$addcflags" != "-I/usr/include"; then
23743 CPPFLAGS="$CPPFLAGS $addcflags"
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23747 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23748 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23749 $as_echo_n "(cached) " >&6
23751 ac_check_lib_save_LIBS=$LIBS
23752 LIBS="-lgnutls $LIBS"
23753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23754 /* end confdefs.h. */
23760 char gnutls_check_version ();
23763 return gnutls_check_version ();
23768 if ac_fn_c_try_link "$LINENO"; then :
23769 ac_cv_lib_gnutls_gnutls_check_version=yes
23771 ac_cv_lib_gnutls_gnutls_check_version=no
23773 rm -f core conftest.err conftest.$ac_objext \
23774 conftest$ac_exeext conftest.$ac_ext
23775 LIBS=$ac_check_lib_save_LIBS
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23778 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23779 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23782 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23788 curl_ssl_msg="enabled (GnuTLS)"
23793 CPPFLAGS="$CLEANCPPFLAGS"
23798 if test "x$USE_GNUTLS" = "xyes"; then
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23800 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23802 if test -n "$gtlslib"; then
23803 if test "x$cross_compiling" != "xyes"; then
23804 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23805 export LD_LIBRARY_PATH
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23807 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23810 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
23812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23815 cat >>confdefs.h <<_ACEOF
23816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23830 if test "$GNUTLS_ENABLED" = "1"; then
23832 # First check if we can detect either crypto library via transitive linking
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23834 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23835 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23836 $as_echo_n "(cached) " >&6
23838 ac_check_lib_save_LIBS=$LIBS
23839 LIBS="-lgnutls $LIBS"
23840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23841 /* end confdefs.h. */
23847 char nettle_MD5Init ();
23850 return nettle_MD5Init ();
23855 if ac_fn_c_try_link "$LINENO"; then :
23856 ac_cv_lib_gnutls_nettle_MD5Init=yes
23858 ac_cv_lib_gnutls_nettle_MD5Init=no
23860 rm -f core conftest.err conftest.$ac_objext \
23861 conftest$ac_exeext conftest.$ac_ext
23862 LIBS=$ac_check_lib_save_LIBS
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23865 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23866 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23867 USE_GNUTLS_NETTLE=1
23870 if test "$USE_GNUTLS_NETTLE" = ""; then
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23872 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23873 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23874 $as_echo_n "(cached) " >&6
23876 ac_check_lib_save_LIBS=$LIBS
23877 LIBS="-lgnutls $LIBS"
23878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23879 /* end confdefs.h. */
23885 char gcry_control ();
23888 return gcry_control ();
23893 if ac_fn_c_try_link "$LINENO"; then :
23894 ac_cv_lib_gnutls_gcry_control=yes
23896 ac_cv_lib_gnutls_gcry_control=no
23898 rm -f core conftest.err conftest.$ac_objext \
23899 conftest$ac_exeext conftest.$ac_ext
23900 LIBS=$ac_check_lib_save_LIBS
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23903 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23904 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23905 USE_GNUTLS_NETTLE=0
23909 # If not, try linking directly to both of them to see if they are available
23910 if test "$USE_GNUTLS_NETTLE" = ""; then
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23912 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23913 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23914 $as_echo_n "(cached) " >&6
23916 ac_check_lib_save_LIBS=$LIBS
23917 LIBS="-lnettle $LIBS"
23918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23919 /* end confdefs.h. */
23925 char nettle_MD5Init ();
23928 return nettle_MD5Init ();
23933 if ac_fn_c_try_link "$LINENO"; then :
23934 ac_cv_lib_nettle_nettle_MD5Init=yes
23936 ac_cv_lib_nettle_nettle_MD5Init=no
23938 rm -f core conftest.err conftest.$ac_objext \
23939 conftest$ac_exeext conftest.$ac_ext
23940 LIBS=$ac_check_lib_save_LIBS
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23943 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23944 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23945 USE_GNUTLS_NETTLE=1
23949 if test "$USE_GNUTLS_NETTLE" = ""; then
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23951 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23952 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23953 $as_echo_n "(cached) " >&6
23955 ac_check_lib_save_LIBS=$LIBS
23956 LIBS="-lgcrypt $LIBS"
23957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23958 /* end confdefs.h. */
23964 char gcry_control ();
23967 return gcry_control ();
23972 if ac_fn_c_try_link "$LINENO"; then :
23973 ac_cv_lib_gcrypt_gcry_control=yes
23975 ac_cv_lib_gcrypt_gcry_control=no
23977 rm -f core conftest.err conftest.$ac_objext \
23978 conftest$ac_exeext conftest.$ac_ext
23979 LIBS=$ac_check_lib_save_LIBS
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23982 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23983 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23984 USE_GNUTLS_NETTLE=0
23988 if test "$USE_GNUTLS_NETTLE" = ""; then
23989 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23991 if test "$USE_GNUTLS_NETTLE" = "1"; then
23993 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23995 USE_GNUTLS_NETTLE=1
23997 LIBS="-lnettle $LIBS"
23999 LIBS="-lgcrypt $LIBS"
24003 if test "$GNUTLS_ENABLED" = "1"; then
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24005 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24006 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24007 $as_echo_n "(cached) " >&6
24009 ac_check_lib_save_LIBS=$LIBS
24010 LIBS="-lgnutls $LIBS"
24011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24012 /* end confdefs.h. */
24018 char gnutls_srp_verifier ();
24021 return gnutls_srp_verifier ();
24026 if ac_fn_c_try_link "$LINENO"; then :
24027 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24029 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24031 rm -f core conftest.err conftest.$ac_objext \
24032 conftest$ac_exeext conftest.$ac_ext
24033 LIBS=$ac_check_lib_save_LIBS
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24036 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24037 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24040 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24052 _cppflags=$CPPFLAGS
24055 # Check whether --with-polarssl was given.
24056 if test "${with_polarssl+set}" = set; then :
24057 withval=$with_polarssl; OPT_POLARSSL=$withval
24061 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24063 if test X"$OPT_POLARSSL" != Xno; then
24065 if test "$OPT_POLARSSL" = "yes"; then
24069 if test -z "$OPT_POLARSSL" ; then
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24072 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24073 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24074 $as_echo_n "(cached) " >&6
24076 ac_check_lib_save_LIBS=$LIBS
24077 LIBS="-lpolarssl $LIBS"
24078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24079 /* end confdefs.h. */
24085 char havege_init ();
24088 return havege_init ();
24093 if ac_fn_c_try_link "$LINENO"; then :
24094 ac_cv_lib_polarssl_havege_init=yes
24096 ac_cv_lib_polarssl_havege_init=no
24098 rm -f core conftest.err conftest.$ac_objext \
24099 conftest$ac_exeext conftest.$ac_ext
24100 LIBS=$ac_check_lib_save_LIBS
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24103 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24104 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24107 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24113 curl_ssl_msg="enabled (PolarSSL)"
24124 if test "x$USE_POLARSSL" != "xyes"; then
24125 addld=-L$OPT_POLARSSL/lib$libsuff
24126 addcflags=-I$OPT_POLARSSL/include
24127 polarssllib=$OPT_POLARSSL/lib$libsuff
24129 LDFLAGS="$LDFLAGS $addld"
24130 if test "$addcflags" != "-I/usr/include"; then
24131 CPPFLAGS="$CPPFLAGS $addcflags"
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24135 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24136 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24137 $as_echo_n "(cached) " >&6
24139 ac_check_lib_save_LIBS=$LIBS
24140 LIBS="-lpolarssl $LIBS"
24141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24142 /* end confdefs.h. */
24151 return ssl_init ();
24156 if ac_fn_c_try_link "$LINENO"; then :
24157 ac_cv_lib_polarssl_ssl_init=yes
24159 ac_cv_lib_polarssl_ssl_init=no
24161 rm -f core conftest.err conftest.$ac_objext \
24162 conftest$ac_exeext conftest.$ac_ext
24163 LIBS=$ac_check_lib_save_LIBS
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24166 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24167 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24170 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24176 curl_ssl_msg="enabled (PolarSSL)"
24180 CPPFLAGS=$_cppflags
24187 if test "x$USE_POLARSSL" = "xyes"; then
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24189 $as_echo "$as_me: detected PolarSSL" >&6;}
24191 LIBS="-lpolarssl $LIBS"
24193 if test -n "$polarssllib"; then
24194 if test "x$cross_compiling" != "xyes"; then
24195 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24196 export LD_LIBRARY_PATH
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24198 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24209 _cppflags=$CPPFLAGS
24212 # Check whether --with-mbedtls was given.
24213 if test "${with_mbedtls+set}" = set; then :
24214 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24218 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24220 if test X"$OPT_MBEDTLS" != Xno; then
24222 if test "$OPT_MBEDTLS" = "yes"; then
24226 if test -z "$OPT_MBEDTLS" ; then
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24229 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24230 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24231 $as_echo_n "(cached) " >&6
24233 ac_check_lib_save_LIBS=$LIBS
24234 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24236 /* end confdefs.h. */
24242 char mbedtls_havege_init ();
24245 return mbedtls_havege_init ();
24250 if ac_fn_c_try_link "$LINENO"; then :
24251 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24253 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24255 rm -f core conftest.err conftest.$ac_objext \
24256 conftest$ac_exeext conftest.$ac_ext
24257 LIBS=$ac_check_lib_save_LIBS
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24260 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24261 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24264 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24270 curl_ssl_msg="enabled (mbedTLS)"
24281 if test "x$USE_MBEDTLS" != "xyes"; then
24282 addld=-L$OPT_MBEDTLS/lib$libsuff
24283 addcflags=-I$OPT_MBEDTLS/include
24284 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24286 LDFLAGS="$LDFLAGS $addld"
24287 if test "$addcflags" != "-I/usr/include"; then
24288 CPPFLAGS="$CPPFLAGS $addcflags"
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24292 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24293 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24294 $as_echo_n "(cached) " >&6
24296 ac_check_lib_save_LIBS=$LIBS
24297 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24299 /* end confdefs.h. */
24305 char mbedtls_ssl_init ();
24308 return mbedtls_ssl_init ();
24313 if ac_fn_c_try_link "$LINENO"; then :
24314 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24316 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24318 rm -f core conftest.err conftest.$ac_objext \
24319 conftest$ac_exeext conftest.$ac_ext
24320 LIBS=$ac_check_lib_save_LIBS
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24323 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24324 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24327 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24333 curl_ssl_msg="enabled (mbedTLS)"
24337 CPPFLAGS=$_cppflags
24344 if test "x$USE_MBEDTLS" = "xyes"; then
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24346 $as_echo "$as_me: detected mbedTLS" >&6;}
24348 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24350 if test -n "$mbedtlslib"; then
24351 if test "x$cross_compiling" != "xyes"; then
24352 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24353 export LD_LIBRARY_PATH
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24355 $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24366 _cppflags=$CPPFLAGS
24369 # Check whether --with-cyassl was given.
24370 if test "${with_cyassl+set}" = set; then :
24371 withval=$with_cyassl; OPT_CYASSL=$withval
24375 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24377 if test X"$OPT_CYASSL" != Xno; then
24379 if test "$OPT_CYASSL" = "yes"; then
24384 cyassllibname=cyassl
24386 if test -z "$OPT_CYASSL" ; then
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24389 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24390 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24391 $as_echo_n "(cached) " >&6
24393 ac_check_lib_save_LIBS=$LIBS
24394 LIBS="-lcyassl $LIBS"
24395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24396 /* end confdefs.h. */
24402 char CyaSSL_Init ();
24405 return CyaSSL_Init ();
24410 if ac_fn_c_try_link "$LINENO"; then :
24411 ac_cv_lib_cyassl_CyaSSL_Init=yes
24413 ac_cv_lib_cyassl_CyaSSL_Init=no
24415 rm -f core conftest.err conftest.$ac_objext \
24416 conftest$ac_exeext conftest.$ac_ext
24417 LIBS=$ac_check_lib_save_LIBS
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24420 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24421 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24424 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24430 curl_ssl_msg="enabled (CyaSSL)"
24441 if test "x$USE_CYASSL" != "xyes"; then
24442 addld=-L$OPT_CYASSL/lib$libsuff
24443 addcflags=-I$OPT_CYASSL/include
24444 cyassllib=$OPT_CYASSL/lib$libsuff
24446 LDFLAGS="$LDFLAGS $addld"
24447 if test "$addcflags" != "-I/usr/include"; then
24448 CPPFLAGS="$CPPFLAGS $addcflags"
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24452 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24453 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24454 $as_echo_n "(cached) " >&6
24456 ac_check_lib_save_LIBS=$LIBS
24457 LIBS="-lcyassl $LIBS"
24458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24459 /* end confdefs.h. */
24465 char CyaSSL_Init ();
24468 return CyaSSL_Init ();
24473 if ac_fn_c_try_link "$LINENO"; then :
24474 ac_cv_lib_cyassl_CyaSSL_Init=yes
24476 ac_cv_lib_cyassl_CyaSSL_Init=no
24478 rm -f core conftest.err conftest.$ac_objext \
24479 conftest$ac_exeext conftest.$ac_ext
24480 LIBS=$ac_check_lib_save_LIBS
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24483 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24484 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24487 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24493 curl_ssl_msg="enabled (CyaSSL)"
24497 CPPFLAGS=$_cppflags
24509 if test "x$USE_CYASSL" != "xyes"; then
24510 addld=-L$OPT_CYASSL/lib$libsuff
24511 addcflags=-I$OPT_CYASSL/include
24512 cyassllib=$OPT_CYASSL/lib$libsuff
24514 LDFLAGS="$LDFLAGS $addld"
24515 if test "$addcflags" != "-I/usr/include"; then
24516 CPPFLAGS="$CPPFLAGS $addcflags"
24519 cyassllibname=wolfssl
24520 my_ac_save_LIBS="$LIBS"
24521 LIBS="-l$cyassllibname -lm $LIBS"
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24524 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24526 /* end confdefs.h. */
24529 /* These aren't needed for detection and confuse WolfSSL.
24530 They are set up properly later if it is detected. */
24532 #undef SIZEOF_LONG_LONG
24533 #include <cyassl/ssl.h>
24538 return CyaSSL_Init();
24545 if ac_fn_c_try_link "$LINENO"; then :
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24548 $as_echo "yes" >&6; }
24550 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24556 curl_ssl_msg="enabled (WolfSSL)"
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24561 $as_echo "no" >&6; }
24562 CPPFLAGS=$_cppflags
24567 rm -f core conftest.err conftest.$ac_objext \
24568 conftest$ac_exeext conftest.$ac_ext
24569 LIBS="$my_ac_save_LIBS"
24572 if test "x$USE_CYASSL" = "xyes"; then
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24574 $as_echo "$as_me: detected $cyassllibname" >&6;}
24576 # The cast to long int works around a bug in the HP C Compiler
24577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24579 # This bug is HP SR number 8606223364.
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24581 $as_echo_n "checking size of long long... " >&6; }
24582 if ${ac_cv_sizeof_long_long+:} false; then :
24583 $as_echo_n "(cached) " >&6
24585 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24588 if test "$ac_cv_type_long_long" = yes; then
24589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24591 as_fn_error 77 "cannot compute sizeof (long long)
24592 See \`config.log' for more details" "$LINENO" 5; }
24594 ac_cv_sizeof_long_long=0
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24600 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24604 cat >>confdefs.h <<_ACEOF
24605 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24610 for ac_header in cyassl/options.h
24612 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24613 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24614 cat >>confdefs.h <<_ACEOF
24615 #define HAVE_CYASSL_OPTIONS_H 1
24623 for ac_header in cyassl/error-ssl.h
24625 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24626 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24627 cat >>confdefs.h <<_ACEOF
24628 #define HAVE_CYASSL_ERROR_SSL_H 1
24636 LIBS="-l$cyassllibname -lm $LIBS"
24638 if test "x$cyassllibname" = "xwolfssl"; then
24639 for ac_func in wolfSSLv3_client_method \
24640 wolfSSL_CTX_UseSupportedCurve \
24641 wolfSSL_get_peer_certificate \
24644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24647 cat >>confdefs.h <<_ACEOF
24648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24655 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24656 CyaSSL_get_peer_certificate
24658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24661 cat >>confdefs.h <<_ACEOF
24662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24670 if test -n "$cyassllib"; then
24671 if test "x$cross_compiling" != "xyes"; then
24672 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24673 export LD_LIBRARY_PATH
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24675 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24688 # Check whether --with-nss was given.
24689 if test "${with_nss+set}" = set; then :
24690 withval=$with_nss; OPT_NSS=$withval
24694 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24696 if test X"$OPT_NSS" != Xno; then
24704 if test "x$OPT_NSS" = "xyes"; then
24707 if test -n "$PKG_CONFIG"; then
24708 PKGCONFIG="$PKG_CONFIG"
24710 if test -n "$ac_tool_prefix"; then
24711 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24712 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24714 $as_echo_n "checking for $ac_word... " >&6; }
24715 if ${ac_cv_path_PKGCONFIG+:} false; then :
24716 $as_echo_n "(cached) " >&6
24720 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24724 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24725 for as_dir in $as_dummy
24728 test -z "$as_dir" && as_dir=.
24729 for ac_exec_ext in '' $ac_executable_extensions; do
24730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24731 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24742 PKGCONFIG=$ac_cv_path_PKGCONFIG
24743 if test -n "$PKGCONFIG"; then
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24745 $as_echo "$PKGCONFIG" >&6; }
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24748 $as_echo "no" >&6; }
24753 if test -z "$ac_cv_path_PKGCONFIG"; then
24754 ac_pt_PKGCONFIG=$PKGCONFIG
24755 # Extract the first word of "pkg-config", so it can be a program name with args.
24756 set dummy pkg-config; ac_word=$2
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24758 $as_echo_n "checking for $ac_word... " >&6; }
24759 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24760 $as_echo_n "(cached) " >&6
24762 case $ac_pt_PKGCONFIG in
24764 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24768 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24769 for as_dir in $as_dummy
24772 test -z "$as_dir" && as_dir=.
24773 for ac_exec_ext in '' $ac_executable_extensions; do
24774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24775 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24786 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24787 if test -n "$ac_pt_PKGCONFIG"; then
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24789 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24792 $as_echo "no" >&6; }
24795 if test "x$ac_pt_PKGCONFIG" = x; then
24798 case $cross_compiling:$ac_tool_warned in
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24802 ac_tool_warned=yes ;;
24804 PKGCONFIG=$ac_pt_PKGCONFIG
24807 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24812 if test "x$PKGCONFIG" != "xno"; then
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24814 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24816 if test -n ""; then
24817 PKG_CONFIG_LIBDIR=""
24818 export PKG_CONFIG_LIBDIR
24820 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24822 if test -z "$itexists"; then
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24825 $as_echo "no" >&6; }
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24828 $as_echo "found" >&6; }
24833 if test "$PKGCONFIG" != "no" ; then
24834 addlib=`$PKGCONFIG --libs nss`
24835 addcflags=`$PKGCONFIG --cflags nss`
24836 version=`$PKGCONFIG --modversion nss`
24837 nssprefix=`$PKGCONFIG --variable=prefix nss`
24840 check=`nss-config --version 2>/dev/null`
24841 if test -n "$check"; then
24842 addlib=`nss-config --libs`
24843 addcflags=`nss-config --cflags`
24844 version=`nss-config --version`
24845 nssprefix=`nss-config --prefix`
24853 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
24854 if test -f "$NSS_PCDIR/nss.pc"; then
24856 if test -n "$PKG_CONFIG"; then
24857 PKGCONFIG="$PKG_CONFIG"
24859 if test -n "$ac_tool_prefix"; then
24860 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24861 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24863 $as_echo_n "checking for $ac_word... " >&6; }
24864 if ${ac_cv_path_PKGCONFIG+:} false; then :
24865 $as_echo_n "(cached) " >&6
24869 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24873 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24874 for as_dir in $as_dummy
24877 test -z "$as_dir" && as_dir=.
24878 for ac_exec_ext in '' $ac_executable_extensions; do
24879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24880 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24891 PKGCONFIG=$ac_cv_path_PKGCONFIG
24892 if test -n "$PKGCONFIG"; then
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24894 $as_echo "$PKGCONFIG" >&6; }
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24897 $as_echo "no" >&6; }
24902 if test -z "$ac_cv_path_PKGCONFIG"; then
24903 ac_pt_PKGCONFIG=$PKGCONFIG
24904 # Extract the first word of "pkg-config", so it can be a program name with args.
24905 set dummy pkg-config; ac_word=$2
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24907 $as_echo_n "checking for $ac_word... " >&6; }
24908 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24909 $as_echo_n "(cached) " >&6
24911 case $ac_pt_PKGCONFIG in
24913 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24917 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24918 for as_dir in $as_dummy
24921 test -z "$as_dir" && as_dir=.
24922 for ac_exec_ext in '' $ac_executable_extensions; do
24923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24924 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24935 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24936 if test -n "$ac_pt_PKGCONFIG"; then
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24938 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24941 $as_echo "no" >&6; }
24944 if test "x$ac_pt_PKGCONFIG" = x; then
24947 case $cross_compiling:$ac_tool_warned in
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24951 ac_tool_warned=yes ;;
24953 PKGCONFIG=$ac_pt_PKGCONFIG
24956 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24961 if test "x$PKGCONFIG" != "xno"; then
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24963 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24965 if test -n "$NSS_PCDIR"; then
24966 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24967 export PKG_CONFIG_LIBDIR
24969 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24971 if test -z "$itexists"; then
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24974 $as_echo "no" >&6; }
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24977 $as_echo "found" >&6; }
24981 if test "$PKGCONFIG" != "no" ; then
24983 if test -n "$NSS_PCDIR"; then
24984 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24985 export PKG_CONFIG_LIBDIR
24987 $PKGCONFIG --libs-only-L nss`
24989 if test -n "$NSS_PCDIR"; then
24990 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24991 export PKG_CONFIG_LIBDIR
24993 $PKGCONFIG --libs-only-l nss`
24995 if test -n "$NSS_PCDIR"; then
24996 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24997 export PKG_CONFIG_LIBDIR
24999 $PKGCONFIG --cflags nss`
25001 if test -n "$NSS_PCDIR"; then
25002 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25003 export PKG_CONFIG_LIBDIR
25005 $PKGCONFIG --modversion nss`
25007 if test -n "$NSS_PCDIR"; then
25008 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25009 export PKG_CONFIG_LIBDIR
25011 $PKGCONFIG --variable=prefix nss`
25016 if test -z "$addlib"; then
25017 # Without pkg-config, we'll kludge in some defaults
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25019 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25020 addld="-L$OPT_NSS/lib"
25021 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25022 addcflags="-I$OPT_NSS/include"
25027 CLEANLDFLAGS="$LDFLAGS"
25029 CLEANCPPFLAGS="$CPPFLAGS"
25031 LDFLAGS="$addld $LDFLAGS"
25032 LIBS="$addlib $LIBS"
25033 if test "$addcflags" != "-I/usr/include"; then
25034 CPPFLAGS="$CPPFLAGS $addcflags"
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25038 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25039 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25040 $as_echo_n "(cached) " >&6
25042 ac_check_lib_save_LIBS=$LIBS
25043 LIBS="-lnss3 $LIBS"
25044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25045 /* end confdefs.h. */
25051 char SSL_VersionRangeSet ();
25054 return SSL_VersionRangeSet ();
25059 if ac_fn_c_try_link "$LINENO"; then :
25060 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25062 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25064 rm -f core conftest.err conftest.$ac_objext \
25065 conftest$ac_exeext conftest.$ac_ext
25066 LIBS=$ac_check_lib_save_LIBS
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25069 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25070 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25073 $as_echo "#define USE_NSS 1" >>confdefs.h
25079 curl_ssl_msg="enabled (NSS)"
25083 LDFLAGS="$CLEANLDFLAGS"
25085 CPPFLAGS="$CLEANCPPFLAGS"
25090 if test "x$USE_NSS" = "xyes"; then
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25092 $as_echo "$as_me: detected NSS version $version" >&6;}
25097 if test "x$cross_compiling" != "xyes"; then
25098 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25099 export LD_LIBRARY_PATH
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25101 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25110 # Check whether --with-axtls was given.
25111 if test "${with_axtls+set}" = set; then :
25112 withval=$with_axtls; OPT_AXTLS=$withval
25116 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
25117 if test X"$OPT_AXTLS" != Xno; then
25118 CLEANLDFLAGS="$LDFLAGS"
25119 CLEANCPPFLAGS="$CPPFLAGS"
25122 case "$OPT_AXTLS" in
25124 PREFIX_AXTLS=/usr/local
25125 LIB_AXTLS="$PREFIX_AXTLS/lib"
25126 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25127 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25133 PREFIX_AXTLS=$OPT_AXTLS
25134 LIB_AXTLS="$PREFIX_AXTLS/lib"
25135 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25136 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25141 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25142 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25143 $as_echo_n "(cached) " >&6
25145 ac_check_lib_save_LIBS=$LIBS
25146 LIBS="-laxtls $LIBS"
25147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25148 /* end confdefs.h. */
25154 char ssl_version ();
25157 return ssl_version ();
25162 if ac_fn_c_try_link "$LINENO"; then :
25163 ac_cv_lib_axtls_ssl_version=yes
25165 ac_cv_lib_axtls_ssl_version=no
25167 rm -f core conftest.err conftest.$ac_objext \
25168 conftest$ac_exeext conftest.$ac_ext
25169 LIBS=$ac_check_lib_save_LIBS
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25172 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25173 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25175 LIBS="-laxtls $LIBS"
25177 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25183 curl_ssl_msg="enabled (axTLS)"
25185 if test "x$cross_compiling" != "xyes"; then
25186 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25187 export LD_LIBRARY_PATH
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25189 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25194 LDFLAGS="$CLEANLDFLAGS"
25195 CPPFLAGS="$CLEANCPPFLAGS"
25203 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25205 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&5
25207 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;}
25209 # SSL is enabled, genericly
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25218 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25221 # Check whether --with-ca-bundle was given.
25222 if test "${with_ca_bundle+set}" = set; then :
25223 withval=$with_ca_bundle;
25225 if test "x$want_ca" = "xyes"; then
25226 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25234 # Check whether --with-ca-path was given.
25235 if test "${with_ca_path+set}" = set; then :
25236 withval=$with_ca_path;
25237 want_capath="$withval"
25238 if test "x$want_capath" = "xyes"; then
25239 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25243 want_capath="unset"
25247 ca_warning=" (warning: certs not found)"
25248 capath_warning=" (warning: certs not found)"
25251 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25252 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25254 capath="$want_capath"
25255 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25258 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25259 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25260 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25262 capath="$want_capath"
25267 if test "x$cross_compiling" != "xyes"; then
25268 if test "x$want_ca" = "xunset"; then
25269 if test "x$prefix" != xNONE; then
25270 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25272 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25275 for a in /etc/ssl/certs/ca-certificates.crt \
25276 /etc/pki/tls/certs/ca-bundle.crt \
25277 /usr/share/ssl/certs/ca-bundle.crt \
25278 /usr/local/share/certs/ca-root-nss.crt \
25279 /etc/ssl/cert.pem \
25281 if test -f "$a"; then
25287 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25288 "x$OPENSSL_ENABLED" = "x1"; then
25289 check_capath="/etc/ssl/certs/"
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25293 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25297 if test "x$ca" = "xno" || test -f "$ca"; then
25301 if test "x$capath" != "xno"; then
25302 check_capath="$capath"
25305 if test ! -z "$check_capath"; then
25306 for a in "$check_capath"; do
25307 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
25308 if test "x$capath" = "xno"; then
25317 if test "x$capath" = "xno"; then
25321 if test "x$ca" != "xno"; then
25322 CURL_CA_BUNDLE='"'$ca'"'
25324 cat >>confdefs.h <<_ACEOF
25325 #define CURL_CA_BUNDLE "$ca"
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25330 $as_echo "$ca" >&6; }
25332 if test "x$capath" != "xno"; then
25333 CURL_CA_PATH="\"$capath\""
25335 cat >>confdefs.h <<_ACEOF
25336 #define CURL_CA_PATH "$capath"
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25340 $as_echo "$capath (capath)" >&6; }
25342 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25344 $as_echo "no" >&6; }
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25348 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25350 # Check whether --with-ca-fallback was given.
25351 if test "${with_ca_fallback+set}" = set; then :
25352 withval=$with_ca_fallback;
25353 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25354 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25358 with_ca_fallback="no"
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25362 $as_echo "$with_ca_fallback" >&6; }
25363 if test "x$with_ca_fallback" = "xyes"; then
25364 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25365 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25368 cat >>confdefs.h <<_ACEOF
25369 #define CURL_CA_FALLBACK 1
25377 # Check whether --with-libpsl was given.
25378 if test "${with_libpsl+set}" = set; then :
25379 withval=$with_libpsl; with_libpsl=$withval
25384 if test $with_libpsl != "no"; then
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25386 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25387 if ${ac_cv_search_psl_builtin+:} false; then :
25388 $as_echo_n "(cached) " >&6
25390 ac_func_search_save_LIBS=$LIBS
25391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25392 /* end confdefs.h. */
25398 char psl_builtin ();
25401 return psl_builtin ();
25406 for ac_lib in '' psl; do
25407 if test -z "$ac_lib"; then
25408 ac_res="none required"
25411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25413 if ac_fn_c_try_link "$LINENO"; then :
25414 ac_cv_search_psl_builtin=$ac_res
25416 rm -f core conftest.err conftest.$ac_objext \
25418 if ${ac_cv_search_psl_builtin+:} false; then :
25422 if ${ac_cv_search_psl_builtin+:} false; then :
25425 ac_cv_search_psl_builtin=no
25427 rm conftest.$ac_ext
25428 LIBS=$ac_func_search_save_LIBS
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25431 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25432 ac_res=$ac_cv_search_psl_builtin
25433 if test "$ac_res" != no; then :
25434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25435 curl_psl_msg="yes";
25437 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25441 curl_psl_msg="no (libpsl not found)";
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25443 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25449 if test "$curl_psl_msg" = "yes"; then
25451 USE_LIBPSL_FALSE='#'
25453 USE_LIBPSL_TRUE='#'
25462 # Check whether --with-libmetalink was given.
25463 if test "${with_libmetalink+set}" = set; then :
25464 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25468 if test X"$OPT_LIBMETALINK" != Xno; then
25477 if test "x$OPT_LIBMETALINK" = "xyes"; then
25480 if test -n "$PKG_CONFIG"; then
25481 PKGCONFIG="$PKG_CONFIG"
25483 if test -n "$ac_tool_prefix"; then
25484 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25485 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25487 $as_echo_n "checking for $ac_word... " >&6; }
25488 if ${ac_cv_path_PKGCONFIG+:} false; then :
25489 $as_echo_n "(cached) " >&6
25493 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25497 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25498 for as_dir in $as_dummy
25501 test -z "$as_dir" && as_dir=.
25502 for ac_exec_ext in '' $ac_executable_extensions; do
25503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25504 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25515 PKGCONFIG=$ac_cv_path_PKGCONFIG
25516 if test -n "$PKGCONFIG"; then
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25518 $as_echo "$PKGCONFIG" >&6; }
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25521 $as_echo "no" >&6; }
25526 if test -z "$ac_cv_path_PKGCONFIG"; then
25527 ac_pt_PKGCONFIG=$PKGCONFIG
25528 # Extract the first word of "pkg-config", so it can be a program name with args.
25529 set dummy pkg-config; ac_word=$2
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25531 $as_echo_n "checking for $ac_word... " >&6; }
25532 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25533 $as_echo_n "(cached) " >&6
25535 case $ac_pt_PKGCONFIG in
25537 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25541 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25542 for as_dir in $as_dummy
25545 test -z "$as_dir" && as_dir=.
25546 for ac_exec_ext in '' $ac_executable_extensions; do
25547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25548 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25559 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25560 if test -n "$ac_pt_PKGCONFIG"; then
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25562 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25565 $as_echo "no" >&6; }
25568 if test "x$ac_pt_PKGCONFIG" = x; then
25571 case $cross_compiling:$ac_tool_warned in
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25575 ac_tool_warned=yes ;;
25577 PKGCONFIG=$ac_pt_PKGCONFIG
25580 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25585 if test "x$PKGCONFIG" != "xno"; then
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25587 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25589 if test -n ""; then
25590 PKG_CONFIG_LIBDIR=""
25591 export PKG_CONFIG_LIBDIR
25593 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25595 if test -z "$itexists"; then
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25598 $as_echo "no" >&6; }
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25601 $as_echo "found" >&6; }
25606 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25608 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25609 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25612 if test "$PKGTEST" = "yes"; then
25614 if test -n "$PKG_CONFIG"; then
25615 PKGCONFIG="$PKG_CONFIG"
25617 if test -n "$ac_tool_prefix"; then
25618 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25619 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25621 $as_echo_n "checking for $ac_word... " >&6; }
25622 if ${ac_cv_path_PKGCONFIG+:} false; then :
25623 $as_echo_n "(cached) " >&6
25627 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25631 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25632 for as_dir in $as_dummy
25635 test -z "$as_dir" && as_dir=.
25636 for ac_exec_ext in '' $ac_executable_extensions; do
25637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25638 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25649 PKGCONFIG=$ac_cv_path_PKGCONFIG
25650 if test -n "$PKGCONFIG"; then
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25652 $as_echo "$PKGCONFIG" >&6; }
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25655 $as_echo "no" >&6; }
25660 if test -z "$ac_cv_path_PKGCONFIG"; then
25661 ac_pt_PKGCONFIG=$PKGCONFIG
25662 # Extract the first word of "pkg-config", so it can be a program name with args.
25663 set dummy pkg-config; ac_word=$2
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25665 $as_echo_n "checking for $ac_word... " >&6; }
25666 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25667 $as_echo_n "(cached) " >&6
25669 case $ac_pt_PKGCONFIG in
25671 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25675 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25676 for as_dir in $as_dummy
25679 test -z "$as_dir" && as_dir=.
25680 for ac_exec_ext in '' $ac_executable_extensions; do
25681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25682 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25693 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25694 if test -n "$ac_pt_PKGCONFIG"; then
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25696 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25699 $as_echo "no" >&6; }
25702 if test "x$ac_pt_PKGCONFIG" = x; then
25705 case $cross_compiling:$ac_tool_warned in
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25709 ac_tool_warned=yes ;;
25711 PKGCONFIG=$ac_pt_PKGCONFIG
25714 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25719 if test "x$PKGCONFIG" != "xno"; then
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25721 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25723 if test -n "$LIBMETALINK_PCDIR"; then
25724 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25725 export PKG_CONFIG_LIBDIR
25727 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25729 if test -z "$itexists"; then
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25732 $as_echo "no" >&6; }
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25735 $as_echo "found" >&6; }
25741 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25743 if test -n "$LIBMETALINK_PCDIR"; then
25744 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25745 export PKG_CONFIG_LIBDIR
25747 $PKGCONFIG --libs-only-l libmetalink`
25749 if test -n "$LIBMETALINK_PCDIR"; then
25750 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25751 export PKG_CONFIG_LIBDIR
25753 $PKGCONFIG --libs-only-L libmetalink`
25755 if test -n "$LIBMETALINK_PCDIR"; then
25756 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25757 export PKG_CONFIG_LIBDIR
25759 $PKGCONFIG --cflags-only-I libmetalink`
25761 if test -n "$LIBMETALINK_PCDIR"; then
25762 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25763 export PKG_CONFIG_LIBDIR
25765 $PKGCONFIG --modversion libmetalink`
25766 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
25768 if test -n "$addlib"; then
25770 clean_CPPFLAGS="$CPPFLAGS"
25771 clean_LDFLAGS="$LDFLAGS"
25773 CPPFLAGS="$addcflags $clean_CPPFLAGS"
25774 LDFLAGS="$addld $clean_LDFLAGS"
25775 LIBS="$addlib $clean_LIBS"
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
25777 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
25778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25779 /* end confdefs.h. */
25782 # include <metalink/metalink.h>
25787 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
25795 if ac_fn_c_try_link "$LINENO"; then :
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
25798 $as_echo "yes ($version)" >&6; }
25799 want_metalink="yes"
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
25804 $as_echo "no ($version)" >&6; }
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
25806 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
25810 rm -f core conftest.err conftest.$ac_objext \
25811 conftest$ac_exeext conftest.$ac_ext
25812 CPPFLAGS="$clean_CPPFLAGS"
25813 LDFLAGS="$clean_LDFLAGS"
25815 if test "$want_metalink" = "yes"; then
25817 $as_echo "#define USE_METALINK 1" >>confdefs.h
25819 LIBMETALINK_LIBS=$addlib
25820 LIBMETALINK_LDFLAGS=$addld
25821 LIBMETALINK_CPPFLAGS=$addcflags
25825 curl_mtlnk_msg="enabled"
25834 # Check whether --with-libssh2 was given.
25835 if test "${with_libssh2+set}" = set; then :
25836 withval=$with_libssh2; OPT_LIBSSH2=$withval
25840 if test X"$OPT_LIBSSH2" != Xno; then
25841 CLEANLDFLAGS="$LDFLAGS"
25842 CLEANCPPFLAGS="$CPPFLAGS"
25845 case "$OPT_LIBSSH2" in
25848 if test -n "$PKG_CONFIG"; then
25849 PKGCONFIG="$PKG_CONFIG"
25851 if test -n "$ac_tool_prefix"; then
25852 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25853 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25855 $as_echo_n "checking for $ac_word... " >&6; }
25856 if ${ac_cv_path_PKGCONFIG+:} false; then :
25857 $as_echo_n "(cached) " >&6
25861 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25865 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25866 for as_dir in $as_dummy
25869 test -z "$as_dir" && as_dir=.
25870 for ac_exec_ext in '' $ac_executable_extensions; do
25871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25872 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25883 PKGCONFIG=$ac_cv_path_PKGCONFIG
25884 if test -n "$PKGCONFIG"; then
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25886 $as_echo "$PKGCONFIG" >&6; }
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25889 $as_echo "no" >&6; }
25894 if test -z "$ac_cv_path_PKGCONFIG"; then
25895 ac_pt_PKGCONFIG=$PKGCONFIG
25896 # Extract the first word of "pkg-config", so it can be a program name with args.
25897 set dummy pkg-config; ac_word=$2
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25899 $as_echo_n "checking for $ac_word... " >&6; }
25900 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25901 $as_echo_n "(cached) " >&6
25903 case $ac_pt_PKGCONFIG in
25905 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25909 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25910 for as_dir in $as_dummy
25913 test -z "$as_dir" && as_dir=.
25914 for ac_exec_ext in '' $ac_executable_extensions; do
25915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25916 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25927 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25928 if test -n "$ac_pt_PKGCONFIG"; then
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25930 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25933 $as_echo "no" >&6; }
25936 if test "x$ac_pt_PKGCONFIG" = x; then
25939 case $cross_compiling:$ac_tool_warned in
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25943 ac_tool_warned=yes ;;
25945 PKGCONFIG=$ac_pt_PKGCONFIG
25948 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25953 if test "x$PKGCONFIG" != "xno"; then
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
25955 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
25957 if test -n ""; then
25958 PKG_CONFIG_LIBDIR=""
25959 export PKG_CONFIG_LIBDIR
25961 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
25963 if test -z "$itexists"; then
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25966 $as_echo "no" >&6; }
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25969 $as_echo "found" >&6; }
25974 if test "$PKGCONFIG" != "no" ; then
25975 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
25976 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
25977 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
25978 version=`$PKGCONFIG --modversion libssh2`
25979 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
25986 PREFIX_SSH2=$OPT_LIBSSH2
25990 if test -n "$PREFIX_SSH2"; then
25992 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
25993 CPP_SSH2=-I${PREFIX_SSH2}/include
25994 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
25997 LDFLAGS="$LD_SSH2 $LDFLAGS"
25998 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
25999 LIBS="$LIB_SSH2 $LIBS"
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26002 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26003 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26004 $as_echo_n "(cached) " >&6
26006 ac_check_lib_save_LIBS=$LIBS
26007 LIBS="-lssh2 $LIBS"
26008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26009 /* end confdefs.h. */
26015 char libssh2_channel_open_ex ();
26018 return libssh2_channel_open_ex ();
26023 if ac_fn_c_try_link "$LINENO"; then :
26024 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26026 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26028 rm -f core conftest.err conftest.$ac_objext \
26029 conftest$ac_exeext conftest.$ac_ext
26030 LIBS=$ac_check_lib_save_LIBS
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26033 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26034 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26035 cat >>confdefs.h <<_ACEOF
26036 #define HAVE_LIBSSH2 1
26039 LIBS="-lssh2 $LIBS"
26044 for ac_header in libssh2.h
26046 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26047 if test "x$ac_cv_header_libssh2_h" = xyes; then :
26048 cat >>confdefs.h <<_ACEOF
26049 #define HAVE_LIBSSH2_H 1
26051 curl_ssh_msg="enabled (libSSH2)"
26054 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26064 if test X"$OPT_LIBSSH2" != Xoff &&
26065 test "$LIBSSH2_ENABLED" != "1"; then
26066 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26069 if test "$LIBSSH2_ENABLED" = "1"; then
26070 if test -n "$DIR_SSH2"; then
26072 if test "x$cross_compiling" != "xyes"; then
26073 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26074 export LD_LIBRARY_PATH
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26076 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26080 LDFLAGS=$CLEANLDFLAGS
26081 CPPFLAGS=$CLEANCPPFLAGS
26089 # Check whether --with-librtmp was given.
26090 if test "${with_librtmp+set}" = set; then :
26091 withval=$with_librtmp; OPT_LIBRTMP=$withval
26095 if test X"$OPT_LIBRTMP" != Xno; then
26096 CLEANLDFLAGS="$LDFLAGS"
26097 CLEANCPPFLAGS="$CPPFLAGS"
26100 case "$OPT_LIBRTMP" in
26103 if test -n "$PKG_CONFIG"; then
26104 PKGCONFIG="$PKG_CONFIG"
26106 if test -n "$ac_tool_prefix"; then
26107 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26108 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26110 $as_echo_n "checking for $ac_word... " >&6; }
26111 if ${ac_cv_path_PKGCONFIG+:} false; then :
26112 $as_echo_n "(cached) " >&6
26116 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26120 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26121 for as_dir in $as_dummy
26124 test -z "$as_dir" && as_dir=.
26125 for ac_exec_ext in '' $ac_executable_extensions; do
26126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26127 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26138 PKGCONFIG=$ac_cv_path_PKGCONFIG
26139 if test -n "$PKGCONFIG"; then
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26141 $as_echo "$PKGCONFIG" >&6; }
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26144 $as_echo "no" >&6; }
26149 if test -z "$ac_cv_path_PKGCONFIG"; then
26150 ac_pt_PKGCONFIG=$PKGCONFIG
26151 # Extract the first word of "pkg-config", so it can be a program name with args.
26152 set dummy pkg-config; ac_word=$2
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26154 $as_echo_n "checking for $ac_word... " >&6; }
26155 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26156 $as_echo_n "(cached) " >&6
26158 case $ac_pt_PKGCONFIG in
26160 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26164 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26165 for as_dir in $as_dummy
26168 test -z "$as_dir" && as_dir=.
26169 for ac_exec_ext in '' $ac_executable_extensions; do
26170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26171 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26182 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26183 if test -n "$ac_pt_PKGCONFIG"; then
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26185 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26188 $as_echo "no" >&6; }
26191 if test "x$ac_pt_PKGCONFIG" = x; then
26194 case $cross_compiling:$ac_tool_warned in
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26198 ac_tool_warned=yes ;;
26200 PKGCONFIG=$ac_pt_PKGCONFIG
26203 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26208 if test "x$PKGCONFIG" != "xno"; then
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26210 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26212 if test -n ""; then
26213 PKG_CONFIG_LIBDIR=""
26214 export PKG_CONFIG_LIBDIR
26216 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26218 if test -z "$itexists"; then
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26221 $as_echo "no" >&6; }
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26224 $as_echo "found" >&6; }
26229 if test "$PKGCONFIG" != "no" ; then
26230 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26231 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26232 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26233 version=`$PKGCONFIG --modversion librtmp`
26234 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26236 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26244 PREFIX_RTMP=$OPT_LIBRTMP
26248 if test -n "$PREFIX_RTMP"; then
26249 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26250 CPP_RTMP=-I${PREFIX_RTMP}/include
26251 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26254 LDFLAGS="$LDFLAGS $LD_RTMP"
26255 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26256 LIBS="$LIB_RTMP $LIBS"
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26259 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26260 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26261 $as_echo_n "(cached) " >&6
26263 ac_check_lib_save_LIBS=$LIBS
26264 LIBS="-lrtmp $LIBS"
26265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26266 /* end confdefs.h. */
26275 return RTMP_Init ();
26280 if ac_fn_c_try_link "$LINENO"; then :
26281 ac_cv_lib_rtmp_RTMP_Init=yes
26283 ac_cv_lib_rtmp_RTMP_Init=no
26285 rm -f core conftest.err conftest.$ac_objext \
26286 conftest$ac_exeext conftest.$ac_ext
26287 LIBS=$ac_check_lib_save_LIBS
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26290 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26291 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26293 for ac_header in librtmp/rtmp.h
26295 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26296 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26297 cat >>confdefs.h <<_ACEOF
26298 #define HAVE_LIBRTMP_RTMP_H 1
26300 curl_rtmp_msg="enabled (librtmp)"
26303 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26314 LDFLAGS=$CLEANLDFLAGS
26315 CPPFLAGS=$CLEANCPPFLAGS
26321 if test X"$OPT_LIBRTMP" != Xoff &&
26322 test "$LIBRTMP_ENABLED" != "1"; then
26323 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26329 versioned_symbols_flavour=
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26331 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26332 # Check whether --enable-versioned-symbols was given.
26333 if test "${enable_versioned_symbols+set}" = set; then :
26334 enableval=$enable_versioned_symbols; case "$enableval" in
26335 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26336 $as_echo "yes" >&6; }
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26338 $as_echo_n "checking if libraries can be versioned... " >&6; }
26339 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26340 if test -z "$GLD"; then
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26342 $as_echo "no" >&6; }
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26344 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26347 $as_echo "yes" >&6; }
26348 if test "x$OPENSSL_ENABLED" = "x1"; then
26349 versioned_symbols_flavour="OPENSSL_"
26350 elif test "x$GNUTLS_ENABLED" = "x1"; then
26351 versioned_symbols_flavour="GNUTLS_"
26352 elif test "x$NSS_ENABLED" = "x1"; then
26353 versioned_symbols_flavour="NSS_"
26354 elif test "x$POLARSSL_ENABLED" = "x1"; then
26355 versioned_symbols_flavour="POLARSSL_"
26356 elif test "x$CYASSL_ENABLED" = "x1"; then
26357 versioned_symbols_flavour="CYASSL_"
26358 elif test "x$AXTLS_ENABLED" = "x1"; then
26359 versioned_symbols_flavour="AXTLS_"
26360 elif test "x$WINSSL_ENABLED" = "x1"; then
26361 versioned_symbols_flavour="WINSSL_"
26362 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26363 versioned_symbols_flavour="DARWINSSL_"
26365 versioned_symbols_flavour=""
26367 versioned_symbols="yes"
26371 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26372 $as_echo "no" >&6; }
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26379 $as_echo "no" >&6; }
26385 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26387 if test "x$versioned_symbols" = 'xyes'; then
26388 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26389 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26391 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26392 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26398 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26399 OPT_WINIDN="default"
26401 # Check whether --with-winidn was given.
26402 if test "${with_winidn+set}" = set; then :
26403 withval=$with_winidn; OPT_WINIDN=$withval
26406 case "$OPT_WINIDN" in
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26410 $as_echo "no" >&6; }
26414 want_winidn_path="default"
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26416 $as_echo "yes" >&6; }
26420 want_winidn_path="$withval"
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26422 $as_echo "yes ($withval)" >&6; }
26426 if test "$want_winidn" = "yes"; then
26427 clean_CPPFLAGS="$CPPFLAGS"
26428 clean_LDFLAGS="$LDFLAGS"
26430 WINIDN_LIBS="-lnormaliz"
26432 if test "$want_winidn_path" != "default"; then
26433 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26434 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26435 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26438 CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
26439 LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
26440 LIBS="$WINIDN_LIBS $LIBS"
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26443 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26445 /* end confdefs.h. */
26448 #define IdnToUnicode innocuous_IdnToUnicode
26450 # include <limits.h>
26452 # include <assert.h>
26454 #undef IdnToUnicode
26458 char IdnToUnicode ();
26459 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
26465 return IdnToUnicode ();
26471 if ac_fn_c_try_link "$LINENO"; then :
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26474 $as_echo "yes" >&6; }
26475 tst_links_winidn="yes"
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26480 $as_echo "no" >&6; }
26481 tst_links_winidn="no"
26484 rm -f core conftest.err conftest.$ac_objext \
26485 conftest$ac_exeext conftest.$ac_ext
26487 if test "$tst_links_winidn" = "yes"; then
26489 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26492 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26496 curl_idn_msg="enabled (Windows-native)"
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26499 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26500 CPPFLAGS="$clean_CPPFLAGS"
26501 LDFLAGS="$clean_LDFLAGS"
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
26508 $as_echo_n "checking whether to build with libidn2... " >&6; }
26511 # Check whether --with-libidn2 was given.
26512 if test "${with_libidn2+set}" = set; then :
26513 withval=$with_libidn2; OPT_IDN=$withval
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26520 $as_echo "no" >&6; }
26524 want_idn_path="default"
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26526 $as_echo "(assumed) yes" >&6; }
26530 want_idn_path="default"
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26532 $as_echo "yes" >&6; }
26536 want_idn_path="$withval"
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26538 $as_echo "yes ($withval)" >&6; }
26542 if test "$want_idn" = "yes"; then
26543 clean_CPPFLAGS="$CPPFLAGS"
26544 clean_LDFLAGS="$LDFLAGS"
26548 if test "$want_idn_path" != "default"; then
26549 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
26551 if test -n "$PKG_CONFIG"; then
26552 PKGCONFIG="$PKG_CONFIG"
26554 if test -n "$ac_tool_prefix"; then
26555 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26556 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26558 $as_echo_n "checking for $ac_word... " >&6; }
26559 if ${ac_cv_path_PKGCONFIG+:} false; then :
26560 $as_echo_n "(cached) " >&6
26564 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26568 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26569 for as_dir in $as_dummy
26572 test -z "$as_dir" && as_dir=.
26573 for ac_exec_ext in '' $ac_executable_extensions; do
26574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26575 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26586 PKGCONFIG=$ac_cv_path_PKGCONFIG
26587 if test -n "$PKGCONFIG"; then
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26589 $as_echo "$PKGCONFIG" >&6; }
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26592 $as_echo "no" >&6; }
26597 if test -z "$ac_cv_path_PKGCONFIG"; then
26598 ac_pt_PKGCONFIG=$PKGCONFIG
26599 # Extract the first word of "pkg-config", so it can be a program name with args.
26600 set dummy pkg-config; ac_word=$2
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26602 $as_echo_n "checking for $ac_word... " >&6; }
26603 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26604 $as_echo_n "(cached) " >&6
26606 case $ac_pt_PKGCONFIG in
26608 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26612 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26613 for as_dir in $as_dummy
26616 test -z "$as_dir" && as_dir=.
26617 for ac_exec_ext in '' $ac_executable_extensions; do
26618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26619 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26630 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26631 if test -n "$ac_pt_PKGCONFIG"; then
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26633 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26636 $as_echo "no" >&6; }
26639 if test "x$ac_pt_PKGCONFIG" = x; then
26642 case $cross_compiling:$ac_tool_warned in
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26646 ac_tool_warned=yes ;;
26648 PKGCONFIG=$ac_pt_PKGCONFIG
26651 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26656 if test "x$PKGCONFIG" != "xno"; then
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
26658 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
26660 if test -n "$IDN_PCDIR"; then
26661 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26662 export PKG_CONFIG_LIBDIR
26664 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
26666 if test -z "$itexists"; then
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26669 $as_echo "no" >&6; }
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26672 $as_echo "found" >&6; }
26676 if test "$PKGCONFIG" != "no"; then
26678 if test -n "$IDN_PCDIR"; then
26679 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26680 export PKG_CONFIG_LIBDIR
26682 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
26684 if test -n "$IDN_PCDIR"; then
26685 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26686 export PKG_CONFIG_LIBDIR
26688 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
26690 if test -n "$IDN_PCDIR"; then
26691 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26692 export PKG_CONFIG_LIBDIR
26694 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
26695 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26698 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
26699 IDN_CPPFLAGS="-I$want_idn_path/include"
26700 IDN_DIR="$want_idn_path/lib$libsuff"
26704 if test -n "$PKG_CONFIG"; then
26705 PKGCONFIG="$PKG_CONFIG"
26707 if test -n "$ac_tool_prefix"; then
26708 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26709 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26711 $as_echo_n "checking for $ac_word... " >&6; }
26712 if ${ac_cv_path_PKGCONFIG+:} false; then :
26713 $as_echo_n "(cached) " >&6
26717 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26721 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26722 for as_dir in $as_dummy
26725 test -z "$as_dir" && as_dir=.
26726 for ac_exec_ext in '' $ac_executable_extensions; do
26727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26728 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26739 PKGCONFIG=$ac_cv_path_PKGCONFIG
26740 if test -n "$PKGCONFIG"; then
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26742 $as_echo "$PKGCONFIG" >&6; }
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26745 $as_echo "no" >&6; }
26750 if test -z "$ac_cv_path_PKGCONFIG"; then
26751 ac_pt_PKGCONFIG=$PKGCONFIG
26752 # Extract the first word of "pkg-config", so it can be a program name with args.
26753 set dummy pkg-config; ac_word=$2
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26755 $as_echo_n "checking for $ac_word... " >&6; }
26756 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26757 $as_echo_n "(cached) " >&6
26759 case $ac_pt_PKGCONFIG in
26761 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26765 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26766 for as_dir in $as_dummy
26769 test -z "$as_dir" && as_dir=.
26770 for ac_exec_ext in '' $ac_executable_extensions; do
26771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26772 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26783 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26784 if test -n "$ac_pt_PKGCONFIG"; then
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26786 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26789 $as_echo "no" >&6; }
26792 if test "x$ac_pt_PKGCONFIG" = x; then
26795 case $cross_compiling:$ac_tool_warned in
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26799 ac_tool_warned=yes ;;
26801 PKGCONFIG=$ac_pt_PKGCONFIG
26804 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26809 if test "x$PKGCONFIG" != "xno"; then
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
26811 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
26813 if test -n ""; then
26814 PKG_CONFIG_LIBDIR=""
26815 export PKG_CONFIG_LIBDIR
26817 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
26819 if test -z "$itexists"; then
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26822 $as_echo "no" >&6; }
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26825 $as_echo "found" >&6; }
26829 if test "$PKGCONFIG" != "no"; then
26830 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
26831 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
26832 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
26833 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26839 if test "$PKGCONFIG" != "no"; then
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
26841 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26843 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26845 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
26847 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
26850 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26852 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26854 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
26856 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
26859 CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
26860 LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
26861 LIBS="$IDN_LIBS $LIBS"
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
26864 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
26865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26866 /* end confdefs.h. */
26869 #define idn2_lookup_ul innocuous_idn2_lookup_ul
26871 # include <limits.h>
26873 # include <assert.h>
26875 #undef idn2_lookup_ul
26879 char idn2_lookup_ul ();
26880 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
26886 return idn2_lookup_ul ();
26892 if ac_fn_c_try_link "$LINENO"; then :
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26895 $as_echo "yes" >&6; }
26896 tst_links_libidn="yes"
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26901 $as_echo "no" >&6; }
26902 tst_links_libidn="no"
26905 rm -f core conftest.err conftest.$ac_objext \
26906 conftest$ac_exeext conftest.$ac_ext
26908 for ac_header in idn2.h
26910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26911 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26912 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26913 cat >>confdefs.h <<_ACEOF
26914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26922 if test "$tst_links_libidn" = "yes"; then
26924 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
26929 curl_idn_msg="enabled (libidn2)"
26930 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
26931 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
26932 export LD_LIBRARY_PATH
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
26934 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26938 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26939 CPPFLAGS="$clean_CPPFLAGS"
26940 LDFLAGS="$clean_LDFLAGS"
26951 # Check whether --with-nghttp2 was given.
26952 if test "${with_nghttp2+set}" = set; then :
26953 withval=$with_nghttp2; OPT_H2=$withval
26966 want_h2_path="$withval/lib/pkgconfig"
26970 curl_h2_msg="disabled (--with-nghttp2)"
26971 if test X"$want_h2" != Xno; then
26972 CLEANLDFLAGS="$LDFLAGS"
26973 CLEANCPPFLAGS="$CPPFLAGS"
26977 if test -n "$PKG_CONFIG"; then
26978 PKGCONFIG="$PKG_CONFIG"
26980 if test -n "$ac_tool_prefix"; then
26981 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26982 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26984 $as_echo_n "checking for $ac_word... " >&6; }
26985 if ${ac_cv_path_PKGCONFIG+:} false; then :
26986 $as_echo_n "(cached) " >&6
26990 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26994 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26995 for as_dir in $as_dummy
26998 test -z "$as_dir" && as_dir=.
26999 for ac_exec_ext in '' $ac_executable_extensions; do
27000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27001 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27012 PKGCONFIG=$ac_cv_path_PKGCONFIG
27013 if test -n "$PKGCONFIG"; then
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27015 $as_echo "$PKGCONFIG" >&6; }
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27018 $as_echo "no" >&6; }
27023 if test -z "$ac_cv_path_PKGCONFIG"; then
27024 ac_pt_PKGCONFIG=$PKGCONFIG
27025 # Extract the first word of "pkg-config", so it can be a program name with args.
27026 set dummy pkg-config; ac_word=$2
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27028 $as_echo_n "checking for $ac_word... " >&6; }
27029 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27030 $as_echo_n "(cached) " >&6
27032 case $ac_pt_PKGCONFIG in
27034 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27038 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27039 for as_dir in $as_dummy
27042 test -z "$as_dir" && as_dir=.
27043 for ac_exec_ext in '' $ac_executable_extensions; do
27044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27045 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27056 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27057 if test -n "$ac_pt_PKGCONFIG"; then
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27059 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27062 $as_echo "no" >&6; }
27065 if test "x$ac_pt_PKGCONFIG" = x; then
27068 case $cross_compiling:$ac_tool_warned in
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27072 ac_tool_warned=yes ;;
27074 PKGCONFIG=$ac_pt_PKGCONFIG
27077 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27082 if test "x$PKGCONFIG" != "xno"; then
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27084 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27086 if test -n "$want_h2_path"; then
27087 PKG_CONFIG_LIBDIR="$want_h2_path"
27088 export PKG_CONFIG_LIBDIR
27090 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27092 if test -z "$itexists"; then
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27095 $as_echo "no" >&6; }
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27098 $as_echo "found" >&6; }
27103 if test "$PKGCONFIG" != "no" ; then
27105 if test -n "$want_h2_path"; then
27106 PKG_CONFIG_LIBDIR="$want_h2_path"
27107 export PKG_CONFIG_LIBDIR
27110 $PKGCONFIG --libs-only-l libnghttp2`
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27112 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27115 if test -n "$want_h2_path"; then
27116 PKG_CONFIG_LIBDIR="$want_h2_path"
27117 export PKG_CONFIG_LIBDIR
27119 $PKGCONFIG --cflags-only-I libnghttp2`
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27121 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27124 if test -n "$want_h2_path"; then
27125 PKG_CONFIG_LIBDIR="$want_h2_path"
27126 export PKG_CONFIG_LIBDIR
27129 $PKGCONFIG --libs-only-L libnghttp2`
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27131 $as_echo "$as_me: -L is $LD_H2" >&6;}
27133 LDFLAGS="$LDFLAGS $LD_H2"
27134 CPPFLAGS="$CPPFLAGS $CPP_H2"
27135 LIBS="$LIB_H2 $LIBS"
27137 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27140 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27141 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27142 $as_echo_n "(cached) " >&6
27144 ac_check_lib_save_LIBS=$LIBS
27145 LIBS="-lnghttp2 $LIBS"
27146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27147 /* end confdefs.h. */
27153 char nghttp2_option_set_no_recv_client_magic ();
27156 return nghttp2_option_set_no_recv_client_magic ();
27161 if ac_fn_c_try_link "$LINENO"; then :
27162 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27164 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27166 rm -f core conftest.err conftest.$ac_objext \
27167 conftest$ac_exeext conftest.$ac_ext
27168 LIBS=$ac_check_lib_save_LIBS
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27171 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27172 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27174 for ac_header in nghttp2/nghttp2.h
27176 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27177 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27178 cat >>confdefs.h <<_ACEOF
27179 #define HAVE_NGHTTP2_NGHTTP2_H 1
27181 curl_h2_msg="enabled (nghttp2)"
27184 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27195 LDFLAGS=$CLEANLDFLAGS
27196 CPPFLAGS=$CLEANCPPFLAGS
27203 if test X"$want_h2" != Xdefault; then
27204 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27211 OPT_ZSH_FPATH=default
27213 # Check whether --with-zsh-functions-dir was given.
27214 if test "${with_zsh_functions_dir+set}" = set; then :
27215 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27218 case "$OPT_ZSH_FPATH" in
27222 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27226 ZSH_FUNCTIONS_DIR="$withval"
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27233 $as_echo_n "checking for ANSI C header files... " >&6; }
27234 if ${ac_cv_header_stdc+:} false; then :
27235 $as_echo_n "(cached) " >&6
27237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h. */
27239 #include <stdlib.h>
27240 #include <stdarg.h>
27241 #include <string.h>
27251 if ac_fn_c_try_compile "$LINENO"; then :
27252 ac_cv_header_stdc=yes
27254 ac_cv_header_stdc=no
27256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27258 if test $ac_cv_header_stdc = yes; then
27259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261 /* end confdefs.h. */
27262 #include <string.h>
27265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27266 $EGREP "memchr" >/dev/null 2>&1; then :
27269 ac_cv_header_stdc=no
27275 if test $ac_cv_header_stdc = yes; then
27276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27278 /* end confdefs.h. */
27279 #include <stdlib.h>
27282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27283 $EGREP "free" >/dev/null 2>&1; then :
27286 ac_cv_header_stdc=no
27292 if test $ac_cv_header_stdc = yes; then
27293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27294 if test "$cross_compiling" = yes; then :
27297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27298 /* end confdefs.h. */
27300 #include <stdlib.h>
27301 #if ((' ' & 0x0FF) == 0x020)
27302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27305 # define ISLOWER(c) \
27306 (('a' <= (c) && (c) <= 'i') \
27307 || ('j' <= (c) && (c) <= 'r') \
27308 || ('s' <= (c) && (c) <= 'z'))
27309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27317 for (i = 0; i < 256; i++)
27318 if (XOR (islower (i), ISLOWER (i))
27319 || toupper (i) != TOUPPER (i))
27324 if ac_fn_c_try_run "$LINENO"; then :
27327 ac_cv_header_stdc=no
27329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27330 conftest.$ac_objext conftest.beam conftest.$ac_ext
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27336 $as_echo "$ac_cv_header_stdc" >&6; }
27337 if test $ac_cv_header_stdc = yes; then
27339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27346 $as_echo_n "checking for malloc.h... " >&6; }
27347 if ${curl_cv_header_malloc_h+:} false; then :
27348 $as_echo_n "(cached) " >&6
27351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27352 /* end confdefs.h. */
27355 #include <malloc.h>
27360 void *p = malloc(10);
27361 void *q = calloc(10,10);
27370 if ac_fn_c_try_compile "$LINENO"; then :
27372 curl_cv_header_malloc_h="yes"
27376 curl_cv_header_malloc_h="no"
27379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27383 $as_echo "$curl_cv_header_malloc_h" >&6; }
27384 if test "$curl_cv_header_malloc_h" = "yes"; then
27386 cat >>confdefs.h <<_ACEOF
27387 #define HAVE_MALLOC_H 1
27391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27392 /* end confdefs.h. */
27395 #include <stdlib.h>
27400 void *p = malloc(10);
27401 void *q = calloc(10,10);
27410 if ac_fn_c_try_compile "$LINENO"; then :
27412 curl_cv_need_header_malloc_h="no"
27416 curl_cv_need_header_malloc_h="yes"
27419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27421 case "$curl_cv_need_header_malloc_h" in
27424 cat >>confdefs.h <<_ACEOF
27425 #define NEED_MALLOC_H 1
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27434 $as_echo_n "checking for memory.h... " >&6; }
27435 if ${curl_cv_header_memory_h+:} false; then :
27436 $as_echo_n "(cached) " >&6
27439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27440 /* end confdefs.h. */
27443 #include <memory.h>
27448 void *p = malloc(10);
27449 void *q = calloc(10,10);
27458 if ac_fn_c_try_compile "$LINENO"; then :
27460 curl_cv_header_memory_h="yes"
27464 curl_cv_header_memory_h="no"
27467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27471 $as_echo "$curl_cv_header_memory_h" >&6; }
27472 if test "$curl_cv_header_memory_h" = "yes"; then
27474 cat >>confdefs.h <<_ACEOF
27475 #define HAVE_MEMORY_H 1
27479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27480 /* end confdefs.h. */
27483 #include <stdlib.h>
27488 void *p = malloc(10);
27489 void *q = calloc(10,10);
27498 if ac_fn_c_try_compile "$LINENO"; then :
27500 curl_cv_need_header_memory_h="no"
27504 curl_cv_need_header_memory_h="yes"
27507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27509 case "$curl_cv_need_header_memory_h" in
27512 cat >>confdefs.h <<_ACEOF
27513 #define NEED_MEMORY_H 1
27521 for ac_header in sys/types.h \
27563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
27565 #ifdef HAVE_SYS_TYPES_H
27566 #include <sys/types.h>
27568 #ifdef HAVE_SYS_TIME_H
27569 #include <sys/time.h>
27571 #ifdef HAVE_SYS_SELECT_H
27572 #include <sys/select.h>
27574 #ifdef HAVE_SYS_SOCKET_H
27575 #include <sys/socket.h>
27577 #ifdef HAVE_NETINET_IN_H
27578 #include <netinet/in.h>
27580 #ifdef HAVE_SYS_UN_H
27581 #include <sys/un.h>
27586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27587 cat >>confdefs.h <<_ACEOF
27588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27597 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27598 if ${ac_cv_c_const+:} false; then :
27599 $as_echo_n "(cached) " >&6
27601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27602 /* end confdefs.h. */
27607 #ifndef __cplusplus
27608 /* Ultrix mips cc rejects this sort of thing. */
27609 typedef int charset[2];
27610 const charset cs = { 0, 0 };
27611 /* SunOS 4.1.1 cc rejects this. */
27612 char const *const *pcpcc;
27614 /* NEC SVR4.0.2 mips cc rejects this. */
27615 struct point {int x, y;};
27616 static struct point const zero = {0,0};
27617 /* AIX XL C 1.02.0.0 rejects this.
27618 It does not let you subtract one const X* pointer from another in
27619 an arm of an if-expression whose if-part is not a constant
27621 const char *g = "string";
27622 pcpcc = &g + (g ? g-g : 0);
27623 /* HPUX 7.0 cc rejects these. */
27625 ppc = (char**) pcpcc;
27626 pcpcc = (char const *const *) ppc;
27627 { /* SCO 3.2v4 cc rejects this sort of thing. */
27630 char const *s = 0 ? (char *) 0 : (char const *) 0;
27635 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27636 int x[] = {25, 17};
27637 const int *foo = &x[0];
27640 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27641 typedef const int *iptr;
27645 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27646 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27647 struct s { int j; const int *ap[3]; } bx;
27648 struct s *b = &bx; b->j = 5;
27650 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27651 const int foo = 10;
27652 if (!foo) return 0;
27654 return !cs[0] && !zero.x;
27661 if ac_fn_c_try_compile "$LINENO"; then :
27666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27669 $as_echo "$ac_cv_c_const" >&6; }
27670 if test $ac_cv_c_const = no; then
27672 $as_echo "#define const /**/" >>confdefs.h
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
27678 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
27679 if ${curl_cv_variadic_macros_c99+:} false; then :
27680 $as_echo_n "(cached) " >&6
27683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27684 /* end confdefs.h. */
27687 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
27688 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
27689 int fun3(int arg1, int arg2, int arg3);
27690 int fun2(int arg1, int arg2);
27691 int fun3(int arg1, int arg2, int arg3)
27692 { return arg1 + arg2 + arg3; }
27693 int fun2(int arg1, int arg2)
27694 { return arg1 + arg2; }
27699 int res3 = c99_vmacro3(1, 2, 3);
27700 int res2 = c99_vmacro2(1, 2);
27707 if ac_fn_c_try_compile "$LINENO"; then :
27709 curl_cv_variadic_macros_c99="yes"
27713 curl_cv_variadic_macros_c99="no"
27716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
27720 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
27721 case "$curl_cv_variadic_macros_c99" in
27724 cat >>confdefs.h <<_ACEOF
27725 #define HAVE_VARIADIC_MACROS_C99 1
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
27731 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
27732 if ${curl_cv_variadic_macros_gcc+:} false; then :
27733 $as_echo_n "(cached) " >&6
27736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27737 /* end confdefs.h. */
27740 #define gcc_vmacro3(first, args...) fun3(first, args)
27741 #define gcc_vmacro2(first, args...) fun2(first, args)
27742 int fun3(int arg1, int arg2, int arg3);
27743 int fun2(int arg1, int arg2);
27744 int fun3(int arg1, int arg2, int arg3)
27745 { return arg1 + arg2 + arg3; }
27746 int fun2(int arg1, int arg2)
27747 { return arg1 + arg2; }
27752 int res3 = gcc_vmacro3(1, 2, 3);
27753 int res2 = gcc_vmacro2(1, 2);
27760 if ac_fn_c_try_compile "$LINENO"; then :
27762 curl_cv_variadic_macros_gcc="yes"
27766 curl_cv_variadic_macros_gcc="no"
27769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
27773 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
27774 case "$curl_cv_variadic_macros_gcc" in
27777 cat >>confdefs.h <<_ACEOF
27778 #define HAVE_VARIADIC_MACROS_GCC 1
27784 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27785 if test "x$ac_cv_type_size_t" = xyes; then :
27789 cat >>confdefs.h <<_ACEOF
27790 #define size_t unsigned int
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
27796 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
27797 if ${ac_cv_header_time+:} false; then :
27798 $as_echo_n "(cached) " >&6
27800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27801 /* end confdefs.h. */
27802 #include <sys/types.h>
27803 #include <sys/time.h>
27808 if ((struct tm *) 0)
27814 if ac_fn_c_try_compile "$LINENO"; then :
27815 ac_cv_header_time=yes
27817 ac_cv_header_time=no
27819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
27822 $as_echo "$ac_cv_header_time" >&6; }
27823 if test $ac_cv_header_time = yes; then
27825 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
27830 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
27832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27833 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27834 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27835 cat >>confdefs.h <<_ACEOF
27836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
27844 $as_echo_n "checking for struct timeval... " >&6; }
27845 if ${curl_cv_struct_timeval+:} false; then :
27846 $as_echo_n "(cached) " >&6
27849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27850 /* end confdefs.h. */
27854 #ifdef HAVE_WINDOWS_H
27855 #ifndef WIN32_LEAN_AND_MEAN
27856 #define WIN32_LEAN_AND_MEAN
27858 #include <windows.h>
27859 #ifdef HAVE_WINSOCK2_H
27860 #include <winsock2.h>
27862 #ifdef HAVE_WINSOCK_H
27863 #include <winsock.h>
27867 #ifdef HAVE_SYS_TYPES_H
27868 #include <sys/types.h>
27870 #ifdef HAVE_SYS_TIME_H
27871 #include <sys/time.h>
27872 #ifdef TIME_WITH_SYS_TIME
27880 #ifdef HAVE_SYS_SOCKET_H
27881 #include <sys/socket.h>
27896 if ac_fn_c_try_compile "$LINENO"; then :
27898 curl_cv_struct_timeval="yes"
27902 curl_cv_struct_timeval="no"
27905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
27909 $as_echo "$curl_cv_struct_timeval" >&6; }
27910 case "$curl_cv_struct_timeval" in
27913 cat >>confdefs.h <<_ACEOF
27914 #define HAVE_STRUCT_TIMEVAL 1
27922 if test "x$cross_compiling" != xyes; then
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
27925 $as_echo_n "checking run-time libs availability... " >&6; }
27926 if test "$cross_compiling" = yes; then :
27927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27929 as_fn_error $? "cannot run test program while cross compiling
27930 See \`config.log' for more details" "$LINENO" 5; }
27932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27933 /* end confdefs.h. */
27941 if ac_fn_c_try_run "$LINENO"; then :
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
27943 $as_echo "fine" >&6; }
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
27946 $as_echo "failed" >&6; }
27947 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
27950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27951 conftest.$ac_objext conftest.beam conftest.$ac_ext
27958 # The cast to long int works around a bug in the HP C Compiler
27959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27961 # This bug is HP SR number 8606223364.
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
27963 $as_echo_n "checking size of size_t... " >&6; }
27964 if ${ac_cv_sizeof_size_t+:} false; then :
27965 $as_echo_n "(cached) " >&6
27967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
27970 if test "$ac_cv_type_size_t" = yes; then
27971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27973 as_fn_error 77 "cannot compute sizeof (size_t)
27974 See \`config.log' for more details" "$LINENO" 5; }
27976 ac_cv_sizeof_size_t=0
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
27982 $as_echo "$ac_cv_sizeof_size_t" >&6; }
27986 cat >>confdefs.h <<_ACEOF
27987 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27991 # The cast to long int works around a bug in the HP C Compiler
27992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27994 # This bug is HP SR number 8606223364.
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
27996 $as_echo_n "checking size of long... " >&6; }
27997 if ${ac_cv_sizeof_long+:} false; then :
27998 $as_echo_n "(cached) " >&6
28000 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
28003 if test "$ac_cv_type_long" = yes; then
28004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28006 as_fn_error 77 "cannot compute sizeof (long)
28007 See \`config.log' for more details" "$LINENO" 5; }
28009 ac_cv_sizeof_long=0
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28015 $as_echo "$ac_cv_sizeof_long" >&6; }
28019 cat >>confdefs.h <<_ACEOF
28020 #define SIZEOF_LONG $ac_cv_sizeof_long
28024 # The cast to long int works around a bug in the HP C Compiler
28025 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28026 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28027 # This bug is HP SR number 8606223364.
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28029 $as_echo_n "checking size of int... " >&6; }
28030 if ${ac_cv_sizeof_int+:} false; then :
28031 $as_echo_n "(cached) " >&6
28033 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
28036 if test "$ac_cv_type_int" = yes; then
28037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28039 as_fn_error 77 "cannot compute sizeof (int)
28040 See \`config.log' for more details" "$LINENO" 5; }
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28048 $as_echo "$ac_cv_sizeof_int" >&6; }
28052 cat >>confdefs.h <<_ACEOF
28053 #define SIZEOF_INT $ac_cv_sizeof_int
28057 # The cast to long int works around a bug in the HP C Compiler
28058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28060 # This bug is HP SR number 8606223364.
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28062 $as_echo_n "checking size of short... " >&6; }
28063 if ${ac_cv_sizeof_short+:} false; then :
28064 $as_echo_n "(cached) " >&6
28066 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
28069 if test "$ac_cv_type_short" = yes; then
28070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28072 as_fn_error 77 "cannot compute sizeof (short)
28073 See \`config.log' for more details" "$LINENO" 5; }
28075 ac_cv_sizeof_short=0
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28081 $as_echo "$ac_cv_sizeof_short" >&6; }
28085 cat >>confdefs.h <<_ACEOF
28086 #define SIZEOF_SHORT $ac_cv_sizeof_short
28091 if test -z "$ac_cv_sizeof_long" ||
28092 test "$ac_cv_sizeof_long" -eq "0"; then
28093 as_fn_error $? "cannot find out size of long." "$LINENO" 5
28096 cat >>confdefs.h <<_EOF
28097 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
28101 # The cast to long int works around a bug in the HP C Compiler
28102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28104 # This bug is HP SR number 8606223364.
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28106 $as_echo_n "checking size of time_t... " >&6; }
28107 if ${ac_cv_sizeof_time_t+:} false; then :
28108 $as_echo_n "(cached) " >&6
28110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
28113 if test "$ac_cv_type_time_t" = yes; then
28114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28116 as_fn_error 77 "cannot compute sizeof (time_t)
28117 See \`config.log' for more details" "$LINENO" 5; }
28119 ac_cv_sizeof_time_t=0
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28125 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28129 cat >>confdefs.h <<_ACEOF
28130 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28134 # The cast to long int works around a bug in the HP C Compiler
28135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28137 # This bug is HP SR number 8606223364.
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28139 $as_echo_n "checking size of off_t... " >&6; }
28140 if ${ac_cv_sizeof_off_t+:} false; then :
28141 $as_echo_n "(cached) " >&6
28143 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
28146 if test "$ac_cv_type_off_t" = yes; then
28147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28149 as_fn_error 77 "cannot compute sizeof (off_t)
28150 See \`config.log' for more details" "$LINENO" 5; }
28152 ac_cv_sizeof_off_t=0
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28158 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28162 cat >>confdefs.h <<_ACEOF
28163 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28169 if test x"$curl_cv_native_windows" != "xyes" &&
28170 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
28172 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
28174 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
28179 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28180 if test "x$ac_cv_type_long_long" = xyes; then :
28182 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28189 if test "xyes" = "x$longlong"; then
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28191 $as_echo_n "checking if numberLL works... " >&6; }
28192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28193 /* end confdefs.h. */
28200 long long val = 1000LL;
28207 if ac_fn_c_try_compile "$LINENO"; then :
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28210 $as_echo "yes" >&6; }
28212 $as_echo "#define HAVE_LL 1" >>confdefs.h
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28218 $as_echo "no" >&6; }
28221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28225 # check for ssize_t
28226 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28227 if test "x$ac_cv_type_ssize_t" = xyes; then :
28231 $as_echo "#define ssize_t int" >>confdefs.h
28236 # check for bool type
28237 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28238 #ifdef HAVE_SYS_TYPES_H
28239 #include <sys/types.h>
28241 #ifdef HAVE_STDBOOL_H
28242 #include <stdbool.h>
28246 if test "x$ac_cv_type_bool" = xyes; then :
28249 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28256 curl_includes_ws2tcpip="\
28257 /* includes start */
28258 #ifdef HAVE_WINDOWS_H
28259 # ifndef WIN32_LEAN_AND_MEAN
28260 # define WIN32_LEAN_AND_MEAN
28262 # include <windows.h>
28263 # ifdef HAVE_WINSOCK2_H
28264 # include <winsock2.h>
28265 # ifdef HAVE_WS2TCPIP_H
28266 # include <ws2tcpip.h>
28270 /* includes end */"
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28273 $as_echo_n "checking for windows.h... " >&6; }
28274 if ${curl_cv_header_windows_h+:} false; then :
28275 $as_echo_n "(cached) " >&6
28278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28279 /* end confdefs.h. */
28283 #ifndef WIN32_LEAN_AND_MEAN
28284 #define WIN32_LEAN_AND_MEAN
28286 #include <windows.h>
28291 #if defined(__CYGWIN__) || defined(__CEGCC__)
28292 HAVE_WINDOWS_H shall not be defined.
28294 int dummy=2*WINVER;
28302 if ac_fn_c_try_compile "$LINENO"; then :
28304 curl_cv_header_windows_h="yes"
28308 curl_cv_header_windows_h="no"
28311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28315 $as_echo "$curl_cv_header_windows_h" >&6; }
28316 case "$curl_cv_header_windows_h" in
28319 cat >>confdefs.h <<_ACEOF
28320 #define HAVE_WINDOWS_H 1
28324 cat >>confdefs.h <<_ACEOF
28325 #define WIN32_LEAN_AND_MEAN 1
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28333 $as_echo_n "checking for winsock2.h... " >&6; }
28334 if ${curl_cv_header_winsock2_h+:} false; then :
28335 $as_echo_n "(cached) " >&6
28338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28339 /* end confdefs.h. */
28343 #ifndef WIN32_LEAN_AND_MEAN
28344 #define WIN32_LEAN_AND_MEAN
28346 #include <windows.h>
28347 #include <winsock2.h>
28352 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28353 HAVE_WINSOCK2_H shall not be defined.
28355 int dummy=2*IPPROTO_ESP;
28363 if ac_fn_c_try_compile "$LINENO"; then :
28365 curl_cv_header_winsock2_h="yes"
28369 curl_cv_header_winsock2_h="no"
28372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
28376 $as_echo "$curl_cv_header_winsock2_h" >&6; }
28377 case "$curl_cv_header_winsock2_h" in
28380 cat >>confdefs.h <<_ACEOF
28381 #define HAVE_WINSOCK2_H 1
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28389 $as_echo_n "checking for ws2tcpip.h... " >&6; }
28390 if ${curl_cv_header_ws2tcpip_h+:} false; then :
28391 $as_echo_n "(cached) " >&6
28394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28395 /* end confdefs.h. */
28399 #ifndef WIN32_LEAN_AND_MEAN
28400 #define WIN32_LEAN_AND_MEAN
28402 #include <windows.h>
28403 #include <winsock2.h>
28404 #include <ws2tcpip.h>
28409 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28410 HAVE_WS2TCPIP_H shall not be defined.
28412 int dummy=2*IP_PKTINFO;
28420 if ac_fn_c_try_compile "$LINENO"; then :
28422 curl_cv_header_ws2tcpip_h="yes"
28426 curl_cv_header_ws2tcpip_h="no"
28429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
28433 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
28434 case "$curl_cv_header_ws2tcpip_h" in
28437 cat >>confdefs.h <<_ACEOF
28438 #define HAVE_WS2TCPIP_H 1
28446 curl_includes_sys_socket="\
28447 /* includes start */
28448 #ifdef HAVE_SYS_TYPES_H
28449 # include <sys/types.h>
28451 #ifdef HAVE_SYS_SOCKET_H
28452 # include <sys/socket.h>
28454 /* includes end */"
28455 for ac_header in sys/types.h sys/socket.h
28457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28458 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
28460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28461 cat >>confdefs.h <<_ACEOF
28462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28471 curl_preprocess_callconv="\
28472 /* preprocess start */
28473 #ifdef HAVE_WINDOWS_H
28474 # define FUNCALLCONV __stdcall
28476 # define FUNCALLCONV
28478 /* preprocess end */"
28483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
28484 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
28485 curl_typeof_curl_socklen_t="unknown"
28486 for arg1 in int SOCKET; do
28487 for arg2 in 'struct sockaddr' void; do
28488 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
28489 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
28490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28491 /* end confdefs.h. */
28494 $curl_includes_ws2tcpip
28495 $curl_includes_sys_socket
28496 $curl_preprocess_callconv
28497 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
28503 if(0 != getpeername(0, 0, lenptr))
28511 if ac_fn_c_try_compile "$LINENO"; then :
28513 curl_typeof_curl_socklen_t="$t"
28516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28521 for t in socklen_t int; do
28522 if test "$curl_typeof_curl_socklen_t" = "void"; then
28523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28524 /* end confdefs.h. */
28527 $curl_includes_sys_socket
28528 typedef $t curl_socklen_t;
28533 curl_socklen_t dummy;
28540 if ac_fn_c_try_compile "$LINENO"; then :
28542 curl_typeof_curl_socklen_t="$t"
28545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
28549 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
28550 if test "$curl_typeof_curl_socklen_t" = "void" ||
28551 test "$curl_typeof_curl_socklen_t" = "unknown"; then
28552 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
28556 $as_echo_n "checking size of curl_socklen_t... " >&6; }
28557 curl_sizeof_curl_socklen_t="unknown"
28558 curl_pull_headers_socklen_t="unknown"
28559 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
28560 tst_pull_header_checks='none ws2tcpip'
28561 tst_size_checks='4'
28563 tst_pull_header_checks='none systypes syssocket'
28564 tst_size_checks='4 8 2'
28566 for tst_size in $tst_size_checks; do
28567 for tst_pull_headers in $tst_pull_header_checks; do
28568 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28569 case $tst_pull_headers in
28571 tmp_includes="$curl_includes_ws2tcpip"
28574 tmp_includes="$curl_includes_sys_types"
28577 tmp_includes="$curl_includes_sys_socket"
28583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28584 /* end confdefs.h. */
28588 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
28589 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
28594 curl_socklen_t dummy;
28601 if ac_fn_c_try_compile "$LINENO"; then :
28603 curl_sizeof_curl_socklen_t="$tst_size"
28604 curl_pull_headers_socklen_t="$tst_pull_headers"
28607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
28612 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
28613 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28614 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
28617 case $curl_pull_headers_socklen_t in
28620 cat >>confdefs.h <<_EOF
28621 #define CURL_PULL_WS2TCPIP_H 1
28627 cat >>confdefs.h <<_EOF
28628 #define CURL_PULL_SYS_TYPES_H 1
28634 cat >>confdefs.h <<_EOF
28635 #define CURL_PULL_SYS_TYPES_H 1
28639 cat >>confdefs.h <<_EOF
28640 #define CURL_PULL_SYS_SOCKET_H 1
28646 cat >>confdefs.h <<_EOF
28647 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
28651 cat >>confdefs.h <<_EOF
28652 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
28658 curl_includes_poll="\
28659 /* includes start */
28660 #ifdef HAVE_SYS_TYPES_H
28661 # include <sys/types.h>
28666 #ifdef HAVE_SYS_POLL_H
28667 # include <sys/poll.h>
28669 /* includes end */"
28670 for ac_header in sys/types.h poll.h sys/poll.h
28672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
28675 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28676 cat >>confdefs.h <<_ACEOF
28677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28687 tst_poll_events_macro_defined="unknown"
28689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28690 /* end confdefs.h. */
28693 $curl_includes_poll
28698 #if defined(events) || defined(revents)
28701 force compilation error
28709 if ac_fn_c_try_compile "$LINENO"; then :
28711 tst_poll_events_macro_defined="yes"
28715 tst_poll_events_macro_defined="no"
28718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28720 if test "$tst_poll_events_macro_defined" = "yes"; then
28721 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
28723 cat >>confdefs.h <<_EOF
28724 #define CURL_PULL_SYS_POLL_H 1
28733 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
28735 #ifdef HAVE_WINDOWS_H
28736 #ifndef WIN32_LEAN_AND_MEAN
28737 #define WIN32_LEAN_AND_MEAN
28739 #include <windows.h>
28740 #ifdef HAVE_WINSOCK2_H
28741 #include <winsock2.h>
28743 #ifdef HAVE_WINSOCK_H
28744 #include <winsock.h>
28748 #ifdef HAVE_SYS_TYPES_H
28749 #include <sys/types.h>
28751 #ifdef HAVE_SYS_SOCKET_H
28752 #include <sys/socket.h>
28754 #ifdef HAVE_NETINET_IN_H
28755 #include <netinet/in.h>
28757 #ifdef HAVE_ARPA_INET_H
28758 #include <arpa/inet.h>
28763 if test "x$ac_cv_type_in_addr_t" = xyes; then :
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
28768 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
28769 if ${curl_cv_in_addr_t_equiv+:} false; then :
28770 $as_echo_n "(cached) " >&6
28773 curl_cv_in_addr_t_equiv="unknown"
28774 for t in "unsigned long" int size_t unsigned long; do
28775 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
28776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28777 /* end confdefs.h. */
28781 #ifdef HAVE_WINDOWS_H
28782 #ifndef WIN32_LEAN_AND_MEAN
28783 #define WIN32_LEAN_AND_MEAN
28785 #include <windows.h>
28786 #ifdef HAVE_WINSOCK2_H
28787 #include <winsock2.h>
28789 #ifdef HAVE_WINSOCK_H
28790 #include <winsock.h>
28794 #ifdef HAVE_SYS_TYPES_H
28795 #include <sys/types.h>
28797 #ifdef HAVE_SYS_SOCKET_H
28798 #include <sys/socket.h>
28800 #ifdef HAVE_NETINET_IN_H
28801 #include <netinet/in.h>
28803 #ifdef HAVE_ARPA_INET_H
28804 #include <arpa/inet.h>
28811 $t data = inet_addr ("1.2.3.4");
28818 if ac_fn_c_try_link "$LINENO"; then :
28820 curl_cv_in_addr_t_equiv="$t"
28823 rm -f core conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
28830 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
28831 case "$curl_cv_in_addr_t_equiv" in
28833 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
28837 cat >>confdefs.h <<_ACEOF
28838 #define in_addr_t $curl_cv_in_addr_t_equiv
28849 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
28851 #ifdef HAVE_WINDOWS_H
28852 #ifndef WIN32_LEAN_AND_MEAN
28853 #define WIN32_LEAN_AND_MEAN
28855 #include <windows.h>
28856 #ifdef HAVE_WINSOCK2_H
28857 #include <winsock2.h>
28860 #ifdef HAVE_SYS_TYPES_H
28861 #include <sys/types.h>
28863 #ifdef HAVE_SYS_SOCKET_H
28864 #include <sys/socket.h>
28866 #ifdef HAVE_NETINET_IN_H
28867 #include <netinet/in.h>
28869 #ifdef HAVE_ARPA_INET_H
28870 #include <arpa/inet.h>
28875 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
28877 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
28884 for ac_header in signal.h
28886 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
28887 if test "x$ac_cv_header_signal_h" = xyes; then :
28888 cat >>confdefs.h <<_ACEOF
28889 #define HAVE_SIGNAL_H 1
28896 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
28897 #ifdef HAVE_SIGNAL_H
28898 #include <signal.h>
28902 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
28905 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
28910 case "$ac_cv_type_sig_atomic_t" in
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
28914 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
28915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28916 /* end confdefs.h. */
28919 #ifdef HAVE_SIGNAL_H
28920 #include <signal.h>
28926 static volatile sig_atomic_t dummy = 0;
28933 if ac_fn_c_try_link "$LINENO"; then :
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28936 $as_echo "no" >&6; }
28937 curl_cv_sig_atomic_t_volatile="no"
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28942 $as_echo "yes" >&6; }
28943 curl_cv_sig_atomic_t_volatile="yes"
28946 rm -f core conftest.err conftest.$ac_objext \
28947 conftest$ac_exeext conftest.$ac_ext
28949 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
28951 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
28958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
28959 $as_echo_n "checking return type of signal handlers... " >&6; }
28960 if ${ac_cv_type_signal+:} false; then :
28961 $as_echo_n "(cached) " >&6
28963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28964 /* end confdefs.h. */
28965 #include <sys/types.h>
28966 #include <signal.h>
28970 return *(signal (0, 0)) (0) == 1;
28975 if ac_fn_c_try_compile "$LINENO"; then :
28976 ac_cv_type_signal=int
28978 ac_cv_type_signal=void
28980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
28983 $as_echo "$ac_cv_type_signal" >&6; }
28985 cat >>confdefs.h <<_ACEOF
28986 #define RETSIGTYPE $ac_cv_type_signal
28992 for ac_header in sys/select.h sys/socket.h
28994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28995 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28997 cat >>confdefs.h <<_ACEOF
28998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29007 $as_echo_n "checking for select... " >&6; }
29008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29009 /* end confdefs.h. */
29013 #ifdef HAVE_WINDOWS_H
29014 #ifndef WIN32_LEAN_AND_MEAN
29015 #define WIN32_LEAN_AND_MEAN
29017 #include <windows.h>
29018 #ifdef HAVE_WINSOCK2_H
29019 #include <winsock2.h>
29021 #ifdef HAVE_WINSOCK_H
29022 #include <winsock.h>
29026 #ifdef HAVE_SYS_TYPES_H
29027 #include <sys/types.h>
29029 #ifdef HAVE_SYS_TIME_H
29030 #include <sys/time.h>
29031 #ifdef TIME_WITH_SYS_TIME
29039 #ifndef HAVE_WINDOWS_H
29040 #ifdef HAVE_SYS_SELECT_H
29041 #include <sys/select.h>
29043 #ifdef HAVE_SYS_SOCKET_H
29044 #include <sys/socket.h>
29051 select(0, 0, 0, 0, 0);
29058 if ac_fn_c_try_link "$LINENO"; then :
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29061 $as_echo "yes" >&6; }
29062 curl_cv_select="yes"
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29067 $as_echo "no" >&6; }
29068 curl_cv_select="no"
29071 rm -f core conftest.err conftest.$ac_objext \
29072 conftest$ac_exeext conftest.$ac_ext
29074 if test "$curl_cv_select" = "yes"; then
29075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29076 $as_echo_n "checking types of args and return type for select... " >&6; }
29077 if ${curl_cv_func_select_args+:} false; then :
29078 $as_echo_n "(cached) " >&6
29081 curl_cv_func_select_args="unknown"
29082 for sel_retv in 'int' 'ssize_t'; do
29083 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29084 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29085 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29086 if test "$curl_cv_func_select_args" = "unknown"; then
29087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29088 /* end confdefs.h. */
29092 #ifdef HAVE_WINDOWS_H
29093 #ifndef WIN32_LEAN_AND_MEAN
29094 #define WIN32_LEAN_AND_MEAN
29096 #include <windows.h>
29097 #ifdef HAVE_WINSOCK2_H
29098 #include <winsock2.h>
29100 #ifdef HAVE_WINSOCK_H
29101 #include <winsock.h>
29104 #define SELECTCALLCONV PASCAL
29106 #ifdef HAVE_SYS_TYPES_H
29107 #include <sys/types.h>
29109 #ifdef HAVE_SYS_TIME_H
29110 #include <sys/time.h>
29111 #ifdef TIME_WITH_SYS_TIME
29119 #ifndef HAVE_WINDOWS_H
29120 #ifdef HAVE_SYS_SELECT_H
29121 #include <sys/select.h>
29123 #ifdef HAVE_SYS_SOCKET_H
29124 #include <sys/socket.h>
29126 #define SELECTCALLCONV
29128 #ifndef HAVE_STRUCT_TIMEVAL
29134 extern $sel_retv SELECTCALLCONV select($sel_arg1,
29144 $sel_arg234 rfds=0;
29145 $sel_arg234 wfds=0;
29146 $sel_arg234 efds=0;
29147 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29154 if ac_fn_c_try_compile "$LINENO"; then :
29156 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29168 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29169 if test "$curl_cv_func_select_args" = "unknown"; then
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29171 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29173 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29175 select_prev_IFS=$IFS; IFS=','
29176 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29177 IFS=$select_prev_IFS
29180 sel_qual_type_arg5=$3
29183 cat >>confdefs.h <<_ACEOF
29184 #define SELECT_TYPE_ARG1 $1
29188 cat >>confdefs.h <<_ACEOF
29189 #define SELECT_TYPE_ARG234 $2
29193 cat >>confdefs.h <<_ACEOF
29194 #define SELECT_TYPE_RETV $4
29200 case $prev_sh_opts in
29208 case "$sel_qual_type_arg5" in
29210 sel_qual_arg5=const
29211 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29215 sel_type_arg5=$sel_qual_type_arg5
29220 cat >>confdefs.h <<_ACEOF
29221 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29225 cat >>confdefs.h <<_ACEOF
29226 #define SELECT_TYPE_ARG5 $sel_type_arg5
29230 case $prev_sh_opts in
29239 cat >>confdefs.h <<_ACEOF
29240 #define HAVE_SELECT 1
29243 curl_cv_func_select="yes"
29249 for ac_header in sys/types.h sys/socket.h
29251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29252 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29254 cat >>confdefs.h <<_ACEOF
29255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29264 $as_echo_n "checking for recv... " >&6; }
29265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29266 /* end confdefs.h. */
29270 #ifdef HAVE_WINDOWS_H
29271 #ifndef WIN32_LEAN_AND_MEAN
29272 #define WIN32_LEAN_AND_MEAN
29274 #include <windows.h>
29275 #ifdef HAVE_WINSOCK2_H
29276 #include <winsock2.h>
29278 #ifdef HAVE_WINSOCK_H
29279 #include <winsock.h>
29283 #ifdef HAVE_SYS_TYPES_H
29284 #include <sys/types.h>
29286 #ifdef HAVE_SYS_SOCKET_H
29287 #include <sys/socket.h>
29301 if ac_fn_c_try_link "$LINENO"; then :
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29304 $as_echo "yes" >&6; }
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29310 $as_echo "no" >&6; }
29314 rm -f core conftest.err conftest.$ac_objext \
29315 conftest$ac_exeext conftest.$ac_ext
29317 if test "$curl_cv_recv" = "yes"; then
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29319 $as_echo_n "checking types of args and return type for recv... " >&6; }
29320 if ${curl_cv_func_recv_args+:} false; then :
29321 $as_echo_n "(cached) " >&6
29324 curl_cv_func_recv_args="unknown"
29325 for recv_retv in 'int' 'ssize_t'; do
29326 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29327 for recv_arg2 in 'char *' 'void *'; do
29328 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29329 for recv_arg4 in 'int' 'unsigned int'; do
29330 if test "$curl_cv_func_recv_args" = "unknown"; then
29331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29332 /* end confdefs.h. */
29336 #ifdef HAVE_WINDOWS_H
29337 #ifndef WIN32_LEAN_AND_MEAN
29338 #define WIN32_LEAN_AND_MEAN
29340 #include <windows.h>
29341 #ifdef HAVE_WINSOCK2_H
29342 #include <winsock2.h>
29344 #ifdef HAVE_WINSOCK_H
29345 #include <winsock.h>
29348 #define RECVCALLCONV PASCAL
29350 #ifdef HAVE_SYS_TYPES_H
29351 #include <sys/types.h>
29353 #ifdef HAVE_SYS_SOCKET_H
29354 #include <sys/socket.h>
29356 #define RECVCALLCONV
29358 extern $recv_retv RECVCALLCONV
29359 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29367 $recv_arg4 flags=0;
29368 $recv_retv res = recv(s, buf, len, flags);
29375 if ac_fn_c_try_compile "$LINENO"; then :
29377 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29390 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29391 if test "$curl_cv_func_recv_args" = "unknown"; then
29392 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29394 recv_prev_IFS=$IFS; IFS=','
29395 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29400 cat >>confdefs.h <<_ACEOF
29401 #define RECV_TYPE_ARG1 $1
29405 cat >>confdefs.h <<_ACEOF
29406 #define RECV_TYPE_ARG2 $2
29410 cat >>confdefs.h <<_ACEOF
29411 #define RECV_TYPE_ARG3 $3
29415 cat >>confdefs.h <<_ACEOF
29416 #define RECV_TYPE_ARG4 $4
29420 cat >>confdefs.h <<_ACEOF
29421 #define RECV_TYPE_RETV $5
29426 cat >>confdefs.h <<_ACEOF
29427 #define HAVE_RECV 1
29430 curl_cv_func_recv="yes"
29433 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29437 for ac_header in sys/types.h sys/socket.h
29439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29440 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29442 cat >>confdefs.h <<_ACEOF
29443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29452 $as_echo_n "checking for send... " >&6; }
29453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29454 /* end confdefs.h. */
29458 #ifdef HAVE_WINDOWS_H
29459 #ifndef WIN32_LEAN_AND_MEAN
29460 #define WIN32_LEAN_AND_MEAN
29462 #include <windows.h>
29463 #ifdef HAVE_WINSOCK2_H
29464 #include <winsock2.h>
29466 #ifdef HAVE_WINSOCK_H
29467 #include <winsock.h>
29471 #ifdef HAVE_SYS_TYPES_H
29472 #include <sys/types.h>
29474 #ifdef HAVE_SYS_SOCKET_H
29475 #include <sys/socket.h>
29489 if ac_fn_c_try_link "$LINENO"; then :
29491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29492 $as_echo "yes" >&6; }
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29498 $as_echo "no" >&6; }
29502 rm -f core conftest.err conftest.$ac_objext \
29503 conftest$ac_exeext conftest.$ac_ext
29505 if test "$curl_cv_send" = "yes"; then
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29507 $as_echo_n "checking types of args and return type for send... " >&6; }
29508 if ${curl_cv_func_send_args+:} false; then :
29509 $as_echo_n "(cached) " >&6
29512 curl_cv_func_send_args="unknown"
29513 for send_retv in 'int' 'ssize_t'; do
29514 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29515 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29516 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29517 for send_arg4 in 'int' 'unsigned int'; do
29518 if test "$curl_cv_func_send_args" = "unknown"; then
29519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29520 /* end confdefs.h. */
29524 #ifdef HAVE_WINDOWS_H
29525 #ifndef WIN32_LEAN_AND_MEAN
29526 #define WIN32_LEAN_AND_MEAN
29528 #include <windows.h>
29529 #ifdef HAVE_WINSOCK2_H
29530 #include <winsock2.h>
29532 #ifdef HAVE_WINSOCK_H
29533 #include <winsock.h>
29536 #define SENDCALLCONV PASCAL
29538 #ifdef HAVE_SYS_TYPES_H
29539 #include <sys/types.h>
29541 #ifdef HAVE_SYS_SOCKET_H
29542 #include <sys/socket.h>
29544 #define SENDCALLCONV
29546 extern $send_retv SENDCALLCONV
29547 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29554 $send_arg4 flags=0;
29555 $send_retv res = send(s, 0, len, flags);
29562 if ac_fn_c_try_compile "$LINENO"; then :
29564 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29577 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29578 if test "$curl_cv_func_send_args" = "unknown"; then
29579 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29581 send_prev_IFS=$IFS; IFS=','
29582 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29586 send_qual_type_arg2=$2
29589 cat >>confdefs.h <<_ACEOF
29590 #define SEND_TYPE_ARG1 $1
29594 cat >>confdefs.h <<_ACEOF
29595 #define SEND_TYPE_ARG3 $3
29599 cat >>confdefs.h <<_ACEOF
29600 #define SEND_TYPE_ARG4 $4
29604 cat >>confdefs.h <<_ACEOF
29605 #define SEND_TYPE_RETV $5
29611 case $prev_sh_opts in
29619 case "$send_qual_type_arg2" in
29621 send_qual_arg2=const
29622 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29626 send_type_arg2=$send_qual_type_arg2
29631 cat >>confdefs.h <<_ACEOF
29632 #define SEND_QUAL_ARG2 $send_qual_arg2
29636 cat >>confdefs.h <<_ACEOF
29637 #define SEND_TYPE_ARG2 $send_type_arg2
29641 case $prev_sh_opts in
29650 cat >>confdefs.h <<_ACEOF
29651 #define HAVE_SEND 1
29654 curl_cv_func_send="yes"
29657 as_fn_error $? "Unable to link function send" "$LINENO" 5
29661 for ac_header in sys/types.h sys/socket.h
29663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29664 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29665 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29666 cat >>confdefs.h <<_ACEOF
29667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
29675 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
29676 if ${curl_cv_msg_nosignal+:} false; then :
29677 $as_echo_n "(cached) " >&6
29680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29681 /* end confdefs.h. */
29685 #ifdef HAVE_WINDOWS_H
29686 #ifndef WIN32_LEAN_AND_MEAN
29687 #define WIN32_LEAN_AND_MEAN
29689 #include <windows.h>
29690 #ifdef HAVE_WINSOCK2_H
29691 #include <winsock2.h>
29693 #ifdef HAVE_WINSOCK_H
29694 #include <winsock.h>
29698 #ifdef HAVE_SYS_TYPES_H
29699 #include <sys/types.h>
29701 #ifdef HAVE_SYS_SOCKET_H
29702 #include <sys/socket.h>
29709 int flag=MSG_NOSIGNAL;
29716 if ac_fn_c_try_compile "$LINENO"; then :
29718 curl_cv_msg_nosignal="yes"
29722 curl_cv_msg_nosignal="no"
29725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
29729 $as_echo "$curl_cv_msg_nosignal" >&6; }
29730 case "$curl_cv_msg_nosignal" in
29733 cat >>confdefs.h <<_ACEOF
29734 #define HAVE_MSG_NOSIGNAL 1
29742 curl_includes_unistd="\
29743 /* includes start */
29744 #ifdef HAVE_SYS_TYPES_H
29745 # include <sys/types.h>
29747 #ifdef HAVE_UNISTD_H
29748 # include <unistd.h>
29750 /* includes end */"
29751 for ac_header in sys/types.h unistd.h
29753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29754 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
29756 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29757 cat >>confdefs.h <<_ACEOF
29758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29768 tst_links_alarm="unknown"
29769 tst_proto_alarm="unknown"
29770 tst_compi_alarm="unknown"
29771 tst_allow_alarm="unknown"
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
29774 $as_echo_n "checking if alarm can be linked... " >&6; }
29775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29776 /* end confdefs.h. */
29779 #define alarm innocuous_alarm
29781 # include <limits.h>
29783 # include <assert.h>
29790 #if defined __stub_alarm || defined __stub___alarm
29802 if ac_fn_c_try_link "$LINENO"; then :
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29805 $as_echo "yes" >&6; }
29806 tst_links_alarm="yes"
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29811 $as_echo "no" >&6; }
29812 tst_links_alarm="no"
29815 rm -f core conftest.err conftest.$ac_objext \
29816 conftest$ac_exeext conftest.$ac_ext
29818 if test "$tst_links_alarm" = "yes"; then
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
29820 $as_echo_n "checking if alarm is prototyped... " >&6; }
29821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29822 /* end confdefs.h. */
29824 $curl_includes_unistd
29827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29828 $EGREP "alarm" >/dev/null 2>&1; then :
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29831 $as_echo "yes" >&6; }
29832 tst_proto_alarm="yes"
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29837 $as_echo "no" >&6; }
29838 tst_proto_alarm="no"
29845 if test "$tst_proto_alarm" = "yes"; then
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
29847 $as_echo_n "checking if alarm is compilable... " >&6; }
29848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29849 /* end confdefs.h. */
29852 $curl_includes_unistd
29865 if ac_fn_c_try_compile "$LINENO"; then :
29867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29868 $as_echo "yes" >&6; }
29869 tst_compi_alarm="yes"
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29874 $as_echo "no" >&6; }
29875 tst_compi_alarm="no"
29878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29881 if test "$tst_compi_alarm" = "yes"; then
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
29883 $as_echo_n "checking if alarm usage allowed... " >&6; }
29884 if test "x$curl_disallow_alarm" != "xyes"; then
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29886 $as_echo "yes" >&6; }
29887 tst_allow_alarm="yes"
29889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29890 $as_echo "no" >&6; }
29891 tst_allow_alarm="no"
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
29896 $as_echo_n "checking if alarm might be used... " >&6; }
29897 if test "$tst_links_alarm" = "yes" &&
29898 test "$tst_proto_alarm" = "yes" &&
29899 test "$tst_compi_alarm" = "yes" &&
29900 test "$tst_allow_alarm" = "yes"; then
29901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29902 $as_echo "yes" >&6; }
29904 cat >>confdefs.h <<_ACEOF
29905 #define HAVE_ALARM 1
29908 curl_cv_func_alarm="yes"
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29911 $as_echo "no" >&6; }
29912 curl_cv_func_alarm="no"
29916 curl_includes_string="\
29917 /* includes start */
29918 #ifdef HAVE_SYS_TYPES_H
29919 # include <sys/types.h>
29921 #ifdef HAVE_STRING_H
29922 # include <string.h>
29924 #ifdef HAVE_STRINGS_H
29925 # include <strings.h>
29927 /* includes end */"
29928 for ac_header in sys/types.h string.h strings.h
29930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29931 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
29933 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29934 cat >>confdefs.h <<_ACEOF
29935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29944 curl_includes_libgen="\
29945 /* includes start */
29946 #ifdef HAVE_SYS_TYPES_H
29947 # include <sys/types.h>
29949 #ifdef HAVE_LIBGEN_H
29950 # include <libgen.h>
29952 /* includes end */"
29953 for ac_header in sys/types.h libgen.h
29955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29956 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
29958 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29959 cat >>confdefs.h <<_ACEOF
29960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29970 tst_links_basename="unknown"
29971 tst_proto_basename="unknown"
29972 tst_compi_basename="unknown"
29973 tst_allow_basename="unknown"
29975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
29976 $as_echo_n "checking if basename can be linked... " >&6; }
29977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29978 /* end confdefs.h. */
29981 #define basename innocuous_basename
29983 # include <limits.h>
29985 # include <assert.h>
29992 #if defined __stub_basename || defined __stub___basename
29998 return basename ();
30004 if ac_fn_c_try_link "$LINENO"; then :
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30007 $as_echo "yes" >&6; }
30008 tst_links_basename="yes"
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30013 $as_echo "no" >&6; }
30014 tst_links_basename="no"
30017 rm -f core conftest.err conftest.$ac_objext \
30018 conftest$ac_exeext conftest.$ac_ext
30020 if test "$tst_links_basename" = "yes"; then
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30022 $as_echo_n "checking if basename is prototyped... " >&6; }
30023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30024 /* end confdefs.h. */
30026 $curl_includes_string
30027 $curl_includes_libgen
30028 $curl_includes_unistd
30031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30032 $EGREP "basename" >/dev/null 2>&1; then :
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30035 $as_echo "yes" >&6; }
30036 tst_proto_basename="yes"
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30041 $as_echo "no" >&6; }
30042 tst_proto_basename="no"
30049 if test "$tst_proto_basename" = "yes"; then
30050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30051 $as_echo_n "checking if basename is compilable... " >&6; }
30052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30053 /* end confdefs.h. */
30056 $curl_includes_string
30057 $curl_includes_libgen
30058 $curl_includes_unistd
30063 if(0 != basename(0))
30071 if ac_fn_c_try_compile "$LINENO"; then :
30073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30074 $as_echo "yes" >&6; }
30075 tst_compi_basename="yes"
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30080 $as_echo "no" >&6; }
30081 tst_compi_basename="no"
30084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30087 if test "$tst_compi_basename" = "yes"; then
30088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30089 $as_echo_n "checking if basename usage allowed... " >&6; }
30090 if test "x$curl_disallow_basename" != "xyes"; then
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30092 $as_echo "yes" >&6; }
30093 tst_allow_basename="yes"
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30096 $as_echo "no" >&6; }
30097 tst_allow_basename="no"
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30102 $as_echo_n "checking if basename might be used... " >&6; }
30103 if test "$tst_links_basename" = "yes" &&
30104 test "$tst_proto_basename" = "yes" &&
30105 test "$tst_compi_basename" = "yes" &&
30106 test "$tst_allow_basename" = "yes"; then
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30108 $as_echo "yes" >&6; }
30110 cat >>confdefs.h <<_ACEOF
30111 #define HAVE_BASENAME 1
30114 curl_cv_func_basename="yes"
30116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30117 $as_echo "no" >&6; }
30118 curl_cv_func_basename="no"
30122 curl_includes_socket="\
30123 /* includes start */
30124 #ifdef HAVE_SYS_TYPES_H
30125 # include <sys/types.h>
30127 #ifdef HAVE_SOCKET_H
30128 # include <socket.h>
30130 /* includes end */"
30131 for ac_header in sys/types.h socket.h
30133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30134 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30137 cat >>confdefs.h <<_ACEOF
30138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30148 tst_links_closesocket="unknown"
30149 tst_proto_closesocket="unknown"
30150 tst_compi_closesocket="unknown"
30151 tst_allow_closesocket="unknown"
30153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30154 $as_echo_n "checking if closesocket can be linked... " >&6; }
30155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30156 /* end confdefs.h. */
30159 $curl_includes_winsock2
30160 $curl_includes_socket
30165 if(0 != closesocket(0))
30173 if ac_fn_c_try_link "$LINENO"; then :
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30176 $as_echo "yes" >&6; }
30177 tst_links_closesocket="yes"
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30182 $as_echo "no" >&6; }
30183 tst_links_closesocket="no"
30186 rm -f core conftest.err conftest.$ac_objext \
30187 conftest$ac_exeext conftest.$ac_ext
30189 if test "$tst_links_closesocket" = "yes"; then
30190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30191 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30193 /* end confdefs.h. */
30195 $curl_includes_winsock2
30196 $curl_includes_socket
30199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30200 $EGREP "closesocket" >/dev/null 2>&1; then :
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30203 $as_echo "yes" >&6; }
30204 tst_proto_closesocket="yes"
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30209 $as_echo "no" >&6; }
30210 tst_proto_closesocket="no"
30217 if test "$tst_proto_closesocket" = "yes"; then
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30219 $as_echo_n "checking if closesocket is compilable... " >&6; }
30220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30221 /* end confdefs.h. */
30224 $curl_includes_winsock2
30225 $curl_includes_socket
30230 if(0 != closesocket(0))
30238 if ac_fn_c_try_compile "$LINENO"; then :
30240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30241 $as_echo "yes" >&6; }
30242 tst_compi_closesocket="yes"
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30247 $as_echo "no" >&6; }
30248 tst_compi_closesocket="no"
30251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30254 if test "$tst_compi_closesocket" = "yes"; then
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30256 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30257 if test "x$curl_disallow_closesocket" != "xyes"; then
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30259 $as_echo "yes" >&6; }
30260 tst_allow_closesocket="yes"
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30263 $as_echo "no" >&6; }
30264 tst_allow_closesocket="no"
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30269 $as_echo_n "checking if closesocket might be used... " >&6; }
30270 if test "$tst_links_closesocket" = "yes" &&
30271 test "$tst_proto_closesocket" = "yes" &&
30272 test "$tst_compi_closesocket" = "yes" &&
30273 test "$tst_allow_closesocket" = "yes"; then
30274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30275 $as_echo "yes" >&6; }
30277 cat >>confdefs.h <<_ACEOF
30278 #define HAVE_CLOSESOCKET 1
30281 curl_cv_func_closesocket="yes"
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30284 $as_echo "no" >&6; }
30285 curl_cv_func_closesocket="no"
30290 tst_links_closesocket_camel="unknown"
30291 tst_proto_closesocket_camel="unknown"
30292 tst_compi_closesocket_camel="unknown"
30293 tst_allow_closesocket_camel="unknown"
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30296 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30298 /* end confdefs.h. */
30301 $curl_includes_sys_socket
30306 if(0 != CloseSocket(0))
30314 if ac_fn_c_try_link "$LINENO"; then :
30316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30317 $as_echo "yes" >&6; }
30318 tst_links_closesocket_camel="yes"
30322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30323 $as_echo "no" >&6; }
30324 tst_links_closesocket_camel="no"
30327 rm -f core conftest.err conftest.$ac_objext \
30328 conftest$ac_exeext conftest.$ac_ext
30330 if test "$tst_links_closesocket_camel" = "yes"; then
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30332 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30334 /* end confdefs.h. */
30336 $curl_includes_sys_socket
30339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30340 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30343 $as_echo "yes" >&6; }
30344 tst_proto_closesocket_camel="yes"
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30349 $as_echo "no" >&6; }
30350 tst_proto_closesocket_camel="no"
30357 if test "$tst_proto_closesocket_camel" = "yes"; then
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30359 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
30360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30361 /* end confdefs.h. */
30364 $curl_includes_sys_socket
30369 if(0 != CloseSocket(0))
30377 if ac_fn_c_try_compile "$LINENO"; then :
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30380 $as_echo "yes" >&6; }
30381 tst_compi_closesocket_camel="yes"
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30386 $as_echo "no" >&6; }
30387 tst_compi_closesocket_camel="no"
30390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30393 if test "$tst_compi_closesocket_camel" = "yes"; then
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30395 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30396 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30398 $as_echo "yes" >&6; }
30399 tst_allow_closesocket_camel="yes"
30401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30402 $as_echo "no" >&6; }
30403 tst_allow_closesocket_camel="no"
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30408 $as_echo_n "checking if CloseSocket might be used... " >&6; }
30409 if test "$tst_links_closesocket_camel" = "yes" &&
30410 test "$tst_proto_closesocket_camel" = "yes" &&
30411 test "$tst_compi_closesocket_camel" = "yes" &&
30412 test "$tst_allow_closesocket_camel" = "yes"; then
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30414 $as_echo "yes" >&6; }
30416 cat >>confdefs.h <<_ACEOF
30417 #define HAVE_CLOSESOCKET_CAMEL 1
30420 curl_cv_func_closesocket_camel="yes"
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30423 $as_echo "no" >&6; }
30424 curl_cv_func_closesocket_camel="no"
30429 tst_links_connect="unknown"
30430 tst_proto_connect="unknown"
30431 tst_compi_connect="unknown"
30432 tst_allow_connect="unknown"
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30435 $as_echo_n "checking if connect can be linked... " >&6; }
30436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30437 /* end confdefs.h. */
30440 $curl_includes_winsock2
30441 $curl_includes_sys_socket
30442 $curl_includes_socket
30447 if(0 != connect(0, 0, 0))
30455 if ac_fn_c_try_link "$LINENO"; then :
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30458 $as_echo "yes" >&6; }
30459 tst_links_connect="yes"
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30464 $as_echo "no" >&6; }
30465 tst_links_connect="no"
30468 rm -f core conftest.err conftest.$ac_objext \
30469 conftest$ac_exeext conftest.$ac_ext
30471 if test "$tst_links_connect" = "yes"; then
30472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30473 $as_echo_n "checking if connect is prototyped... " >&6; }
30474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30475 /* end confdefs.h. */
30477 $curl_includes_winsock2
30478 $curl_includes_sys_socket
30479 $curl_includes_socket
30482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30483 $EGREP "connect" >/dev/null 2>&1; then :
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30486 $as_echo "yes" >&6; }
30487 tst_proto_connect="yes"
30491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30492 $as_echo "no" >&6; }
30493 tst_proto_connect="no"
30500 if test "$tst_proto_connect" = "yes"; then
30501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30502 $as_echo_n "checking if connect is compilable... " >&6; }
30503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30504 /* end confdefs.h. */
30507 $curl_includes_winsock2
30508 $curl_includes_sys_socket
30509 $curl_includes_socket
30514 if(0 != connect(0, 0, 0))
30522 if ac_fn_c_try_compile "$LINENO"; then :
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30525 $as_echo "yes" >&6; }
30526 tst_compi_connect="yes"
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30531 $as_echo "no" >&6; }
30532 tst_compi_connect="no"
30535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30538 if test "$tst_compi_connect" = "yes"; then
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30540 $as_echo_n "checking if connect usage allowed... " >&6; }
30541 if test "x$curl_disallow_connect" != "xyes"; then
30542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30543 $as_echo "yes" >&6; }
30544 tst_allow_connect="yes"
30546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30547 $as_echo "no" >&6; }
30548 tst_allow_connect="no"
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30553 $as_echo_n "checking if connect might be used... " >&6; }
30554 if test "$tst_links_connect" = "yes" &&
30555 test "$tst_proto_connect" = "yes" &&
30556 test "$tst_compi_connect" = "yes" &&
30557 test "$tst_allow_connect" = "yes"; then
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30559 $as_echo "yes" >&6; }
30561 cat >>confdefs.h <<_ACEOF
30562 #define HAVE_CONNECT 1
30565 curl_cv_func_connect="yes"
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30568 $as_echo "no" >&6; }
30569 curl_cv_func_connect="no"
30573 curl_includes_fcntl="\
30574 /* includes start */
30575 #ifdef HAVE_SYS_TYPES_H
30576 # include <sys/types.h>
30578 #ifdef HAVE_UNISTD_H
30579 # include <unistd.h>
30581 #ifdef HAVE_FCNTL_H
30582 # include <fcntl.h>
30584 /* includes end */"
30585 for ac_header in sys/types.h unistd.h fcntl.h
30587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30588 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30590 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30591 cat >>confdefs.h <<_ACEOF
30592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30602 tst_links_fcntl="unknown"
30603 tst_proto_fcntl="unknown"
30604 tst_compi_fcntl="unknown"
30605 tst_allow_fcntl="unknown"
30607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
30608 $as_echo_n "checking if fcntl can be linked... " >&6; }
30609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30610 /* end confdefs.h. */
30613 #define fcntl innocuous_fcntl
30615 # include <limits.h>
30617 # include <assert.h>
30624 #if defined __stub_fcntl || defined __stub___fcntl
30636 if ac_fn_c_try_link "$LINENO"; then :
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30639 $as_echo "yes" >&6; }
30640 tst_links_fcntl="yes"
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30645 $as_echo "no" >&6; }
30646 tst_links_fcntl="no"
30649 rm -f core conftest.err conftest.$ac_objext \
30650 conftest$ac_exeext conftest.$ac_ext
30652 if test "$tst_links_fcntl" = "yes"; then
30653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
30654 $as_echo_n "checking if fcntl is prototyped... " >&6; }
30655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30656 /* end confdefs.h. */
30658 $curl_includes_fcntl
30661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30662 $EGREP "fcntl" >/dev/null 2>&1; then :
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30665 $as_echo "yes" >&6; }
30666 tst_proto_fcntl="yes"
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30671 $as_echo "no" >&6; }
30672 tst_proto_fcntl="no"
30679 if test "$tst_proto_fcntl" = "yes"; then
30680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
30681 $as_echo_n "checking if fcntl is compilable... " >&6; }
30682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30683 /* end confdefs.h. */
30686 $curl_includes_fcntl
30691 if(0 != fcntl(0, 0, 0))
30699 if ac_fn_c_try_compile "$LINENO"; then :
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30702 $as_echo "yes" >&6; }
30703 tst_compi_fcntl="yes"
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30708 $as_echo "no" >&6; }
30709 tst_compi_fcntl="no"
30712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30715 if test "$tst_compi_fcntl" = "yes"; then
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
30717 $as_echo_n "checking if fcntl usage allowed... " >&6; }
30718 if test "x$curl_disallow_fcntl" != "xyes"; then
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30720 $as_echo "yes" >&6; }
30721 tst_allow_fcntl="yes"
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30724 $as_echo "no" >&6; }
30725 tst_allow_fcntl="no"
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
30730 $as_echo_n "checking if fcntl might be used... " >&6; }
30731 if test "$tst_links_fcntl" = "yes" &&
30732 test "$tst_proto_fcntl" = "yes" &&
30733 test "$tst_compi_fcntl" = "yes" &&
30734 test "$tst_allow_fcntl" = "yes"; then
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30736 $as_echo "yes" >&6; }
30738 cat >>confdefs.h <<_ACEOF
30739 #define HAVE_FCNTL 1
30742 curl_cv_func_fcntl="yes"
30745 tst_compi_fcntl_o_nonblock="unknown"
30746 tst_allow_fcntl_o_nonblock="unknown"
30749 sunos4* | aix3* | beos*)
30750 curl_disallow_fcntl_o_nonblock="yes"
30754 if test "$curl_cv_func_fcntl" = "yes"; then
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
30756 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
30757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30758 /* end confdefs.h. */
30761 $curl_includes_fcntl
30767 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
30775 if ac_fn_c_try_compile "$LINENO"; then :
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30778 $as_echo "yes" >&6; }
30779 tst_compi_fcntl_o_nonblock="yes"
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30784 $as_echo "no" >&6; }
30785 tst_compi_fcntl_o_nonblock="no"
30788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30791 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
30793 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
30794 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30796 $as_echo "yes" >&6; }
30797 tst_allow_fcntl_o_nonblock="yes"
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30800 $as_echo "no" >&6; }
30801 tst_allow_fcntl_o_nonblock="no"
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
30806 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
30807 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
30808 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30810 $as_echo "yes" >&6; }
30812 cat >>confdefs.h <<_ACEOF
30813 #define HAVE_FCNTL_O_NONBLOCK 1
30816 curl_cv_func_fcntl_o_nonblock="yes"
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30819 $as_echo "no" >&6; }
30820 curl_cv_func_fcntl_o_nonblock="no"
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30825 $as_echo "no" >&6; }
30826 curl_cv_func_fcntl="no"
30830 curl_includes_stdio="\
30831 /* includes start */
30832 #ifdef HAVE_SYS_TYPES_H
30833 # include <sys/types.h>
30835 #ifdef HAVE_STDIO_H
30836 # include <stdio.h>
30838 /* includes end */"
30839 for ac_header in sys/types.h stdio.h
30841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30842 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
30844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30845 cat >>confdefs.h <<_ACEOF
30846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30856 tst_links_fdopen="unknown"
30857 tst_proto_fdopen="unknown"
30858 tst_compi_fdopen="unknown"
30859 tst_allow_fdopen="unknown"
30861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
30862 $as_echo_n "checking if fdopen can be linked... " >&6; }
30863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30864 /* end confdefs.h. */
30867 #define fdopen innocuous_fdopen
30869 # include <limits.h>
30871 # include <assert.h>
30878 #if defined __stub_fdopen || defined __stub___fdopen
30890 if ac_fn_c_try_link "$LINENO"; then :
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30893 $as_echo "yes" >&6; }
30894 tst_links_fdopen="yes"
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30899 $as_echo "no" >&6; }
30900 tst_links_fdopen="no"
30903 rm -f core conftest.err conftest.$ac_objext \
30904 conftest$ac_exeext conftest.$ac_ext
30906 if test "$tst_links_fdopen" = "yes"; then
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
30908 $as_echo_n "checking if fdopen is prototyped... " >&6; }
30909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30910 /* end confdefs.h. */
30912 $curl_includes_stdio
30915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30916 $EGREP "fdopen" >/dev/null 2>&1; then :
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30919 $as_echo "yes" >&6; }
30920 tst_proto_fdopen="yes"
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30925 $as_echo "no" >&6; }
30926 tst_proto_fdopen="no"
30933 if test "$tst_proto_fdopen" = "yes"; then
30934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
30935 $as_echo_n "checking if fdopen is compilable... " >&6; }
30936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30937 /* end confdefs.h. */
30940 $curl_includes_stdio
30945 if(0 != fdopen(0, 0))
30953 if ac_fn_c_try_compile "$LINENO"; then :
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30956 $as_echo "yes" >&6; }
30957 tst_compi_fdopen="yes"
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30962 $as_echo "no" >&6; }
30963 tst_compi_fdopen="no"
30966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30969 if test "$tst_compi_fdopen" = "yes"; then
30970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
30971 $as_echo_n "checking if fdopen usage allowed... " >&6; }
30972 if test "x$curl_disallow_fdopen" != "xyes"; then
30973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30974 $as_echo "yes" >&6; }
30975 tst_allow_fdopen="yes"
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30978 $as_echo "no" >&6; }
30979 tst_allow_fdopen="no"
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
30984 $as_echo_n "checking if fdopen might be used... " >&6; }
30985 if test "$tst_links_fdopen" = "yes" &&
30986 test "$tst_proto_fdopen" = "yes" &&
30987 test "$tst_compi_fdopen" = "yes" &&
30988 test "$tst_allow_fdopen" = "yes"; then
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30990 $as_echo "yes" >&6; }
30992 cat >>confdefs.h <<_ACEOF
30993 #define HAVE_FDOPEN 1
30996 curl_cv_func_fdopen="yes"
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30999 $as_echo "no" >&6; }
31000 curl_cv_func_fdopen="no"
31004 curl_includes_netdb="\
31005 /* includes start */
31006 #ifdef HAVE_SYS_TYPES_H
31007 # include <sys/types.h>
31009 #ifdef HAVE_NETDB_H
31010 # include <netdb.h>
31012 /* includes end */"
31013 for ac_header in sys/types.h netdb.h
31015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31019 cat >>confdefs.h <<_ACEOF
31020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31030 tst_links_freeaddrinfo="unknown"
31031 tst_proto_freeaddrinfo="unknown"
31032 tst_compi_freeaddrinfo="unknown"
31033 tst_allow_freeaddrinfo="unknown"
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31036 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31038 /* end confdefs.h. */
31041 $curl_includes_ws2tcpip
31042 $curl_includes_sys_socket
31043 $curl_includes_netdb
31055 if ac_fn_c_try_link "$LINENO"; then :
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31058 $as_echo "yes" >&6; }
31059 tst_links_freeaddrinfo="yes"
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31064 $as_echo "no" >&6; }
31065 tst_links_freeaddrinfo="no"
31068 rm -f core conftest.err conftest.$ac_objext \
31069 conftest$ac_exeext conftest.$ac_ext
31071 if test "$tst_links_freeaddrinfo" = "yes"; then
31072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31073 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31075 /* end confdefs.h. */
31077 $curl_includes_ws2tcpip
31078 $curl_includes_sys_socket
31079 $curl_includes_netdb
31082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31083 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31086 $as_echo "yes" >&6; }
31087 tst_proto_freeaddrinfo="yes"
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31092 $as_echo "no" >&6; }
31093 tst_proto_freeaddrinfo="no"
31100 if test "$tst_proto_freeaddrinfo" = "yes"; then
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31102 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31104 /* end confdefs.h. */
31107 $curl_includes_ws2tcpip
31108 $curl_includes_sys_socket
31109 $curl_includes_netdb
31121 if ac_fn_c_try_compile "$LINENO"; then :
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31124 $as_echo "yes" >&6; }
31125 tst_compi_freeaddrinfo="yes"
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31130 $as_echo "no" >&6; }
31131 tst_compi_freeaddrinfo="no"
31134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31137 if test "$tst_compi_freeaddrinfo" = "yes"; then
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31139 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31140 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31142 $as_echo "yes" >&6; }
31143 tst_allow_freeaddrinfo="yes"
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31146 $as_echo "no" >&6; }
31147 tst_allow_freeaddrinfo="no"
31151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31152 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31153 if test "$tst_links_freeaddrinfo" = "yes" &&
31154 test "$tst_proto_freeaddrinfo" = "yes" &&
31155 test "$tst_compi_freeaddrinfo" = "yes" &&
31156 test "$tst_allow_freeaddrinfo" = "yes"; then
31157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31158 $as_echo "yes" >&6; }
31160 cat >>confdefs.h <<_ACEOF
31161 #define HAVE_FREEADDRINFO 1
31164 curl_cv_func_freeaddrinfo="yes"
31166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31167 $as_echo "no" >&6; }
31168 curl_cv_func_freeaddrinfo="no"
31172 curl_includes_ifaddrs="\
31173 /* includes start */
31174 #ifdef HAVE_SYS_TYPES_H
31175 # include <sys/types.h>
31177 #ifdef HAVE_SYS_SOCKET_H
31178 # include <sys/socket.h>
31180 #ifdef HAVE_NETINET_IN_H
31181 # include <netinet/in.h>
31183 #ifdef HAVE_IFADDRS_H
31184 # include <ifaddrs.h>
31186 /* includes end */"
31187 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31190 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31192 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31193 cat >>confdefs.h <<_ACEOF
31194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31204 tst_links_freeifaddrs="unknown"
31205 tst_proto_freeifaddrs="unknown"
31206 tst_compi_freeifaddrs="unknown"
31207 tst_allow_freeifaddrs="unknown"
31209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31210 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31212 /* end confdefs.h. */
31215 #define freeifaddrs innocuous_freeifaddrs
31217 # include <limits.h>
31219 # include <assert.h>
31225 char freeifaddrs ();
31226 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31232 return freeifaddrs ();
31238 if ac_fn_c_try_link "$LINENO"; then :
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31241 $as_echo "yes" >&6; }
31242 tst_links_freeifaddrs="yes"
31246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31247 $as_echo "no" >&6; }
31248 tst_links_freeifaddrs="no"
31251 rm -f core conftest.err conftest.$ac_objext \
31252 conftest$ac_exeext conftest.$ac_ext
31254 if test "$tst_links_freeifaddrs" = "yes"; then
31255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31256 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31258 /* end confdefs.h. */
31260 $curl_includes_ifaddrs
31263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31264 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31267 $as_echo "yes" >&6; }
31268 tst_proto_freeifaddrs="yes"
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31273 $as_echo "no" >&6; }
31274 tst_proto_freeifaddrs="no"
31281 if test "$tst_proto_freeifaddrs" = "yes"; then
31282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31283 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31285 /* end confdefs.h. */
31288 $curl_includes_ifaddrs
31300 if ac_fn_c_try_compile "$LINENO"; then :
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31303 $as_echo "yes" >&6; }
31304 tst_compi_freeifaddrs="yes"
31308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31309 $as_echo "no" >&6; }
31310 tst_compi_freeifaddrs="no"
31313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31316 if test "$tst_compi_freeifaddrs" = "yes"; then
31317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31318 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31319 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31321 $as_echo "yes" >&6; }
31322 tst_allow_freeifaddrs="yes"
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31325 $as_echo "no" >&6; }
31326 tst_allow_freeifaddrs="no"
31330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31331 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
31332 if test "$tst_links_freeifaddrs" = "yes" &&
31333 test "$tst_proto_freeifaddrs" = "yes" &&
31334 test "$tst_compi_freeifaddrs" = "yes" &&
31335 test "$tst_allow_freeifaddrs" = "yes"; then
31336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31337 $as_echo "yes" >&6; }
31339 cat >>confdefs.h <<_ACEOF
31340 #define HAVE_FREEIFADDRS 1
31343 curl_cv_func_freeifaddrs="yes"
31345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31346 $as_echo "no" >&6; }
31347 curl_cv_func_freeifaddrs="no"
31351 curl_includes_sys_xattr="\
31352 /* includes start */
31353 #ifdef HAVE_SYS_TYPES_H
31354 # include <sys/types.h>
31356 #ifdef HAVE_SYS_XATTR_H
31357 # include <sys/xattr.h>
31359 /* includes end */"
31360 for ac_header in sys/types.h sys/xattr.h
31362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31363 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31366 cat >>confdefs.h <<_ACEOF
31367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31377 tst_links_fsetxattr="unknown"
31378 tst_proto_fsetxattr="unknown"
31379 tst_compi_fsetxattr="unknown"
31380 tst_allow_fsetxattr="unknown"
31381 tst_nargs_fsetxattr="unknown"
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31384 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
31385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31386 /* end confdefs.h. */
31389 #define fsetxattr innocuous_fsetxattr
31391 # include <limits.h>
31393 # include <assert.h>
31400 #if defined __stub_fsetxattr || defined __stub___fsetxattr
31406 return fsetxattr ();
31412 if ac_fn_c_try_link "$LINENO"; then :
31414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31415 $as_echo "yes" >&6; }
31416 tst_links_fsetxattr="yes"
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31421 $as_echo "no" >&6; }
31422 tst_links_fsetxattr="no"
31425 rm -f core conftest.err conftest.$ac_objext \
31426 conftest$ac_exeext conftest.$ac_ext
31428 if test "$tst_links_fsetxattr" = "yes"; then
31429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31430 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31432 /* end confdefs.h. */
31434 $curl_includes_sys_xattr
31437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31438 $EGREP "fsetxattr" >/dev/null 2>&1; then :
31440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31441 $as_echo "yes" >&6; }
31442 tst_proto_fsetxattr="yes"
31446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31447 $as_echo "no" >&6; }
31448 tst_proto_fsetxattr="no"
31455 if test "$tst_proto_fsetxattr" = "yes"; then
31456 if test "$tst_nargs_fsetxattr" = "unknown"; then
31457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31458 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31460 /* end confdefs.h. */
31463 $curl_includes_sys_xattr
31468 if(0 != fsetxattr(0, 0, 0, 0, 0))
31476 if ac_fn_c_try_compile "$LINENO"; then :
31478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31479 $as_echo "yes" >&6; }
31480 tst_compi_fsetxattr="yes"
31481 tst_nargs_fsetxattr="5"
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31486 $as_echo "no" >&6; }
31487 tst_compi_fsetxattr="no"
31490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31492 if test "$tst_nargs_fsetxattr" = "unknown"; then
31493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31494 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31496 /* end confdefs.h. */
31499 $curl_includes_sys_xattr
31504 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31512 if ac_fn_c_try_compile "$LINENO"; then :
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31515 $as_echo "yes" >&6; }
31516 tst_compi_fsetxattr="yes"
31517 tst_nargs_fsetxattr="6"
31521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31522 $as_echo "no" >&6; }
31523 tst_compi_fsetxattr="no"
31526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31529 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
31530 if test "$tst_compi_fsetxattr" = "yes"; then
31531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31532 $as_echo "yes" >&6; }
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31535 $as_echo "no" >&6; }
31539 if test "$tst_compi_fsetxattr" = "yes"; then
31540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31541 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31542 if test "x$curl_disallow_fsetxattr" != "xyes"; then
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31544 $as_echo "yes" >&6; }
31545 tst_allow_fsetxattr="yes"
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31548 $as_echo "no" >&6; }
31549 tst_allow_fsetxattr="no"
31553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31554 $as_echo_n "checking if fsetxattr might be used... " >&6; }
31555 if test "$tst_links_fsetxattr" = "yes" &&
31556 test "$tst_proto_fsetxattr" = "yes" &&
31557 test "$tst_compi_fsetxattr" = "yes" &&
31558 test "$tst_allow_fsetxattr" = "yes"; then
31559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31560 $as_echo "yes" >&6; }
31562 cat >>confdefs.h <<_ACEOF
31563 #define HAVE_FSETXATTR 1
31567 if test "$tst_nargs_fsetxattr" -eq "5"; then
31569 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31571 elif test "$tst_nargs_fsetxattr" -eq "6"; then
31573 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31577 curl_cv_func_fsetxattr="yes"
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31580 $as_echo "no" >&6; }
31581 curl_cv_func_fsetxattr="no"
31586 tst_links_ftruncate="unknown"
31587 tst_proto_ftruncate="unknown"
31588 tst_compi_ftruncate="unknown"
31589 tst_allow_ftruncate="unknown"
31591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
31592 $as_echo_n "checking if ftruncate can be linked... " >&6; }
31593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31594 /* end confdefs.h. */
31597 #define ftruncate innocuous_ftruncate
31599 # include <limits.h>
31601 # include <assert.h>
31608 #if defined __stub_ftruncate || defined __stub___ftruncate
31614 return ftruncate ();
31620 if ac_fn_c_try_link "$LINENO"; then :
31622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31623 $as_echo "yes" >&6; }
31624 tst_links_ftruncate="yes"
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31629 $as_echo "no" >&6; }
31630 tst_links_ftruncate="no"
31633 rm -f core conftest.err conftest.$ac_objext \
31634 conftest$ac_exeext conftest.$ac_ext
31636 if test "$tst_links_ftruncate" = "yes"; then
31637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
31638 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
31639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31640 /* end confdefs.h. */
31642 $curl_includes_unistd
31645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31646 $EGREP "ftruncate" >/dev/null 2>&1; then :
31648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31649 $as_echo "yes" >&6; }
31650 tst_proto_ftruncate="yes"
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31655 $as_echo "no" >&6; }
31656 tst_proto_ftruncate="no"
31663 if test "$tst_proto_ftruncate" = "yes"; then
31664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
31665 $as_echo_n "checking if ftruncate is compilable... " >&6; }
31666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31667 /* end confdefs.h. */
31670 $curl_includes_unistd
31675 if(0 != ftruncate(0, 0))
31683 if ac_fn_c_try_compile "$LINENO"; then :
31685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31686 $as_echo "yes" >&6; }
31687 tst_compi_ftruncate="yes"
31691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31692 $as_echo "no" >&6; }
31693 tst_compi_ftruncate="no"
31696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31699 if test "$tst_compi_ftruncate" = "yes"; then
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
31701 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
31702 if test "x$curl_disallow_ftruncate" != "xyes"; then
31703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31704 $as_echo "yes" >&6; }
31705 tst_allow_ftruncate="yes"
31707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31708 $as_echo "no" >&6; }
31709 tst_allow_ftruncate="no"
31713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
31714 $as_echo_n "checking if ftruncate might be used... " >&6; }
31715 if test "$tst_links_ftruncate" = "yes" &&
31716 test "$tst_proto_ftruncate" = "yes" &&
31717 test "$tst_compi_ftruncate" = "yes" &&
31718 test "$tst_allow_ftruncate" = "yes"; then
31719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31720 $as_echo "yes" >&6; }
31722 cat >>confdefs.h <<_ACEOF
31723 #define HAVE_FTRUNCATE 1
31726 curl_cv_func_ftruncate="yes"
31728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31729 $as_echo "no" >&6; }
31730 curl_cv_func_ftruncate="no"
31734 curl_includes_stdlib="\
31735 /* includes start */
31736 #ifdef HAVE_SYS_TYPES_H
31737 # include <sys/types.h>
31739 #ifdef HAVE_STDLIB_H
31740 # include <stdlib.h>
31742 /* includes end */"
31743 for ac_header in sys/types.h stdlib.h
31745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31746 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
31748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31749 cat >>confdefs.h <<_ACEOF
31750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31760 tst_links_getaddrinfo="unknown"
31761 tst_proto_getaddrinfo="unknown"
31762 tst_compi_getaddrinfo="unknown"
31763 tst_works_getaddrinfo="unknown"
31764 tst_allow_getaddrinfo="unknown"
31765 tst_tsafe_getaddrinfo="unknown"
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
31768 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
31769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31770 /* end confdefs.h. */
31773 $curl_includes_ws2tcpip
31774 $curl_includes_sys_socket
31775 $curl_includes_netdb
31780 if(0 != getaddrinfo(0, 0, 0, 0))
31788 if ac_fn_c_try_link "$LINENO"; then :
31790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31791 $as_echo "yes" >&6; }
31792 tst_links_getaddrinfo="yes"
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31797 $as_echo "no" >&6; }
31798 tst_links_getaddrinfo="no"
31801 rm -f core conftest.err conftest.$ac_objext \
31802 conftest$ac_exeext conftest.$ac_ext
31804 if test "$tst_links_getaddrinfo" = "yes"; then
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
31806 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
31807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31808 /* end confdefs.h. */
31810 $curl_includes_ws2tcpip
31811 $curl_includes_sys_socket
31812 $curl_includes_netdb
31815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31816 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
31818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31819 $as_echo "yes" >&6; }
31820 tst_proto_getaddrinfo="yes"
31824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31825 $as_echo "no" >&6; }
31826 tst_proto_getaddrinfo="no"
31833 if test "$tst_proto_getaddrinfo" = "yes"; then
31834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
31835 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
31836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31837 /* end confdefs.h. */
31840 $curl_includes_ws2tcpip
31841 $curl_includes_sys_socket
31842 $curl_includes_netdb
31847 if(0 != getaddrinfo(0, 0, 0, 0))
31855 if ac_fn_c_try_compile "$LINENO"; then :
31857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31858 $as_echo "yes" >&6; }
31859 tst_compi_getaddrinfo="yes"
31863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31864 $as_echo "no" >&6; }
31865 tst_compi_getaddrinfo="no"
31868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31871 if test "x$cross_compiling" != "xyes" &&
31872 test "$tst_compi_getaddrinfo" = "yes"; then
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
31874 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
31875 if test "$cross_compiling" = yes; then :
31876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31878 as_fn_error $? "cannot run test program while cross compiling
31879 See \`config.log' for more details" "$LINENO" 5; }
31881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31882 /* end confdefs.h. */
31885 $curl_includes_ws2tcpip
31886 $curl_includes_stdlib
31887 $curl_includes_string
31888 $curl_includes_sys_socket
31889 $curl_includes_netdb
31894 struct addrinfo hints;
31895 struct addrinfo *ai = 0;
31898 #ifdef HAVE_WINSOCK2_H
31900 if (WSAStartup(MAKEWORD(2,2), &wsa))
31904 memset(&hints, 0, sizeof(hints));
31905 hints.ai_flags = AI_NUMERICHOST;
31906 hints.ai_family = AF_UNSPEC;
31907 hints.ai_socktype = SOCK_STREAM;
31908 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
31910 exit(1); /* fail */
31919 if ac_fn_c_try_run "$LINENO"; then :
31921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31922 $as_echo "yes" >&6; }
31923 tst_works_getaddrinfo="yes"
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31928 $as_echo "no" >&6; }
31929 tst_works_getaddrinfo="no"
31932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31933 conftest.$ac_objext conftest.beam conftest.$ac_ext
31938 if test "$tst_compi_getaddrinfo" = "yes" &&
31939 test "$tst_works_getaddrinfo" != "no"; then
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
31941 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
31942 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
31943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31944 $as_echo "yes" >&6; }
31945 tst_allow_getaddrinfo="yes"
31947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31948 $as_echo "no" >&6; }
31949 tst_allow_getaddrinfo="no"
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
31954 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
31955 if test "$tst_links_getaddrinfo" = "yes" &&
31956 test "$tst_proto_getaddrinfo" = "yes" &&
31957 test "$tst_compi_getaddrinfo" = "yes" &&
31958 test "$tst_allow_getaddrinfo" = "yes" &&
31959 test "$tst_works_getaddrinfo" != "no"; then
31960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31961 $as_echo "yes" >&6; }
31963 cat >>confdefs.h <<_ACEOF
31964 #define HAVE_GETADDRINFO 1
31967 curl_cv_func_getaddrinfo="yes"
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31970 $as_echo "no" >&6; }
31971 curl_cv_func_getaddrinfo="no"
31972 curl_cv_func_getaddrinfo_threadsafe="no"
31975 if test "$curl_cv_func_getaddrinfo" = "yes"; then
31976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
31977 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
31979 aix[1234].* | aix5.[01].*)
31980 tst_tsafe_getaddrinfo="no"
31983 tst_tsafe_getaddrinfo="yes"
31986 tst_tsafe_getaddrinfo="no"
31989 tst_tsafe_getaddrinfo="yes"
31991 freebsd[1234].* | freebsd5.[1234]*)
31992 tst_tsafe_getaddrinfo="no"
31995 tst_tsafe_getaddrinfo="yes"
31997 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
31998 tst_tsafe_getaddrinfo="no"
32001 tst_tsafe_getaddrinfo="yes"
32004 tst_tsafe_getaddrinfo="no"
32007 tst_tsafe_getaddrinfo="yes"
32010 tst_tsafe_getaddrinfo="no"
32013 tst_tsafe_getaddrinfo="yes"
32016 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32017 test "$curl_cv_native_windows" = "yes"; then
32018 tst_tsafe_getaddrinfo="yes"
32020 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32024 /* end confdefs.h. */
32027 $curl_includes_sys_socket
32028 $curl_includes_netdb
32035 force compilation error
32041 if ac_fn_c_try_compile "$LINENO"; then :
32043 tst_symbol_defined="yes"
32047 tst_symbol_defined="no"
32050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32051 if test "$tst_symbol_defined" = "yes"; then
32052 curl_cv_have_def_h_errno=yes
32055 curl_cv_have_def_h_errno=no
32059 if test "$curl_cv_have_def_h_errno" = "yes"; then
32060 tst_h_errno_macro="yes"
32062 tst_h_errno_macro="no"
32064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32065 /* end confdefs.h. */
32068 $curl_includes_sys_socket
32069 $curl_includes_netdb
32083 if ac_fn_c_try_compile "$LINENO"; then :
32085 tst_h_errno_modifiable_lvalue="yes"
32089 tst_h_errno_modifiable_lvalue="no"
32092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32094 /* end confdefs.h. */
32101 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32103 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32106 force compilation error
32114 if ac_fn_c_try_compile "$LINENO"; then :
32116 tst_h_errno_sbs_issue_7="yes"
32120 tst_h_errno_sbs_issue_7="no"
32123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32124 if test "$tst_h_errno_macro" = "no" &&
32125 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32126 test "$tst_h_errno_sbs_issue_7" = "no"; then
32127 tst_tsafe_getaddrinfo="no"
32129 tst_tsafe_getaddrinfo="yes"
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32133 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32134 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32136 cat >>confdefs.h <<_ACEOF
32137 #define HAVE_GETADDRINFO_THREADSAFE 1
32140 curl_cv_func_getaddrinfo_threadsafe="yes"
32142 curl_cv_func_getaddrinfo_threadsafe="no"
32148 tst_links_gai_strerror="unknown"
32149 tst_proto_gai_strerror="unknown"
32150 tst_compi_gai_strerror="unknown"
32151 tst_allow_gai_strerror="unknown"
32153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32154 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32156 /* end confdefs.h. */
32159 $curl_includes_winsock2
32160 $curl_includes_netdb
32165 if(0 != gai_strerror(0))
32173 if ac_fn_c_try_link "$LINENO"; then :
32175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32176 $as_echo "yes" >&6; }
32177 tst_links_gai_strerror="yes"
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32182 $as_echo "no" >&6; }
32183 tst_links_gai_strerror="no"
32186 rm -f core conftest.err conftest.$ac_objext \
32187 conftest$ac_exeext conftest.$ac_ext
32189 if test "$tst_links_gai_strerror" = "yes"; then
32190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32191 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32193 /* end confdefs.h. */
32195 $curl_includes_winsock2
32196 $curl_includes_netdb
32199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32200 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32203 $as_echo "yes" >&6; }
32204 tst_proto_gai_strerror="yes"
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32209 $as_echo "no" >&6; }
32210 tst_proto_gai_strerror="no"
32217 if test "$tst_proto_gai_strerror" = "yes"; then
32218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32219 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32221 /* end confdefs.h. */
32224 $curl_includes_winsock2
32225 $curl_includes_netdb
32230 if(0 != gai_strerror(0))
32238 if ac_fn_c_try_compile "$LINENO"; then :
32240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32241 $as_echo "yes" >&6; }
32242 tst_compi_gai_strerror="yes"
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32247 $as_echo "no" >&6; }
32248 tst_compi_gai_strerror="no"
32251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32254 if test "$tst_compi_gai_strerror" = "yes"; then
32255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32256 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32257 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32259 $as_echo "yes" >&6; }
32260 tst_allow_gai_strerror="yes"
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32263 $as_echo "no" >&6; }
32264 tst_allow_gai_strerror="no"
32268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32269 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32270 if test "$tst_links_gai_strerror" = "yes" &&
32271 test "$tst_proto_gai_strerror" = "yes" &&
32272 test "$tst_compi_gai_strerror" = "yes" &&
32273 test "$tst_allow_gai_strerror" = "yes"; then
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32275 $as_echo "yes" >&6; }
32277 cat >>confdefs.h <<_ACEOF
32278 #define HAVE_GAI_STRERROR 1
32281 curl_cv_func_gai_strerror="yes"
32283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32284 $as_echo "no" >&6; }
32285 curl_cv_func_gai_strerror="no"
32290 tst_links_gethostbyaddr="unknown"
32291 tst_proto_gethostbyaddr="unknown"
32292 tst_compi_gethostbyaddr="unknown"
32293 tst_allow_gethostbyaddr="unknown"
32295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32296 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32298 /* end confdefs.h. */
32301 $curl_includes_winsock2
32302 $curl_includes_netdb
32307 if(0 != gethostbyaddr(0, 0, 0))
32315 if ac_fn_c_try_link "$LINENO"; then :
32317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32318 $as_echo "yes" >&6; }
32319 tst_links_gethostbyaddr="yes"
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32324 $as_echo "no" >&6; }
32325 tst_links_gethostbyaddr="no"
32328 rm -f core conftest.err conftest.$ac_objext \
32329 conftest$ac_exeext conftest.$ac_ext
32331 if test "$tst_links_gethostbyaddr" = "yes"; then
32332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32333 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32335 /* end confdefs.h. */
32337 $curl_includes_winsock2
32338 $curl_includes_netdb
32341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32342 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32345 $as_echo "yes" >&6; }
32346 tst_proto_gethostbyaddr="yes"
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32351 $as_echo "no" >&6; }
32352 tst_proto_gethostbyaddr="no"
32359 if test "$tst_proto_gethostbyaddr" = "yes"; then
32360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32361 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32363 /* end confdefs.h. */
32366 $curl_includes_winsock2
32367 $curl_includes_netdb
32372 if(0 != gethostbyaddr(0, 0, 0))
32380 if ac_fn_c_try_compile "$LINENO"; then :
32382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32383 $as_echo "yes" >&6; }
32384 tst_compi_gethostbyaddr="yes"
32388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32389 $as_echo "no" >&6; }
32390 tst_compi_gethostbyaddr="no"
32393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32396 if test "$tst_compi_gethostbyaddr" = "yes"; then
32397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32398 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32399 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32401 $as_echo "yes" >&6; }
32402 tst_allow_gethostbyaddr="yes"
32404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32405 $as_echo "no" >&6; }
32406 tst_allow_gethostbyaddr="no"
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32411 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32412 if test "$tst_links_gethostbyaddr" = "yes" &&
32413 test "$tst_proto_gethostbyaddr" = "yes" &&
32414 test "$tst_compi_gethostbyaddr" = "yes" &&
32415 test "$tst_allow_gethostbyaddr" = "yes"; then
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32417 $as_echo "yes" >&6; }
32419 cat >>confdefs.h <<_ACEOF
32420 #define HAVE_GETHOSTBYADDR 1
32423 curl_cv_func_gethostbyaddr="yes"
32425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32426 $as_echo "no" >&6; }
32427 curl_cv_func_gethostbyaddr="no"
32432 tst_links_gethostbyaddr_r="unknown"
32433 tst_proto_gethostbyaddr_r="unknown"
32434 tst_compi_gethostbyaddr_r="unknown"
32435 tst_allow_gethostbyaddr_r="unknown"
32436 tst_nargs_gethostbyaddr_r="unknown"
32438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32439 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32441 /* end confdefs.h. */
32444 #define gethostbyaddr_r innocuous_gethostbyaddr_r
32446 # include <limits.h>
32448 # include <assert.h>
32450 #undef gethostbyaddr_r
32454 char gethostbyaddr_r ();
32455 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32461 return gethostbyaddr_r ();
32467 if ac_fn_c_try_link "$LINENO"; then :
32469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32470 $as_echo "yes" >&6; }
32471 tst_links_gethostbyaddr_r="yes"
32475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32476 $as_echo "no" >&6; }
32477 tst_links_gethostbyaddr_r="no"
32480 rm -f core conftest.err conftest.$ac_objext \
32481 conftest$ac_exeext conftest.$ac_ext
32483 if test "$tst_links_gethostbyaddr_r" = "yes"; then
32484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32485 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32487 /* end confdefs.h. */
32489 $curl_includes_netdb
32492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32493 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32496 $as_echo "yes" >&6; }
32497 tst_proto_gethostbyaddr_r="yes"
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32502 $as_echo "no" >&6; }
32503 tst_proto_gethostbyaddr_r="no"
32510 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32511 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32513 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32515 /* end confdefs.h. */
32518 $curl_includes_netdb
32523 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32531 if ac_fn_c_try_compile "$LINENO"; then :
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32534 $as_echo "yes" >&6; }
32535 tst_compi_gethostbyaddr_r="yes"
32536 tst_nargs_gethostbyaddr_r="5"
32540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32541 $as_echo "no" >&6; }
32542 tst_compi_gethostbyaddr_r="no"
32545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32547 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32549 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32551 /* end confdefs.h. */
32554 $curl_includes_netdb
32559 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32567 if ac_fn_c_try_compile "$LINENO"; then :
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32570 $as_echo "yes" >&6; }
32571 tst_compi_gethostbyaddr_r="yes"
32572 tst_nargs_gethostbyaddr_r="7"
32576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32577 $as_echo "no" >&6; }
32578 tst_compi_gethostbyaddr_r="no"
32581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32583 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
32585 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
32586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32587 /* end confdefs.h. */
32590 $curl_includes_netdb
32595 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
32603 if ac_fn_c_try_compile "$LINENO"; then :
32605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32606 $as_echo "yes" >&6; }
32607 tst_compi_gethostbyaddr_r="yes"
32608 tst_nargs_gethostbyaddr_r="8"
32612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32613 $as_echo "no" >&6; }
32614 tst_compi_gethostbyaddr_r="no"
32617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
32620 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
32621 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32623 $as_echo "yes" >&6; }
32625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32626 $as_echo "no" >&6; }
32630 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
32632 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
32633 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
32634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32635 $as_echo "yes" >&6; }
32636 tst_allow_gethostbyaddr_r="yes"
32638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32639 $as_echo "no" >&6; }
32640 tst_allow_gethostbyaddr_r="no"
32644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
32645 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
32646 if test "$tst_links_gethostbyaddr_r" = "yes" &&
32647 test "$tst_proto_gethostbyaddr_r" = "yes" &&
32648 test "$tst_compi_gethostbyaddr_r" = "yes" &&
32649 test "$tst_allow_gethostbyaddr_r" = "yes"; then
32650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32651 $as_echo "yes" >&6; }
32653 cat >>confdefs.h <<_ACEOF
32654 #define HAVE_GETHOSTBYADDR_R 1
32658 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
32660 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
32662 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
32664 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
32666 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
32668 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
32672 curl_cv_func_gethostbyaddr_r="yes"
32674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32675 $as_echo "no" >&6; }
32676 curl_cv_func_gethostbyaddr_r="no"
32681 tst_links_gethostbyname="unknown"
32682 tst_proto_gethostbyname="unknown"
32683 tst_compi_gethostbyname="unknown"
32684 tst_allow_gethostbyname="unknown"
32686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
32687 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
32688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32689 /* end confdefs.h. */
32692 $curl_includes_winsock2
32693 $curl_includes_netdb
32698 if(0 != gethostbyname(0))
32706 if ac_fn_c_try_link "$LINENO"; then :
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32709 $as_echo "yes" >&6; }
32710 tst_links_gethostbyname="yes"
32714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32715 $as_echo "no" >&6; }
32716 tst_links_gethostbyname="no"
32719 rm -f core conftest.err conftest.$ac_objext \
32720 conftest$ac_exeext conftest.$ac_ext
32722 if test "$tst_links_gethostbyname" = "yes"; then
32723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
32724 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
32725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32726 /* end confdefs.h. */
32728 $curl_includes_winsock2
32729 $curl_includes_netdb
32732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32733 $EGREP "gethostbyname" >/dev/null 2>&1; then :
32735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32736 $as_echo "yes" >&6; }
32737 tst_proto_gethostbyname="yes"
32741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32742 $as_echo "no" >&6; }
32743 tst_proto_gethostbyname="no"
32750 if test "$tst_proto_gethostbyname" = "yes"; then
32751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
32752 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
32753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32754 /* end confdefs.h. */
32757 $curl_includes_winsock2
32758 $curl_includes_netdb
32763 if(0 != gethostbyname(0))
32771 if ac_fn_c_try_compile "$LINENO"; then :
32773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32774 $as_echo "yes" >&6; }
32775 tst_compi_gethostbyname="yes"
32779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32780 $as_echo "no" >&6; }
32781 tst_compi_gethostbyname="no"
32784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32787 if test "$tst_compi_gethostbyname" = "yes"; then
32788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
32789 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
32790 if test "x$curl_disallow_gethostbyname" != "xyes"; then
32791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32792 $as_echo "yes" >&6; }
32793 tst_allow_gethostbyname="yes"
32795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32796 $as_echo "no" >&6; }
32797 tst_allow_gethostbyname="no"
32801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
32802 $as_echo_n "checking if gethostbyname might be used... " >&6; }
32803 if test "$tst_links_gethostbyname" = "yes" &&
32804 test "$tst_proto_gethostbyname" = "yes" &&
32805 test "$tst_compi_gethostbyname" = "yes" &&
32806 test "$tst_allow_gethostbyname" = "yes"; then
32807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32808 $as_echo "yes" >&6; }
32810 cat >>confdefs.h <<_ACEOF
32811 #define HAVE_GETHOSTBYNAME 1
32814 curl_cv_func_gethostbyname="yes"
32816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32817 $as_echo "no" >&6; }
32818 curl_cv_func_gethostbyname="no"
32823 tst_links_gethostbyname_r="unknown"
32824 tst_proto_gethostbyname_r="unknown"
32825 tst_compi_gethostbyname_r="unknown"
32826 tst_allow_gethostbyname_r="unknown"
32827 tst_nargs_gethostbyname_r="unknown"
32829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
32830 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
32831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32832 /* end confdefs.h. */
32835 #define gethostbyname_r innocuous_gethostbyname_r
32837 # include <limits.h>
32839 # include <assert.h>
32841 #undef gethostbyname_r
32845 char gethostbyname_r ();
32846 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32852 return gethostbyname_r ();
32858 if ac_fn_c_try_link "$LINENO"; then :
32860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32861 $as_echo "yes" >&6; }
32862 tst_links_gethostbyname_r="yes"
32866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32867 $as_echo "no" >&6; }
32868 tst_links_gethostbyname_r="no"
32871 rm -f core conftest.err conftest.$ac_objext \
32872 conftest$ac_exeext conftest.$ac_ext
32874 if test "$tst_links_gethostbyname_r" = "yes"; then
32875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
32876 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
32877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32878 /* end confdefs.h. */
32880 $curl_includes_netdb
32883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32884 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
32886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32887 $as_echo "yes" >&6; }
32888 tst_proto_gethostbyname_r="yes"
32892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32893 $as_echo "no" >&6; }
32894 tst_proto_gethostbyname_r="no"
32901 if test "$tst_proto_gethostbyname_r" = "yes"; then
32902 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
32904 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
32905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32906 /* end confdefs.h. */
32909 $curl_includes_netdb
32914 if(0 != gethostbyname_r(0, 0, 0))
32922 if ac_fn_c_try_compile "$LINENO"; then :
32924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32925 $as_echo "yes" >&6; }
32926 tst_compi_gethostbyname_r="yes"
32927 tst_nargs_gethostbyname_r="3"
32931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32932 $as_echo "no" >&6; }
32933 tst_compi_gethostbyname_r="no"
32936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32938 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
32940 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
32941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32942 /* end confdefs.h. */
32945 $curl_includes_netdb
32950 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
32958 if ac_fn_c_try_compile "$LINENO"; then :
32960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32961 $as_echo "yes" >&6; }
32962 tst_compi_gethostbyname_r="yes"
32963 tst_nargs_gethostbyname_r="5"
32967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32968 $as_echo "no" >&6; }
32969 tst_compi_gethostbyname_r="no"
32972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32974 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
32976 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
32977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32978 /* end confdefs.h. */
32981 $curl_includes_netdb
32986 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
32994 if ac_fn_c_try_compile "$LINENO"; then :
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32997 $as_echo "yes" >&6; }
32998 tst_compi_gethostbyname_r="yes"
32999 tst_nargs_gethostbyname_r="6"
33003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33004 $as_echo "no" >&6; }
33005 tst_compi_gethostbyname_r="no"
33008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33011 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33012 if test "$tst_compi_gethostbyname_r" = "yes"; then
33013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33014 $as_echo "yes" >&6; }
33016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33017 $as_echo "no" >&6; }
33021 if test "$tst_compi_gethostbyname_r" = "yes"; then
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33023 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33024 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33026 $as_echo "yes" >&6; }
33027 tst_allow_gethostbyname_r="yes"
33029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33030 $as_echo "no" >&6; }
33031 tst_allow_gethostbyname_r="no"
33035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33036 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33037 if test "$tst_links_gethostbyname_r" = "yes" &&
33038 test "$tst_proto_gethostbyname_r" = "yes" &&
33039 test "$tst_compi_gethostbyname_r" = "yes" &&
33040 test "$tst_allow_gethostbyname_r" = "yes"; then
33041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33042 $as_echo "yes" >&6; }
33044 cat >>confdefs.h <<_ACEOF
33045 #define HAVE_GETHOSTBYNAME_R 1
33049 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33051 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33053 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33055 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33057 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33059 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33063 curl_cv_func_gethostbyname_r="yes"
33065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33066 $as_echo "no" >&6; }
33067 curl_cv_func_gethostbyname_r="no"
33072 tst_links_gethostname="unknown"
33073 tst_proto_gethostname="unknown"
33074 tst_compi_gethostname="unknown"
33075 tst_allow_gethostname="unknown"
33077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33078 $as_echo_n "checking if gethostname can be linked... " >&6; }
33079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33080 /* end confdefs.h. */
33083 $curl_includes_winsock2
33084 $curl_includes_unistd
33089 if(0 != gethostname(0, 0))
33097 if ac_fn_c_try_link "$LINENO"; then :
33099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33100 $as_echo "yes" >&6; }
33101 tst_links_gethostname="yes"
33105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33106 $as_echo "no" >&6; }
33107 tst_links_gethostname="no"
33110 rm -f core conftest.err conftest.$ac_objext \
33111 conftest$ac_exeext conftest.$ac_ext
33113 if test "$tst_links_gethostname" = "yes"; then
33114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33115 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33117 /* end confdefs.h. */
33119 $curl_includes_winsock2
33120 $curl_includes_unistd
33123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33124 $EGREP "gethostname" >/dev/null 2>&1; then :
33126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33127 $as_echo "yes" >&6; }
33128 tst_proto_gethostname="yes"
33132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33133 $as_echo "no" >&6; }
33134 tst_proto_gethostname="no"
33141 if test "$tst_proto_gethostname" = "yes"; then
33142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33143 $as_echo_n "checking if gethostname is compilable... " >&6; }
33144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33145 /* end confdefs.h. */
33148 $curl_includes_winsock2
33149 $curl_includes_unistd
33154 if(0 != gethostname(0, 0))
33162 if ac_fn_c_try_compile "$LINENO"; then :
33164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33165 $as_echo "yes" >&6; }
33166 tst_compi_gethostname="yes"
33170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33171 $as_echo "no" >&6; }
33172 tst_compi_gethostname="no"
33175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33178 if test "$tst_compi_gethostname" = "yes"; then
33179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33180 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33181 tst_gethostname_type_arg2="unknown"
33182 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33183 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33184 if test "$tst_gethostname_type_arg2" = "unknown"; then
33185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33186 /* end confdefs.h. */
33189 $curl_includes_winsock2
33190 $curl_includes_unistd
33191 $curl_preprocess_callconv
33192 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33197 if(0 != gethostname(0, 0))
33205 if ac_fn_c_try_compile "$LINENO"; then :
33207 tst_gethostname_type_arg2="$tst_arg2"
33210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33215 $as_echo "$tst_gethostname_type_arg2" >&6; }
33216 if test "$tst_gethostname_type_arg2" != "unknown"; then
33218 cat >>confdefs.h <<_ACEOF
33219 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33225 if test "$tst_compi_gethostname" = "yes"; then
33226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33227 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33228 if test "x$curl_disallow_gethostname" != "xyes"; then
33229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33230 $as_echo "yes" >&6; }
33231 tst_allow_gethostname="yes"
33233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33234 $as_echo "no" >&6; }
33235 tst_allow_gethostname="no"
33239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33240 $as_echo_n "checking if gethostname might be used... " >&6; }
33241 if test "$tst_links_gethostname" = "yes" &&
33242 test "$tst_proto_gethostname" = "yes" &&
33243 test "$tst_compi_gethostname" = "yes" &&
33244 test "$tst_allow_gethostname" = "yes"; then
33245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33246 $as_echo "yes" >&6; }
33248 cat >>confdefs.h <<_ACEOF
33249 #define HAVE_GETHOSTNAME 1
33252 curl_cv_func_gethostname="yes"
33254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33255 $as_echo "no" >&6; }
33256 curl_cv_func_gethostname="no"
33261 tst_links_getifaddrs="unknown"
33262 tst_proto_getifaddrs="unknown"
33263 tst_compi_getifaddrs="unknown"
33264 tst_works_getifaddrs="unknown"
33265 tst_allow_getifaddrs="unknown"
33267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33268 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33270 /* end confdefs.h. */
33273 #define getifaddrs innocuous_getifaddrs
33275 # include <limits.h>
33277 # include <assert.h>
33283 char getifaddrs ();
33284 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33290 return getifaddrs ();
33296 if ac_fn_c_try_link "$LINENO"; then :
33298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33299 $as_echo "yes" >&6; }
33300 tst_links_getifaddrs="yes"
33304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33305 $as_echo "no" >&6; }
33306 tst_links_getifaddrs="no"
33309 rm -f core conftest.err conftest.$ac_objext \
33310 conftest$ac_exeext conftest.$ac_ext
33312 if test "$tst_links_getifaddrs" = "yes"; then
33313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33314 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33316 /* end confdefs.h. */
33318 $curl_includes_ifaddrs
33321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33322 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33325 $as_echo "yes" >&6; }
33326 tst_proto_getifaddrs="yes"
33330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33331 $as_echo "no" >&6; }
33332 tst_proto_getifaddrs="no"
33339 if test "$tst_proto_getifaddrs" = "yes"; then
33340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33341 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
33342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33343 /* end confdefs.h. */
33346 $curl_includes_ifaddrs
33351 if(0 != getifaddrs(0))
33359 if ac_fn_c_try_compile "$LINENO"; then :
33361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33362 $as_echo "yes" >&6; }
33363 tst_compi_getifaddrs="yes"
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33368 $as_echo "no" >&6; }
33369 tst_compi_getifaddrs="no"
33372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33375 if test "x$cross_compiling" != "xyes" &&
33376 test "$tst_compi_getifaddrs" = "yes"; then
33377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33378 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
33379 if test "$cross_compiling" = yes; then :
33380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33382 as_fn_error $? "cannot run test program while cross compiling
33383 See \`config.log' for more details" "$LINENO" 5; }
33385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33386 /* end confdefs.h. */
33389 $curl_includes_stdlib
33390 $curl_includes_ifaddrs
33395 struct ifaddrs *ifa = 0;
33398 error = getifaddrs(&ifa);
33400 exit(1); /* fail */
33409 if ac_fn_c_try_run "$LINENO"; then :
33411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33412 $as_echo "yes" >&6; }
33413 tst_works_getifaddrs="yes"
33417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33418 $as_echo "no" >&6; }
33419 tst_works_getifaddrs="no"
33422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33423 conftest.$ac_objext conftest.beam conftest.$ac_ext
33428 if test "$tst_compi_getifaddrs" = "yes" &&
33429 test "$tst_works_getifaddrs" != "no"; then
33430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33431 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33432 if test "x$curl_disallow_getifaddrs" != "xyes"; then
33433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33434 $as_echo "yes" >&6; }
33435 tst_allow_getifaddrs="yes"
33437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33438 $as_echo "no" >&6; }
33439 tst_allow_getifaddrs="no"
33443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33444 $as_echo_n "checking if getifaddrs might be used... " >&6; }
33445 if test "$tst_links_getifaddrs" = "yes" &&
33446 test "$tst_proto_getifaddrs" = "yes" &&
33447 test "$tst_compi_getifaddrs" = "yes" &&
33448 test "$tst_allow_getifaddrs" = "yes" &&
33449 test "$tst_works_getifaddrs" != "no"; then
33450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33451 $as_echo "yes" >&6; }
33453 cat >>confdefs.h <<_ACEOF
33454 #define HAVE_GETIFADDRS 1
33457 curl_cv_func_getifaddrs="yes"
33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33460 $as_echo "no" >&6; }
33461 curl_cv_func_getifaddrs="no"
33466 tst_links_getservbyport_r="unknown"
33467 tst_proto_getservbyport_r="unknown"
33468 tst_compi_getservbyport_r="unknown"
33469 tst_allow_getservbyport_r="unknown"
33470 tst_nargs_getservbyport_r="unknown"
33472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33473 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33475 /* end confdefs.h. */
33478 #define getservbyport_r innocuous_getservbyport_r
33480 # include <limits.h>
33482 # include <assert.h>
33484 #undef getservbyport_r
33488 char getservbyport_r ();
33489 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33495 return getservbyport_r ();
33501 if ac_fn_c_try_link "$LINENO"; then :
33503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33504 $as_echo "yes" >&6; }
33505 tst_links_getservbyport_r="yes"
33509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33510 $as_echo "no" >&6; }
33511 tst_links_getservbyport_r="no"
33514 rm -f core conftest.err conftest.$ac_objext \
33515 conftest$ac_exeext conftest.$ac_ext
33517 if test "$tst_links_getservbyport_r" = "yes"; then
33518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33519 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33521 /* end confdefs.h. */
33523 $curl_includes_netdb
33526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33527 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33530 $as_echo "yes" >&6; }
33531 tst_proto_getservbyport_r="yes"
33535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33536 $as_echo "no" >&6; }
33537 tst_proto_getservbyport_r="no"
33544 if test "$tst_proto_getservbyport_r" = "yes"; then
33545 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
33547 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
33548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33549 /* end confdefs.h. */
33552 $curl_includes_netdb
33557 if(0 != getservbyport_r(0, 0, 0, 0))
33565 if ac_fn_c_try_compile "$LINENO"; then :
33567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33568 $as_echo "yes" >&6; }
33569 tst_compi_getservbyport_r="yes"
33570 tst_nargs_getservbyport_r="4"
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33575 $as_echo "no" >&6; }
33576 tst_compi_getservbyport_r="no"
33579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33581 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
33583 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
33584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33585 /* end confdefs.h. */
33588 $curl_includes_netdb
33593 if(0 != getservbyport_r(0, 0, 0, 0, 0))
33601 if ac_fn_c_try_compile "$LINENO"; then :
33603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33604 $as_echo "yes" >&6; }
33605 tst_compi_getservbyport_r="yes"
33606 tst_nargs_getservbyport_r="5"
33610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33611 $as_echo "no" >&6; }
33612 tst_compi_getservbyport_r="no"
33615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33617 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
33619 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
33620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33621 /* end confdefs.h. */
33624 $curl_includes_netdb
33629 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
33637 if ac_fn_c_try_compile "$LINENO"; then :
33639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33640 $as_echo "yes" >&6; }
33641 tst_compi_getservbyport_r="yes"
33642 tst_nargs_getservbyport_r="6"
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33647 $as_echo "no" >&6; }
33648 tst_compi_getservbyport_r="no"
33651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
33654 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
33655 if test "$tst_compi_getservbyport_r" = "yes"; then
33656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33657 $as_echo "yes" >&6; }
33659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33660 $as_echo "no" >&6; }
33664 if test "$tst_compi_getservbyport_r" = "yes"; then
33665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
33666 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
33667 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
33668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33669 $as_echo "yes" >&6; }
33670 tst_allow_getservbyport_r="yes"
33672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33673 $as_echo "no" >&6; }
33674 tst_allow_getservbyport_r="no"
33678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
33679 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
33680 if test "$tst_links_getservbyport_r" = "yes" &&
33681 test "$tst_proto_getservbyport_r" = "yes" &&
33682 test "$tst_compi_getservbyport_r" = "yes" &&
33683 test "$tst_allow_getservbyport_r" = "yes"; then
33684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33685 $as_echo "yes" >&6; }
33687 cat >>confdefs.h <<_ACEOF
33688 #define HAVE_GETSERVBYPORT_R 1
33692 cat >>confdefs.h <<_ACEOF
33693 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
33696 if test "$tst_nargs_getservbyport_r" -eq "4"; then
33698 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
33702 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
33705 curl_cv_func_getservbyport_r="yes"
33707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33708 $as_echo "no" >&6; }
33709 curl_cv_func_getservbyport_r="no"
33713 curl_includes_time="\
33714 /* includes start */
33715 #ifdef HAVE_SYS_TYPES_H
33716 # include <sys/types.h>
33718 #ifdef HAVE_SYS_TIME_H
33719 # include <sys/time.h>
33720 # ifdef TIME_WITH_SYS_TIME
33724 # ifdef HAVE_TIME_H
33728 /* includes end */"
33729 for ac_header in sys/types.h sys/time.h time.h
33731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33732 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
33734 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33735 cat >>confdefs.h <<_ACEOF
33736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33746 tst_links_gmtime_r="unknown"
33747 tst_proto_gmtime_r="unknown"
33748 tst_compi_gmtime_r="unknown"
33749 tst_works_gmtime_r="unknown"
33750 tst_allow_gmtime_r="unknown"
33752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
33753 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
33754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33755 /* end confdefs.h. */
33758 #define gmtime_r innocuous_gmtime_r
33760 # include <limits.h>
33762 # include <assert.h>
33769 #if defined __stub_gmtime_r || defined __stub___gmtime_r
33775 return gmtime_r ();
33781 if ac_fn_c_try_link "$LINENO"; then :
33783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33784 $as_echo "yes" >&6; }
33785 tst_links_gmtime_r="yes"
33789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33790 $as_echo "no" >&6; }
33791 tst_links_gmtime_r="no"
33794 rm -f core conftest.err conftest.$ac_objext \
33795 conftest$ac_exeext conftest.$ac_ext
33797 if test "$tst_links_gmtime_r" = "yes"; then
33798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
33799 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
33800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33801 /* end confdefs.h. */
33803 $curl_includes_time
33806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33807 $EGREP "gmtime_r" >/dev/null 2>&1; then :
33809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33810 $as_echo "yes" >&6; }
33811 tst_proto_gmtime_r="yes"
33815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33816 $as_echo "no" >&6; }
33817 tst_proto_gmtime_r="no"
33824 if test "$tst_proto_gmtime_r" = "yes"; then
33825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
33826 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
33827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33828 /* end confdefs.h. */
33831 $curl_includes_time
33836 if(0 != gmtime_r(0, 0))
33844 if ac_fn_c_try_compile "$LINENO"; then :
33846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33847 $as_echo "yes" >&6; }
33848 tst_compi_gmtime_r="yes"
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33853 $as_echo "no" >&6; }
33854 tst_compi_gmtime_r="no"
33857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33860 if test "x$cross_compiling" != "xyes" &&
33861 test "$tst_compi_gmtime_r" = "yes"; then
33862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
33863 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
33864 if test "$cross_compiling" = yes; then :
33865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33867 as_fn_error $? "cannot run test program while cross compiling
33868 See \`config.log' for more details" "$LINENO" 5; }
33870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33871 /* end confdefs.h. */
33874 $curl_includes_stdlib
33875 $curl_includes_time
33880 time_t local = 1170352587;
33881 struct tm *gmt = 0;
33883 gmt = gmtime_r(&local, &result);
33894 if ac_fn_c_try_run "$LINENO"; then :
33896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33897 $as_echo "yes" >&6; }
33898 tst_works_gmtime_r="yes"
33902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33903 $as_echo "no" >&6; }
33904 tst_works_gmtime_r="no"
33907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33908 conftest.$ac_objext conftest.beam conftest.$ac_ext
33913 if test "$tst_compi_gmtime_r" = "yes" &&
33914 test "$tst_works_gmtime_r" != "no"; then
33915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
33916 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
33917 if test "x$curl_disallow_gmtime_r" != "xyes"; then
33918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33919 $as_echo "yes" >&6; }
33920 tst_allow_gmtime_r="yes"
33922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33923 $as_echo "no" >&6; }
33924 tst_allow_gmtime_r="no"
33928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
33929 $as_echo_n "checking if gmtime_r might be used... " >&6; }
33930 if test "$tst_links_gmtime_r" = "yes" &&
33931 test "$tst_proto_gmtime_r" = "yes" &&
33932 test "$tst_compi_gmtime_r" = "yes" &&
33933 test "$tst_allow_gmtime_r" = "yes" &&
33934 test "$tst_works_gmtime_r" != "no"; then
33935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33936 $as_echo "yes" >&6; }
33938 cat >>confdefs.h <<_ACEOF
33939 #define HAVE_GMTIME_R 1
33942 curl_cv_func_gmtime_r="yes"
33944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33945 $as_echo "no" >&6; }
33946 curl_cv_func_gmtime_r="no"
33950 curl_includes_arpa_inet="\
33951 /* includes start */
33952 #ifdef HAVE_SYS_TYPES_H
33953 # include <sys/types.h>
33955 #ifdef HAVE_SYS_SOCKET_H
33956 # include <sys/socket.h>
33958 #ifdef HAVE_NETINET_IN_H
33959 # include <netinet/in.h>
33961 #ifdef HAVE_ARPA_INET_H
33962 # include <arpa/inet.h>
33964 #ifdef HAVE_WINSOCK2_H
33965 #include <winsock2.h>
33966 #include <ws2tcpip.h>
33968 /* includes end */"
33969 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
33971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33972 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
33974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33975 cat >>confdefs.h <<_ACEOF
33976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33986 tst_links_inet_ntoa_r="unknown"
33987 tst_proto_inet_ntoa_r="unknown"
33988 tst_compi_inet_ntoa_r="unknown"
33989 tst_allow_inet_ntoa_r="unknown"
33990 tst_nargs_inet_ntoa_r="unknown"
33992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
33993 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
33994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33995 /* end confdefs.h. */
33998 #define inet_ntoa_r innocuous_inet_ntoa_r
34000 # include <limits.h>
34002 # include <assert.h>
34008 char inet_ntoa_r ();
34009 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34015 return inet_ntoa_r ();
34021 if ac_fn_c_try_link "$LINENO"; then :
34023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34024 $as_echo "yes" >&6; }
34025 tst_links_inet_ntoa_r="yes"
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34030 $as_echo "no" >&6; }
34031 tst_links_inet_ntoa_r="no"
34034 rm -f core conftest.err conftest.$ac_objext \
34035 conftest$ac_exeext conftest.$ac_ext
34037 if test "$tst_links_inet_ntoa_r" = "yes"; then
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34039 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34041 /* end confdefs.h. */
34043 $curl_includes_arpa_inet
34046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34047 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34050 $as_echo "yes" >&6; }
34051 tst_proto_inet_ntoa_r="yes"
34055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34056 $as_echo "no" >&6; }
34057 tst_proto_inet_ntoa_r="no"
34064 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34065 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34067 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34069 /* end confdefs.h. */
34072 $curl_includes_arpa_inet
34077 struct in_addr addr;
34078 if(0 != inet_ntoa_r(addr, 0))
34086 if ac_fn_c_try_compile "$LINENO"; then :
34088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34089 $as_echo "yes" >&6; }
34090 tst_compi_inet_ntoa_r="yes"
34091 tst_nargs_inet_ntoa_r="2"
34095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34096 $as_echo "no" >&6; }
34097 tst_compi_inet_ntoa_r="no"
34100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34102 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34104 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34106 /* end confdefs.h. */
34109 $curl_includes_arpa_inet
34114 struct in_addr addr;
34115 if(0 != inet_ntoa_r(addr, 0, 0))
34123 if ac_fn_c_try_compile "$LINENO"; then :
34125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34126 $as_echo "yes" >&6; }
34127 tst_compi_inet_ntoa_r="yes"
34128 tst_nargs_inet_ntoa_r="3"
34132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34133 $as_echo "no" >&6; }
34134 tst_compi_inet_ntoa_r="no"
34137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34140 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34141 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34143 $as_echo "yes" >&6; }
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34146 $as_echo "no" >&6; }
34150 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34152 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34153 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34155 $as_echo "yes" >&6; }
34156 tst_allow_inet_ntoa_r="yes"
34158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34159 $as_echo "no" >&6; }
34160 tst_allow_inet_ntoa_r="no"
34164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34165 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34166 if test "$tst_links_inet_ntoa_r" = "yes" &&
34167 test "$tst_proto_inet_ntoa_r" = "yes" &&
34168 test "$tst_compi_inet_ntoa_r" = "yes" &&
34169 test "$tst_allow_inet_ntoa_r" = "yes"; then
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34171 $as_echo "yes" >&6; }
34173 cat >>confdefs.h <<_ACEOF
34174 #define HAVE_INET_NTOA_R 1
34178 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34180 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34182 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34184 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34188 curl_cv_func_inet_ntoa_r="yes"
34190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34191 $as_echo "no" >&6; }
34192 curl_cv_func_inet_ntoa_r="no"
34197 tst_links_inet_ntop="unknown"
34198 tst_proto_inet_ntop="unknown"
34199 tst_compi_inet_ntop="unknown"
34200 tst_works_inet_ntop="unknown"
34201 tst_allow_inet_ntop="unknown"
34203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34204 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34206 /* end confdefs.h. */
34209 #define inet_ntop innocuous_inet_ntop
34211 # include <limits.h>
34213 # include <assert.h>
34220 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34226 return inet_ntop ();
34232 if ac_fn_c_try_link "$LINENO"; then :
34234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34235 $as_echo "yes" >&6; }
34236 tst_links_inet_ntop="yes"
34240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34241 $as_echo "no" >&6; }
34242 tst_links_inet_ntop="no"
34245 rm -f core conftest.err conftest.$ac_objext \
34246 conftest$ac_exeext conftest.$ac_ext
34248 if test "$tst_links_inet_ntop" = "yes"; then
34249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34250 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34252 /* end confdefs.h. */
34254 $curl_includes_arpa_inet
34257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34258 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34261 $as_echo "yes" >&6; }
34262 tst_proto_inet_ntop="yes"
34266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34267 $as_echo "no" >&6; }
34268 tst_proto_inet_ntop="no"
34275 if test "$tst_proto_inet_ntop" = "yes"; then
34276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34277 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34279 /* end confdefs.h. */
34282 $curl_includes_arpa_inet
34287 if(0 != inet_ntop(0, 0, 0, 0))
34295 if ac_fn_c_try_compile "$LINENO"; then :
34297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34298 $as_echo "yes" >&6; }
34299 tst_compi_inet_ntop="yes"
34303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34304 $as_echo "no" >&6; }
34305 tst_compi_inet_ntop="no"
34308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34311 if test "x$cross_compiling" != "xyes" &&
34312 test "$tst_compi_inet_ntop" = "yes"; then
34313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34314 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
34315 if test "$cross_compiling" = yes; then :
34316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34318 as_fn_error $? "cannot run test program while cross compiling
34319 See \`config.log' for more details" "$LINENO" 5; }
34321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34322 /* end confdefs.h. */
34325 $curl_includes_stdlib
34326 $curl_includes_arpa_inet
34327 $curl_includes_string
34332 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34333 char ipv4res[sizeof "255.255.255.255"];
34334 unsigned char ipv6a[26];
34335 unsigned char ipv4a[5];
34346 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34348 exit(1); /* fail */
34349 if(ipv4ptr != ipv4res)
34350 exit(1); /* fail */
34352 exit(1); /* fail */
34353 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34354 exit(1); /* fail */
34357 memset(ipv6a, 0, sizeof(ipv6a));
34370 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34372 exit(1); /* fail */
34373 if(ipv6ptr != ipv6res)
34374 exit(1); /* fail */
34376 exit(1); /* fail */
34377 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34378 exit(1); /* fail */
34387 if ac_fn_c_try_run "$LINENO"; then :
34389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34390 $as_echo "yes" >&6; }
34391 tst_works_inet_ntop="yes"
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34396 $as_echo "no" >&6; }
34397 tst_works_inet_ntop="no"
34400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34401 conftest.$ac_objext conftest.beam conftest.$ac_ext
34406 if test "$tst_compi_inet_ntop" = "yes" &&
34407 test "$tst_works_inet_ntop" != "no"; then
34408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34409 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34410 if test "x$curl_disallow_inet_ntop" != "xyes"; then
34411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34412 $as_echo "yes" >&6; }
34413 tst_allow_inet_ntop="yes"
34415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34416 $as_echo "no" >&6; }
34417 tst_allow_inet_ntop="no"
34421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34422 $as_echo_n "checking if inet_ntop might be used... " >&6; }
34423 if test "$tst_links_inet_ntop" = "yes" &&
34424 test "$tst_proto_inet_ntop" = "yes" &&
34425 test "$tst_compi_inet_ntop" = "yes" &&
34426 test "$tst_allow_inet_ntop" = "yes" &&
34427 test "$tst_works_inet_ntop" != "no"; then
34428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34429 $as_echo "yes" >&6; }
34431 cat >>confdefs.h <<_ACEOF
34432 #define HAVE_INET_NTOP 1
34435 curl_cv_func_inet_ntop="yes"
34437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34438 $as_echo "no" >&6; }
34439 curl_cv_func_inet_ntop="no"
34444 tst_links_inet_pton="unknown"
34445 tst_proto_inet_pton="unknown"
34446 tst_compi_inet_pton="unknown"
34447 tst_works_inet_pton="unknown"
34448 tst_allow_inet_pton="unknown"
34450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34451 $as_echo_n "checking if inet_pton can be linked... " >&6; }
34452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34453 /* end confdefs.h. */
34456 #define inet_pton innocuous_inet_pton
34458 # include <limits.h>
34460 # include <assert.h>
34467 #if defined __stub_inet_pton || defined __stub___inet_pton
34473 return inet_pton ();
34479 if ac_fn_c_try_link "$LINENO"; then :
34481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34482 $as_echo "yes" >&6; }
34483 tst_links_inet_pton="yes"
34487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34488 $as_echo "no" >&6; }
34489 tst_links_inet_pton="no"
34492 rm -f core conftest.err conftest.$ac_objext \
34493 conftest$ac_exeext conftest.$ac_ext
34495 if test "$tst_links_inet_pton" = "yes"; then
34496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34497 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
34498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34499 /* end confdefs.h. */
34501 $curl_includes_arpa_inet
34504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34505 $EGREP "inet_pton" >/dev/null 2>&1; then :
34507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34508 $as_echo "yes" >&6; }
34509 tst_proto_inet_pton="yes"
34513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34514 $as_echo "no" >&6; }
34515 tst_proto_inet_pton="no"
34522 if test "$tst_proto_inet_pton" = "yes"; then
34523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
34524 $as_echo_n "checking if inet_pton is compilable... " >&6; }
34525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34526 /* end confdefs.h. */
34529 $curl_includes_arpa_inet
34534 if(0 != inet_pton(0, 0, 0))
34542 if ac_fn_c_try_compile "$LINENO"; then :
34544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34545 $as_echo "yes" >&6; }
34546 tst_compi_inet_pton="yes"
34550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34551 $as_echo "no" >&6; }
34552 tst_compi_inet_pton="no"
34555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34558 if test "x$cross_compiling" != "xyes" &&
34559 test "$tst_compi_inet_pton" = "yes"; then
34560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
34561 $as_echo_n "checking if inet_pton seems to work... " >&6; }
34562 if test "$cross_compiling" = yes; then :
34563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34565 as_fn_error $? "cannot run test program while cross compiling
34566 See \`config.log' for more details" "$LINENO" 5; }
34568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34569 /* end confdefs.h. */
34572 $curl_includes_stdlib
34573 $curl_includes_arpa_inet
34574 $curl_includes_string
34579 unsigned char ipv6a[16+1];
34580 unsigned char ipv4a[4+1];
34581 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
34582 const char *ipv4src = "192.168.100.1";
34584 memset(ipv4a, 1, sizeof(ipv4a));
34585 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
34586 exit(1); /* fail */
34588 if( (ipv4a[0] != 0xc0) ||
34589 (ipv4a[1] != 0xa8) ||
34590 (ipv4a[2] != 0x64) ||
34591 (ipv4a[3] != 0x01) ||
34592 (ipv4a[4] != 0x01) )
34593 exit(1); /* fail */
34595 memset(ipv6a, 1, sizeof(ipv6a));
34596 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
34597 exit(1); /* fail */
34599 if( (ipv6a[0] != 0xfe) ||
34600 (ipv6a[1] != 0x80) ||
34601 (ipv6a[8] != 0x02) ||
34602 (ipv6a[9] != 0x14) ||
34603 (ipv6a[10] != 0x4f) ||
34604 (ipv6a[11] != 0xff) ||
34605 (ipv6a[12] != 0xfe) ||
34606 (ipv6a[13] != 0x0b) ||
34607 (ipv6a[14] != 0x76) ||
34608 (ipv6a[15] != 0xc8) ||
34609 (ipv6a[16] != 0x01) )
34610 exit(1); /* fail */
34612 if( (ipv6a[2] != 0x0) ||
34613 (ipv6a[3] != 0x0) ||
34614 (ipv6a[4] != 0x0) ||
34615 (ipv6a[5] != 0x0) ||
34616 (ipv6a[6] != 0x0) ||
34617 (ipv6a[7] != 0x0) )
34618 exit(1); /* fail */
34627 if ac_fn_c_try_run "$LINENO"; then :
34629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34630 $as_echo "yes" >&6; }
34631 tst_works_inet_pton="yes"
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34636 $as_echo "no" >&6; }
34637 tst_works_inet_pton="no"
34640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34641 conftest.$ac_objext conftest.beam conftest.$ac_ext
34646 if test "$tst_compi_inet_pton" = "yes" &&
34647 test "$tst_works_inet_pton" != "no"; then
34648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
34649 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
34650 if test "x$curl_disallow_inet_pton" != "xyes"; then
34651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34652 $as_echo "yes" >&6; }
34653 tst_allow_inet_pton="yes"
34655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34656 $as_echo "no" >&6; }
34657 tst_allow_inet_pton="no"
34661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
34662 $as_echo_n "checking if inet_pton might be used... " >&6; }
34663 if test "$tst_links_inet_pton" = "yes" &&
34664 test "$tst_proto_inet_pton" = "yes" &&
34665 test "$tst_compi_inet_pton" = "yes" &&
34666 test "$tst_allow_inet_pton" = "yes" &&
34667 test "$tst_works_inet_pton" != "no"; then
34668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34669 $as_echo "yes" >&6; }
34671 cat >>confdefs.h <<_ACEOF
34672 #define HAVE_INET_PTON 1
34675 curl_cv_func_inet_pton="yes"
34677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34678 $as_echo "no" >&6; }
34679 curl_cv_func_inet_pton="no"
34683 curl_includes_stropts="\
34684 /* includes start */
34685 #ifdef HAVE_SYS_TYPES_H
34686 # include <sys/types.h>
34688 #ifdef HAVE_UNISTD_H
34689 # include <unistd.h>
34691 #ifdef HAVE_SYS_SOCKET_H
34692 # include <sys/socket.h>
34694 #ifdef HAVE_SYS_IOCTL_H
34695 # include <sys/ioctl.h>
34697 #ifdef HAVE_STROPTS_H
34698 # include <stropts.h>
34700 /* includes end */"
34701 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
34703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
34706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34707 cat >>confdefs.h <<_ACEOF
34708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34718 tst_links_ioctl="unknown"
34719 tst_proto_ioctl="unknown"
34720 tst_compi_ioctl="unknown"
34721 tst_allow_ioctl="unknown"
34723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
34724 $as_echo_n "checking if ioctl can be linked... " >&6; }
34725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34726 /* end confdefs.h. */
34729 #define ioctl innocuous_ioctl
34731 # include <limits.h>
34733 # include <assert.h>
34740 #if defined __stub_ioctl || defined __stub___ioctl
34752 if ac_fn_c_try_link "$LINENO"; then :
34754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34755 $as_echo "yes" >&6; }
34756 tst_links_ioctl="yes"
34760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34761 $as_echo "no" >&6; }
34762 tst_links_ioctl="no"
34765 rm -f core conftest.err conftest.$ac_objext \
34766 conftest$ac_exeext conftest.$ac_ext
34768 if test "$tst_links_ioctl" = "yes"; then
34769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
34770 $as_echo_n "checking if ioctl is prototyped... " >&6; }
34771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34772 /* end confdefs.h. */
34774 $curl_includes_stropts
34777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34778 $EGREP "ioctl" >/dev/null 2>&1; then :
34780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34781 $as_echo "yes" >&6; }
34782 tst_proto_ioctl="yes"
34786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34787 $as_echo "no" >&6; }
34788 tst_proto_ioctl="no"
34795 if test "$tst_proto_ioctl" = "yes"; then
34796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
34797 $as_echo_n "checking if ioctl is compilable... " >&6; }
34798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34799 /* end confdefs.h. */
34802 $curl_includes_stropts
34807 if(0 != ioctl(0, 0, 0))
34815 if ac_fn_c_try_compile "$LINENO"; then :
34817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34818 $as_echo "yes" >&6; }
34819 tst_compi_ioctl="yes"
34823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34824 $as_echo "no" >&6; }
34825 tst_compi_ioctl="no"
34828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34831 if test "$tst_compi_ioctl" = "yes"; then
34832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
34833 $as_echo_n "checking if ioctl usage allowed... " >&6; }
34834 if test "x$curl_disallow_ioctl" != "xyes"; then
34835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34836 $as_echo "yes" >&6; }
34837 tst_allow_ioctl="yes"
34839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34840 $as_echo "no" >&6; }
34841 tst_allow_ioctl="no"
34845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
34846 $as_echo_n "checking if ioctl might be used... " >&6; }
34847 if test "$tst_links_ioctl" = "yes" &&
34848 test "$tst_proto_ioctl" = "yes" &&
34849 test "$tst_compi_ioctl" = "yes" &&
34850 test "$tst_allow_ioctl" = "yes"; then
34851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34852 $as_echo "yes" >&6; }
34854 cat >>confdefs.h <<_ACEOF
34855 #define HAVE_IOCTL 1
34858 curl_cv_func_ioctl="yes"
34861 tst_compi_ioctl_fionbio="unknown"
34862 tst_allow_ioctl_fionbio="unknown"
34864 if test "$curl_cv_func_ioctl" = "yes"; then
34865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
34866 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
34867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34868 /* end confdefs.h. */
34871 $curl_includes_stropts
34877 if(0 != ioctl(0, FIONBIO, &flags))
34885 if ac_fn_c_try_compile "$LINENO"; then :
34887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34888 $as_echo "yes" >&6; }
34889 tst_compi_ioctl_fionbio="yes"
34893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34894 $as_echo "no" >&6; }
34895 tst_compi_ioctl_fionbio="no"
34898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34901 if test "$tst_compi_ioctl_fionbio" = "yes"; then
34902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
34903 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
34904 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
34905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34906 $as_echo "yes" >&6; }
34907 tst_allow_ioctl_fionbio="yes"
34909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34910 $as_echo "no" >&6; }
34911 tst_allow_ioctl_fionbio="no"
34915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
34916 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
34917 if test "$tst_compi_ioctl_fionbio" = "yes" &&
34918 test "$tst_allow_ioctl_fionbio" = "yes"; then
34919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34920 $as_echo "yes" >&6; }
34922 cat >>confdefs.h <<_ACEOF
34923 #define HAVE_IOCTL_FIONBIO 1
34926 curl_cv_func_ioctl_fionbio="yes"
34928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34929 $as_echo "no" >&6; }
34930 curl_cv_func_ioctl_fionbio="no"
34935 tst_compi_ioctl_siocgifaddr="unknown"
34936 tst_allow_ioctl_siocgifaddr="unknown"
34938 if test "$curl_cv_func_ioctl" = "yes"; then
34939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
34940 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
34941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34942 /* end confdefs.h. */
34945 $curl_includes_stropts
34946 #include <net/if.h>
34952 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
34960 if ac_fn_c_try_compile "$LINENO"; then :
34962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34963 $as_echo "yes" >&6; }
34964 tst_compi_ioctl_siocgifaddr="yes"
34968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34969 $as_echo "no" >&6; }
34970 tst_compi_ioctl_siocgifaddr="no"
34973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34976 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
34977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
34978 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
34979 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
34980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34981 $as_echo "yes" >&6; }
34982 tst_allow_ioctl_siocgifaddr="yes"
34984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34985 $as_echo "no" >&6; }
34986 tst_allow_ioctl_siocgifaddr="no"
34990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
34991 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
34992 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
34993 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
34994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34995 $as_echo "yes" >&6; }
34997 cat >>confdefs.h <<_ACEOF
34998 #define HAVE_IOCTL_SIOCGIFADDR 1
35001 curl_cv_func_ioctl_siocgifaddr="yes"
35003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35004 $as_echo "no" >&6; }
35005 curl_cv_func_ioctl_siocgifaddr="no"
35009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35010 $as_echo "no" >&6; }
35011 curl_cv_func_ioctl="no"
35016 tst_links_ioctlsocket="unknown"
35017 tst_proto_ioctlsocket="unknown"
35018 tst_compi_ioctlsocket="unknown"
35019 tst_allow_ioctlsocket="unknown"
35021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35022 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35024 /* end confdefs.h. */
35027 $curl_includes_winsock2
35032 if(0 != ioctlsocket(0, 0, 0))
35040 if ac_fn_c_try_link "$LINENO"; then :
35042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35043 $as_echo "yes" >&6; }
35044 tst_links_ioctlsocket="yes"
35048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35049 $as_echo "no" >&6; }
35050 tst_links_ioctlsocket="no"
35053 rm -f core conftest.err conftest.$ac_objext \
35054 conftest$ac_exeext conftest.$ac_ext
35056 if test "$tst_links_ioctlsocket" = "yes"; then
35057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35058 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35060 /* end confdefs.h. */
35062 $curl_includes_winsock2
35065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35066 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35069 $as_echo "yes" >&6; }
35070 tst_proto_ioctlsocket="yes"
35074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35075 $as_echo "no" >&6; }
35076 tst_proto_ioctlsocket="no"
35083 if test "$tst_proto_ioctlsocket" = "yes"; then
35084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35085 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35087 /* end confdefs.h. */
35090 $curl_includes_winsock2
35095 if(0 != ioctlsocket(0, 0, 0))
35103 if ac_fn_c_try_compile "$LINENO"; then :
35105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35106 $as_echo "yes" >&6; }
35107 tst_compi_ioctlsocket="yes"
35111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35112 $as_echo "no" >&6; }
35113 tst_compi_ioctlsocket="no"
35116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35119 if test "$tst_compi_ioctlsocket" = "yes"; then
35120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35121 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35122 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35124 $as_echo "yes" >&6; }
35125 tst_allow_ioctlsocket="yes"
35127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35128 $as_echo "no" >&6; }
35129 tst_allow_ioctlsocket="no"
35133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35134 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35135 if test "$tst_links_ioctlsocket" = "yes" &&
35136 test "$tst_proto_ioctlsocket" = "yes" &&
35137 test "$tst_compi_ioctlsocket" = "yes" &&
35138 test "$tst_allow_ioctlsocket" = "yes"; then
35139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35140 $as_echo "yes" >&6; }
35142 cat >>confdefs.h <<_ACEOF
35143 #define HAVE_IOCTLSOCKET 1
35146 curl_cv_func_ioctlsocket="yes"
35149 tst_compi_ioctlsocket_fionbio="unknown"
35150 tst_allow_ioctlsocket_fionbio="unknown"
35152 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35154 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35156 /* end confdefs.h. */
35159 $curl_includes_winsock2
35165 if(0 != ioctlsocket(0, FIONBIO, &flags))
35173 if ac_fn_c_try_compile "$LINENO"; then :
35175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35176 $as_echo "yes" >&6; }
35177 tst_compi_ioctlsocket_fionbio="yes"
35181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35182 $as_echo "no" >&6; }
35183 tst_compi_ioctlsocket_fionbio="no"
35186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35189 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35191 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35192 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35194 $as_echo "yes" >&6; }
35195 tst_allow_ioctlsocket_fionbio="yes"
35197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35198 $as_echo "no" >&6; }
35199 tst_allow_ioctlsocket_fionbio="no"
35203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35204 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35205 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35206 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35208 $as_echo "yes" >&6; }
35210 cat >>confdefs.h <<_ACEOF
35211 #define HAVE_IOCTLSOCKET_FIONBIO 1
35214 curl_cv_func_ioctlsocket_fionbio="yes"
35216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35217 $as_echo "no" >&6; }
35218 curl_cv_func_ioctlsocket_fionbio="no"
35222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35223 $as_echo "no" >&6; }
35224 curl_cv_func_ioctlsocket="no"
35229 tst_links_ioctlsocket_camel="unknown"
35230 tst_proto_ioctlsocket_camel="unknown"
35231 tst_compi_ioctlsocket_camel="unknown"
35232 tst_allow_ioctlsocket_camel="unknown"
35234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35235 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35237 /* end confdefs.h. */
35240 #define IoctlSocket innocuous_IoctlSocket
35242 # include <limits.h>
35244 # include <assert.h>
35250 char IoctlSocket ();
35251 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35257 return IoctlSocket ();
35263 if ac_fn_c_try_link "$LINENO"; then :
35265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35266 $as_echo "yes" >&6; }
35267 tst_links_ioctlsocket_camel="yes"
35271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35272 $as_echo "no" >&6; }
35273 tst_links_ioctlsocket_camel="no"
35276 rm -f core conftest.err conftest.$ac_objext \
35277 conftest$ac_exeext conftest.$ac_ext
35279 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35281 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35283 /* end confdefs.h. */
35285 $curl_includes_stropts
35288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35289 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35292 $as_echo "yes" >&6; }
35293 tst_proto_ioctlsocket_camel="yes"
35297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35298 $as_echo "no" >&6; }
35299 tst_proto_ioctlsocket_camel="no"
35306 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35308 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35310 /* end confdefs.h. */
35313 $curl_includes_stropts
35318 if(0 != IoctlSocket(0, 0, 0))
35326 if ac_fn_c_try_compile "$LINENO"; then :
35328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35329 $as_echo "yes" >&6; }
35330 tst_compi_ioctlsocket_camel="yes"
35334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35335 $as_echo "no" >&6; }
35336 tst_compi_ioctlsocket_camel="no"
35339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35342 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35344 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35345 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35347 $as_echo "yes" >&6; }
35348 tst_allow_ioctlsocket_camel="yes"
35350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35351 $as_echo "no" >&6; }
35352 tst_allow_ioctlsocket_camel="no"
35356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35357 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
35358 if test "$tst_links_ioctlsocket_camel" = "yes" &&
35359 test "$tst_proto_ioctlsocket_camel" = "yes" &&
35360 test "$tst_compi_ioctlsocket_camel" = "yes" &&
35361 test "$tst_allow_ioctlsocket_camel" = "yes"; then
35362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35363 $as_echo "yes" >&6; }
35365 cat >>confdefs.h <<_ACEOF
35366 #define HAVE_IOCTLSOCKET_CAMEL 1
35369 curl_cv_func_ioctlsocket_camel="yes"
35372 tst_compi_ioctlsocket_camel_fionbio="unknown"
35373 tst_allow_ioctlsocket_camel_fionbio="unknown"
35375 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35377 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35379 /* end confdefs.h. */
35382 $curl_includes_stropts
35388 if(0 != ioctlsocket(0, FIONBIO, &flags))
35396 if ac_fn_c_try_compile "$LINENO"; then :
35398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35399 $as_echo "yes" >&6; }
35400 tst_compi_ioctlsocket_camel_fionbio="yes"
35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35405 $as_echo "no" >&6; }
35406 tst_compi_ioctlsocket_camel_fionbio="no"
35409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35412 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35414 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35415 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35417 $as_echo "yes" >&6; }
35418 tst_allow_ioctlsocket_camel_fionbio="yes"
35420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35421 $as_echo "no" >&6; }
35422 tst_allow_ioctlsocket_camel_fionbio="no"
35426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35427 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35428 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35429 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35431 $as_echo "yes" >&6; }
35433 cat >>confdefs.h <<_ACEOF
35434 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35437 curl_cv_func_ioctlsocket_camel_fionbio="yes"
35439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35440 $as_echo "no" >&6; }
35441 curl_cv_func_ioctlsocket_camel_fionbio="no"
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446 $as_echo "no" >&6; }
35447 curl_cv_func_ioctlsocket_camel="no"
35452 tst_links_localtime_r="unknown"
35453 tst_proto_localtime_r="unknown"
35454 tst_compi_localtime_r="unknown"
35455 tst_works_localtime_r="unknown"
35456 tst_allow_localtime_r="unknown"
35458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35459 $as_echo_n "checking if localtime_r can be linked... " >&6; }
35460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35461 /* end confdefs.h. */
35464 #define localtime_r innocuous_localtime_r
35466 # include <limits.h>
35468 # include <assert.h>
35474 char localtime_r ();
35475 #if defined __stub_localtime_r || defined __stub___localtime_r
35481 return localtime_r ();
35487 if ac_fn_c_try_link "$LINENO"; then :
35489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35490 $as_echo "yes" >&6; }
35491 tst_links_localtime_r="yes"
35495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35496 $as_echo "no" >&6; }
35497 tst_links_localtime_r="no"
35500 rm -f core conftest.err conftest.$ac_objext \
35501 conftest$ac_exeext conftest.$ac_ext
35503 if test "$tst_links_localtime_r" = "yes"; then
35504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35505 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
35506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35507 /* end confdefs.h. */
35509 $curl_includes_time
35512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35513 $EGREP "localtime_r" >/dev/null 2>&1; then :
35515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35516 $as_echo "yes" >&6; }
35517 tst_proto_localtime_r="yes"
35521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35522 $as_echo "no" >&6; }
35523 tst_proto_localtime_r="no"
35530 if test "$tst_proto_localtime_r" = "yes"; then
35531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
35532 $as_echo_n "checking if localtime_r is compilable... " >&6; }
35533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35534 /* end confdefs.h. */
35537 $curl_includes_time
35542 if(0 != localtime_r(0, 0))
35550 if ac_fn_c_try_compile "$LINENO"; then :
35552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35553 $as_echo "yes" >&6; }
35554 tst_compi_localtime_r="yes"
35558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35559 $as_echo "no" >&6; }
35560 tst_compi_localtime_r="no"
35563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35566 if test "x$cross_compiling" != "xyes" &&
35567 test "$tst_compi_localtime_r" = "yes"; then
35568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
35569 $as_echo_n "checking if localtime_r seems to work... " >&6; }
35570 if test "$cross_compiling" = yes; then :
35571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35573 as_fn_error $? "cannot run test program while cross compiling
35574 See \`config.log' for more details" "$LINENO" 5; }
35576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35577 /* end confdefs.h. */
35580 $curl_includes_stdlib
35581 $curl_includes_time
35586 time_t clock = 1170352587;
35587 struct tm *tmp = 0;
35589 tmp = localtime_r(&clock, &result);
35600 if ac_fn_c_try_run "$LINENO"; then :
35602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35603 $as_echo "yes" >&6; }
35604 tst_works_localtime_r="yes"
35608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35609 $as_echo "no" >&6; }
35610 tst_works_localtime_r="no"
35613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35614 conftest.$ac_objext conftest.beam conftest.$ac_ext
35619 if test "$tst_compi_localtime_r" = "yes" &&
35620 test "$tst_works_localtime_r" != "no"; then
35621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
35622 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
35623 if test "x$curl_disallow_localtime_r" != "xyes"; then
35624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35625 $as_echo "yes" >&6; }
35626 tst_allow_localtime_r="yes"
35628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35629 $as_echo "no" >&6; }
35630 tst_allow_localtime_r="no"
35634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
35635 $as_echo_n "checking if localtime_r might be used... " >&6; }
35636 if test "$tst_links_localtime_r" = "yes" &&
35637 test "$tst_proto_localtime_r" = "yes" &&
35638 test "$tst_compi_localtime_r" = "yes" &&
35639 test "$tst_allow_localtime_r" = "yes" &&
35640 test "$tst_works_localtime_r" != "no"; then
35641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35642 $as_echo "yes" >&6; }
35644 cat >>confdefs.h <<_ACEOF
35645 #define HAVE_LOCALTIME_R 1
35648 curl_cv_func_localtime_r="yes"
35650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35651 $as_echo "no" >&6; }
35652 curl_cv_func_localtime_r="no"
35657 tst_links_memrchr="unknown"
35658 tst_macro_memrchr="unknown"
35659 tst_proto_memrchr="unknown"
35660 tst_compi_memrchr="unknown"
35661 tst_allow_memrchr="unknown"
35663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
35664 $as_echo_n "checking if memrchr can be linked... " >&6; }
35665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35666 /* end confdefs.h. */
35669 #define memrchr innocuous_memrchr
35671 # include <limits.h>
35673 # include <assert.h>
35680 #if defined __stub_memrchr || defined __stub___memrchr
35692 if ac_fn_c_try_link "$LINENO"; then :
35694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35695 $as_echo "yes" >&6; }
35696 tst_links_memrchr="yes"
35700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35701 $as_echo "no" >&6; }
35702 tst_links_memrchr="no"
35705 rm -f core conftest.err conftest.$ac_objext \
35706 conftest$ac_exeext conftest.$ac_ext
35708 if test "$tst_links_memrchr" = "no"; then
35709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
35710 $as_echo_n "checking if memrchr seems a macro... " >&6; }
35711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35712 /* end confdefs.h. */
35715 $curl_includes_string
35720 if(0 != memrchr(0, 0, 0))
35728 if ac_fn_c_try_link "$LINENO"; then :
35730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35731 $as_echo "yes" >&6; }
35732 tst_macro_memrchr="yes"
35736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35737 $as_echo "no" >&6; }
35738 tst_macro_memrchr="no"
35741 rm -f core conftest.err conftest.$ac_objext \
35742 conftest$ac_exeext conftest.$ac_ext
35745 if test "$tst_links_memrchr" = "yes"; then
35746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
35747 $as_echo_n "checking if memrchr is prototyped... " >&6; }
35748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35749 /* end confdefs.h. */
35751 $curl_includes_string
35754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35755 $EGREP "memrchr" >/dev/null 2>&1; then :
35757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35758 $as_echo "yes" >&6; }
35759 tst_proto_memrchr="yes"
35763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35764 $as_echo "no" >&6; }
35765 tst_proto_memrchr="no"
35772 if test "$tst_proto_memrchr" = "yes" ||
35773 test "$tst_macro_memrchr" = "yes"; then
35774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
35775 $as_echo_n "checking if memrchr is compilable... " >&6; }
35776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35777 /* end confdefs.h. */
35780 $curl_includes_string
35785 if(0 != memrchr(0, 0, 0))
35793 if ac_fn_c_try_compile "$LINENO"; then :
35795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35796 $as_echo "yes" >&6; }
35797 tst_compi_memrchr="yes"
35801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35802 $as_echo "no" >&6; }
35803 tst_compi_memrchr="no"
35806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35809 if test "$tst_compi_memrchr" = "yes"; then
35810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
35811 $as_echo_n "checking if memrchr usage allowed... " >&6; }
35812 if test "x$curl_disallow_memrchr" != "xyes"; then
35813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35814 $as_echo "yes" >&6; }
35815 tst_allow_memrchr="yes"
35817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35818 $as_echo "no" >&6; }
35819 tst_allow_memrchr="no"
35823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
35824 $as_echo_n "checking if memrchr might be used... " >&6; }
35825 if (test "$tst_proto_memrchr" = "yes" ||
35826 test "$tst_macro_memrchr" = "yes") &&
35827 test "$tst_compi_memrchr" = "yes" &&
35828 test "$tst_allow_memrchr" = "yes"; then
35829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35830 $as_echo "yes" >&6; }
35832 cat >>confdefs.h <<_ACEOF
35833 #define HAVE_MEMRCHR 1
35836 curl_cv_func_memrchr="yes"
35838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35839 $as_echo "no" >&6; }
35840 curl_cv_func_memrchr="no"
35845 tst_links_poll="unknown"
35846 tst_proto_poll="unknown"
35847 tst_compi_poll="unknown"
35848 tst_works_poll="unknown"
35849 tst_allow_poll="unknown"
35853 curl_disallow_poll="yes"
35854 tst_compi_poll="no"
35858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
35859 $as_echo_n "checking if poll can be linked... " >&6; }
35860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35861 /* end confdefs.h. */
35864 $curl_includes_poll
35869 if(0 != poll(0, 0, 0))
35877 if ac_fn_c_try_link "$LINENO"; then :
35879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35880 $as_echo "yes" >&6; }
35881 tst_links_poll="yes"
35885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35886 $as_echo "no" >&6; }
35887 tst_links_poll="no"
35890 rm -f core conftest.err conftest.$ac_objext \
35891 conftest$ac_exeext conftest.$ac_ext
35893 if test "$tst_links_poll" = "yes"; then
35894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
35895 $as_echo_n "checking if poll is prototyped... " >&6; }
35896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35897 /* end confdefs.h. */
35899 $curl_includes_poll
35902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35903 $EGREP "poll" >/dev/null 2>&1; then :
35905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35906 $as_echo "yes" >&6; }
35907 tst_proto_poll="yes"
35911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35912 $as_echo "no" >&6; }
35913 tst_proto_poll="no"
35920 if test "$tst_proto_poll" = "yes"; then
35921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
35922 $as_echo_n "checking if poll is compilable... " >&6; }
35923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35924 /* end confdefs.h. */
35927 $curl_includes_poll
35932 if(0 != poll(0, 0, 0))
35940 if ac_fn_c_try_compile "$LINENO"; then :
35942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35943 $as_echo "yes" >&6; }
35944 tst_compi_poll="yes"
35948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35949 $as_echo "no" >&6; }
35950 tst_compi_poll="no"
35953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35956 if test "x$cross_compiling" != "xyes" &&
35957 test "$tst_compi_poll" = "yes"; then
35958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
35959 $as_echo_n "checking if poll seems to work... " >&6; }
35960 if test "$cross_compiling" = yes; then :
35961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35963 as_fn_error $? "cannot run test program while cross compiling
35964 See \`config.log' for more details" "$LINENO" 5; }
35966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35967 /* end confdefs.h. */
35970 $curl_includes_stdlib
35971 $curl_includes_poll
35972 $curl_includes_time
35977 /* detect the original poll() breakage */
35978 if(0 != poll(0, 0, 10))
35979 exit(1); /* fail */
35981 /* detect the 10.12 poll() breakage */
35982 struct timeval before, after;
35986 gettimeofday(&before, NULL);
35987 rc = poll(NULL, 0, 500);
35988 gettimeofday(&after, NULL);
35990 us = (after.tv_sec - before.tv_sec) * 1000000 +
35991 (after.tv_usec - before.tv_usec);
36002 if ac_fn_c_try_run "$LINENO"; then :
36004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36005 $as_echo "yes" >&6; }
36006 tst_works_poll="yes"
36010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36011 $as_echo "no" >&6; }
36012 tst_works_poll="no"
36015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36016 conftest.$ac_objext conftest.beam conftest.$ac_ext
36021 if test "$tst_compi_poll" = "yes" &&
36022 test "$tst_works_poll" != "no"; then
36023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36024 $as_echo_n "checking if poll usage allowed... " >&6; }
36025 if test "x$curl_disallow_poll" != "xyes"; then
36026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36027 $as_echo "yes" >&6; }
36028 tst_allow_poll="yes"
36030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36031 $as_echo "no" >&6; }
36032 tst_allow_poll="no"
36036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36037 $as_echo_n "checking if poll might be used... " >&6; }
36038 if test "$tst_links_poll" = "yes" &&
36039 test "$tst_proto_poll" = "yes" &&
36040 test "$tst_compi_poll" = "yes" &&
36041 test "$tst_allow_poll" = "yes" &&
36042 test "$tst_works_poll" != "no"; then
36043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36044 $as_echo "yes" >&6; }
36046 cat >>confdefs.h <<_ACEOF
36047 #define HAVE_POLL 1
36051 cat >>confdefs.h <<_ACEOF
36052 #define HAVE_POLL_FINE 1
36055 curl_cv_func_poll="yes"
36057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36058 $as_echo "no" >&6; }
36059 curl_cv_func_poll="no"
36064 tst_links_setsockopt="unknown"
36065 tst_proto_setsockopt="unknown"
36066 tst_compi_setsockopt="unknown"
36067 tst_allow_setsockopt="unknown"
36069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36070 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36072 /* end confdefs.h. */
36075 $curl_includes_winsock2
36076 $curl_includes_sys_socket
36081 if(0 != setsockopt(0, 0, 0, 0, 0))
36089 if ac_fn_c_try_link "$LINENO"; then :
36091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36092 $as_echo "yes" >&6; }
36093 tst_links_setsockopt="yes"
36097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36098 $as_echo "no" >&6; }
36099 tst_links_setsockopt="no"
36102 rm -f core conftest.err conftest.$ac_objext \
36103 conftest$ac_exeext conftest.$ac_ext
36105 if test "$tst_links_setsockopt" = "yes"; then
36106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36107 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36109 /* end confdefs.h. */
36111 $curl_includes_winsock2
36112 $curl_includes_sys_socket
36115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36116 $EGREP "setsockopt" >/dev/null 2>&1; then :
36118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36119 $as_echo "yes" >&6; }
36120 tst_proto_setsockopt="yes"
36124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36125 $as_echo "no" >&6; }
36126 tst_proto_setsockopt="no"
36133 if test "$tst_proto_setsockopt" = "yes"; then
36134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36135 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36137 /* end confdefs.h. */
36140 $curl_includes_winsock2
36141 $curl_includes_sys_socket
36146 if(0 != setsockopt(0, 0, 0, 0, 0))
36154 if ac_fn_c_try_compile "$LINENO"; then :
36156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36157 $as_echo "yes" >&6; }
36158 tst_compi_setsockopt="yes"
36162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36163 $as_echo "no" >&6; }
36164 tst_compi_setsockopt="no"
36167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36170 if test "$tst_compi_setsockopt" = "yes"; then
36171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36172 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36173 if test "x$curl_disallow_setsockopt" != "xyes"; then
36174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36175 $as_echo "yes" >&6; }
36176 tst_allow_setsockopt="yes"
36178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36179 $as_echo "no" >&6; }
36180 tst_allow_setsockopt="no"
36184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36185 $as_echo_n "checking if setsockopt might be used... " >&6; }
36186 if test "$tst_links_setsockopt" = "yes" &&
36187 test "$tst_proto_setsockopt" = "yes" &&
36188 test "$tst_compi_setsockopt" = "yes" &&
36189 test "$tst_allow_setsockopt" = "yes"; then
36190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36191 $as_echo "yes" >&6; }
36193 cat >>confdefs.h <<_ACEOF
36194 #define HAVE_SETSOCKOPT 1
36197 curl_cv_func_setsockopt="yes"
36200 tst_compi_setsockopt_so_nonblock="unknown"
36201 tst_allow_setsockopt_so_nonblock="unknown"
36203 if test "$curl_cv_func_setsockopt" = "yes"; then
36204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36205 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36207 /* end confdefs.h. */
36210 $curl_includes_winsock2
36211 $curl_includes_sys_socket
36216 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36224 if ac_fn_c_try_compile "$LINENO"; then :
36226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36227 $as_echo "yes" >&6; }
36228 tst_compi_setsockopt_so_nonblock="yes"
36232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36233 $as_echo "no" >&6; }
36234 tst_compi_setsockopt_so_nonblock="no"
36237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36240 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36242 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36243 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36245 $as_echo "yes" >&6; }
36246 tst_allow_setsockopt_so_nonblock="yes"
36248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36249 $as_echo "no" >&6; }
36250 tst_allow_setsockopt_so_nonblock="no"
36254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36255 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36256 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36257 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36259 $as_echo "yes" >&6; }
36261 cat >>confdefs.h <<_ACEOF
36262 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36265 curl_cv_func_setsockopt_so_nonblock="yes"
36267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36268 $as_echo "no" >&6; }
36269 curl_cv_func_setsockopt_so_nonblock="no"
36273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36274 $as_echo "no" >&6; }
36275 curl_cv_func_setsockopt="no"
36279 curl_includes_signal="\
36280 /* includes start */
36281 #ifdef HAVE_SYS_TYPES_H
36282 # include <sys/types.h>
36284 #ifdef HAVE_SIGNAL_H
36285 # include <signal.h>
36287 /* includes end */"
36288 for ac_header in sys/types.h signal.h
36290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36291 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36293 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36294 cat >>confdefs.h <<_ACEOF
36295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36305 tst_links_sigaction="unknown"
36306 tst_proto_sigaction="unknown"
36307 tst_compi_sigaction="unknown"
36308 tst_allow_sigaction="unknown"
36310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36311 $as_echo_n "checking if sigaction can be linked... " >&6; }
36312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36313 /* end confdefs.h. */
36316 #define sigaction innocuous_sigaction
36318 # include <limits.h>
36320 # include <assert.h>
36327 #if defined __stub_sigaction || defined __stub___sigaction
36333 return sigaction ();
36339 if ac_fn_c_try_link "$LINENO"; then :
36341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36342 $as_echo "yes" >&6; }
36343 tst_links_sigaction="yes"
36347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36348 $as_echo "no" >&6; }
36349 tst_links_sigaction="no"
36352 rm -f core conftest.err conftest.$ac_objext \
36353 conftest$ac_exeext conftest.$ac_ext
36355 if test "$tst_links_sigaction" = "yes"; then
36356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36357 $as_echo_n "checking if sigaction is prototyped... " >&6; }
36358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36359 /* end confdefs.h. */
36361 $curl_includes_signal
36364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36365 $EGREP "sigaction" >/dev/null 2>&1; then :
36367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36368 $as_echo "yes" >&6; }
36369 tst_proto_sigaction="yes"
36373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36374 $as_echo "no" >&6; }
36375 tst_proto_sigaction="no"
36382 if test "$tst_proto_sigaction" = "yes"; then
36383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36384 $as_echo_n "checking if sigaction is compilable... " >&6; }
36385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36386 /* end confdefs.h. */
36389 $curl_includes_signal
36394 if(0 != sigaction(0, 0, 0))
36402 if ac_fn_c_try_compile "$LINENO"; then :
36404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36405 $as_echo "yes" >&6; }
36406 tst_compi_sigaction="yes"
36410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36411 $as_echo "no" >&6; }
36412 tst_compi_sigaction="no"
36415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36418 if test "$tst_compi_sigaction" = "yes"; then
36419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36420 $as_echo_n "checking if sigaction usage allowed... " >&6; }
36421 if test "x$curl_disallow_sigaction" != "xyes"; then
36422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36423 $as_echo "yes" >&6; }
36424 tst_allow_sigaction="yes"
36426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36427 $as_echo "no" >&6; }
36428 tst_allow_sigaction="no"
36432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36433 $as_echo_n "checking if sigaction might be used... " >&6; }
36434 if test "$tst_links_sigaction" = "yes" &&
36435 test "$tst_proto_sigaction" = "yes" &&
36436 test "$tst_compi_sigaction" = "yes" &&
36437 test "$tst_allow_sigaction" = "yes"; then
36438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36439 $as_echo "yes" >&6; }
36441 cat >>confdefs.h <<_ACEOF
36442 #define HAVE_SIGACTION 1
36445 curl_cv_func_sigaction="yes"
36447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36448 $as_echo "no" >&6; }
36449 curl_cv_func_sigaction="no"
36454 tst_links_siginterrupt="unknown"
36455 tst_proto_siginterrupt="unknown"
36456 tst_compi_siginterrupt="unknown"
36457 tst_allow_siginterrupt="unknown"
36459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36460 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
36461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36462 /* end confdefs.h. */
36465 #define siginterrupt innocuous_siginterrupt
36467 # include <limits.h>
36469 # include <assert.h>
36471 #undef siginterrupt
36475 char siginterrupt ();
36476 #if defined __stub_siginterrupt || defined __stub___siginterrupt
36482 return siginterrupt ();
36488 if ac_fn_c_try_link "$LINENO"; then :
36490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36491 $as_echo "yes" >&6; }
36492 tst_links_siginterrupt="yes"
36496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36497 $as_echo "no" >&6; }
36498 tst_links_siginterrupt="no"
36501 rm -f core conftest.err conftest.$ac_objext \
36502 conftest$ac_exeext conftest.$ac_ext
36504 if test "$tst_links_siginterrupt" = "yes"; then
36505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36506 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36508 /* end confdefs.h. */
36510 $curl_includes_signal
36513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36514 $EGREP "siginterrupt" >/dev/null 2>&1; then :
36516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36517 $as_echo "yes" >&6; }
36518 tst_proto_siginterrupt="yes"
36522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36523 $as_echo "no" >&6; }
36524 tst_proto_siginterrupt="no"
36531 if test "$tst_proto_siginterrupt" = "yes"; then
36532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
36533 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
36534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36535 /* end confdefs.h. */
36538 $curl_includes_signal
36543 if(0 != siginterrupt(0, 0))
36551 if ac_fn_c_try_compile "$LINENO"; then :
36553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36554 $as_echo "yes" >&6; }
36555 tst_compi_siginterrupt="yes"
36559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36560 $as_echo "no" >&6; }
36561 tst_compi_siginterrupt="no"
36564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36567 if test "$tst_compi_siginterrupt" = "yes"; then
36568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
36569 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
36570 if test "x$curl_disallow_siginterrupt" != "xyes"; then
36571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36572 $as_echo "yes" >&6; }
36573 tst_allow_siginterrupt="yes"
36575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36576 $as_echo "no" >&6; }
36577 tst_allow_siginterrupt="no"
36581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
36582 $as_echo_n "checking if siginterrupt might be used... " >&6; }
36583 if test "$tst_links_siginterrupt" = "yes" &&
36584 test "$tst_proto_siginterrupt" = "yes" &&
36585 test "$tst_compi_siginterrupt" = "yes" &&
36586 test "$tst_allow_siginterrupt" = "yes"; then
36587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36588 $as_echo "yes" >&6; }
36590 cat >>confdefs.h <<_ACEOF
36591 #define HAVE_SIGINTERRUPT 1
36594 curl_cv_func_siginterrupt="yes"
36596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36597 $as_echo "no" >&6; }
36598 curl_cv_func_siginterrupt="no"
36603 tst_links_signal="unknown"
36604 tst_proto_signal="unknown"
36605 tst_compi_signal="unknown"
36606 tst_allow_signal="unknown"
36608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
36609 $as_echo_n "checking if signal can be linked... " >&6; }
36610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36611 /* end confdefs.h. */
36614 #define signal innocuous_signal
36616 # include <limits.h>
36618 # include <assert.h>
36625 #if defined __stub_signal || defined __stub___signal
36637 if ac_fn_c_try_link "$LINENO"; then :
36639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36640 $as_echo "yes" >&6; }
36641 tst_links_signal="yes"
36645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36646 $as_echo "no" >&6; }
36647 tst_links_signal="no"
36650 rm -f core conftest.err conftest.$ac_objext \
36651 conftest$ac_exeext conftest.$ac_ext
36653 if test "$tst_links_signal" = "yes"; then
36654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
36655 $as_echo_n "checking if signal is prototyped... " >&6; }
36656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36657 /* end confdefs.h. */
36659 $curl_includes_signal
36662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36663 $EGREP "signal" >/dev/null 2>&1; then :
36665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36666 $as_echo "yes" >&6; }
36667 tst_proto_signal="yes"
36671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36672 $as_echo "no" >&6; }
36673 tst_proto_signal="no"
36680 if test "$tst_proto_signal" = "yes"; then
36681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
36682 $as_echo_n "checking if signal is compilable... " >&6; }
36683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36684 /* end confdefs.h. */
36687 $curl_includes_signal
36692 if(0 != signal(0, 0))
36700 if ac_fn_c_try_compile "$LINENO"; then :
36702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36703 $as_echo "yes" >&6; }
36704 tst_compi_signal="yes"
36708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36709 $as_echo "no" >&6; }
36710 tst_compi_signal="no"
36713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36716 if test "$tst_compi_signal" = "yes"; then
36717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
36718 $as_echo_n "checking if signal usage allowed... " >&6; }
36719 if test "x$curl_disallow_signal" != "xyes"; then
36720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36721 $as_echo "yes" >&6; }
36722 tst_allow_signal="yes"
36724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36725 $as_echo "no" >&6; }
36726 tst_allow_signal="no"
36730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
36731 $as_echo_n "checking if signal might be used... " >&6; }
36732 if test "$tst_links_signal" = "yes" &&
36733 test "$tst_proto_signal" = "yes" &&
36734 test "$tst_compi_signal" = "yes" &&
36735 test "$tst_allow_signal" = "yes"; then
36736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36737 $as_echo "yes" >&6; }
36739 cat >>confdefs.h <<_ACEOF
36740 #define HAVE_SIGNAL 1
36743 curl_cv_func_signal="yes"
36745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36746 $as_echo "no" >&6; }
36747 curl_cv_func_signal="no"
36751 curl_includes_setjmp="\
36752 /* includes start */
36753 #ifdef HAVE_SYS_TYPES_H
36754 # include <sys/types.h>
36756 #ifdef HAVE_SETJMP_H
36757 # include <setjmp.h>
36759 /* includes end */"
36760 for ac_header in sys/types.h setjmp.h
36762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36763 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
36765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36766 cat >>confdefs.h <<_ACEOF
36767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36777 tst_links_sigsetjmp="unknown"
36778 tst_macro_sigsetjmp="unknown"
36779 tst_proto_sigsetjmp="unknown"
36780 tst_compi_sigsetjmp="unknown"
36781 tst_allow_sigsetjmp="unknown"
36783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
36784 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
36785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36786 /* end confdefs.h. */
36789 #define sigsetjmp innocuous_sigsetjmp
36791 # include <limits.h>
36793 # include <assert.h>
36800 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
36806 return sigsetjmp ();
36812 if ac_fn_c_try_link "$LINENO"; then :
36814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36815 $as_echo "yes" >&6; }
36816 tst_links_sigsetjmp="yes"
36820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36821 $as_echo "no" >&6; }
36822 tst_links_sigsetjmp="no"
36825 rm -f core conftest.err conftest.$ac_objext \
36826 conftest$ac_exeext conftest.$ac_ext
36828 if test "$tst_links_sigsetjmp" = "no"; then
36829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
36830 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
36831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36832 /* end confdefs.h. */
36835 $curl_includes_setjmp
36841 if(0 != sigsetjmp(env, 0))
36849 if ac_fn_c_try_link "$LINENO"; then :
36851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36852 $as_echo "yes" >&6; }
36853 tst_macro_sigsetjmp="yes"
36857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36858 $as_echo "no" >&6; }
36859 tst_macro_sigsetjmp="no"
36862 rm -f core conftest.err conftest.$ac_objext \
36863 conftest$ac_exeext conftest.$ac_ext
36866 if test "$tst_links_sigsetjmp" = "yes"; then
36867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
36868 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
36869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36870 /* end confdefs.h. */
36872 $curl_includes_setjmp
36875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36876 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
36878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36879 $as_echo "yes" >&6; }
36880 tst_proto_sigsetjmp="yes"
36884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36885 $as_echo "no" >&6; }
36886 tst_proto_sigsetjmp="no"
36893 if test "$tst_proto_sigsetjmp" = "yes" ||
36894 test "$tst_macro_sigsetjmp" = "yes"; then
36895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
36896 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
36897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36898 /* end confdefs.h. */
36901 $curl_includes_setjmp
36907 if(0 != sigsetjmp(env, 0))
36915 if ac_fn_c_try_compile "$LINENO"; then :
36917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36918 $as_echo "yes" >&6; }
36919 tst_compi_sigsetjmp="yes"
36923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36924 $as_echo "no" >&6; }
36925 tst_compi_sigsetjmp="no"
36928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36931 if test "$tst_compi_sigsetjmp" = "yes"; then
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
36933 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
36934 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
36935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36936 $as_echo "yes" >&6; }
36937 tst_allow_sigsetjmp="yes"
36939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36940 $as_echo "no" >&6; }
36941 tst_allow_sigsetjmp="no"
36945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
36946 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
36947 if (test "$tst_proto_sigsetjmp" = "yes" ||
36948 test "$tst_macro_sigsetjmp" = "yes") &&
36949 test "$tst_compi_sigsetjmp" = "yes" &&
36950 test "$tst_allow_sigsetjmp" = "yes"; then
36951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952 $as_echo "yes" >&6; }
36954 cat >>confdefs.h <<_ACEOF
36955 #define HAVE_SIGSETJMP 1
36958 curl_cv_func_sigsetjmp="yes"
36960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36961 $as_echo "no" >&6; }
36962 curl_cv_func_sigsetjmp="no"
36967 tst_links_socket="unknown"
36968 tst_proto_socket="unknown"
36969 tst_compi_socket="unknown"
36970 tst_allow_socket="unknown"
36972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
36973 $as_echo_n "checking if socket can be linked... " >&6; }
36974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36975 /* end confdefs.h. */
36978 $curl_includes_winsock2
36979 $curl_includes_sys_socket
36980 $curl_includes_socket
36985 if(0 != socket(0, 0, 0))
36993 if ac_fn_c_try_link "$LINENO"; then :
36995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36996 $as_echo "yes" >&6; }
36997 tst_links_socket="yes"
37001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37002 $as_echo "no" >&6; }
37003 tst_links_socket="no"
37006 rm -f core conftest.err conftest.$ac_objext \
37007 conftest$ac_exeext conftest.$ac_ext
37009 if test "$tst_links_socket" = "yes"; then
37010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37011 $as_echo_n "checking if socket is prototyped... " >&6; }
37012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37013 /* end confdefs.h. */
37015 $curl_includes_winsock2
37016 $curl_includes_sys_socket
37017 $curl_includes_socket
37020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37021 $EGREP "socket" >/dev/null 2>&1; then :
37023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024 $as_echo "yes" >&6; }
37025 tst_proto_socket="yes"
37029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37030 $as_echo "no" >&6; }
37031 tst_proto_socket="no"
37038 if test "$tst_proto_socket" = "yes"; then
37039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37040 $as_echo_n "checking if socket is compilable... " >&6; }
37041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37042 /* end confdefs.h. */
37045 $curl_includes_winsock2
37046 $curl_includes_sys_socket
37047 $curl_includes_socket
37052 if(0 != socket(0, 0, 0))
37060 if ac_fn_c_try_compile "$LINENO"; then :
37062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37063 $as_echo "yes" >&6; }
37064 tst_compi_socket="yes"
37068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37069 $as_echo "no" >&6; }
37070 tst_compi_socket="no"
37073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37076 if test "$tst_compi_socket" = "yes"; then
37077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37078 $as_echo_n "checking if socket usage allowed... " >&6; }
37079 if test "x$curl_disallow_socket" != "xyes"; then
37080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37081 $as_echo "yes" >&6; }
37082 tst_allow_socket="yes"
37084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37085 $as_echo "no" >&6; }
37086 tst_allow_socket="no"
37090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37091 $as_echo_n "checking if socket might be used... " >&6; }
37092 if test "$tst_links_socket" = "yes" &&
37093 test "$tst_proto_socket" = "yes" &&
37094 test "$tst_compi_socket" = "yes" &&
37095 test "$tst_allow_socket" = "yes"; then
37096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37097 $as_echo "yes" >&6; }
37099 cat >>confdefs.h <<_ACEOF
37100 #define HAVE_SOCKET 1
37103 curl_cv_func_socket="yes"
37105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37106 $as_echo "no" >&6; }
37107 curl_cv_func_socket="no"
37112 tst_links_socketpair="unknown"
37113 tst_proto_socketpair="unknown"
37114 tst_compi_socketpair="unknown"
37115 tst_allow_socketpair="unknown"
37117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37118 $as_echo_n "checking if socketpair can be linked... " >&6; }
37119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37120 /* end confdefs.h. */
37123 #define socketpair innocuous_socketpair
37125 # include <limits.h>
37127 # include <assert.h>
37133 char socketpair ();
37134 #if defined __stub_socketpair || defined __stub___socketpair
37140 return socketpair ();
37146 if ac_fn_c_try_link "$LINENO"; then :
37148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37149 $as_echo "yes" >&6; }
37150 tst_links_socketpair="yes"
37154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37155 $as_echo "no" >&6; }
37156 tst_links_socketpair="no"
37159 rm -f core conftest.err conftest.$ac_objext \
37160 conftest$ac_exeext conftest.$ac_ext
37162 if test "$tst_links_socketpair" = "yes"; then
37163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37164 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37166 /* end confdefs.h. */
37168 $curl_includes_sys_socket
37169 $curl_includes_socket
37172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37173 $EGREP "socketpair" >/dev/null 2>&1; then :
37175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37176 $as_echo "yes" >&6; }
37177 tst_proto_socketpair="yes"
37181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37182 $as_echo "no" >&6; }
37183 tst_proto_socketpair="no"
37190 if test "$tst_proto_socketpair" = "yes"; then
37191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37192 $as_echo_n "checking if socketpair is compilable... " >&6; }
37193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37194 /* end confdefs.h. */
37197 $curl_includes_sys_socket
37198 $curl_includes_socket
37204 if(0 != socketpair(0, 0, 0, sv))
37212 if ac_fn_c_try_compile "$LINENO"; then :
37214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37215 $as_echo "yes" >&6; }
37216 tst_compi_socketpair="yes"
37220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37221 $as_echo "no" >&6; }
37222 tst_compi_socketpair="no"
37225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37228 if test "$tst_compi_socketpair" = "yes"; then
37229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37230 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37231 if test "x$curl_disallow_socketpair" != "xyes"; then
37232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37233 $as_echo "yes" >&6; }
37234 tst_allow_socketpair="yes"
37236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37237 $as_echo "no" >&6; }
37238 tst_allow_socketpair="no"
37242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37243 $as_echo_n "checking if socketpair might be used... " >&6; }
37244 if test "$tst_links_socketpair" = "yes" &&
37245 test "$tst_proto_socketpair" = "yes" &&
37246 test "$tst_compi_socketpair" = "yes" &&
37247 test "$tst_allow_socketpair" = "yes"; then
37248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37249 $as_echo "yes" >&6; }
37251 cat >>confdefs.h <<_ACEOF
37252 #define HAVE_SOCKETPAIR 1
37255 curl_cv_func_socketpair="yes"
37257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37258 $as_echo "no" >&6; }
37259 curl_cv_func_socketpair="no"
37264 tst_links_strcasecmp="unknown"
37265 tst_proto_strcasecmp="unknown"
37266 tst_compi_strcasecmp="unknown"
37267 tst_allow_strcasecmp="unknown"
37269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37270 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
37271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37272 /* end confdefs.h. */
37275 #define strcasecmp innocuous_strcasecmp
37277 # include <limits.h>
37279 # include <assert.h>
37285 char strcasecmp ();
37286 #if defined __stub_strcasecmp || defined __stub___strcasecmp
37292 return strcasecmp ();
37298 if ac_fn_c_try_link "$LINENO"; then :
37300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37301 $as_echo "yes" >&6; }
37302 tst_links_strcasecmp="yes"
37306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37307 $as_echo "no" >&6; }
37308 tst_links_strcasecmp="no"
37311 rm -f core conftest.err conftest.$ac_objext \
37312 conftest$ac_exeext conftest.$ac_ext
37314 if test "$tst_links_strcasecmp" = "yes"; then
37315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37316 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37318 /* end confdefs.h. */
37320 $curl_includes_string
37323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37324 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37327 $as_echo "yes" >&6; }
37328 tst_proto_strcasecmp="yes"
37332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37333 $as_echo "no" >&6; }
37334 tst_proto_strcasecmp="no"
37341 if test "$tst_proto_strcasecmp" = "yes"; then
37342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37343 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
37344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37345 /* end confdefs.h. */
37348 $curl_includes_string
37353 if(0 != strcasecmp(0, 0))
37361 if ac_fn_c_try_compile "$LINENO"; then :
37363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37364 $as_echo "yes" >&6; }
37365 tst_compi_strcasecmp="yes"
37369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37370 $as_echo "no" >&6; }
37371 tst_compi_strcasecmp="no"
37374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37377 if test "$tst_compi_strcasecmp" = "yes"; then
37378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37379 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37380 if test "x$curl_disallow_strcasecmp" != "xyes"; then
37381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37382 $as_echo "yes" >&6; }
37383 tst_allow_strcasecmp="yes"
37385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37386 $as_echo "no" >&6; }
37387 tst_allow_strcasecmp="no"
37391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37392 $as_echo_n "checking if strcasecmp might be used... " >&6; }
37393 if test "$tst_links_strcasecmp" = "yes" &&
37394 test "$tst_proto_strcasecmp" = "yes" &&
37395 test "$tst_compi_strcasecmp" = "yes" &&
37396 test "$tst_allow_strcasecmp" = "yes"; then
37397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37398 $as_echo "yes" >&6; }
37400 cat >>confdefs.h <<_ACEOF
37401 #define HAVE_STRCASECMP 1
37404 curl_cv_func_strcasecmp="yes"
37406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37407 $as_echo "no" >&6; }
37408 curl_cv_func_strcasecmp="no"
37413 tst_links_strcmpi="unknown"
37414 tst_proto_strcmpi="unknown"
37415 tst_compi_strcmpi="unknown"
37416 tst_allow_strcmpi="unknown"
37418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37419 $as_echo_n "checking if strcmpi can be linked... " >&6; }
37420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37421 /* end confdefs.h. */
37424 #define strcmpi innocuous_strcmpi
37426 # include <limits.h>
37428 # include <assert.h>
37435 #if defined __stub_strcmpi || defined __stub___strcmpi
37447 if ac_fn_c_try_link "$LINENO"; then :
37449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37450 $as_echo "yes" >&6; }
37451 tst_links_strcmpi="yes"
37455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37456 $as_echo "no" >&6; }
37457 tst_links_strcmpi="no"
37460 rm -f core conftest.err conftest.$ac_objext \
37461 conftest$ac_exeext conftest.$ac_ext
37463 if test "$tst_links_strcmpi" = "yes"; then
37464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37465 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
37466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37467 /* end confdefs.h. */
37469 $curl_includes_string
37472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37473 $EGREP "strcmpi" >/dev/null 2>&1; then :
37475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37476 $as_echo "yes" >&6; }
37477 tst_proto_strcmpi="yes"
37481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37482 $as_echo "no" >&6; }
37483 tst_proto_strcmpi="no"
37490 if test "$tst_proto_strcmpi" = "yes"; then
37491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37492 $as_echo_n "checking if strcmpi is compilable... " >&6; }
37493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37494 /* end confdefs.h. */
37497 $curl_includes_string
37502 if(0 != strcmpi(0, 0))
37510 if ac_fn_c_try_compile "$LINENO"; then :
37512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37513 $as_echo "yes" >&6; }
37514 tst_compi_strcmpi="yes"
37518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37519 $as_echo "no" >&6; }
37520 tst_compi_strcmpi="no"
37523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37526 if test "$tst_compi_strcmpi" = "yes"; then
37527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
37528 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
37529 if test "x$curl_disallow_strcmpi" != "xyes"; then
37530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37531 $as_echo "yes" >&6; }
37532 tst_allow_strcmpi="yes"
37534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37535 $as_echo "no" >&6; }
37536 tst_allow_strcmpi="no"
37540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
37541 $as_echo_n "checking if strcmpi might be used... " >&6; }
37542 if test "$tst_links_strcmpi" = "yes" &&
37543 test "$tst_proto_strcmpi" = "yes" &&
37544 test "$tst_compi_strcmpi" = "yes" &&
37545 test "$tst_allow_strcmpi" = "yes"; then
37546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37547 $as_echo "yes" >&6; }
37549 cat >>confdefs.h <<_ACEOF
37550 #define HAVE_STRCMPI 1
37553 curl_cv_func_strcmpi="yes"
37555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37556 $as_echo "no" >&6; }
37557 curl_cv_func_strcmpi="no"
37562 tst_links_strdup="unknown"
37563 tst_proto_strdup="unknown"
37564 tst_compi_strdup="unknown"
37565 tst_allow_strdup="unknown"
37567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
37568 $as_echo_n "checking if strdup can be linked... " >&6; }
37569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37570 /* end confdefs.h. */
37573 #define strdup innocuous_strdup
37575 # include <limits.h>
37577 # include <assert.h>
37584 #if defined __stub_strdup || defined __stub___strdup
37596 if ac_fn_c_try_link "$LINENO"; then :
37598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37599 $as_echo "yes" >&6; }
37600 tst_links_strdup="yes"
37604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37605 $as_echo "no" >&6; }
37606 tst_links_strdup="no"
37609 rm -f core conftest.err conftest.$ac_objext \
37610 conftest$ac_exeext conftest.$ac_ext
37612 if test "$tst_links_strdup" = "yes"; then
37613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
37614 $as_echo_n "checking if strdup is prototyped... " >&6; }
37615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37616 /* end confdefs.h. */
37618 $curl_includes_string
37621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37622 $EGREP "strdup" >/dev/null 2>&1; then :
37624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37625 $as_echo "yes" >&6; }
37626 tst_proto_strdup="yes"
37630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37631 $as_echo "no" >&6; }
37632 tst_proto_strdup="no"
37639 if test "$tst_proto_strdup" = "yes"; then
37640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
37641 $as_echo_n "checking if strdup is compilable... " >&6; }
37642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37643 /* end confdefs.h. */
37646 $curl_includes_string
37659 if ac_fn_c_try_compile "$LINENO"; then :
37661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37662 $as_echo "yes" >&6; }
37663 tst_compi_strdup="yes"
37667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37668 $as_echo "no" >&6; }
37669 tst_compi_strdup="no"
37672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37675 if test "$tst_compi_strdup" = "yes"; then
37676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
37677 $as_echo_n "checking if strdup usage allowed... " >&6; }
37678 if test "x$curl_disallow_strdup" != "xyes"; then
37679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37680 $as_echo "yes" >&6; }
37681 tst_allow_strdup="yes"
37683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37684 $as_echo "no" >&6; }
37685 tst_allow_strdup="no"
37689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
37690 $as_echo_n "checking if strdup might be used... " >&6; }
37691 if test "$tst_links_strdup" = "yes" &&
37692 test "$tst_proto_strdup" = "yes" &&
37693 test "$tst_compi_strdup" = "yes" &&
37694 test "$tst_allow_strdup" = "yes"; then
37695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37696 $as_echo "yes" >&6; }
37698 cat >>confdefs.h <<_ACEOF
37699 #define HAVE_STRDUP 1
37702 curl_cv_func_strdup="yes"
37704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37705 $as_echo "no" >&6; }
37706 curl_cv_func_strdup="no"
37711 tst_links_strerror_r="unknown"
37712 tst_proto_strerror_r="unknown"
37713 tst_compi_strerror_r="unknown"
37714 tst_glibc_strerror_r="unknown"
37715 tst_posix_strerror_r="unknown"
37716 tst_allow_strerror_r="unknown"
37717 tst_works_glibc_strerror_r="unknown"
37718 tst_works_posix_strerror_r="unknown"
37719 tst_glibc_strerror_r_type_arg3="unknown"
37720 tst_posix_strerror_r_type_arg3="unknown"
37722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
37723 $as_echo_n "checking if strerror_r can be linked... " >&6; }
37724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37725 /* end confdefs.h. */
37728 #define strerror_r innocuous_strerror_r
37730 # include <limits.h>
37732 # include <assert.h>
37738 char strerror_r ();
37739 #if defined __stub_strerror_r || defined __stub___strerror_r
37745 return strerror_r ();
37751 if ac_fn_c_try_link "$LINENO"; then :
37753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37754 $as_echo "yes" >&6; }
37755 tst_links_strerror_r="yes"
37759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37760 $as_echo "no" >&6; }
37761 tst_links_strerror_r="no"
37764 rm -f core conftest.err conftest.$ac_objext \
37765 conftest$ac_exeext conftest.$ac_ext
37767 if test "$tst_links_strerror_r" = "yes"; then
37768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
37769 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
37770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37771 /* end confdefs.h. */
37773 $curl_includes_string
37776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37777 $EGREP "strerror_r" >/dev/null 2>&1; then :
37779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37780 $as_echo "yes" >&6; }
37781 tst_proto_strerror_r="yes"
37785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37786 $as_echo "no" >&6; }
37787 tst_proto_strerror_r="no"
37794 if test "$tst_proto_strerror_r" = "yes"; then
37795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
37796 $as_echo_n "checking if strerror_r is compilable... " >&6; }
37797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37798 /* end confdefs.h. */
37801 $curl_includes_string
37806 if(0 != strerror_r(0, 0, 0))
37814 if ac_fn_c_try_compile "$LINENO"; then :
37816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37817 $as_echo "yes" >&6; }
37818 tst_compi_strerror_r="yes"
37822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37823 $as_echo "no" >&6; }
37824 tst_compi_strerror_r="no"
37827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37830 if test "$tst_compi_strerror_r" = "yes"; then
37831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
37832 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
37833 tst_glibc_strerror_r_type_arg3="unknown"
37834 for arg3 in 'size_t' 'int' 'unsigned int'; do
37835 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
37836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37837 /* end confdefs.h. */
37840 $curl_includes_string
37841 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
37846 if(0 != strerror_r(0, 0, 0))
37854 if ac_fn_c_try_compile "$LINENO"; then :
37856 tst_glibc_strerror_r_type_arg3="$arg3"
37859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37862 case "$tst_glibc_strerror_r_type_arg3" in
37864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37865 $as_echo "no" >&6; }
37866 tst_glibc_strerror_r="no"
37869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37870 $as_echo "yes" >&6; }
37871 tst_glibc_strerror_r="yes"
37876 if test "x$cross_compiling" != "xyes" &&
37877 test "$tst_glibc_strerror_r" = "yes"; then
37878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37879 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37880 if test "$cross_compiling" = yes; then :
37881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37883 as_fn_error $? "cannot run test program while cross compiling
37884 See \`config.log' for more details" "$LINENO" 5; }
37886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37887 /* end confdefs.h. */
37890 $curl_includes_stdlib
37891 $curl_includes_string
37892 # include <errno.h>
37900 string = strerror_r(EACCES, buffer, sizeof(buffer));
37902 exit(1); /* fail */
37904 exit(1); /* fail */
37913 if ac_fn_c_try_run "$LINENO"; then :
37915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37916 $as_echo "yes" >&6; }
37917 tst_works_glibc_strerror_r="yes"
37921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37922 $as_echo "no" >&6; }
37923 tst_works_glibc_strerror_r="no"
37926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37927 conftest.$ac_objext conftest.beam conftest.$ac_ext
37932 if test "$tst_compi_strerror_r" = "yes" &&
37933 test "$tst_works_glibc_strerror_r" != "yes"; then
37934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
37935 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
37936 tst_posix_strerror_r_type_arg3="unknown"
37937 for arg3 in 'size_t' 'int' 'unsigned int'; do
37938 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
37939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37940 /* end confdefs.h. */
37943 $curl_includes_string
37944 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
37949 if(0 != strerror_r(0, 0, 0))
37957 if ac_fn_c_try_compile "$LINENO"; then :
37959 tst_posix_strerror_r_type_arg3="$arg3"
37962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37965 case "$tst_posix_strerror_r_type_arg3" in
37967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37968 $as_echo "no" >&6; }
37969 tst_posix_strerror_r="no"
37972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37973 $as_echo "yes" >&6; }
37974 tst_posix_strerror_r="yes"
37979 if test "x$cross_compiling" != "xyes" &&
37980 test "$tst_posix_strerror_r" = "yes"; then
37981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37982 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37983 if test "$cross_compiling" = yes; then :
37984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37986 as_fn_error $? "cannot run test program while cross compiling
37987 See \`config.log' for more details" "$LINENO" 5; }
37989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37990 /* end confdefs.h. */
37993 $curl_includes_stdlib
37994 $curl_includes_string
37995 # include <errno.h>
38003 error = strerror_r(EACCES, buffer, sizeof(buffer));
38005 exit(1); /* fail */
38006 if(buffer[0] == '\0')
38007 exit(1); /* fail */
38016 if ac_fn_c_try_run "$LINENO"; then :
38018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38019 $as_echo "yes" >&6; }
38020 tst_works_posix_strerror_r="yes"
38024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38025 $as_echo "no" >&6; }
38026 tst_works_posix_strerror_r="no"
38029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38030 conftest.$ac_objext conftest.beam conftest.$ac_ext
38035 if test "$tst_works_glibc_strerror_r" = "yes"; then
38036 tst_posix_strerror_r="no"
38038 if test "$tst_works_posix_strerror_r" = "yes"; then
38039 tst_glibc_strerror_r="no"
38041 if test "$tst_glibc_strerror_r" = "yes" &&
38042 test "$tst_works_glibc_strerror_r" != "no" &&
38043 test "$tst_posix_strerror_r" != "yes"; then
38044 tst_allow_strerror_r="check"
38046 if test "$tst_posix_strerror_r" = "yes" &&
38047 test "$tst_works_posix_strerror_r" != "no" &&
38048 test "$tst_glibc_strerror_r" != "yes"; then
38049 tst_allow_strerror_r="check"
38051 if test "$tst_allow_strerror_r" = "check"; then
38052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38053 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
38054 if test "x$curl_disallow_strerror_r" != "xyes"; then
38055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38056 $as_echo "yes" >&6; }
38057 tst_allow_strerror_r="yes"
38059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38060 $as_echo "no" >&6; }
38061 tst_allow_strerror_r="no"
38065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38066 $as_echo_n "checking if strerror_r might be used... " >&6; }
38067 if test "$tst_links_strerror_r" = "yes" &&
38068 test "$tst_proto_strerror_r" = "yes" &&
38069 test "$tst_compi_strerror_r" = "yes" &&
38070 test "$tst_allow_strerror_r" = "yes"; then
38071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38072 $as_echo "yes" >&6; }
38073 if test "$tst_glibc_strerror_r" = "yes"; then
38075 cat >>confdefs.h <<_ACEOF
38076 #define HAVE_STRERROR_R 1
38080 cat >>confdefs.h <<_ACEOF
38081 #define HAVE_GLIBC_STRERROR_R 1
38085 cat >>confdefs.h <<_ACEOF
38086 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38090 if test "$tst_posix_strerror_r" = "yes"; then
38092 cat >>confdefs.h <<_ACEOF
38093 #define HAVE_STRERROR_R 1
38097 cat >>confdefs.h <<_ACEOF
38098 #define HAVE_POSIX_STRERROR_R 1
38102 cat >>confdefs.h <<_ACEOF
38103 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38107 curl_cv_func_strerror_r="yes"
38109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38110 $as_echo "no" >&6; }
38111 curl_cv_func_strerror_r="no"
38114 if test "$tst_compi_strerror_r" = "yes" &&
38115 test "$tst_allow_strerror_r" = "unknown"; then
38116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38117 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38123 tst_links_stricmp="unknown"
38124 tst_proto_stricmp="unknown"
38125 tst_compi_stricmp="unknown"
38126 tst_allow_stricmp="unknown"
38128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38129 $as_echo_n "checking if stricmp can be linked... " >&6; }
38130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38131 /* end confdefs.h. */
38134 #define stricmp innocuous_stricmp
38136 # include <limits.h>
38138 # include <assert.h>
38145 #if defined __stub_stricmp || defined __stub___stricmp
38157 if ac_fn_c_try_link "$LINENO"; then :
38159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38160 $as_echo "yes" >&6; }
38161 tst_links_stricmp="yes"
38165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38166 $as_echo "no" >&6; }
38167 tst_links_stricmp="no"
38170 rm -f core conftest.err conftest.$ac_objext \
38171 conftest$ac_exeext conftest.$ac_ext
38173 if test "$tst_links_stricmp" = "yes"; then
38174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38175 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38177 /* end confdefs.h. */
38179 $curl_includes_string
38182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38183 $EGREP "stricmp" >/dev/null 2>&1; then :
38185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38186 $as_echo "yes" >&6; }
38187 tst_proto_stricmp="yes"
38191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38192 $as_echo "no" >&6; }
38193 tst_proto_stricmp="no"
38200 if test "$tst_proto_stricmp" = "yes"; then
38201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38202 $as_echo_n "checking if stricmp is compilable... " >&6; }
38203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38204 /* end confdefs.h. */
38207 $curl_includes_string
38212 if(0 != stricmp(0, 0))
38220 if ac_fn_c_try_compile "$LINENO"; then :
38222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38223 $as_echo "yes" >&6; }
38224 tst_compi_stricmp="yes"
38228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38229 $as_echo "no" >&6; }
38230 tst_compi_stricmp="no"
38233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38236 if test "$tst_compi_stricmp" = "yes"; then
38237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38238 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38239 if test "x$curl_disallow_stricmp" != "xyes"; then
38240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38241 $as_echo "yes" >&6; }
38242 tst_allow_stricmp="yes"
38244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38245 $as_echo "no" >&6; }
38246 tst_allow_stricmp="no"
38250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38251 $as_echo_n "checking if stricmp might be used... " >&6; }
38252 if test "$tst_links_stricmp" = "yes" &&
38253 test "$tst_proto_stricmp" = "yes" &&
38254 test "$tst_compi_stricmp" = "yes" &&
38255 test "$tst_allow_stricmp" = "yes"; then
38256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38257 $as_echo "yes" >&6; }
38259 cat >>confdefs.h <<_ACEOF
38260 #define HAVE_STRICMP 1
38263 curl_cv_func_stricmp="yes"
38265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38266 $as_echo "no" >&6; }
38267 curl_cv_func_stricmp="no"
38272 tst_links_strncasecmp="unknown"
38273 tst_proto_strncasecmp="unknown"
38274 tst_compi_strncasecmp="unknown"
38275 tst_allow_strncasecmp="unknown"
38277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38278 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
38279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38280 /* end confdefs.h. */
38283 #define strncasecmp innocuous_strncasecmp
38285 # include <limits.h>
38287 # include <assert.h>
38293 char strncasecmp ();
38294 #if defined __stub_strncasecmp || defined __stub___strncasecmp
38300 return strncasecmp ();
38306 if ac_fn_c_try_link "$LINENO"; then :
38308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38309 $as_echo "yes" >&6; }
38310 tst_links_strncasecmp="yes"
38314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38315 $as_echo "no" >&6; }
38316 tst_links_strncasecmp="no"
38319 rm -f core conftest.err conftest.$ac_objext \
38320 conftest$ac_exeext conftest.$ac_ext
38322 if test "$tst_links_strncasecmp" = "yes"; then
38323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38324 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38326 /* end confdefs.h. */
38328 $curl_includes_string
38331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38332 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38335 $as_echo "yes" >&6; }
38336 tst_proto_strncasecmp="yes"
38340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38341 $as_echo "no" >&6; }
38342 tst_proto_strncasecmp="no"
38349 if test "$tst_proto_strncasecmp" = "yes"; then
38350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38351 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
38352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38353 /* end confdefs.h. */
38356 $curl_includes_string
38361 if(0 != strncasecmp(0, 0, 0))
38369 if ac_fn_c_try_compile "$LINENO"; then :
38371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38372 $as_echo "yes" >&6; }
38373 tst_compi_strncasecmp="yes"
38377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38378 $as_echo "no" >&6; }
38379 tst_compi_strncasecmp="no"
38382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38385 if test "$tst_compi_strncasecmp" = "yes"; then
38386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38387 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38388 if test "x$curl_disallow_strncasecmp" != "xyes"; then
38389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38390 $as_echo "yes" >&6; }
38391 tst_allow_strncasecmp="yes"
38393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38394 $as_echo "no" >&6; }
38395 tst_allow_strncasecmp="no"
38399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38400 $as_echo_n "checking if strncasecmp might be used... " >&6; }
38401 if test "$tst_links_strncasecmp" = "yes" &&
38402 test "$tst_proto_strncasecmp" = "yes" &&
38403 test "$tst_compi_strncasecmp" = "yes" &&
38404 test "$tst_allow_strncasecmp" = "yes"; then
38405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38406 $as_echo "yes" >&6; }
38408 cat >>confdefs.h <<_ACEOF
38409 #define HAVE_STRNCASECMP 1
38412 curl_cv_func_strncasecmp="yes"
38414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38415 $as_echo "no" >&6; }
38416 curl_cv_func_strncasecmp="no"
38421 tst_links_strncmpi="unknown"
38422 tst_proto_strncmpi="unknown"
38423 tst_compi_strncmpi="unknown"
38424 tst_allow_strncmpi="unknown"
38426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38427 $as_echo_n "checking if strncmpi can be linked... " >&6; }
38428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38429 /* end confdefs.h. */
38432 #define strncmpi innocuous_strncmpi
38434 # include <limits.h>
38436 # include <assert.h>
38443 #if defined __stub_strncmpi || defined __stub___strncmpi
38449 return strncmpi ();
38455 if ac_fn_c_try_link "$LINENO"; then :
38457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38458 $as_echo "yes" >&6; }
38459 tst_links_strncmpi="yes"
38463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38464 $as_echo "no" >&6; }
38465 tst_links_strncmpi="no"
38468 rm -f core conftest.err conftest.$ac_objext \
38469 conftest$ac_exeext conftest.$ac_ext
38471 if test "$tst_links_strncmpi" = "yes"; then
38472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38473 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
38474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38475 /* end confdefs.h. */
38477 $curl_includes_string
38480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38481 $EGREP "strncmpi" >/dev/null 2>&1; then :
38483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38484 $as_echo "yes" >&6; }
38485 tst_proto_strncmpi="yes"
38489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38490 $as_echo "no" >&6; }
38491 tst_proto_strncmpi="no"
38498 if test "$tst_proto_strncmpi" = "yes"; then
38499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38500 $as_echo_n "checking if strncmpi is compilable... " >&6; }
38501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38502 /* end confdefs.h. */
38505 $curl_includes_string
38510 if(0 != strncmpi(0, 0))
38518 if ac_fn_c_try_compile "$LINENO"; then :
38520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38521 $as_echo "yes" >&6; }
38522 tst_compi_strncmpi="yes"
38526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38527 $as_echo "no" >&6; }
38528 tst_compi_strncmpi="no"
38531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38534 if test "$tst_compi_strncmpi" = "yes"; then
38535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
38536 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
38537 if test "x$curl_disallow_strncmpi" != "xyes"; then
38538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38539 $as_echo "yes" >&6; }
38540 tst_allow_strncmpi="yes"
38542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38543 $as_echo "no" >&6; }
38544 tst_allow_strncmpi="no"
38548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
38549 $as_echo_n "checking if strncmpi might be used... " >&6; }
38550 if test "$tst_links_strncmpi" = "yes" &&
38551 test "$tst_proto_strncmpi" = "yes" &&
38552 test "$tst_compi_strncmpi" = "yes" &&
38553 test "$tst_allow_strncmpi" = "yes"; then
38554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38555 $as_echo "yes" >&6; }
38557 cat >>confdefs.h <<_ACEOF
38558 #define HAVE_STRNCMPI 1
38561 curl_cv_func_strncmpi="yes"
38563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38564 $as_echo "no" >&6; }
38565 curl_cv_func_strncmpi="no"
38570 tst_links_strnicmp="unknown"
38571 tst_proto_strnicmp="unknown"
38572 tst_compi_strnicmp="unknown"
38573 tst_allow_strnicmp="unknown"
38575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
38576 $as_echo_n "checking if strnicmp can be linked... " >&6; }
38577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38578 /* end confdefs.h. */
38581 #define strnicmp innocuous_strnicmp
38583 # include <limits.h>
38585 # include <assert.h>
38592 #if defined __stub_strnicmp || defined __stub___strnicmp
38598 return strnicmp ();
38604 if ac_fn_c_try_link "$LINENO"; then :
38606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38607 $as_echo "yes" >&6; }
38608 tst_links_strnicmp="yes"
38612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38613 $as_echo "no" >&6; }
38614 tst_links_strnicmp="no"
38617 rm -f core conftest.err conftest.$ac_objext \
38618 conftest$ac_exeext conftest.$ac_ext
38620 if test "$tst_links_strnicmp" = "yes"; then
38621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
38622 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
38623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38624 /* end confdefs.h. */
38626 $curl_includes_string
38629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38630 $EGREP "strnicmp" >/dev/null 2>&1; then :
38632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38633 $as_echo "yes" >&6; }
38634 tst_proto_strnicmp="yes"
38638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38639 $as_echo "no" >&6; }
38640 tst_proto_strnicmp="no"
38647 if test "$tst_proto_strnicmp" = "yes"; then
38648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
38649 $as_echo_n "checking if strnicmp is compilable... " >&6; }
38650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38651 /* end confdefs.h. */
38654 $curl_includes_string
38659 if(0 != strnicmp(0, 0))
38667 if ac_fn_c_try_compile "$LINENO"; then :
38669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38670 $as_echo "yes" >&6; }
38671 tst_compi_strnicmp="yes"
38675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38676 $as_echo "no" >&6; }
38677 tst_compi_strnicmp="no"
38680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38683 if test "$tst_compi_strnicmp" = "yes"; then
38684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
38685 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
38686 if test "x$curl_disallow_strnicmp" != "xyes"; then
38687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38688 $as_echo "yes" >&6; }
38689 tst_allow_strnicmp="yes"
38691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38692 $as_echo "no" >&6; }
38693 tst_allow_strnicmp="no"
38697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
38698 $as_echo_n "checking if strnicmp might be used... " >&6; }
38699 if test "$tst_links_strnicmp" = "yes" &&
38700 test "$tst_proto_strnicmp" = "yes" &&
38701 test "$tst_compi_strnicmp" = "yes" &&
38702 test "$tst_allow_strnicmp" = "yes"; then
38703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38704 $as_echo "yes" >&6; }
38706 cat >>confdefs.h <<_ACEOF
38707 #define HAVE_STRNICMP 1
38710 curl_cv_func_strnicmp="yes"
38712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38713 $as_echo "no" >&6; }
38714 curl_cv_func_strnicmp="no"
38719 tst_links_strstr="unknown"
38720 tst_proto_strstr="unknown"
38721 tst_compi_strstr="unknown"
38722 tst_allow_strstr="unknown"
38724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
38725 $as_echo_n "checking if strstr can be linked... " >&6; }
38726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38727 /* end confdefs.h. */
38730 #define strstr innocuous_strstr
38732 # include <limits.h>
38734 # include <assert.h>
38741 #if defined __stub_strstr || defined __stub___strstr
38753 if ac_fn_c_try_link "$LINENO"; then :
38755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38756 $as_echo "yes" >&6; }
38757 tst_links_strstr="yes"
38761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38762 $as_echo "no" >&6; }
38763 tst_links_strstr="no"
38766 rm -f core conftest.err conftest.$ac_objext \
38767 conftest$ac_exeext conftest.$ac_ext
38769 if test "$tst_links_strstr" = "yes"; then
38770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
38771 $as_echo_n "checking if strstr is prototyped... " >&6; }
38772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38773 /* end confdefs.h. */
38775 $curl_includes_string
38778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38779 $EGREP "strstr" >/dev/null 2>&1; then :
38781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38782 $as_echo "yes" >&6; }
38783 tst_proto_strstr="yes"
38787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38788 $as_echo "no" >&6; }
38789 tst_proto_strstr="no"
38796 if test "$tst_proto_strstr" = "yes"; then
38797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
38798 $as_echo_n "checking if strstr is compilable... " >&6; }
38799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38800 /* end confdefs.h. */
38803 $curl_includes_string
38808 if(0 != strstr(0, 0))
38816 if ac_fn_c_try_compile "$LINENO"; then :
38818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38819 $as_echo "yes" >&6; }
38820 tst_compi_strstr="yes"
38824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38825 $as_echo "no" >&6; }
38826 tst_compi_strstr="no"
38829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38832 if test "$tst_compi_strstr" = "yes"; then
38833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
38834 $as_echo_n "checking if strstr usage allowed... " >&6; }
38835 if test "x$curl_disallow_strstr" != "xyes"; then
38836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38837 $as_echo "yes" >&6; }
38838 tst_allow_strstr="yes"
38840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38841 $as_echo "no" >&6; }
38842 tst_allow_strstr="no"
38846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
38847 $as_echo_n "checking if strstr might be used... " >&6; }
38848 if test "$tst_links_strstr" = "yes" &&
38849 test "$tst_proto_strstr" = "yes" &&
38850 test "$tst_compi_strstr" = "yes" &&
38851 test "$tst_allow_strstr" = "yes"; then
38852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38853 $as_echo "yes" >&6; }
38855 cat >>confdefs.h <<_ACEOF
38856 #define HAVE_STRSTR 1
38859 curl_cv_func_strstr="yes"
38861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38862 $as_echo "no" >&6; }
38863 curl_cv_func_strstr="no"
38868 tst_links_strtok_r="unknown"
38869 tst_proto_strtok_r="unknown"
38870 tst_compi_strtok_r="unknown"
38871 tst_allow_strtok_r="unknown"
38873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
38874 $as_echo_n "checking if strtok_r can be linked... " >&6; }
38875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38876 /* end confdefs.h. */
38879 #define strtok_r innocuous_strtok_r
38881 # include <limits.h>
38883 # include <assert.h>
38890 #if defined __stub_strtok_r || defined __stub___strtok_r
38896 return strtok_r ();
38902 if ac_fn_c_try_link "$LINENO"; then :
38904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38905 $as_echo "yes" >&6; }
38906 tst_links_strtok_r="yes"
38910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38911 $as_echo "no" >&6; }
38912 tst_links_strtok_r="no"
38915 rm -f core conftest.err conftest.$ac_objext \
38916 conftest$ac_exeext conftest.$ac_ext
38918 if test "$tst_links_strtok_r" = "yes"; then
38919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
38920 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
38921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38922 /* end confdefs.h. */
38924 $curl_includes_string
38927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38928 $EGREP "strtok_r" >/dev/null 2>&1; then :
38930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38931 $as_echo "yes" >&6; }
38932 tst_proto_strtok_r="yes"
38936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38937 $as_echo "no" >&6; }
38938 tst_proto_strtok_r="no"
38945 if test "$tst_proto_strtok_r" = "yes"; then
38946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
38947 $as_echo_n "checking if strtok_r is compilable... " >&6; }
38948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38949 /* end confdefs.h. */
38952 $curl_includes_string
38957 if(0 != strtok_r(0, 0, 0))
38965 if ac_fn_c_try_compile "$LINENO"; then :
38967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38968 $as_echo "yes" >&6; }
38969 tst_compi_strtok_r="yes"
38973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38974 $as_echo "no" >&6; }
38975 tst_compi_strtok_r="no"
38978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38981 if test "$tst_compi_strtok_r" = "yes"; then
38982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
38983 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
38984 if test "x$curl_disallow_strtok_r" != "xyes"; then
38985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38986 $as_echo "yes" >&6; }
38987 tst_allow_strtok_r="yes"
38989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38990 $as_echo "no" >&6; }
38991 tst_allow_strtok_r="no"
38995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
38996 $as_echo_n "checking if strtok_r might be used... " >&6; }
38997 if test "$tst_links_strtok_r" = "yes" &&
38998 test "$tst_proto_strtok_r" = "yes" &&
38999 test "$tst_compi_strtok_r" = "yes" &&
39000 test "$tst_allow_strtok_r" = "yes"; then
39001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39002 $as_echo "yes" >&6; }
39004 cat >>confdefs.h <<_ACEOF
39005 #define HAVE_STRTOK_R 1
39008 curl_cv_func_strtok_r="yes"
39010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39011 $as_echo "no" >&6; }
39012 curl_cv_func_strtok_r="no"
39017 tst_links_strtoll="unknown"
39018 tst_proto_strtoll="unknown"
39019 tst_compi_strtoll="unknown"
39020 tst_allow_strtoll="unknown"
39022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39023 $as_echo_n "checking if strtoll can be linked... " >&6; }
39024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39025 /* end confdefs.h. */
39028 #define strtoll innocuous_strtoll
39030 # include <limits.h>
39032 # include <assert.h>
39039 #if defined __stub_strtoll || defined __stub___strtoll
39051 if ac_fn_c_try_link "$LINENO"; then :
39053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39054 $as_echo "yes" >&6; }
39055 tst_links_strtoll="yes"
39059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39060 $as_echo "no" >&6; }
39061 tst_links_strtoll="no"
39064 rm -f core conftest.err conftest.$ac_objext \
39065 conftest$ac_exeext conftest.$ac_ext
39067 if test "$tst_links_strtoll" = "yes"; then
39068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39069 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39071 /* end confdefs.h. */
39073 $curl_includes_stdlib
39076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39077 $EGREP "strtoll" >/dev/null 2>&1; then :
39079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39080 $as_echo "yes" >&6; }
39081 tst_proto_strtoll="yes"
39085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39086 $as_echo "no" >&6; }
39087 tst_proto_strtoll="no"
39094 if test "$tst_proto_strtoll" = "yes"; then
39095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39096 $as_echo_n "checking if strtoll is compilable... " >&6; }
39097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39098 /* end confdefs.h. */
39101 $curl_includes_stdlib
39106 if(0 != strtoll(0, 0, 0))
39114 if ac_fn_c_try_compile "$LINENO"; then :
39116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39117 $as_echo "yes" >&6; }
39118 tst_compi_strtoll="yes"
39122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39123 $as_echo "no" >&6; }
39124 tst_compi_strtoll="no"
39127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39130 if test "$tst_compi_strtoll" = "yes"; then
39131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39132 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39133 if test "x$curl_disallow_strtoll" != "xyes"; then
39134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39135 $as_echo "yes" >&6; }
39136 tst_allow_strtoll="yes"
39138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39139 $as_echo "no" >&6; }
39140 tst_allow_strtoll="no"
39144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39145 $as_echo_n "checking if strtoll might be used... " >&6; }
39146 if test "$tst_links_strtoll" = "yes" &&
39147 test "$tst_proto_strtoll" = "yes" &&
39148 test "$tst_compi_strtoll" = "yes" &&
39149 test "$tst_allow_strtoll" = "yes"; then
39150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39151 $as_echo "yes" >&6; }
39153 cat >>confdefs.h <<_ACEOF
39154 #define HAVE_STRTOLL 1
39157 curl_cv_func_strtoll="yes"
39159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39160 $as_echo "no" >&6; }
39161 curl_cv_func_strtoll="no"
39165 curl_includes_sys_uio="\
39166 /* includes start */
39167 #ifdef HAVE_SYS_TYPES_H
39168 # include <sys/types.h>
39170 #ifdef HAVE_SYS_UIO_H
39171 # include <sys/uio.h>
39173 /* includes end */"
39174 for ac_header in sys/types.h sys/uio.h
39176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39177 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39179 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39180 cat >>confdefs.h <<_ACEOF
39181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39191 tst_links_writev="unknown"
39192 tst_proto_writev="unknown"
39193 tst_compi_writev="unknown"
39194 tst_allow_writev="unknown"
39196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39197 $as_echo_n "checking if writev can be linked... " >&6; }
39198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39199 /* end confdefs.h. */
39202 #define writev innocuous_writev
39204 # include <limits.h>
39206 # include <assert.h>
39213 #if defined __stub_writev || defined __stub___writev
39225 if ac_fn_c_try_link "$LINENO"; then :
39227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39228 $as_echo "yes" >&6; }
39229 tst_links_writev="yes"
39233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39234 $as_echo "no" >&6; }
39235 tst_links_writev="no"
39238 rm -f core conftest.err conftest.$ac_objext \
39239 conftest$ac_exeext conftest.$ac_ext
39241 if test "$tst_links_writev" = "yes"; then
39242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39243 $as_echo_n "checking if writev is prototyped... " >&6; }
39244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39245 /* end confdefs.h. */
39247 $curl_includes_sys_uio
39250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39251 $EGREP "writev" >/dev/null 2>&1; then :
39253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39254 $as_echo "yes" >&6; }
39255 tst_proto_writev="yes"
39259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39260 $as_echo "no" >&6; }
39261 tst_proto_writev="no"
39268 if test "$tst_proto_writev" = "yes"; then
39269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39270 $as_echo_n "checking if writev is compilable... " >&6; }
39271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39272 /* end confdefs.h. */
39275 $curl_includes_sys_uio
39280 if(0 != writev(0, 0, 0))
39288 if ac_fn_c_try_compile "$LINENO"; then :
39290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39291 $as_echo "yes" >&6; }
39292 tst_compi_writev="yes"
39296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39297 $as_echo "no" >&6; }
39298 tst_compi_writev="no"
39301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39304 if test "$tst_compi_writev" = "yes"; then
39305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39306 $as_echo_n "checking if writev usage allowed... " >&6; }
39307 if test "x$curl_disallow_writev" != "xyes"; then
39308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39309 $as_echo "yes" >&6; }
39310 tst_allow_writev="yes"
39312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39313 $as_echo "no" >&6; }
39314 tst_allow_writev="no"
39318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39319 $as_echo_n "checking if writev might be used... " >&6; }
39320 if test "$tst_links_writev" = "yes" &&
39321 test "$tst_proto_writev" = "yes" &&
39322 test "$tst_compi_writev" = "yes" &&
39323 test "$tst_allow_writev" = "yes"; then
39324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39325 $as_echo "yes" >&6; }
39327 cat >>confdefs.h <<_ACEOF
39328 #define HAVE_WRITEV 1
39331 curl_cv_func_writev="yes"
39333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39334 $as_echo "no" >&6; }
39335 curl_cv_func_writev="no"
39343 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39344 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39348 for ac_func in fork \
39368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39371 cat >>confdefs.h <<_ACEOF
39372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39379 eval skipcheck=\$skipcheck_$func
39380 if test "x$skipcheck" != "xyes"; then
39381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39382 $as_echo_n "checking deeper for $func... " >&6; }
39383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39384 /* end confdefs.h. */
39398 if ac_fn_c_try_link "$LINENO"; then :
39400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39401 $as_echo "yes" >&6; }
39402 eval "ac_cv_func_$func=yes"
39404 cat >>confdefs.h <<_ACEOF
39405 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39412 $as_echo "but still no" >&6; }
39415 rm -f core conftest.err conftest.$ac_objext \
39416 conftest$ac_exeext conftest.$ac_ext
39424 for ac_header in sys/types.h sys/socket.h netdb.h
39426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39427 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39429 cat >>confdefs.h <<_ACEOF
39430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
39439 $as_echo_n "checking for getnameinfo... " >&6; }
39440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39441 /* end confdefs.h. */
39444 #define getnameinfo innocuous_getnameinfo
39446 # include <limits.h>
39448 # include <assert.h>
39454 char getnameinfo ();
39455 #if defined __stub_getnameinfo || defined __stub___getnameinfo
39461 return getnameinfo ();
39467 if ac_fn_c_try_link "$LINENO"; then :
39469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39470 $as_echo "yes" >&6; }
39471 curl_cv_getnameinfo="yes"
39475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39476 $as_echo "no" >&6; }
39477 curl_cv_getnameinfo="no"
39480 rm -f core conftest.err conftest.$ac_objext \
39481 conftest$ac_exeext conftest.$ac_ext
39483 if test "$curl_cv_getnameinfo" != "yes"; then
39484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
39485 $as_echo_n "checking deeper for getnameinfo... " >&6; }
39486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39487 /* end confdefs.h. */
39501 if ac_fn_c_try_link "$LINENO"; then :
39503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39504 $as_echo "yes" >&6; }
39505 curl_cv_getnameinfo="yes"
39509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39510 $as_echo "but still no" >&6; }
39511 curl_cv_getnameinfo="no"
39514 rm -f core conftest.err conftest.$ac_objext \
39515 conftest$ac_exeext conftest.$ac_ext
39518 if test "$curl_cv_getnameinfo" != "yes"; then
39519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
39520 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
39521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39522 /* end confdefs.h. */
39526 #ifdef HAVE_WINDOWS_H
39527 #ifndef WIN32_LEAN_AND_MEAN
39528 #define WIN32_LEAN_AND_MEAN
39530 #include <windows.h>
39531 #ifdef HAVE_WINSOCK2_H
39532 #include <winsock2.h>
39533 #ifdef HAVE_WS2TCPIP_H
39534 #include <ws2tcpip.h>
39538 #ifdef HAVE_SYS_TYPES_H
39539 #include <sys/types.h>
39541 #ifdef HAVE_SYS_SOCKET_H
39542 #include <sys/socket.h>
39544 #ifdef HAVE_NETDB_H
39552 getnameinfo(0, 0, 0, 0, 0, 0, 0);
39559 if ac_fn_c_try_link "$LINENO"; then :
39561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39562 $as_echo "yes" >&6; }
39563 curl_cv_getnameinfo="yes"
39567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39568 $as_echo "but still no" >&6; }
39569 curl_cv_getnameinfo="no"
39572 rm -f core conftest.err conftest.$ac_objext \
39573 conftest$ac_exeext conftest.$ac_ext
39576 if test "$curl_cv_getnameinfo" = "yes"; then
39577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
39578 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
39579 if ${curl_cv_func_getnameinfo_args+:} false; then :
39580 $as_echo_n "(cached) " >&6
39583 curl_cv_func_getnameinfo_args="unknown"
39584 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
39585 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
39586 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
39587 for gni_arg7 in 'int' 'unsigned int'; do
39588 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39590 /* end confdefs.h. */
39594 #ifdef HAVE_WINDOWS_H
39595 #ifndef WIN32_LEAN_AND_MEAN
39596 #define WIN32_LEAN_AND_MEAN
39598 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
39599 #undef _WIN32_WINNT
39600 #define _WIN32_WINNT 0x0501
39602 #include <windows.h>
39603 #ifdef HAVE_WINSOCK2_H
39604 #include <winsock2.h>
39605 #ifdef HAVE_WS2TCPIP_H
39606 #include <ws2tcpip.h>
39609 #define GNICALLCONV WSAAPI
39611 #ifdef HAVE_SYS_TYPES_H
39612 #include <sys/types.h>
39614 #ifdef HAVE_SYS_SOCKET_H
39615 #include <sys/socket.h>
39617 #ifdef HAVE_NETDB_H
39620 #define GNICALLCONV
39622 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
39623 char *, $gni_arg46,
39624 char *, $gni_arg46,
39631 $gni_arg46 hostlen=0;
39632 $gni_arg46 servlen=0;
39634 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
39641 if ac_fn_c_try_compile "$LINENO"; then :
39643 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
39646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
39655 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
39656 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
39658 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
39659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
39660 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
39662 gni_prev_IFS=$IFS; IFS=','
39663 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
39667 gni_qual_type_arg1=$1
39670 cat >>confdefs.h <<_ACEOF
39671 #define GETNAMEINFO_TYPE_ARG2 $2
39675 cat >>confdefs.h <<_ACEOF
39676 #define GETNAMEINFO_TYPE_ARG46 $3
39680 cat >>confdefs.h <<_ACEOF
39681 #define GETNAMEINFO_TYPE_ARG7 $4
39687 case $prev_sh_opts in
39695 case "$gni_qual_type_arg1" in
39697 gni_qual_arg1=const
39698 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
39702 gni_type_arg1=$gni_qual_type_arg1
39707 cat >>confdefs.h <<_ACEOF
39708 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
39712 cat >>confdefs.h <<_ACEOF
39713 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
39717 case $prev_sh_opts in
39726 cat >>confdefs.h <<_ACEOF
39727 #define HAVE_GETNAMEINFO 1
39730 curl_cv_func_getnameinfo="yes"
39735 if test "$ipv6" = "yes"; then
39736 if test "$curl_cv_func_getaddrinfo" = "yes"; then
39738 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
39744 for ac_header in stdio.h sys/types.h sys/socket.h \
39745 netdb.h netinet/in.h arpa/inet.h
39747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39748 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39750 cat >>confdefs.h <<_ACEOF
39751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
39760 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
39761 if ${curl_cv_working_ni_withscopeid+:} false; then :
39762 $as_echo_n "(cached) " >&6
39765 if test "$cross_compiling" = yes; then :
39767 # Program is not run when cross-compiling. So we assume
39768 # NI_WITHSCOPEID will work if we are able to compile it.
39769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39770 /* end confdefs.h. */
39773 #include <sys/types.h>
39774 #include <sys/socket.h>
39780 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39787 if ac_fn_c_try_compile "$LINENO"; then :
39789 curl_cv_working_ni_withscopeid="yes"
39793 curl_cv_working_ni_withscopeid="no"
39796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
39799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39800 /* end confdefs.h. */
39803 #ifdef HAVE_STDLIB_H
39804 #include <stdlib.h>
39806 #ifdef HAVE_STDIO_H
39809 #ifdef HAVE_SYS_TYPES_H
39810 #include <sys/types.h>
39812 #ifdef HAVE_SYS_SOCKET_H
39813 #include <sys/socket.h>
39815 #ifdef HAVE_NETDB_H
39818 #ifdef HAVE_NETINET_IN_H
39819 #include <netinet/in.h>
39821 #ifdef HAVE_ARPA_INET_H
39822 #include <arpa/inet.h>
39828 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
39829 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
39830 struct sockaddr_storage sa;
39832 unsigned char sa[256];
39834 char hostbuf[NI_MAXHOST];
39836 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
39837 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
39838 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39839 int fd = socket(AF_INET6, SOCK_STREAM, 0);
39841 perror("socket()");
39842 return 1; /* Error creating socket */
39844 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
39846 perror("getsockname()");
39847 return 2; /* Error retrieving socket name */
39849 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
39851 printf("rc = %s\n", gai_strerror(rc));
39852 return 3; /* Error translating socket address */
39854 return 0; /* Ok, NI_WITHSCOPEID works */
39856 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
39861 } # AC-LANG-PROGRAM
39864 if ac_fn_c_try_run "$LINENO"; then :
39866 # Exit code == 0. Program worked.
39867 curl_cv_working_ni_withscopeid="yes"
39871 # Exit code != 0. Program failed.
39872 curl_cv_working_ni_withscopeid="no"
39875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39876 conftest.$ac_objext conftest.beam conftest.$ac_ext
39881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
39882 $as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
39883 case "$curl_cv_working_ni_withscopeid" in
39886 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
39895 tst_method="unknown"
39897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
39898 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
39899 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
39900 tst_method="fcntl O_NONBLOCK"
39901 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
39902 tst_method="ioctl FIONBIO"
39903 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
39904 tst_method="ioctlsocket FIONBIO"
39905 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
39906 tst_method="IoctlSocket FIONBIO"
39907 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
39908 tst_method="setsockopt SO_NONBLOCK"
39910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
39911 $as_echo "$tst_method" >&6; }
39912 if test "$tst_method" = "unknown"; then
39913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
39914 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
39919 # Extract the first word of "perl", so it can be a program name with args.
39920 set dummy perl; ac_word=$2
39921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39922 $as_echo_n "checking for $ac_word... " >&6; }
39923 if ${ac_cv_path_PERL+:} false; then :
39924 $as_echo_n "(cached) " >&6
39928 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39932 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
39933 for as_dir in $as_dummy
39936 test -z "$as_dir" && as_dir=.
39937 for ac_exec_ext in '' $ac_executable_extensions; do
39938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39939 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39950 PERL=$ac_cv_path_PERL
39951 if test -n "$PERL"; then
39952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
39953 $as_echo "$PERL" >&6; }
39955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39956 $as_echo "no" >&6; }
39962 for ac_prog in gnroff nroff
39964 # Extract the first word of "$ac_prog", so it can be a program name with args.
39965 set dummy $ac_prog; ac_word=$2
39966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39967 $as_echo_n "checking for $ac_word... " >&6; }
39968 if ${ac_cv_path_NROFF+:} false; then :
39969 $as_echo_n "(cached) " >&6
39973 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
39976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39977 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
39978 for as_dir in $as_dummy
39981 test -z "$as_dir" && as_dir=.
39982 for ac_exec_ext in '' $ac_executable_extensions; do
39983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39984 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
39985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39995 NROFF=$ac_cv_path_NROFF
39996 if test -n "$NROFF"; then
39997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
39998 $as_echo "$NROFF" >&6; }
40000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40001 $as_echo "no" >&6; }
40005 test -n "$NROFF" && break
40010 if test -n "$NROFF"; then
40012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40013 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40015 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40016 if test -z "$mancheck"; then
40018 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40019 if test -z "$mancheck"; then
40021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40022 $as_echo "failed" >&6; }
40023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40024 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40027 $as_echo "$MANOPT" >&6; }
40030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40031 $as_echo "$MANOPT" >&6; }
40036 if test -z "$MANOPT"
40038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40039 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40044 if test "$USE_MANUAL" = "1"; then
40046 $as_echo "#define USE_MANUAL 1" >>confdefs.h
40048 curl_manual_msg="enabled"
40051 if test x"$USE_MANUAL" = x1; then
40053 USE_MANUAL_FALSE='#'
40055 USE_MANUAL_TRUE='#'
40064 if test "$want_ares" = "yes"; then
40065 clean_CPPFLAGS="$CPPFLAGS"
40066 clean_LDFLAGS="$LDFLAGS"
40068 embedded_ares="unknown"
40069 configure_runpath=`pwd`
40070 embedded_ares_builddir="$configure_runpath/ares"
40071 if test -n "$want_ares_path"; then
40072 ares_CPPFLAGS="-I$want_ares_path/include"
40073 ares_LDFLAGS="-L$want_ares_path/lib"
40074 ares_LIBS="-lcares"
40076 if test -d "$srcdir/ares"; then
40077 embedded_ares="yes"
40078 subdirs="$subdirs ares"
40081 ares_LDFLAGS="-L$embedded_ares_builddir"
40082 ares_LIBS="-lcares"
40086 ares_LIBS="-lcares"
40090 CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
40091 LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
40092 LIBS="$ares_LIBS $clean_LIBS"
40094 if test "$embedded_ares" != "yes"; then
40095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40096 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40098 /* end confdefs.h. */
40102 /* set of dummy functions in case c-ares was built with debug */
40103 void curl_dofree() { }
40104 void curl_sclose() { }
40105 void curl_domalloc() { }
40106 void curl_docalloc() { }
40107 void curl_socket() { }
40112 ares_channel channel;
40113 ares_cancel(channel); /* added in 1.2.0 */
40114 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40115 ares_dup(&channel, channel); /* added in 1.6.0 */
40122 if ac_fn_c_try_link "$LINENO"; then :
40124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40125 $as_echo "yes" >&6; }
40129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40130 $as_echo "no" >&6; }
40131 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40132 CPPFLAGS="$clean_CPPFLAGS"
40133 LDFLAGS="$clean_LDFLAGS"
40139 rm -f core conftest.err conftest.$ac_objext \
40140 conftest$ac_exeext conftest.$ac_ext
40142 if test "$want_ares" = "yes"; then
40144 $as_echo "#define USE_ARES 1" >>confdefs.h
40148 curl_res_msg="c-ares"
40152 if test x$embedded_ares = xyes; then
40153 USE_EMBEDDED_ARES_TRUE=
40154 USE_EMBEDDED_ARES_FALSE='#'
40156 USE_EMBEDDED_ARES_TRUE='#'
40157 USE_EMBEDDED_ARES_FALSE=
40161 if test "x$curl_cv_native_windows" != "xyes" &&
40162 test "x$enable_shared" = "xyes"; then
40163 build_libhostname=yes
40165 build_libhostname=no
40167 if test x$build_libhostname = xyes; then
40168 BUILD_LIBHOSTNAME_TRUE=
40169 BUILD_LIBHOSTNAME_FALSE='#'
40171 BUILD_LIBHOSTNAME_TRUE='#'
40172 BUILD_LIBHOSTNAME_FALSE=
40177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40178 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40179 OPT_THRES="default"
40180 # Check whether --enable-threaded_resolver was given.
40181 if test "${enable_threaded_resolver+set}" = set; then :
40182 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40185 case "$OPT_THRES" in
40193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40194 $as_echo "$want_thres" >&6; }
40197 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
40198 as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
40201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40202 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40203 # Check whether --enable-pthreads was given.
40204 if test "${enable_pthreads+set}" = set; then :
40205 enableval=$enable_pthreads; case "$enableval" in
40206 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40207 $as_echo "no" >&6; }
40210 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40211 $as_echo "yes" >&6; }
40217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40218 $as_echo "auto" >&6; }
40224 if test "$want_thres" = "yes" && test "$dontwant_rt" = "no" && \
40225 test "$want_pthreads" != "no"; then
40226 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40227 if test "x$ac_cv_header_pthread_h" = xyes; then :
40229 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40231 save_CFLAGS="$CFLAGS"
40233 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40234 if test "x$ac_cv_func_pthread_create" = xyes; then :
40235 USE_THREADS_POSIX=1
40239 if test "$USE_THREADS_POSIX" != "1"
40241 CFLAGS="$CFLAGS -pthread"
40242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40243 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40244 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40245 $as_echo_n "(cached) " >&6
40247 ac_check_lib_save_LIBS=$LIBS
40248 LIBS="-lpthread $LIBS"
40249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40250 /* end confdefs.h. */
40256 char pthread_create ();
40259 return pthread_create ();
40264 if ac_fn_c_try_link "$LINENO"; then :
40265 ac_cv_lib_pthread_pthread_create=yes
40267 ac_cv_lib_pthread_pthread_create=no
40269 rm -f core conftest.err conftest.$ac_objext \
40270 conftest$ac_exeext conftest.$ac_ext
40271 LIBS=$ac_check_lib_save_LIBS
40273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40274 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40275 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40276 USE_THREADS_POSIX=1
40278 CFLAGS="$save_CFLAGS"
40283 if test "x$USE_THREADS_POSIX" = "x1"
40286 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40288 curl_res_msg="POSIX threaded"
40295 if test "x$USE_THREADS_POSIX" != "x1"; then
40296 if test "$want_pthreads" = "yes"; then
40297 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40299 if test "$want_thres" = "yes"; then
40300 if test "$curl_cv_native_windows" = "yes"; then
40301 USE_THREADS_WIN32=1
40303 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40305 curl_res_msg="Win32 threaded"
40307 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40314 $as_echo_n "checking whether to enable verbose strings... " >&6; }
40315 # Check whether --enable-verbose was given.
40316 if test "${enable_verbose+set}" = set; then :
40317 enableval=$enable_verbose; case "$enableval" in
40319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40320 $as_echo "no" >&6; }
40322 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40324 curl_verbose_msg="no"
40326 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40327 $as_echo "yes" >&6; }
40331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40332 $as_echo "yes" >&6; }
40337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40338 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40339 # Check whether --enable-sspi was given.
40340 if test "${enable_sspi+set}" = set; then :
40341 enableval=$enable_sspi; case "$enableval" in
40343 if test "$curl_cv_native_windows" = "yes"; then
40344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40345 $as_echo "yes" >&6; }
40347 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40351 curl_sspi_msg="enabled"
40353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40354 $as_echo "no" >&6; }
40355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40356 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40360 if test "x$WINSSL_ENABLED" = "x1"; then
40361 # --with-winssl implies --enable-sspi
40362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40363 $as_echo "yes" >&6; }
40365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40366 $as_echo "no" >&6; }
40371 if test "x$WINSSL_ENABLED" = "x1"; then
40372 # --with-winssl implies --enable-sspi
40373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40374 $as_echo "yes" >&6; }
40376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40377 $as_echo "no" >&6; }
40383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40384 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40385 # Check whether --enable-crypto-auth was given.
40386 if test "${enable_crypto_auth+set}" = set; then :
40387 enableval=$enable_crypto_auth; case "$enableval" in
40389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40390 $as_echo "no" >&6; }
40392 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40394 CURL_DISABLE_CRYPTO_AUTH=1
40396 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40397 $as_echo "yes" >&6; }
40401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40402 $as_echo "yes" >&6; }
40408 OPT_NTLM_WB="default"
40409 # Check whether --enable-ntlm-wb was given.
40410 if test "${enable_ntlm_wb+set}" = set; then :
40411 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40414 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40415 case "$OPT_NTLM_WB" in
40424 if test -n "$enableval" && test "$enableval" != "yes"; then
40425 want_ntlm_wb_file="$enableval"
40432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40433 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40434 if test "$curl_cv_native_windows" = "yes" ||
40435 test "x$SSL_ENABLED" = "x"; then
40436 want_ntlm_wb_file=""
40439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40440 $as_echo "$want_ntlm_wb" >&6; }
40441 if test "$want_ntlm_wb" = "yes"; then
40443 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40446 cat >>confdefs.h <<_ACEOF
40447 #define NTLM_WB_FILE "$want_ntlm_wb_file"
40454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40455 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40456 # Check whether --enable-tls-srp was given.
40457 if test "${enable_tls_srp+set}" = set; then :
40458 enableval=$enable_tls_srp; case "$enableval" in
40460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40461 $as_echo "no" >&6; }
40463 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40467 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40468 $as_echo "yes" >&6; }
40473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40474 $as_echo "yes" >&6; }
40480 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40482 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40485 curl_tls_srp_msg="enabled"
40488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40489 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40490 # Check whether --enable-unix-sockets was given.
40491 if test "${enable_unix_sockets+set}" = set; then :
40492 enableval=$enable_unix_sockets; case "$enableval" in
40493 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40494 $as_echo "no" >&6; }
40495 want_unix_sockets=no
40497 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40498 $as_echo "yes" >&6; }
40499 want_unix_sockets=yes
40504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40505 $as_echo "auto" >&6; }
40506 want_unix_sockets=auto
40511 if test "x$want_unix_sockets" != "xno"; then
40512 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40513 #include <sys/un.h>
40516 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40519 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40523 curl_unix_sockets_msg="enabled"
40527 if test "x$want_unix_sockets" = "xyes"; then
40528 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40536 $as_echo_n "checking whether to enable support for cookies... " >&6; }
40537 # Check whether --enable-cookies was given.
40538 if test "${enable_cookies+set}" = set; then :
40539 enableval=$enable_cookies; case "$enableval" in
40541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40542 $as_echo "no" >&6; }
40544 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40547 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40548 $as_echo "yes" >&6; }
40552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40553 $as_echo "yes" >&6; }
40559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40560 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40561 CFLAG_CURL_SYMBOL_HIDING=""
40562 doing_symbol_hiding="no"
40563 if test x"$curl_cv_native_windows" != "xyes" &&
40564 test "$want_symbol_hiding" = "yes" &&
40565 test "$supports_symbol_hiding" = "yes"; then
40566 doing_symbol_hiding="yes"
40567 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40569 cat >>confdefs.h <<_ACEOF
40570 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40574 $as_echo "yes" >&6; }
40576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40577 $as_echo "no" >&6; }
40579 if test x$doing_symbol_hiding = xyes; then
40580 DOING_CURL_SYMBOL_HIDING_TRUE=
40581 DOING_CURL_SYMBOL_HIDING_FALSE='#'
40583 DOING_CURL_SYMBOL_HIDING_TRUE='#'
40584 DOING_CURL_SYMBOL_HIDING_FALSE=
40591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
40592 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
40593 # Check whether --enable-soname-bump was given.
40594 if test "${enable_soname_bump+set}" = set; then :
40595 enableval=$enable_soname_bump; case "$enableval" in
40596 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40597 $as_echo "yes" >&6; }
40601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40602 $as_echo "no" >&6; }
40606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
40607 $as_echo "$soname_bump" >&6; }
40611 if test x$soname_bump = xyes; then
40613 SONAME_BUMP_FALSE='#'
40615 SONAME_BUMP_TRUE='#'
40629 if test x$cross_compiling = xyes; then
40630 CROSSCOMPILING_TRUE=
40631 CROSSCOMPILING_FALSE='#'
40633 CROSSCOMPILING_TRUE='#'
40634 CROSSCOMPILING_FALSE=
40638 ENABLE_SHARED="$enable_shared"
40641 ENABLE_STATIC="$enable_static"
40646 if test "x$OPENSSL_ENABLED" = "x1"; then
40647 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40648 elif test -n "$SSL_ENABLED"; then
40649 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40651 if test "x$IPV6_ENABLED" = "x1"; then
40652 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
40654 if test "x$USE_UNIX_SOCKETS" = "x1"; then
40655 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
40657 if test "x$HAVE_LIBZ" = "x1"; then
40658 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
40660 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
40661 -o "x$USE_THREADS_WIN32" = "x1"; then
40662 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
40664 if test "x$IDN_ENABLED" = "x1"; then
40665 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
40667 if test "x$USE_WINDOWS_SSPI" = "x1"; then
40668 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
40671 if test "x$HAVE_GSSAPI" = "x1"; then
40672 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
40675 if test "x$curl_psl_msg" = "xyes"; then
40676 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
40679 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40680 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40681 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
40684 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40685 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40686 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
40689 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
40690 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40691 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40692 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
40693 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
40695 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
40696 "x$NTLM_WB_ENABLED" = "x1"; then
40697 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
40702 if test "x$USE_TLS_SRP" = "x1"; then
40703 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
40706 if test "x$USE_NGHTTP2" = "x1"; then
40707 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
40710 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
40711 -o "x$NSS_ENABLED" = "x1"; then
40712 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
40717 if test "x$CURL_DISABLE_HTTP" != "x1"; then
40718 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
40719 if test "x$SSL_ENABLED" = "x1"; then
40720 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
40723 if test "x$CURL_DISABLE_FTP" != "x1"; then
40724 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
40725 if test "x$SSL_ENABLED" = "x1"; then
40726 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
40729 if test "x$CURL_DISABLE_FILE" != "x1"; then
40730 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
40732 if test "x$CURL_DISABLE_TELNET" != "x1"; then
40733 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
40735 if test "x$CURL_DISABLE_LDAP" != "x1"; then
40736 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
40737 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
40738 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
40739 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
40740 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
40744 if test "x$CURL_DISABLE_DICT" != "x1"; then
40745 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
40747 if test "x$CURL_DISABLE_TFTP" != "x1"; then
40748 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
40750 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
40751 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
40753 if test "x$CURL_DISABLE_POP3" != "x1"; then
40754 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
40755 if test "x$SSL_ENABLED" = "x1"; then
40756 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
40759 if test "x$CURL_DISABLE_IMAP" != "x1"; then
40760 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
40761 if test "x$SSL_ENABLED" = "x1"; then
40762 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
40765 if test "x$CURL_DISABLE_SMB" != "x1" \
40766 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
40767 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40768 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40769 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
40770 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
40771 if test "x$SSL_ENABLED" = "x1"; then
40772 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
40775 if test "x$CURL_DISABLE_SMTP" != "x1"; then
40776 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
40777 if test "x$SSL_ENABLED" = "x1"; then
40778 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
40781 if test "x$USE_LIBSSH2" = "x1"; then
40782 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
40783 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
40785 if test "x$CURL_DISABLE_RTSP" != "x1"; then
40786 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
40788 if test "x$USE_LIBRTMP" = "x1"; then
40789 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
40792 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
40803 squeeze LIBCURL_LIBS
40804 squeeze CURL_NETWORK_LIBS
40805 squeeze CURL_NETWORK_AND_TIME_LIBS
40807 squeeze SUPPORT_FEATURES
40808 squeeze SUPPORT_PROTOCOLS
40813 for xc_word in $LIBS; do
40819 xc_bad_var_libs=yes
40823 if test $xc_bad_var_libs = yes; then
40824 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
40825 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
40826 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
40827 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
40831 xc_bad_var_ldflags=no
40832 for xc_word in $LDFLAGS; do
40835 xc_bad_var_ldflags=yes
40838 xc_bad_var_ldflags=yes
40841 xc_bad_var_ldflags=yes
40844 xc_bad_var_ldflags=yes
40848 if test $xc_bad_var_ldflags = yes; then
40849 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
40850 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
40851 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
40852 for xc_word in $LDFLAGS; do
40855 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40856 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40859 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40860 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40863 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40864 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40867 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40868 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40875 xc_bad_var_cppflags=no
40876 for xc_word in $CPPFLAGS; do
40879 xc_bad_var_cppflags=yes
40881 -L* | --library-path=*)
40882 xc_bad_var_cppflags=yes
40885 xc_bad_var_cppflags=yes
40889 if test $xc_bad_var_cppflags = yes; then
40890 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
40891 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
40892 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
40893 for xc_word in $CPPFLAGS; do
40896 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40897 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40899 -L* | --library-path=*)
40900 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40901 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40904 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40905 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40912 xc_bad_var_cflags=no
40913 for xc_word in $CFLAGS; do
40916 xc_bad_var_cflags=yes
40919 xc_bad_var_cflags=yes
40922 xc_bad_var_cflags=yes
40925 xc_bad_var_cflags=yes
40927 -L* | --library-path=*)
40928 xc_bad_var_cflags=yes
40931 xc_bad_var_cflags=yes
40935 if test $xc_bad_var_cflags = yes; then
40936 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
40937 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
40938 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
40939 for xc_word in $CFLAGS; do
40942 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40943 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40946 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40947 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40950 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40951 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40954 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40955 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40957 -L* | --library-path=*)
40958 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40959 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40962 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40963 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40969 if test $xc_bad_var_libs = yes ||
40970 test $xc_bad_var_cflags = yes ||
40971 test $xc_bad_var_ldflags = yes ||
40972 test $xc_bad_var_cppflags = yes; then
40973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
40974 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
40978 if test "x$want_curldebug_assumed" = "xyes" &&
40979 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
40980 ac_configure_args="$ac_configure_args --enable-curldebug"
40983 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/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
40985 cat >confcache <<\_ACEOF
40986 # This file is a shell script that caches the results of configure
40987 # tests run on this system so they can be shared between configure
40988 # scripts and configure runs, see configure's option --config-cache.
40989 # It is not useful on other systems. If it contains results you don't
40990 # want to keep, you may remove or edit it.
40992 # config.status only pays attention to the cache file if you give it
40993 # the --recheck option to rerun configure.
40995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40997 # following values.
41001 # The following way of writing the cache mishandles newlines in values,
41002 # but we know of no workaround that is simple, portable, and efficient.
41003 # So, we kill variables containing newlines.
41004 # Ultrix sh set writes to stderr and can't be redirected directly,
41005 # and sets the high bit in the cache file unless we assign to the vars.
41007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41008 eval ac_val=\$$ac_var
41012 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41013 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41016 _ | IFS | as_nl) ;; #(
41017 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41018 *) { eval $ac_var=; unset $ac_var;} ;;
41024 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41025 *${as_nl}ac_space=\ *)
41026 # `set' does not quote correctly, so add quotes: double-quote
41027 # substitution turns \\\\ into \\, and sed turns \\ into \.
41030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41033 # `set' quotes correctly as required by POSIX, so do not add quotes.
41034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41043 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41045 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41047 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41048 if test -w "$cache_file"; then
41049 if test "x$cache_file" != "x/dev/null"; then
41050 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41051 $as_echo "$as_me: updating cache $cache_file" >&6;}
41052 if test ! -f "$cache_file" || test -h "$cache_file"; then
41053 cat confcache >"$cache_file"
41055 case $cache_file in #(
41057 mv -f confcache "$cache_file"$$ &&
41058 mv -f "$cache_file"$$ "$cache_file" ;; #(
41060 mv -f confcache "$cache_file" ;;
41065 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41066 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41071 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41072 # Let make expand exec_prefix.
41073 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41075 DEFS=-DHAVE_CONFIG_H
41080 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41081 # 1. Remove the extension, and $U if already installed.
41082 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41083 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41084 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41085 # will be set to the directory where LIBOBJS objects are built.
41086 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41087 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41089 LIBOBJS=$ac_libobjs
41091 LTLIBOBJS=$ac_ltlibobjs
41094 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41095 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41099 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41100 if test -n "$am_sleep_pid"; then
41101 # Hide warnings about reused PIDs.
41102 wait $am_sleep_pid 2>/dev/null
41104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41105 $as_echo "done" >&6; }
41106 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41107 as_fn_error $? "conditional \"AMDEP\" was never defined.
41108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41110 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41111 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41114 if test -n "$EXEEXT"; then
41116 am__EXEEXT_FALSE='#'
41118 am__EXEEXT_TRUE='#'
41122 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41123 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41126 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41127 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41130 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41131 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41134 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41135 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41138 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41139 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41142 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41143 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41146 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41147 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41150 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41151 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41154 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41155 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41158 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41159 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41162 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41163 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41166 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41167 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41170 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41171 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41174 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41175 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41178 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41179 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41182 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
41183 as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
41184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41186 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41187 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41191 : "${CONFIG_STATUS=./config.status}"
41193 ac_clean_files_save=$ac_clean_files
41194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41196 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41198 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41200 # Generated by $as_me.
41201 # Run this file to recreate the current configuration.
41202 # Compiler output produced by configure, useful for debugging
41203 # configure, is in config.log if it exists.
41206 ac_cs_recheck=false
41209 SHELL=\${CONFIG_SHELL-$SHELL}
41212 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41213 ## -------------------- ##
41214 ## M4sh Initialization. ##
41215 ## -------------------- ##
41217 # Be more Bourne compatible
41218 DUALCASE=1; export DUALCASE # for MKS sh
41219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41222 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41223 # is contrary to our usage. Disable this feature.
41224 alias -g '${1+"$@"}'='"$@"'
41225 setopt NO_GLOB_SUBST
41227 case `(set -o) 2>/dev/null` in #(
41239 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41240 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41243 # Prefer a ksh shell builtin over an external printf program on Solaris,
41244 # but without wasting forks for bash or zsh.
41245 if test -z "$BASH_VERSION$ZSH_VERSION" \
41246 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41247 as_echo='print -r --'
41248 as_echo_n='print -rn --'
41249 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41250 as_echo='printf %s\n'
41251 as_echo_n='printf %s'
41253 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41254 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41255 as_echo_n='/usr/ucb/echo -n'
41257 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41258 as_echo_n_body='eval
41262 expr "X$arg" : "X\\(.*\\)$as_nl";
41263 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41265 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41267 export as_echo_n_body
41268 as_echo_n='sh -c $as_echo_n_body as_echo'
41270 export as_echo_body
41271 as_echo='sh -c $as_echo_body as_echo'
41277 # We need space, tab and new line, in precisely that order. Quoting is
41278 # there to prevent editors from complaining about space-tab.
41279 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41280 # splitting by setting IFS to empty value.)
41283 # Find who we are. Look in the path if we contain no directory separator.
41286 *[\\/]* ) as_myself=$0 ;;
41287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41288 for as_dir in $PATH
41291 test -z "$as_dir" && as_dir=.
41292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41298 # We did not find ourselves, most probably we were run as `sh COMMAND'
41299 # in which case we are not to be found in the path.
41300 if test "x$as_myself" = x; then
41303 if test ! -f "$as_myself"; then
41304 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41308 # Unset variables that we do not need and which cause bugs (e.g. in
41309 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41310 # suppresses any "Segmentation fault" message there. '((' could
41311 # trigger a bug in pdksh 5.2.14.
41312 for as_var in BASH_ENV ENV MAIL MAILPATH
41313 do eval test x\${$as_var+set} = xset \
41314 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41327 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41330 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41331 # ----------------------------------------
41332 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41333 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41334 # script with STATUS, using 1 if that was 0.
41337 as_status=$1; test $as_status -eq 0 && as_status=1
41339 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41340 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41342 $as_echo "$as_me: error: $2" >&2
41343 as_fn_exit $as_status
41347 # as_fn_set_status STATUS
41348 # -----------------------
41349 # Set $? to STATUS, without forking.
41350 as_fn_set_status ()
41353 } # as_fn_set_status
41355 # as_fn_exit STATUS
41356 # -----------------
41357 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41361 as_fn_set_status $1
41367 # Portably unset VAR.
41370 { eval $1=; unset $1;}
41372 as_unset=as_fn_unset
41373 # as_fn_append VAR VALUE
41374 # ----------------------
41375 # Append the text in VALUE to the end of the definition contained in VAR. Take
41376 # advantage of any shell optimizations that allow amortized linear growth over
41377 # repeated appends, instead of the typical quadratic growth present in naive
41379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41380 eval 'as_fn_append ()
41391 # as_fn_arith ARG...
41392 # ------------------
41393 # Perform arithmetic evaluation on the ARGs, and store the result in the
41394 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41395 # must be portable across $(()) and expr.
41396 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41397 eval 'as_fn_arith ()
41404 as_val=`expr "$@" || test $? -eq 1`
41409 if expr a : '\(a\)' >/dev/null 2>&1 &&
41410 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41416 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41417 as_basename=basename
41422 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41428 as_me=`$as_basename -- "$0" ||
41429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41430 X"$0" : 'X\(//\)$' \| \
41431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41433 sed '/^.*\/\([^/][^/]*\)\/*$/{
41447 # Avoid depending upon Character Ranges.
41448 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41449 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41450 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41451 as_cr_digits='0123456789'
41452 as_cr_alnum=$as_cr_Letters$as_cr_digits
41454 ECHO_C= ECHO_N= ECHO_T=
41455 case `echo -n x` in #(((((
41457 case `echo 'xy\c'` in
41458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41467 rm -f conf$$ conf$$.exe conf$$.file
41468 if test -d conf$$.dir; then
41469 rm -f conf$$.dir/conf$$.file
41472 mkdir conf$$.dir 2>/dev/null
41474 if (echo >conf$$.file) 2>/dev/null; then
41475 if ln -s conf$$.file conf$$ 2>/dev/null; then
41477 # ... but there are two gotchas:
41478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41480 # In both cases, we have to default to `cp -pR'.
41481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41483 elif ln conf$$.file conf$$ 2>/dev/null; then
41491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41492 rmdir conf$$.dir 2>/dev/null
41497 # Create "$as_dir" as a directory, including parents if necessary.
41502 -*) as_dir=./$as_dir;;
41504 test -d "$as_dir" || eval $as_mkdir_p || {
41508 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41509 *) as_qdir=$as_dir;;
41511 as_dirs="'$as_qdir' $as_dirs"
41512 as_dir=`$as_dirname -- "$as_dir" ||
41513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41514 X"$as_dir" : 'X\(//\)[^/]' \| \
41515 X"$as_dir" : 'X\(//\)$' \| \
41516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41517 $as_echo X"$as_dir" |
41518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41522 /^X\(\/\/\)[^/].*/{
41535 test -d "$as_dir" && break
41537 test -z "$as_dirs" || eval "mkdir $as_dirs"
41538 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41542 if mkdir -p . 2>/dev/null; then
41543 as_mkdir_p='mkdir -p "$as_dir"'
41545 test -d ./-p && rmdir ./-p
41550 # as_fn_executable_p FILE
41551 # -----------------------
41552 # Test if FILE is an executable regular file.
41553 as_fn_executable_p ()
41555 test -f "$1" && test -x "$1"
41556 } # as_fn_executable_p
41557 as_test_x='test -x'
41558 as_executable_p=as_fn_executable_p
41560 # Sed expression to map a string onto a valid CPP name.
41561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41563 # Sed expression to map a string onto a valid variable name.
41564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41568 ## ----------------------------------- ##
41569 ## Main body of $CONFIG_STATUS script. ##
41570 ## ----------------------------------- ##
41572 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41575 # Save the log message, to keep $0 and so on meaningful, and to
41576 # report actual input values of CONFIG_FILES etc. instead of their
41577 # values after options handling.
41579 This file was extended by curl $as_me -, which was
41580 generated by GNU Autoconf 2.69. Invocation command line was
41582 CONFIG_FILES = $CONFIG_FILES
41583 CONFIG_HEADERS = $CONFIG_HEADERS
41584 CONFIG_LINKS = $CONFIG_LINKS
41585 CONFIG_COMMANDS = $CONFIG_COMMANDS
41588 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41593 case $ac_config_files in *"
41594 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41597 case $ac_config_headers in *"
41598 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41603 # Files that config.status was made for.
41604 config_files="$ac_config_files"
41605 config_headers="$ac_config_headers"
41606 config_commands="$ac_config_commands"
41610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41612 \`$as_me' instantiates files and other configuration actions
41613 from templates according to the current configuration. Unless the files
41614 and actions are specified as TAGs, all are instantiated by default.
41616 Usage: $0 [OPTION]... [TAG]...
41618 -h, --help print this help, then exit
41619 -V, --version print version number and configuration settings, then exit
41620 --config print configuration, then exit
41621 -q, --quiet, --silent
41622 do not print progress messages
41623 -d, --debug don't remove temporary files
41624 --recheck update $as_me by reconfiguring in the same conditions
41625 --file=FILE[:TEMPLATE]
41626 instantiate the configuration file FILE
41627 --header=FILE[:TEMPLATE]
41628 instantiate the configuration header FILE
41630 Configuration files:
41633 Configuration headers:
41636 Configuration commands:
41639 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
41642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41643 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41645 curl config.status -
41646 configured by $0, generated by GNU Autoconf 2.69,
41647 with options \\"\$ac_cs_config\\"
41649 Copyright (C) 2012 Free Software Foundation, Inc.
41650 This config.status script is free software; the Free Software Foundation
41651 gives unlimited permission to copy, distribute and modify it."
41658 test -n "\$AWK" || AWK=awk
41661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41662 # The default lists apply if the user does not specify any file.
41668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41673 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41685 # Handling of the options.
41686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41688 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41689 $as_echo "$ac_cs_version"; exit ;;
41690 --config | --confi | --conf | --con | --co | --c )
41691 $as_echo "$ac_cs_config"; exit ;;
41692 --debug | --debu | --deb | --de | --d | -d )
41694 --file | --fil | --fi | --f )
41697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41698 '') as_fn_error $? "missing file argument" ;;
41700 as_fn_append CONFIG_FILES " '$ac_optarg'"
41701 ac_need_defaults=false;;
41702 --header | --heade | --head | --hea )
41705 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41707 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41708 ac_need_defaults=false;;
41710 # Conflict between --help and --header
41711 as_fn_error $? "ambiguous option: \`$1'
41712 Try \`$0 --help' for more information.";;
41713 --help | --hel | -h )
41714 $as_echo "$ac_cs_usage"; exit ;;
41715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41716 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41719 # This is an error.
41720 -*) as_fn_error $? "unrecognized option: \`$1'
41721 Try \`$0 --help' for more information." ;;
41723 *) as_fn_append ac_config_targets " $1"
41724 ac_need_defaults=false ;;
41730 ac_configure_extra_args=
41732 if $ac_cs_silent; then
41734 ac_configure_extra_args="$ac_configure_extra_args --silent"
41738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41739 if \$ac_cs_recheck; then
41740 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41742 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41743 CONFIG_SHELL='$SHELL'
41744 export CONFIG_SHELL
41749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41753 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41754 ## Running $as_me. ##
41760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41764 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41767 # The HP-UX ksh and POSIX shell print the target directory to stdout
41768 # if CDPATH is set.
41769 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41771 sed_quote_subst='$sed_quote_subst'
41772 double_quote_subst='$double_quote_subst'
41773 delay_variable_subst='$delay_variable_subst'
41774 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41775 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41776 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41777 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41778 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41779 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41780 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41781 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41782 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41783 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41784 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41785 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41786 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41787 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41788 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41789 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41790 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41791 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41792 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41793 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41794 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41795 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41796 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41797 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41798 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41799 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41800 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41801 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41802 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41803 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41804 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41805 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41806 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41807 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41808 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41809 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41810 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41811 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41812 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41813 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41814 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41815 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41816 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41817 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41818 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41819 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41820 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41821 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41822 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41823 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41824 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41825 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41826 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41827 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41828 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41829 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41830 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41831 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41832 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41833 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"`'
41834 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41835 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41836 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41837 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41838 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41839 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41840 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41841 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41842 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41843 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41844 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41845 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41846 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41847 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41848 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41849 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41850 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41851 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41852 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41853 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41854 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41855 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41856 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41857 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41858 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41859 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41860 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41861 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41862 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41863 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41864 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41865 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41866 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41867 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41868 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41869 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41870 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41871 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41872 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41873 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41874 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41875 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41876 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41877 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41878 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41879 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41880 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41881 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41882 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41883 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41884 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41885 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41886 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41887 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41888 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41889 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41890 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41891 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41892 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41893 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41894 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41895 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41896 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41897 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41898 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41899 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41900 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41901 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41902 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41903 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41904 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41905 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41906 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41907 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41908 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41909 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41912 LTCFLAGS='$LTCFLAGS'
41913 compiler='$compiler_DEFAULT'
41915 # A function that is used when there is no print builtin or printf.
41916 func_fallback_echo ()
41918 eval 'cat <<_LTECHO_EOF
41923 # Quote evaled strings.
41940 deplibs_check_method \
41944 sharedlib_from_linklib_cmd \
41947 archiver_list_spec \
41953 lt_cv_sys_global_symbol_pipe \
41954 lt_cv_sys_global_symbol_to_cdecl \
41955 lt_cv_sys_global_symbol_to_import \
41956 lt_cv_sys_global_symbol_to_c_name_address \
41957 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41958 lt_cv_nm_interface \
41959 nm_file_list_spec \
41960 lt_cv_truncate_bin \
41961 lt_prog_compiler_no_builtin_flag \
41962 lt_prog_compiler_pic \
41963 lt_prog_compiler_wl \
41964 lt_prog_compiler_static \
41965 lt_cv_prog_compiler_c_o \
41974 export_dynamic_flag_spec \
41975 whole_archive_flag_spec \
41976 compiler_needs_object \
41978 allow_undefined_flag \
41979 no_undefined_flag \
41980 hardcode_libdir_flag_spec \
41981 hardcode_libdir_separator \
41985 variables_saved_for_relink \
41987 library_names_spec \
41989 install_override_mode \
41993 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41994 *[\\\\\\\`\\"\\\$]*)
41995 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41998 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42003 # Double-quote double-evaled strings.
42004 for var in reload_cmds \
42005 old_postinstall_cmds \
42006 old_postuninstall_cmds \
42008 extract_expsyms_cmds \
42009 old_archive_from_new_cmds \
42010 old_archive_from_expsyms_cmds \
42012 archive_expsym_cmds \
42014 module_expsym_cmds \
42015 export_symbols_cmds \
42019 postuninstall_cmds \
42021 sys_lib_search_path_spec \
42022 configure_time_dlsearch_path \
42023 configure_time_lt_sys_library_path; do
42024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42025 *[\\\\\\\`\\"\\\$]*)
42026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42034 ac_aux_dir='$ac_aux_dir'
42036 # See if we are running on zsh, and set the options that allow our
42037 # commands through without removal of \ escapes INIT.
42038 if test -n "\${ZSH_VERSION+set}"; then
42039 setopt NO_GLOB_SUBST
42053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42055 # Handling of arguments.
42056 for ac_config_target in $ac_config_targets
42058 case $ac_config_target in
42059 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42060 "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
42061 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42062 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42063 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42064 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42065 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42066 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42067 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42068 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42069 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42070 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42071 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42072 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42073 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42074 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42075 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42076 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42077 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42078 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42079 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42080 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42081 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42082 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42083 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42084 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42085 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42086 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42087 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42088 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42089 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42090 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42091 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42092 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42093 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42094 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42095 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42096 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42097 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42099 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42104 # If the user did not use the arguments to specify the items to instantiate,
42105 # then the envvar interface is used. Set only those that are not.
42106 # We use the long form for the default assignment because of an extremely
42107 # bizarre bug on SunOS 4.1.3.
42108 if $ac_need_defaults; then
42109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42111 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42114 # Have a temporary directory for convenience. Make it in the build tree
42115 # simply because there is no reason against having it here, and in addition,
42116 # creating and moving files from /tmp can sometimes cause problems.
42117 # Hook for its removal unless debugging.
42118 # Note that there is a small window in which the directory will not be cleaned:
42119 # after its creation but before its name has been assigned to `$tmp'.
42123 trap 'exit_status=$?
42124 : "${ac_tmp:=$tmp}"
42125 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42127 trap 'as_fn_exit 1' 1 2 13 15
42129 # Create a (secure) tmp directory for tmp files.
42132 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42136 tmp=./conf$$-$RANDOM
42137 (umask 077 && mkdir "$tmp")
42138 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42141 # Set up the scripts for CONFIG_FILES section.
42142 # No need to generate them if there are no CONFIG_FILES.
42143 # This happens for instance with `./config.status config.h'.
42144 if test -n "$CONFIG_FILES"; then
42147 ac_cr=`echo X | tr X '\015'`
42148 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42149 # But we know of no other shell where ac_cr would be empty at this
42150 # point, so we can use a bashism as a fallback.
42151 if test "x$ac_cr" = x; then
42152 eval ac_cr=\$\'\\r\'
42154 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42155 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42158 ac_cs_awk_cr=$ac_cr
42161 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42166 echo "cat >conf$$subs.awk <<_ACEOF" &&
42167 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42169 } >conf$$subs.sh ||
42170 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42171 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42173 for ac_last_try in false false false false false :; do
42174 . ./conf$$subs.sh ||
42175 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42177 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42178 if test $ac_delim_n = $ac_delim_num; then
42180 elif $ac_last_try; then
42181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42186 rm -f conf$$subs.sh
42188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42189 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42193 s/^/S["/; s/!.*/"]=/
42203 s/\(.\{148\}\)..*/\1/
42205 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42217 s/\(.\{148\}\)..*/\1/
42219 s/["\\]/\\&/g; s/^/"/; s/$/"/
42223 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42228 ' <conf$$subs.awk | sed '
42233 ' >>$CONFIG_STATUS || ac_write_fail=1
42234 rm -f conf$$subs.awk
42235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42237 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42238 for (key in S) S_is_set[key] = 1
42244 nfields = split(line, field, "@")
42246 len = length(field[1])
42247 for (i = 2; i < nfields; i++) {
42249 keylen = length(key)
42250 if (S_is_set[key]) {
42252 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42253 len += length(value) + length(field[++i])
42264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42265 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42266 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42269 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42270 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42273 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42274 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42275 # trailing colons and then remove the whole line if VPATH becomes empty
42276 # (actually we leave an empty line to preserve line numbers).
42277 if test "x$srcdir" = x.; then
42278 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42297 fi # test -n "$CONFIG_FILES"
42299 # Set up the scripts for CONFIG_HEADERS section.
42300 # No need to generate them if there are no CONFIG_HEADERS.
42301 # This happens for instance with `./config.status Makefile'.
42302 if test -n "$CONFIG_HEADERS"; then
42303 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42307 # Transform confdefs.h into an awk script `defines.awk', embedded as
42308 # here-document in config.status, that substitutes the proper values into
42309 # config.h.in to produce config.h.
42311 # Create a delimiter string that does not exist in confdefs.h, to ease
42312 # handling of long lines.
42314 for ac_last_try in false false :; do
42315 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42316 if test -z "$ac_tt"; then
42318 elif $ac_last_try; then
42319 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42325 # For the awk script, D is an array of macro values keyed by name,
42326 # likewise P contains macro parameters if any. Preserve backslash
42327 # newline sequences.
42329 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42331 s/.\{148\}/&'"$ac_delim"'/g
42334 s/^[ ]*#[ ]*define[ ][ ]*/ /
42341 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42343 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42348 D["\1"]=" \3\\\\\\n"\\/p
42350 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42355 s/.\{148\}/&'"$ac_delim"'/g
42360 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42363 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42365 ' <confdefs.h | sed '
42366 s/'"$ac_delim"'/"\\\
42367 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42370 for (key in D) D_is_set[key] = 1
42373 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42375 split(line, arg, " ")
42376 if (arg[1] == "#") {
42380 defundef = substr(arg[1], 2)
42383 split(mac1, mac2, "(") #)
42385 prefix = substr(line, 1, index(line, defundef) - 1)
42386 if (D_is_set[macro]) {
42387 # Preserve the white space surrounding the "#".
42388 print prefix "define", macro P[macro] D[macro]
42391 # Replace #undef with comments. This is necessary, for example,
42392 # in the case of _POSIX_SOURCE, which is predefined and required
42393 # on some systems where configure will not decide to define it.
42394 if (defundef == "undef") {
42395 print "/*", prefix defundef, macro, "*/"
42403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42404 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42405 fi # test -n "$CONFIG_HEADERS"
42408 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42413 :[FHLC]) ac_mode=$ac_tag; continue;;
42415 case $ac_mode$ac_tag in
42417 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42418 :[FH]-) ac_tag=-:-;;
42419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42436 -) ac_f="$ac_tmp/stdin";;
42437 *) # Look for the file first in the build tree, then in the source tree
42438 # (if the path is not absolute). The absolute path cannot be DOS-style,
42439 # because $ac_f cannot contain `:'.
42443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42445 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42447 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42448 as_fn_append ac_file_inputs " '$ac_f'"
42451 # Let's still pretend it is `configure' which instantiates (i.e., don't
42452 # use $as_me), people would be surprised to read:
42453 # /* config.h. Generated by config.status. */
42454 configure_input='Generated from '`
42455 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42457 if test x"$ac_file" != x-; then
42458 configure_input="$ac_file. $configure_input"
42459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42460 $as_echo "$as_me: creating $ac_file" >&6;}
42462 # Neutralize special characters interpreted by sed in replacement strings.
42463 case $configure_input in #(
42464 *\&* | *\|* | *\\* )
42465 ac_sed_conf_input=`$as_echo "$configure_input" |
42466 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42467 *) ac_sed_conf_input=$configure_input;;
42471 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42477 ac_dir=`$as_dirname -- "$ac_file" ||
42478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42479 X"$ac_file" : 'X\(//\)[^/]' \| \
42480 X"$ac_file" : 'X\(//\)$' \| \
42481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42482 $as_echo X"$ac_file" |
42483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42487 /^X\(\/\/\)[^/].*/{
42500 as_dir="$ac_dir"; as_fn_mkdir_p
42504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42507 # A ".." for each directory in $ac_dir_suffix.
42508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42509 case $ac_top_builddir_sub in
42510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42514 ac_abs_top_builddir=$ac_pwd
42515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42516 # for backward compatibility:
42517 ac_top_builddir=$ac_top_build_prefix
42520 .) # We are building in place.
42522 ac_top_srcdir=$ac_top_builddir_sub
42523 ac_abs_top_srcdir=$ac_pwd ;;
42524 [\\/]* | ?:[\\/]* ) # Absolute name.
42525 ac_srcdir=$srcdir$ac_dir_suffix;
42526 ac_top_srcdir=$srcdir
42527 ac_abs_top_srcdir=$srcdir ;;
42528 *) # Relative name.
42529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42530 ac_top_srcdir=$ac_top_build_prefix$srcdir
42531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42544 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42546 ac_MKDIR_P=$MKDIR_P
42548 [\\/$]* | ?:[\\/]* ) ;;
42549 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42554 # If the template does not know about datarootdir, expand it.
42555 # FIXME: This hack should be removed a few years after 2.60.
42556 ac_datarootdir_hack=; ac_datarootdir_seen=
42567 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42568 *datarootdir*) ac_datarootdir_seen=yes;;
42569 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42571 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42574 ac_datarootdir_hack='
42575 s&@datadir@&$datadir&g
42576 s&@docdir@&$docdir&g
42577 s&@infodir@&$infodir&g
42578 s&@localedir@&$localedir&g
42579 s&@mandir@&$mandir&g
42580 s&\\\${datarootdir}&$datarootdir&g' ;;
42584 # Neutralize VPATH when `$srcdir' = `.'.
42585 # Shell code in configure.ac might set extrasub.
42586 # FIXME: do we really want to maintain this feature?
42587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42588 ac_sed_extra="$ac_vpsub
42591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42594 s|@configure_input@|$ac_sed_conf_input|;t t
42595 s&@top_builddir@&$ac_top_builddir_sub&;t t
42596 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42597 s&@srcdir@&$ac_srcdir&;t t
42598 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42599 s&@top_srcdir@&$ac_top_srcdir&;t t
42600 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42601 s&@builddir@&$ac_builddir&;t t
42602 s&@abs_builddir@&$ac_abs_builddir&;t t
42603 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42604 s&@INSTALL@&$ac_INSTALL&;t t
42605 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42606 $ac_datarootdir_hack
42608 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42609 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42611 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42612 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42613 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42614 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42616 which seems to be undefined. Please make sure it is defined" >&5
42617 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42618 which seems to be undefined. Please make sure it is defined" >&2;}
42620 rm -f "$ac_tmp/stdin"
42622 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42623 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42631 if test x"$ac_file" != x-; then
42633 $as_echo "/* $configure_input */" \
42634 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42635 } >"$ac_tmp/config.h" \
42636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42637 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42638 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42639 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42642 mv "$ac_tmp/config.h" "$ac_file" \
42643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42646 $as_echo "/* $configure_input */" \
42647 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42648 || as_fn_error $? "could not create -" "$LINENO" 5
42650 # Compute "$ac_file"'s index in $config_headers.
42653 for _am_header in $config_headers :; do
42654 case $_am_header in
42655 $_am_arg | $_am_arg:* )
42658 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42661 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42662 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42663 X"$_am_arg" : 'X\(//\)[^/]' \| \
42664 X"$_am_arg" : 'X\(//\)$' \| \
42665 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42666 $as_echo X"$_am_arg" |
42667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42671 /^X\(\/\/\)[^/].*/{
42683 s/.*/./; q'`/stamp-h$_am_stamp_count
42686 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42687 $as_echo "$as_me: executing $ac_file commands" >&6;}
42692 case $ac_file$ac_mode in
42693 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42694 # Older Autoconf quotes --file arguments for eval, but not when files
42695 # are listed without --file. Let's play safe and only enable the eval
42696 # if we detect the quoting.
42697 case $CONFIG_FILES in
42698 *\'*) eval set x "$CONFIG_FILES" ;;
42699 *) set x $CONFIG_FILES ;;
42704 # Strip MF so we end up with the name of the file.
42705 mf=`echo "$mf" | sed -e 's/:.*$//'`
42706 # Check whether this is an Automake generated Makefile or not.
42707 # We used to match only the files named 'Makefile.in', but
42708 # some people rename them; so instead we look at the file content.
42709 # Grep'ing the first line is not enough: some people post-process
42710 # each Makefile.in and add a new line on top of each file to say so.
42711 # Grep'ing the whole file is not good either: AIX grep has a line
42712 # limit of 2048, but all sed's we know have understand at least 4000.
42713 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42714 dirpart=`$as_dirname -- "$mf" ||
42715 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42716 X"$mf" : 'X\(//\)[^/]' \| \
42717 X"$mf" : 'X\(//\)$' \| \
42718 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42724 /^X\(\/\/\)[^/].*/{
42740 # Extract the definition of DEPDIR, am__include, and am__quote
42741 # from the Makefile without running 'make'.
42742 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42743 test -z "$DEPDIR" && continue
42744 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42745 test -z "$am__include" && continue
42746 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42747 # Find all dependency output files, they are included files with
42748 # $(DEPDIR) in their names. We invoke sed twice because it is the
42749 # simplest approach to changing $(DEPDIR) to its actual value in the
42751 for file in `sed -n "
42752 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42753 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42754 # Make sure the directory exists.
42755 test -f "$dirpart/$file" && continue
42756 fdir=`$as_dirname -- "$file" ||
42757 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42758 X"$file" : 'X\(//\)[^/]' \| \
42759 X"$file" : 'X\(//\)$' \| \
42760 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42761 $as_echo X"$file" |
42762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42766 /^X\(\/\/\)[^/].*/{
42779 as_dir=$dirpart/$fdir; as_fn_mkdir_p
42780 # echo "creating $dirpart/$file"
42781 echo '# dummy' > "$dirpart/$file"
42788 # See if we are running on zsh, and set the options that allow our
42789 # commands through without removal of \ escapes.
42790 if test -n "${ZSH_VERSION+set}"; then
42791 setopt NO_GLOB_SUBST
42795 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42798 cat <<_LT_EOF >> "$cfgfile"
42800 # Generated automatically by $as_me ($PACKAGE) $VERSION
42801 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42803 # Provide generalized library-building support services.
42804 # Written by Gordon Matzigkeit, 1996
42806 # Copyright (C) 2014 Free Software Foundation, Inc.
42807 # This is free software; see the source for copying conditions. There is NO
42808 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42810 # GNU Libtool is free software; you can redistribute it and/or modify
42811 # it under the terms of the GNU General Public License as published by
42812 # the Free Software Foundation; either version 2 of of the License, or
42813 # (at your option) any later version.
42815 # As a special exception to the GNU General Public License, if you
42816 # distribute this file as part of a program or library that is built
42817 # using GNU Libtool, you may include this file under the same
42818 # distribution terms that you use for the rest of that program.
42820 # GNU Libtool is distributed in the hope that it will be useful, but
42821 # WITHOUT ANY WARRANTY; without even the implied warranty of
42822 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42823 # GNU General Public License for more details.
42825 # You should have received a copy of the GNU General Public License
42826 # along with this program. If not, see <http://www.gnu.org/licenses/>.
42829 # The names of the tagged configurations supported by this script.
42832 # Configured defaults for sys_lib_dlsearch_path munging.
42833 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42835 # ### BEGIN LIBTOOL CONFIG
42837 # Which release of libtool.m4 was used?
42838 macro_version=$macro_version
42839 macro_revision=$macro_revision
42841 # Assembler program.
42844 # DLL creation program.
42845 DLLTOOL=$lt_DLLTOOL
42847 # Object dumper program.
42848 OBJDUMP=$lt_OBJDUMP
42850 # Whether or not to build shared libraries.
42851 build_libtool_libs=$enable_shared
42853 # Whether or not to build static libraries.
42854 build_old_libs=$enable_static
42856 # What type of objects to build.
42859 # Whether or not to optimize for fast installation.
42860 fast_install=$enable_fast_install
42862 # Shared archive member basename,for filename based shared library versioning on AIX.
42863 shared_archive_member_spec=$shared_archive_member_spec
42865 # Shell to use when invoking shell scripts.
42868 # An echo program that protects backslashes.
42871 # The PATH separator for the build system.
42872 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42875 host_alias=$host_alias
42879 # The build system.
42880 build_alias=$build_alias
42884 # A sed program that does not truncate output.
42887 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42888 Xsed="\$SED -e 1s/^X//"
42890 # A grep program that handles long lines.
42896 # A literal string matcher.
42899 # A BSD- or MS-compatible name lister.
42902 # Whether we need soft or hard links.
42905 # What is the maximum length of a command?
42906 max_cmd_len=$max_cmd_len
42908 # Object file suffix (normally "o").
42911 # Executable file suffix (normally "").
42914 # whether the shell understands "unset".
42917 # turn spaces into newlines.
42920 # turn newlines into spaces.
42923 # convert \$build file names to \$host format.
42924 to_host_file_cmd=$lt_cv_to_host_file_cmd
42926 # convert \$build files to toolchain format.
42927 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42929 # Method to check whether dependent libraries are shared objects.
42930 deplibs_check_method=$lt_deplibs_check_method
42932 # Command to use when deplibs_check_method = "file_magic".
42933 file_magic_cmd=$lt_file_magic_cmd
42935 # How to find potential files when deplibs_check_method = "file_magic".
42936 file_magic_glob=$lt_file_magic_glob
42938 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42939 want_nocaseglob=$lt_want_nocaseglob
42941 # Command to associate shared and link libraries.
42942 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42947 # Flags to create an archive.
42948 AR_FLAGS=$lt_AR_FLAGS
42950 # How to feed a file listing to the archiver.
42951 archiver_list_spec=$lt_archiver_list_spec
42953 # A symbol stripping program.
42956 # Commands used to install an old-style archive.
42958 old_postinstall_cmds=$lt_old_postinstall_cmds
42959 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42961 # Whether to use a lock for old archive extraction.
42962 lock_old_archive_extraction=$lock_old_archive_extraction
42967 # LTCC compiler flags.
42968 LTCFLAGS=$lt_CFLAGS
42970 # Take the output of nm and produce a listing of raw symbols and C names.
42971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42973 # Transform the output of nm in a proper C declaration.
42974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42976 # Transform the output of nm into a list of symbols to manually relocate.
42977 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42979 # Transform the output of nm in a C name address pair.
42980 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42982 # Transform the output of nm in a C name address pair when lib prefix is needed.
42983 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42985 # The name lister interface.
42986 nm_interface=$lt_lt_cv_nm_interface
42988 # Specify filename containing input files for \$NM.
42989 nm_file_list_spec=$lt_nm_file_list_spec
42991 # The root where to search for dependent libraries,and where our libraries should be installed.
42992 lt_sysroot=$lt_sysroot
42994 # Command to truncate a binary pipe.
42995 lt_truncate_bin=$lt_lt_cv_truncate_bin
42997 # The name of the directory that contains temporary libtool files.
43000 # Used to examine libraries when file_magic_cmd begins with "file".
43001 MAGIC_CMD=$MAGIC_CMD
43003 # Must we lock files when doing compilation?
43004 need_locks=$lt_need_locks
43007 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43009 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43010 DSYMUTIL=$lt_DSYMUTIL
43012 # Tool to change global to local symbols on Mac OS X.
43015 # Tool to manipulate fat objects and archives on Mac OS X.
43018 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43021 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43022 OTOOL64=$lt_OTOOL64
43024 # Old archive suffix (normally "a").
43027 # Shared library suffix (normally ".so").
43028 shrext_cmds=$lt_shrext_cmds
43030 # The commands to extract the exported symbol list from a shared archive.
43031 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43033 # Variables whose values should be saved in libtool wrapper scripts and
43034 # restored at link time.
43035 variables_saved_for_relink=$lt_variables_saved_for_relink
43037 # Do we need the "lib" prefix for modules?
43038 need_lib_prefix=$need_lib_prefix
43040 # Do we need a version for libraries?
43041 need_version=$need_version
43043 # Library versioning type.
43044 version_type=$version_type
43046 # Shared library runtime path variable.
43047 runpath_var=$runpath_var
43049 # Shared library path variable.
43050 shlibpath_var=$shlibpath_var
43052 # Is shlibpath searched before the hard-coded library search path?
43053 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43055 # Format of library name prefix.
43056 libname_spec=$lt_libname_spec
43058 # List of archive names. First name is the real one, the rest are links.
43059 # The last name is the one that the linker finds with -lNAME
43060 library_names_spec=$lt_library_names_spec
43062 # The coded name of the library, if different from the real name.
43063 soname_spec=$lt_soname_spec
43065 # Permission mode override for installation of shared libraries.
43066 install_override_mode=$lt_install_override_mode
43068 # Command to use after installation of a shared archive.
43069 postinstall_cmds=$lt_postinstall_cmds
43071 # Command to use after uninstallation of a shared archive.
43072 postuninstall_cmds=$lt_postuninstall_cmds
43074 # Commands used to finish a libtool library installation in a directory.
43075 finish_cmds=$lt_finish_cmds
43077 # As "finish_cmds", except a single script fragment to be evaled but
43079 finish_eval=$lt_finish_eval
43081 # Whether we should hardcode library paths into libraries.
43082 hardcode_into_libs=$hardcode_into_libs
43084 # Compile-time system search path for libraries.
43085 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43087 # Detected run-time system search path for libraries.
43088 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43090 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43091 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43093 # Whether dlopen is supported.
43094 dlopen_support=$enable_dlopen
43096 # Whether dlopen of programs is supported.
43097 dlopen_self=$enable_dlopen_self
43099 # Whether dlopen of statically linked programs is supported.
43100 dlopen_self_static=$enable_dlopen_self_static
43102 # Commands to strip libraries.
43103 old_striplib=$lt_old_striplib
43104 striplib=$lt_striplib
43107 # The linker used to build libraries.
43110 # How to create reloadable object files.
43111 reload_flag=$lt_reload_flag
43112 reload_cmds=$lt_reload_cmds
43114 # Commands used to build an old-style archive.
43115 old_archive_cmds=$lt_old_archive_cmds
43117 # A language specific compiler.
43120 # Is the compiler the GNU compiler?
43123 # Compiler flag to turn off builtin functions.
43124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43126 # Additional compiler flags for building library objects.
43127 pic_flag=$lt_lt_prog_compiler_pic
43129 # How to pass a linker flag through the compiler.
43130 wl=$lt_lt_prog_compiler_wl
43132 # Compiler flag to prevent dynamic linking.
43133 link_static_flag=$lt_lt_prog_compiler_static
43135 # Does compiler simultaneously support -c and -o options?
43136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43138 # Whether or not to add -lc for building shared libraries.
43139 build_libtool_need_lc=$archive_cmds_need_lc
43141 # Whether or not to disallow shared libs when runtime libs are static.
43142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43144 # Compiler flag to allow reflexive dlopens.
43145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43147 # Compiler flag to generate shared objects directly from archives.
43148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43150 # Whether the compiler copes with passing no objects directly.
43151 compiler_needs_object=$lt_compiler_needs_object
43153 # Create an old-style archive from a shared archive.
43154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43156 # Create a temporary old-style archive to link instead of a shared archive.
43157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43159 # Commands used to build a shared archive.
43160 archive_cmds=$lt_archive_cmds
43161 archive_expsym_cmds=$lt_archive_expsym_cmds
43163 # Commands used to build a loadable module if different from building
43164 # a shared archive.
43165 module_cmds=$lt_module_cmds
43166 module_expsym_cmds=$lt_module_expsym_cmds
43168 # Whether we are building with GNU ld or not.
43169 with_gnu_ld=$lt_with_gnu_ld
43171 # Flag that allows shared libraries with undefined symbols to be built.
43172 allow_undefined_flag=$lt_allow_undefined_flag
43174 # Flag that enforces no undefined symbols.
43175 no_undefined_flag=$lt_no_undefined_flag
43177 # Flag to hardcode \$libdir into a binary during linking.
43178 # This must work even if \$libdir does not exist
43179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43181 # Whether we need a single "-rpath" flag with a separated argument.
43182 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43184 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43185 # DIR into the resulting binary.
43186 hardcode_direct=$hardcode_direct
43188 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43189 # DIR into the resulting binary and the resulting library dependency is
43190 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43191 # library is relocated.
43192 hardcode_direct_absolute=$hardcode_direct_absolute
43194 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43195 # into the resulting binary.
43196 hardcode_minus_L=$hardcode_minus_L
43198 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43199 # into the resulting binary.
43200 hardcode_shlibpath_var=$hardcode_shlibpath_var
43202 # Set to "yes" if building a shared library automatically hardcodes DIR
43203 # into the library and all subsequent libraries and executables linked
43205 hardcode_automatic=$hardcode_automatic
43207 # Set to yes if linker adds runtime paths of dependent libraries
43208 # to runtime path list.
43209 inherit_rpath=$inherit_rpath
43211 # Whether libtool must link a program against all its dependency libraries.
43212 link_all_deplibs=$link_all_deplibs
43214 # Set to "yes" if exported symbols are required.
43215 always_export_symbols=$always_export_symbols
43217 # The commands to list exported symbols.
43218 export_symbols_cmds=$lt_export_symbols_cmds
43220 # Symbols that should not be listed in the preloaded symbols.
43221 exclude_expsyms=$lt_exclude_expsyms
43223 # Symbols that must always be exported.
43224 include_expsyms=$lt_include_expsyms
43226 # Commands necessary for linking programs (against libraries) with templates.
43227 prelink_cmds=$lt_prelink_cmds
43229 # Commands necessary for finishing linking programs.
43230 postlink_cmds=$lt_postlink_cmds
43232 # Specify filename containing input files.
43233 file_list_spec=$lt_file_list_spec
43235 # How to hardcode a shared library path into an executable.
43236 hardcode_action=$hardcode_action
43238 # ### END LIBTOOL CONFIG
43242 cat <<'_LT_EOF' >> "$cfgfile"
43244 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43246 # func_munge_path_list VARIABLE PATH
43247 # -----------------------------------
43248 # VARIABLE is name of variable containing _space_ separated list of
43249 # directories to be munged by the contents of PATH, which is string
43252 # string "DIR[ DIR]" will be prepended to VARIABLE
43254 # string "DIR[ DIR]" will be appended to VARIABLE
43255 # "DIRP[:DIRP]::[DIRA:]DIRA"
43256 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43257 # "DIRA[ DIRA]" will be appended to VARIABLE
43259 # VARIABLE will be replaced by "DIR[ DIR]"
43260 func_munge_path_list ()
43266 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43269 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43272 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43273 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43276 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43282 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43283 func_cc_basename ()
43285 for cc_temp in $*""; do
43287 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43288 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43293 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43297 # ### END FUNCTIONS SHARED WITH CONFIGURE
43303 cat <<\_LT_EOF >> "$cfgfile"
43304 # AIX sometimes has problems with the GCC collect2 program. For some
43305 # reason, if we set the COLLECT_NAMES environment variable, the problems
43306 # vanish in a puff of smoke.
43307 if test set != "${COLLECT_NAMES+set}"; then
43309 export COLLECT_NAMES
43316 ltmain=$ac_aux_dir/ltmain.sh
43319 # We use sed instead of cat because bash on DJGPP gets confused if
43320 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43321 # text mode, it properly converts lines to CR/LF. This bash problem
43322 # is reportedly fixed, but why not run on old versions too?
43323 sed '$q' "$ltmain" >> "$cfgfile" \
43324 || (rm -f "$cfgfile"; exit 1)
43326 mv -f "$cfgfile" "$ofile" ||
43327 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43338 ac_clean_files=$ac_clean_files_save
43340 test $ac_write_fail = 0 ||
43341 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43344 # configure is writing to config.log, and then calls config.status.
43345 # config.status does its own redirection, appending to config.log.
43346 # Unfortunately, on DOS this fails, as config.log is still kept open
43347 # by configure, so config.status won't be able to write to it; its
43348 # output is simply discarded. So we exec the FD to /dev/null,
43349 # effectively closing config.log, so it can be properly (re)opened and
43350 # appended to by config.status. When coming back to configure, we
43351 # need to make the FD available again.
43352 if test "$no_create" != yes; then
43354 ac_config_status_args=
43355 test "$silent" = yes &&
43356 ac_config_status_args="$ac_config_status_args --quiet"
43358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43361 # would make configure fail if this is the last instruction.
43362 $ac_cs_success || as_fn_exit 1
43366 # CONFIG_SUBDIRS section.
43368 if test "$no_recursion" != yes; then
43370 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43371 # so they do not pile up.
43372 ac_sub_configure_args=
43374 eval "set x $ac_configure_args"
43378 if test -n "$ac_prev"; then
43383 -cache-file | --cache-file | --cache-fil | --cache-fi \
43384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43385 ac_prev=cache_file ;;
43386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43390 --config-cache | -C)
43392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43396 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43398 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43400 --disable-option-checking)
43404 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43406 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43410 # Always prepend --prefix to ensure using the same prefix
43411 # in subdir configurations.
43412 ac_arg="--prefix=$prefix"
43414 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43416 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43419 if test "$silent" = yes; then
43420 ac_sub_configure_args="--silent $ac_sub_configure_args"
43423 # Always prepend --disable-option-checking to silence warnings, since
43424 # different subdirs can have different --enable and --with options.
43425 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43428 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43430 # Do not complain, so a configure script can configure whichever
43431 # parts of a large source tree are present.
43432 test -d "$srcdir/$ac_dir" || continue
43434 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43435 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43436 $as_echo "$ac_msg" >&6
43437 as_dir="$ac_dir"; as_fn_mkdir_p
43441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43444 # A ".." for each directory in $ac_dir_suffix.
43445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43446 case $ac_top_builddir_sub in
43447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43451 ac_abs_top_builddir=$ac_pwd
43452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43453 # for backward compatibility:
43454 ac_top_builddir=$ac_top_build_prefix
43457 .) # We are building in place.
43459 ac_top_srcdir=$ac_top_builddir_sub
43460 ac_abs_top_srcdir=$ac_pwd ;;
43461 [\\/]* | ?:[\\/]* ) # Absolute name.
43462 ac_srcdir=$srcdir$ac_dir_suffix;
43463 ac_top_srcdir=$srcdir
43464 ac_abs_top_srcdir=$srcdir ;;
43465 *) # Relative name.
43466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43467 ac_top_srcdir=$ac_top_build_prefix$srcdir
43468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43475 # Check for guested configure; otherwise get Cygnus style configure.
43476 if test -f "$ac_srcdir/configure.gnu"; then
43477 ac_sub_configure=$ac_srcdir/configure.gnu
43478 elif test -f "$ac_srcdir/configure"; then
43479 ac_sub_configure=$ac_srcdir/configure
43480 elif test -f "$ac_srcdir/configure.in"; then
43481 # This should be Cygnus configure.
43482 ac_sub_configure=$ac_aux_dir/configure
43484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43489 # The recursion is here.
43490 if test -n "$ac_sub_configure"; then
43491 # Make the cache file name correct relative to the subdirectory.
43492 case $cache_file in
43493 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43494 *) # Relative name.
43495 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43498 { $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
43499 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43500 # The eval makes quoting arguments work.
43501 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43502 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43503 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43509 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43511 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43516 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43517 if test -z "$tmp_cpp"; then
43520 cat >./tests/configurehelp.pm <<_EOF
43521 # This is a generated file. Do not edit.
43523 package configurehelp;
43535 @ISA = qw(Exporter);
43541 \$Cpreprocessor = '$tmp_cpp';
43548 ## ---------------------------------- ##
43549 ## Start of distclean amending code ##
43550 ## ---------------------------------- ##
43552 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43555 if test ! -f "$xc_subdir/Makefile"; then
43556 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43560 # Fetch dependency tracking file list from Makefile include lines.
43562 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43563 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43565 # --disable-dependency-tracking might have been used, consequently
43566 # there is nothing to amend without a dependency tracking file list.
43568 if test $xc_cnt_words -gt 0; then
43570 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43571 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43573 # Build Makefile specific patch hunk.
43575 xc_p="$xc_subdir/xc_patch.tmp"
43577 xc_rm_depfiles=`echo "$xc_inc_lines" \
43578 | $SED 's%include% -rm -f%' 2>/dev/null`
43580 xc_dep_subdirs=`echo "$xc_inc_lines" \
43581 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43582 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43585 echo "$xc_rm_depfiles" >$xc_p
43587 for xc_dep_dir in $xc_dep_subdirs; do
43588 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
43589 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
43590 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
43591 echo "${xc_tab}fi" >>$xc_p
43594 # Build Makefile patching sed scripts.
43596 xc_s1="$xc_subdir/xc_script_1.tmp"
43597 xc_s2="$xc_subdir/xc_script_2.tmp"
43598 xc_s3="$xc_subdir/xc_script_3.tmp"
43600 cat >$xc_s1 <<\_EOT
43601 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
43602 s/^.*(DEPDIR)/___xc_depdir_line___/
43604 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
43605 s/^.*(DEPDIR)/___xc_depdir_line___/
43609 cat >$xc_s2 <<\_EOT
43610 /___xc_depdir_line___$/{
43612 /___xc_depdir_line___$/D
43617 /^___xc_depdir_line___/{
43623 # Apply patch to Makefile and cleanup.
43625 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
43626 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
43627 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
43629 if test -f "$xc_subdir/Makefile.tmp3"; then
43630 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
43633 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
43634 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
43635 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
43637 test -f "$xc_p" && rm -f "$xc_p"
43638 test -f "$xc_s1" && rm -f "$xc_s1"
43639 test -f "$xc_s2" && rm -f "$xc_s2"
43640 test -f "$xc_s3" && rm -f "$xc_s3"
43646 ## -------------------------------- ##
43647 ## End of distclean amending code ##
43648 ## -------------------------------- ##
43652 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
43654 curl version: ${CURLVERSION}
43655 Host setup: ${host}
43656 Install prefix: ${prefix}
43658 SSL support: ${curl_ssl_msg}
43659 SSH support: ${curl_ssh_msg}
43660 zlib support: ${curl_zlib_msg}
43661 GSS-API support: ${curl_gss_msg}
43662 TLS-SRP support: ${curl_tls_srp_msg}
43663 resolver: ${curl_res_msg}
43664 IPv6 support: ${curl_ipv6_msg}
43665 Unix sockets support: ${curl_unix_sockets_msg}
43666 IDN support: ${curl_idn_msg}
43667 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
43668 Built-in manual: ${curl_manual_msg}
43669 --libcurl option: ${curl_libcurl_msg}
43670 Verbose errors: ${curl_verbose_msg}
43671 SSPI support: ${curl_sspi_msg}
43672 ca cert bundle: ${ca}${ca_warning}
43673 ca cert path: ${capath}${capath_warning}
43674 ca fallback: ${with_ca_fallback}
43675 LDAP support: ${curl_ldap_msg}
43676 LDAPS support: ${curl_ldaps_msg}
43677 RTSP support: ${curl_rtsp_msg}
43678 RTMP support: ${curl_rtmp_msg}
43679 metalink support: ${curl_mtlnk_msg}
43680 PSL support: ${curl_psl_msg}
43681 HTTP2 support: ${curl_h2_msg}
43682 Protocols: ${SUPPORT_PROTOCOLS}
43684 $as_echo "$as_me: Configured to build curl/libcurl:
43686 curl version: ${CURLVERSION}
43687 Host setup: ${host}
43688 Install prefix: ${prefix}
43690 SSL support: ${curl_ssl_msg}
43691 SSH support: ${curl_ssh_msg}
43692 zlib support: ${curl_zlib_msg}
43693 GSS-API support: ${curl_gss_msg}
43694 TLS-SRP support: ${curl_tls_srp_msg}
43695 resolver: ${curl_res_msg}
43696 IPv6 support: ${curl_ipv6_msg}
43697 Unix sockets support: ${curl_unix_sockets_msg}
43698 IDN support: ${curl_idn_msg}
43699 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
43700 Built-in manual: ${curl_manual_msg}
43701 --libcurl option: ${curl_libcurl_msg}
43702 Verbose errors: ${curl_verbose_msg}
43703 SSPI support: ${curl_sspi_msg}
43704 ca cert bundle: ${ca}${ca_warning}
43705 ca cert path: ${capath}${capath_warning}
43706 ca fallback: ${with_ca_fallback}
43707 LDAP support: ${curl_ldap_msg}
43708 LDAPS support: ${curl_ldaps_msg}
43709 RTSP support: ${curl_rtsp_msg}
43710 RTMP support: ${curl_rtmp_msg}
43711 metalink support: ${curl_mtlnk_msg}
43712 PSL support: ${curl_psl_msg}
43713 HTTP2 support: ${curl_h2_msg}
43714 Protocols: ${SUPPORT_PROTOCOLS}
43717 if test "x$soname_bump" = "xyes"; then
43720 SONAME bump: yes - WARNING: this library will be built with the SONAME
43721 number bumped due to (a detected) ABI breakage.
43722 See lib/README.curl_off_t for details on this.