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
1184 ac_precious_vars='build_alias
1193 LT_SYS_LIBRARY_PATH'
1194 ac_subdirs_all='ares'
1196 # Initialize some variables set by options.
1198 ac_init_version=false
1199 ac_unrecognized_opts=
1200 ac_unrecognized_sep=
1201 # The variables have the same names as the options, with
1202 # dashes changed to underlines.
1203 cache_file=/dev/null
1210 program_transform_name=s,x,x,
1218 # Installation directory options.
1219 # These are left unexpanded so users can "make install exec_prefix=/foo"
1220 # and all the variables that are supposed to be based on exec_prefix
1221 # by default will actually change.
1222 # Use braces instead of parens because sh, perl, etc. also accept them.
1223 # (The list follows the same order as the GNU Coding Standards.)
1224 bindir='${exec_prefix}/bin'
1225 sbindir='${exec_prefix}/sbin'
1226 libexecdir='${exec_prefix}/libexec'
1227 datarootdir='${prefix}/share'
1228 datadir='${datarootdir}'
1229 sysconfdir='${prefix}/etc'
1230 sharedstatedir='${prefix}/com'
1231 localstatedir='${prefix}/var'
1232 runstatedir='${localstatedir}/run'
1233 includedir='${prefix}/include'
1234 oldincludedir='/usr/include'
1235 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1236 infodir='${datarootdir}/info'
1241 libdir='${exec_prefix}/lib'
1242 localedir='${datarootdir}/locale'
1243 mandir='${datarootdir}/man'
1249 # If the previous option needs an argument, assign it.
1250 if test -n "$ac_prev"; then
1251 eval $ac_prev=\$ac_option
1257 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1262 # Accept the important Cygnus configure options, so we can diagnose typos.
1264 case $ac_dashdash$ac_option in
1268 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1270 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1271 bindir=$ac_optarg ;;
1273 -build | --build | --buil | --bui | --bu)
1274 ac_prev=build_alias ;;
1275 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1276 build_alias=$ac_optarg ;;
1278 -cache-file | --cache-file | --cache-fil | --cache-fi \
1279 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1280 ac_prev=cache_file ;;
1281 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1282 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1283 cache_file=$ac_optarg ;;
1285 --config-cache | -C)
1286 cache_file=config.cache ;;
1288 -datadir | --datadir | --datadi | --datad)
1290 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1291 datadir=$ac_optarg ;;
1293 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1294 | --dataroo | --dataro | --datar)
1295 ac_prev=datarootdir ;;
1296 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1297 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1298 datarootdir=$ac_optarg ;;
1300 -disable-* | --disable-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 as_fn_error $? "invalid feature name: $ac_useropt"
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1309 "enable_$ac_useropt"
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1314 eval enable_$ac_useropt=no ;;
1316 -docdir | --docdir | --docdi | --doc | --do)
1318 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1319 docdir=$ac_optarg ;;
1321 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1323 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1324 dvidir=$ac_optarg ;;
1326 -enable-* | --enable-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 as_fn_error $? "invalid feature name: $ac_useropt"
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1335 "enable_$ac_useropt"
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1340 eval enable_$ac_useropt=\$ac_optarg ;;
1342 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1343 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1344 | --exec | --exe | --ex)
1345 ac_prev=exec_prefix ;;
1346 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1347 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1348 | --exec=* | --exe=* | --ex=*)
1349 exec_prefix=$ac_optarg ;;
1351 -gas | --gas | --ga | --g)
1352 # Obsolete; use --with-gas.
1355 -help | --help | --hel | --he | -h)
1356 ac_init_help=long ;;
1357 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1358 ac_init_help=recursive ;;
1359 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1360 ac_init_help=short ;;
1362 -host | --host | --hos | --ho)
1363 ac_prev=host_alias ;;
1364 -host=* | --host=* | --hos=* | --ho=*)
1365 host_alias=$ac_optarg ;;
1367 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1369 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1371 htmldir=$ac_optarg ;;
1373 -includedir | --includedir | --includedi | --included | --include \
1374 | --includ | --inclu | --incl | --inc)
1375 ac_prev=includedir ;;
1376 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1377 | --includ=* | --inclu=* | --incl=* | --inc=*)
1378 includedir=$ac_optarg ;;
1380 -infodir | --infodir | --infodi | --infod | --info | --inf)
1382 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1383 infodir=$ac_optarg ;;
1385 -libdir | --libdir | --libdi | --libd)
1387 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1388 libdir=$ac_optarg ;;
1390 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1391 | --libexe | --libex | --libe)
1392 ac_prev=libexecdir ;;
1393 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1394 | --libexe=* | --libex=* | --libe=*)
1395 libexecdir=$ac_optarg ;;
1397 -localedir | --localedir | --localedi | --localed | --locale)
1398 ac_prev=localedir ;;
1399 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1400 localedir=$ac_optarg ;;
1402 -localstatedir | --localstatedir | --localstatedi | --localstated \
1403 | --localstate | --localstat | --localsta | --localst | --locals)
1404 ac_prev=localstatedir ;;
1405 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1406 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1407 localstatedir=$ac_optarg ;;
1409 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1411 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1412 mandir=$ac_optarg ;;
1414 -nfp | --nfp | --nf)
1415 # Obsolete; use --without-fp.
1418 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1419 | --no-cr | --no-c | -n)
1422 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1423 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1426 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1427 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1428 | --oldin | --oldi | --old | --ol | --o)
1429 ac_prev=oldincludedir ;;
1430 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1431 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1432 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1433 oldincludedir=$ac_optarg ;;
1435 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1437 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1438 prefix=$ac_optarg ;;
1440 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1441 | --program-pre | --program-pr | --program-p)
1442 ac_prev=program_prefix ;;
1443 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1444 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1445 program_prefix=$ac_optarg ;;
1447 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1448 | --program-suf | --program-su | --program-s)
1449 ac_prev=program_suffix ;;
1450 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1451 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1452 program_suffix=$ac_optarg ;;
1454 -program-transform-name | --program-transform-name \
1455 | --program-transform-nam | --program-transform-na \
1456 | --program-transform-n | --program-transform- \
1457 | --program-transform | --program-transfor \
1458 | --program-transfo | --program-transf \
1459 | --program-trans | --program-tran \
1460 | --progr-tra | --program-tr | --program-t)
1461 ac_prev=program_transform_name ;;
1462 -program-transform-name=* | --program-transform-name=* \
1463 | --program-transform-nam=* | --program-transform-na=* \
1464 | --program-transform-n=* | --program-transform-=* \
1465 | --program-transform=* | --program-transfor=* \
1466 | --program-transfo=* | --program-transf=* \
1467 | --program-trans=* | --program-tran=* \
1468 | --progr-tra=* | --program-tr=* | --program-t=*)
1469 program_transform_name=$ac_optarg ;;
1471 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1473 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1474 pdfdir=$ac_optarg ;;
1476 -psdir | --psdir | --psdi | --psd | --ps)
1478 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482 | -silent | --silent | --silen | --sile | --sil)
1485 -runstatedir | --runstatedir | --runstatedi | --runstated \
1486 | --runstate | --runstat | --runsta | --runst | --runs \
1487 | --run | --ru | --r)
1488 ac_prev=runstatedir ;;
1489 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1490 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1491 | --run=* | --ru=* | --r=*)
1492 runstatedir=$ac_optarg ;;
1494 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1496 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1498 sbindir=$ac_optarg ;;
1500 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1501 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1502 | --sharedst | --shareds | --shared | --share | --shar \
1504 ac_prev=sharedstatedir ;;
1505 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1506 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1507 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1509 sharedstatedir=$ac_optarg ;;
1511 -site | --site | --sit)
1513 -site=* | --site=* | --sit=*)
1516 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1518 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1519 srcdir=$ac_optarg ;;
1521 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1522 | --syscon | --sysco | --sysc | --sys | --sy)
1523 ac_prev=sysconfdir ;;
1524 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1525 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1526 sysconfdir=$ac_optarg ;;
1528 -target | --target | --targe | --targ | --tar | --ta | --t)
1529 ac_prev=target_alias ;;
1530 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1531 target_alias=$ac_optarg ;;
1533 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1536 -version | --version | --versio | --versi | --vers | -V)
1537 ac_init_version=: ;;
1540 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1541 # Reject names that are not valid shell variable names.
1542 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1543 as_fn_error $? "invalid package name: $ac_useropt"
1544 ac_useropt_orig=$ac_useropt
1545 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546 case $ac_user_opts in
1550 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1551 ac_unrecognized_sep=', ';;
1553 eval with_$ac_useropt=\$ac_optarg ;;
1555 -without-* | --without-*)
1556 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1557 # Reject names that are not valid shell variable names.
1558 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1559 as_fn_error $? "invalid package name: $ac_useropt"
1560 ac_useropt_orig=$ac_useropt
1561 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1562 case $ac_user_opts in
1566 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1567 ac_unrecognized_sep=', ';;
1569 eval with_$ac_useropt=no ;;
1572 # Obsolete; use --with-x.
1575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1576 | --x-incl | --x-inc | --x-in | --x-i)
1577 ac_prev=x_includes ;;
1578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1580 x_includes=$ac_optarg ;;
1582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1584 ac_prev=x_libraries ;;
1585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1587 x_libraries=$ac_optarg ;;
1589 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1590 Try \`$0 --help' for more information"
1594 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1595 # Reject names that are not valid shell variable names.
1596 case $ac_envvar in #(
1597 '' | [0-9]* | *[!_$as_cr_alnum]* )
1598 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1600 eval $ac_envvar=\$ac_optarg
1601 export $ac_envvar ;;
1604 # FIXME: should be removed in autoconf 3.0.
1605 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1606 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1607 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1608 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1614 if test -n "$ac_prev"; then
1615 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1616 as_fn_error $? "missing argument to $ac_option"
1619 if test -n "$ac_unrecognized_opts"; then
1620 case $enable_option_checking in
1622 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1623 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1627 # Check all directory arguments for consistency.
1628 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1629 datadir sysconfdir sharedstatedir localstatedir includedir \
1630 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1631 libdir localedir mandir runstatedir
1633 eval ac_val=\$$ac_var
1634 # Remove trailing slashes.
1637 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1638 eval $ac_var=\$ac_val;;
1640 # Be sure to have absolute directory names.
1642 [\\/$]* | ?:[\\/]* ) continue;;
1643 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1645 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1648 # There might be people who depend on the old broken behavior: `$host'
1649 # used to hold the argument of --host etc.
1650 # FIXME: To remove some day.
1653 target=$target_alias
1655 # FIXME: To remove some day.
1656 if test "x$host_alias" != x; then
1657 if test "x$build_alias" = x; then
1658 cross_compiling=maybe
1659 elif test "x$build_alias" != "x$host_alias"; then
1665 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1667 test "$silent" = yes && exec 6>/dev/null
1670 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1671 ac_ls_di=`ls -di .` &&
1672 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1673 as_fn_error $? "working directory cannot be determined"
1674 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1675 as_fn_error $? "pwd does not report name of working directory"
1678 # Find the source files, if location was not specified.
1679 if test -z "$srcdir"; then
1680 ac_srcdir_defaulted=yes
1681 # Try the directory containing this script, then the parent directory.
1682 ac_confdir=`$as_dirname -- "$as_myself" ||
1683 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1684 X"$as_myself" : 'X\(//\)[^/]' \| \
1685 X"$as_myself" : 'X\(//\)$' \| \
1686 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1687 $as_echo X"$as_myself" |
1688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1706 if test ! -r "$srcdir/$ac_unique_file"; then
1710 ac_srcdir_defaulted=no
1712 if test ! -r "$srcdir/$ac_unique_file"; then
1713 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1714 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1716 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1718 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1720 # When building in place, set srcdir=.
1721 if test "$ac_abs_confdir" = "$ac_pwd"; then
1724 # Remove unnecessary trailing slashes from srcdir.
1725 # Double slashes in file names in object file debugging info
1726 # mess up M-x gdb in Emacs.
1728 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1730 for ac_var in $ac_precious_vars; do
1731 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1732 eval ac_env_${ac_var}_value=\$${ac_var}
1733 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1734 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1738 # Report the --help message.
1740 if test "$ac_init_help" = "long"; then
1741 # Omit some internal or obsolete options to make the list less imposing.
1742 # This message is too long to be a string in the A/UX 3.1 sh.
1744 \`configure' configures curl - to adapt to many kinds of systems.
1746 Usage: $0 [OPTION]... [VAR=VALUE]...
1748 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1749 VAR=VALUE. See below for descriptions of some of the useful variables.
1751 Defaults for the options are specified in brackets.
1754 -h, --help display this help and exit
1755 --help=short display options specific to this package
1756 --help=recursive display the short help of all the included packages
1757 -V, --version display version information and exit
1758 -q, --quiet, --silent do not print \`checking ...' messages
1759 --cache-file=FILE cache test results in FILE [disabled]
1760 -C, --config-cache alias for \`--cache-file=config.cache'
1761 -n, --no-create do not create output files
1762 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1764 Installation directories:
1765 --prefix=PREFIX install architecture-independent files in PREFIX
1766 [$ac_default_prefix]
1767 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1770 By default, \`make install' will install all the files in
1771 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1772 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1773 for instance \`--prefix=\$HOME'.
1775 For better control, use the options below.
1777 Fine tuning of the installation directories:
1778 --bindir=DIR user executables [EPREFIX/bin]
1779 --sbindir=DIR system admin executables [EPREFIX/sbin]
1780 --libexecdir=DIR program executables [EPREFIX/libexec]
1781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1783 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1784 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1785 --libdir=DIR object code libraries [EPREFIX/lib]
1786 --includedir=DIR C header files [PREFIX/include]
1787 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1788 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1789 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1790 --infodir=DIR info documentation [DATAROOTDIR/info]
1791 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1792 --mandir=DIR man documentation [DATAROOTDIR/man]
1793 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1794 --htmldir=DIR html documentation [DOCDIR]
1795 --dvidir=DIR dvi documentation [DOCDIR]
1796 --pdfdir=DIR pdf documentation [DOCDIR]
1797 --psdir=DIR ps documentation [DOCDIR]
1803 --program-prefix=PREFIX prepend PREFIX to installed program names
1804 --program-suffix=SUFFIX append SUFFIX to installed program names
1805 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1808 --build=BUILD configure for building on BUILD [guessed]
1809 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1813 if test -n "$ac_init_help"; then
1814 case $ac_init_help in
1815 short | recursive ) echo "Configuration of curl -:";;
1820 --disable-option-checking ignore unrecognized --enable/--with options
1821 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1822 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1823 --enable-maintainer-mode
1824 enable make rules and dependencies not useful (and
1825 sometimes confusing) to the casual installer
1826 --enable-silent-rules less verbose build output (undo: "make V=1")
1827 --disable-silent-rules verbose build output (undo: "make V=0")
1828 --enable-debug Enable debug build options
1829 --disable-debug Disable debug build options
1830 --enable-optimize Enable compiler optimizations
1831 --disable-optimize Disable compiler optimizations
1832 --enable-warnings Enable strict compiler warnings
1833 --disable-warnings Disable strict compiler warnings
1834 --enable-werror Enable compiler warnings as errors
1835 --disable-werror Disable compiler warnings as errors
1836 --enable-curldebug Enable curl debug memory tracking
1837 --disable-curldebug Disable curl debug memory tracking
1838 --enable-symbol-hiding Enable hiding of library internal symbols
1839 --disable-symbol-hiding Disable hiding of library internal symbols
1840 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1841 --disable-hidden-symbols
1842 To be deprecated, use --disable-symbol-hiding
1843 --enable-ares[=PATH] Enable c-ares for DNS lookups
1844 --disable-ares Disable c-ares for DNS lookups
1845 --disable-rt disable dependency on -lrt
1846 --enable-dependency-tracking
1847 do not reject slow dependency extractors
1848 --disable-dependency-tracking
1849 speeds up one-time build
1850 --disable-largefile omit support for large files
1851 --enable-shared[=PKGS] build shared libraries [default=yes]
1852 --enable-static[=PKGS] build static libraries [default=yes]
1853 --enable-fast-install[=PKGS]
1854 optimize for fast installation [default=yes]
1855 --disable-libtool-lock avoid locking (might break parallel builds)
1856 --enable-http Enable HTTP support
1857 --disable-http Disable HTTP support
1858 --enable-ftp Enable FTP support
1859 --disable-ftp Disable FTP support
1860 --enable-file Enable FILE support
1861 --disable-file Disable FILE support
1862 --enable-ldap Enable LDAP support
1863 --disable-ldap Disable LDAP support
1864 --enable-ldaps Enable LDAPS support
1865 --disable-ldaps Disable LDAPS support
1866 --enable-rtsp Enable RTSP support
1867 --disable-rtsp Disable RTSP support
1868 --enable-proxy Enable proxy support
1869 --disable-proxy Disable proxy support
1870 --enable-dict Enable DICT support
1871 --disable-dict Disable DICT support
1872 --enable-telnet Enable TELNET support
1873 --disable-telnet Disable TELNET support
1874 --enable-tftp Enable TFTP support
1875 --disable-tftp Disable TFTP support
1876 --enable-pop3 Enable POP3 support
1877 --disable-pop3 Disable POP3 support
1878 --enable-imap Enable IMAP support
1879 --disable-imap Disable IMAP support
1880 --enable-smb Enable SMB/CIFS support
1881 --disable-smb Disable SMB/CIFS support
1882 --enable-smtp Enable SMTP support
1883 --disable-smtp Disable SMTP support
1884 --enable-gopher Enable Gopher support
1885 --disable-gopher Disable Gopher support
1886 --enable-manual Enable built-in manual
1887 --disable-manual Disable built-in manual
1888 --enable-libcurl-option Enable --libcurl C code generation support
1889 --disable-libcurl-option
1890 Disable --libcurl C code generation support
1891 --enable-libgcc use libgcc when linking
1892 --enable-ipv6 Enable IPv6 (with IPv4) support
1893 --disable-ipv6 Disable IPv6 support
1894 --enable-versioned-symbols
1895 Enable versioned symbols in shared library
1896 --disable-versioned-symbols
1897 Disable versioned symbols in shared library
1898 --enable-threaded-resolver
1899 Enable threaded resolver
1900 --disable-threaded-resolver
1901 Disable threaded resolver
1902 --enable-verbose Enable verbose strings
1903 --disable-verbose Disable verbose strings
1904 --enable-sspi Enable SSPI
1905 --disable-sspi Disable SSPI
1906 --enable-crypto-auth Enable cryptographic authentication
1907 --disable-crypto-auth Disable cryptographic authentication
1908 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1909 helper, where FILE is ntlm_auth's absolute filename
1910 (default: /usr/bin/ntlm_auth)
1911 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1913 --enable-tls-srp Enable TLS-SRP authentication
1914 --disable-tls-srp Disable TLS-SRP authentication
1915 --enable-unix-sockets Enable Unix domain sockets
1916 --disable-unix-sockets Disable Unix domain sockets
1917 --enable-cookies Enable cookies support
1918 --disable-cookies Disable cookies support
1919 --enable-soname-bump Enable enforced SONAME bump
1920 --disable-soname-bump Disable enforced SONAME bump
1923 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1924 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1925 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1927 --with-aix-soname=aix|svr4|both
1928 shared library versioning (aka "SONAME") variant to
1929 provide on AIX, [default=aix].
1930 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1931 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1932 compiler's sysroot if not specified).
1933 --with-zlib=PATH search for zlib in PATH
1934 --without-zlib disable use of zlib
1935 --with-ldap-lib=libname Specify name of ldap lib file
1936 --with-lber-lib=libname Specify name of lber lib file
1937 --with-gssapi-includes=DIR
1938 Specify location of GSS-API headers
1939 --with-gssapi-libs=DIR Specify location of GSS-API libs
1940 --with-gssapi=DIR Where to look for GSS-API
1941 --with-winssl enable Windows native SSL/TLS
1942 --without-winssl disable Windows native SSL/TLS
1943 --with-darwinssl enable iOS/Mac OS X native SSL/TLS
1944 --without-darwinssl disable iOS/Mac OS X native SSL/TLS
1945 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1946 installation (default: /usr/local/ssl); when
1947 possible, set the PKG_CONFIG_PATH environment
1948 variable instead of using this option
1949 --without-ssl disable OpenSSL
1950 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1951 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1952 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1954 --without-gnutls disable GnuTLS detection
1955 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1957 --without-polarssl disable PolarSSL detection
1958 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1960 --without-mbedtls disable mbedTLS detection
1961 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1962 installation root (default: system lib default)
1963 --without-cyassl disable CyaSSL detection
1964 --with-nss=PATH where to look for NSS, PATH points to the
1966 --without-nss disable NSS detection
1967 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
1968 installation prefix (default: /usr/local). Ignored
1969 if another SSL engine is selected.
1970 --without-axtls disable axTLS
1971 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
1973 --without-ca-bundle Don't use a default CA bundle
1974 --with-ca-path=DIRECTORY
1975 Path to a directory containing CA certificates
1976 stored individually, with their filenames in a hash
1977 format. This option can be used with OpenSSL, GnuTLS
1978 and PolarSSL backends. Refer to OpenSSL c_rehash for
1979 details. (example: /etc/certificates)
1980 --without-ca-path Don't use a default CA path
1981 --with-ca-fallback Use the built in CA store of the SSL library
1982 --without-ca-fallback Don't use the built in CA store of the SSL library
1983 --without-libpsl disable support for libpsl cookie checking
1984 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1986 --without-libmetalink disable libmetalink detection
1987 --with-libssh2=PATH Where to look for libssh2, PATH points to the
1988 LIBSSH2 installation; when possible, set the
1989 PKG_CONFIG_PATH environment variable instead of
1991 --without-libssh2 disable LIBSSH2
1992 --with-librtmp=PATH Where to look for librtmp, PATH points to the
1993 LIBRTMP installation; when possible, set the
1994 PKG_CONFIG_PATH environment variable instead of
1996 --without-librtmp disable LIBRTMP
1997 --with-winidn=PATH enable Windows native IDN
1998 --without-winidn disable Windows native IDN
1999 --with-libidn=PATH Enable libidn usage
2000 --without-libidn Disable libidn usage
2001 --with-nghttp2=PATH Enable nghttp2 usage
2002 --without-nghttp2 Disable nghttp2 usage
2003 --with-zsh-functions-dir=PATH
2004 Install zsh completions to PATH
2005 --without-zsh-functions-dir
2006 Do not install zsh completions
2008 Some influential environment variables:
2009 CC C compiler command
2010 CFLAGS C compiler flags
2011 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2012 nonstandard directory <lib dir>
2013 LIBS libraries to pass to the linker, e.g. -l<library>
2014 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2015 you have headers in a nonstandard directory <include dir>
2018 User-defined run-time library search path.
2020 Use these variables to override the choices made by `configure' or to help
2021 it to find libraries and programs with nonstandard names/locations.
2023 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2028 if test "$ac_init_help" = "recursive"; then
2029 # If there are subdirs, report their specific --help.
2030 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2031 test -d "$ac_dir" ||
2032 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2040 # A ".." for each directory in $ac_dir_suffix.
2041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2042 case $ac_top_builddir_sub in
2043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2047 ac_abs_top_builddir=$ac_pwd
2048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2049 # for backward compatibility:
2050 ac_top_builddir=$ac_top_build_prefix
2053 .) # We are building in place.
2055 ac_top_srcdir=$ac_top_builddir_sub
2056 ac_abs_top_srcdir=$ac_pwd ;;
2057 [\\/]* | ?:[\\/]* ) # Absolute name.
2058 ac_srcdir=$srcdir$ac_dir_suffix;
2059 ac_top_srcdir=$srcdir
2060 ac_abs_top_srcdir=$srcdir ;;
2062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2063 ac_top_srcdir=$ac_top_build_prefix$srcdir
2064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2068 cd "$ac_dir" || { ac_status=$?; continue; }
2069 # Check for guested configure.
2070 if test -f "$ac_srcdir/configure.gnu"; then
2072 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2073 elif test -f "$ac_srcdir/configure"; then
2075 $SHELL "$ac_srcdir/configure" --help=recursive
2077 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2079 cd "$ac_pwd" || { ac_status=$?; break; }
2083 test -n "$ac_init_help" && exit $ac_status
2084 if $ac_init_version; then
2087 generated by GNU Autoconf 2.69
2089 Copyright (C) 2012 Free Software Foundation, Inc.
2090 This configure script is free software; the Free Software Foundation
2091 gives unlimited permission to copy, distribute and modify it.
2093 Copyright (c) 1998 - 2016 Daniel Stenberg, <daniel@haxx.se>
2094 This configure script may be copied, distributed and modified under the
2095 terms of the curl license; see COPYING for more details
2100 ## ------------------------ ##
2101 ## Autoconf initialization. ##
2102 ## ------------------------ ##
2104 # ac_fn_c_try_compile LINENO
2105 # --------------------------
2106 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_c_try_compile ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 rm -f conftest.$ac_objext
2111 if { { ac_try="$ac_compile"
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_compile") 2>conftest.err
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } && {
2127 test -z "$ac_c_werror_flag" ||
2128 test ! -s conftest.err
2129 } && test -s conftest.$ac_objext; then :
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 as_fn_set_status $ac_retval
2140 } # ac_fn_c_try_compile
2142 # ac_fn_c_try_cpp LINENO
2143 # ----------------------
2144 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if { { ac_try="$ac_cpp conftest.$ac_ext"
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2157 if test -s conftest.err; then
2158 grep -v '^ *+' conftest.err >conftest.er1
2159 cat conftest.er1 >&5
2160 mv -f conftest.er1 conftest.err
2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; } > conftest.i && {
2164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2165 test ! -s conftest.err
2169 $as_echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2179 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2180 # -------------------------------------------------------
2181 # Tests whether HEADER exists and can be compiled using the include files in
2182 # INCLUDES, setting the cache variable VAR accordingly.
2183 ac_fn_c_check_header_compile ()
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189 $as_echo_n "(cached) " >&6
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2196 if ac_fn_c_try_compile "$LINENO"; then :
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 } # ac_fn_c_check_header_compile
2210 # ac_fn_c_try_run LINENO
2211 # ----------------------
2212 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2213 # that executables *can* be run.
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 if { { ac_try="$ac_link"
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_link") 2>&5
2226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2228 { { case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_try") 2>&5
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; }; }; then :
2240 $as_echo "$as_me: program exited with status $ac_status" >&5
2241 $as_echo "$as_me: failed program was:" >&5
2242 sed 's/^/| /' conftest.$ac_ext >&5
2244 ac_retval=$ac_status
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 as_fn_set_status $ac_retval
2252 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2253 # --------------------------------------------
2254 # Tries to find the compile-time value of EXPR in a program that includes
2255 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2257 ac_fn_c_compute_int ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 if test "$cross_compiling" = yes; then
2261 # Depending upon the size, compute the lo and hi bounds.
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2267 static int test_array [1 - 2 * !(($2) >= 0)];
2269 return test_array [0];
2275 if ac_fn_c_try_compile "$LINENO"; then :
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2283 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2285 return test_array [0];
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 ac_hi=$ac_mid; break
2294 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2295 if test $ac_lo -le $ac_mid; then
2299 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2309 static int test_array [1 - 2 * !(($2) < 0)];
2311 return test_array [0];
2317 if ac_fn_c_try_compile "$LINENO"; then :
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2325 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2327 return test_array [0];
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334 ac_lo=$ac_mid; break
2336 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2337 if test $ac_mid -le $ac_hi; then
2341 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 # Binary search between lo and hi bounds.
2352 while test "x$ac_lo" != "x$ac_hi"; do
2353 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2359 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2361 return test_array [0];
2367 if ac_fn_c_try_compile "$LINENO"; then :
2370 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2382 static long int longval () { return $2; }
2383 static unsigned long int ulongval () { return $2; }
2389 FILE *f = fopen ("conftest.val", "w");
2394 long int i = longval ();
2397 fprintf (f, "%ld", i);
2401 unsigned long int i = ulongval ();
2404 fprintf (f, "%lu", i);
2406 /* Do not output a trailing newline, as this causes \r\n confusion
2407 on some platforms. */
2408 return ferror (f) || fclose (f) != 0;
2414 if ac_fn_c_try_run "$LINENO"; then :
2415 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2420 conftest.$ac_objext conftest.beam conftest.$ac_ext
2424 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2425 as_fn_set_status $ac_retval
2427 } # ac_fn_c_compute_int
2429 # ac_fn_c_try_link LINENO
2430 # -----------------------
2431 # Try to link conftest.$ac_ext, and return whether this succeeded.
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 rm -f conftest.$ac_objext conftest$ac_exeext
2436 if { { ac_try="$ac_link"
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442 $as_echo "$ac_try_echo"; } >&5
2443 (eval "$ac_link") 2>conftest.err
2445 if test -s conftest.err; then
2446 grep -v '^ *+' conftest.err >conftest.er1
2447 cat conftest.er1 >&5
2448 mv -f conftest.er1 conftest.err
2450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451 test $ac_status = 0; } && {
2452 test -z "$ac_c_werror_flag" ||
2453 test ! -s conftest.err
2454 } && test -s conftest$ac_exeext && {
2455 test "$cross_compiling" = yes ||
2456 test -x conftest$ac_exeext
2460 $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2465 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2466 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2467 # interfere with the next link command; also delete a directory that is
2468 # left behind by Apple's compiler. We do this before executing the actions.
2469 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2470 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2471 as_fn_set_status $ac_retval
2473 } # ac_fn_c_try_link
2475 # ac_fn_c_check_func LINENO FUNC VAR
2476 # ----------------------------------
2477 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2478 ac_fn_c_check_func ()
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2482 $as_echo_n "checking for $2... " >&6; }
2483 if eval \${$3+:} false; then :
2484 $as_echo_n "(cached) " >&6
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2489 #define $2 innocuous_$2
2491 # include <limits.h>
2493 # include <assert.h>
2500 #if defined __stub_$2 || defined __stub___$2
2511 if ac_fn_c_try_link "$LINENO"; then :
2516 rm -f core conftest.err conftest.$ac_objext \
2517 conftest$ac_exeext conftest.$ac_ext
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2521 $as_echo "$ac_res" >&6; }
2522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2524 } # ac_fn_c_check_func
2526 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2527 # -------------------------------------------------------
2528 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2529 # the include files in INCLUDES and setting the cache variable VAR
2531 ac_fn_c_check_header_mongrel ()
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 if eval \${$3+:} false; then :
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if eval \${$3+:} false; then :
2538 $as_echo_n "(cached) " >&6
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2544 # Is the header compilable?
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2546 $as_echo_n "checking $2 usability... " >&6; }
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 ac_header_compiler=yes
2555 ac_header_compiler=no
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2559 $as_echo "$ac_header_compiler" >&6; }
2561 # Is the header present?
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2563 $as_echo_n "checking $2 presence... " >&6; }
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2568 if ac_fn_c_try_cpp "$LINENO"; then :
2569 ac_header_preproc=yes
2571 ac_header_preproc=no
2573 rm -f conftest.err conftest.i conftest.$ac_ext
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2575 $as_echo "$ac_header_preproc" >&6; }
2577 # So? What about this header?
2578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2581 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2583 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2587 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2589 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2591 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2593 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2595 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2596 ( $as_echo "## ----------------------------------------------------------------------- ##
2597 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2598 ## ----------------------------------------------------------------------- ##"
2599 ) | sed "s/^/$as_me: WARNING: /" >&2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if eval \${$3+:} false; then :
2605 $as_echo_n "(cached) " >&6
2607 eval "$3=\$ac_header_compiler"
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2615 } # ac_fn_c_check_header_mongrel
2617 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2618 # -------------------------------------------
2619 # Tests whether TYPE exists after having included INCLUDES, setting cache
2620 # variable VAR accordingly.
2621 ac_fn_c_check_type ()
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2625 $as_echo_n "checking for $2... " >&6; }
2626 if eval \${$3+:} false; then :
2627 $as_echo_n "(cached) " >&6
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2641 if ac_fn_c_try_compile "$LINENO"; then :
2642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2643 /* end confdefs.h. */
2653 if ac_fn_c_try_compile "$LINENO"; then :
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2664 $as_echo "$ac_res" >&6; }
2665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667 } # ac_fn_c_check_type
2669 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2670 # ----------------------------------------------------
2671 # Tries to find if the field MEMBER exists in type AGGR, after including
2672 # INCLUDES, setting cache variable VAR accordingly.
2673 ac_fn_c_check_member ()
2675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2677 $as_echo_n "checking for $2.$3... " >&6; }
2678 if eval \${$4+:} false; then :
2679 $as_echo_n "(cached) " >&6
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2693 if ac_fn_c_try_compile "$LINENO"; then :
2696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h. */
2702 if (sizeof ac_aggr.$3)
2708 if ac_fn_c_try_compile "$LINENO"; then :
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2719 $as_echo "$ac_res" >&6; }
2720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722 } # ac_fn_c_check_member
2723 cat >config.log <<_ACEOF
2724 This file contains any messages produced by compilers while
2725 running configure, to aid debugging if configure makes a mistake.
2727 It was created by curl $as_me -, which was
2728 generated by GNU Autoconf 2.69. Invocation command line was
2740 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2741 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2742 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2743 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2744 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2746 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2747 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2749 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2750 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2751 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2752 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2753 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2754 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2755 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 $as_echo "PATH: $as_dir"
2780 # Keep a trace of the command line.
2781 # Strip out --no-create and --no-recursion so they do not pile up.
2782 # Strip out --silent because we don't want to record it for future runs.
2783 # Also quote any args containing shell meta-characters.
2784 # Make two passes to allow for proper duplicate-argument suppression.
2788 ac_must_keep_next=false
2794 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2796 | -silent | --silent | --silen | --sile | --sil)
2799 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2802 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2804 as_fn_append ac_configure_args1 " '$ac_arg'"
2805 if test $ac_must_keep_next = true; then
2806 ac_must_keep_next=false # Got value, back to normal.
2809 *=* | --config-cache | -C | -disable-* | --disable-* \
2810 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2811 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2812 | -with-* | --with-* | -without-* | --without-* | --x)
2813 case "$ac_configure_args0 " in
2814 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2817 -* ) ac_must_keep_next=true ;;
2820 as_fn_append ac_configure_args " '$ac_arg'"
2825 { ac_configure_args0=; unset ac_configure_args0;}
2826 { ac_configure_args1=; unset ac_configure_args1;}
2828 # When interrupted or exit'd, cleanup temporary files, and complete
2829 # config.log. We remove comments because anyway the quotes in there
2830 # would cause problems or look ugly.
2831 # WARNING: Use '\'' to represent an apostrophe within the trap.
2832 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2833 trap 'exit_status=$?
2834 # Save into config.log some information that might help in debugging.
2838 $as_echo "## ---------------- ##
2839 ## Cache variables. ##
2840 ## ---------------- ##"
2842 # The following way of writing the cache mishandles newlines in values,
2844 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2845 eval ac_val=\$$ac_var
2849 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2850 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2853 _ | IFS | as_nl) ;; #(
2854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2855 *) { eval $ac_var=; unset $ac_var;} ;;
2860 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2861 *${as_nl}ac_space=\ *)
2863 "s/'\''/'\''\\\\'\'''\''/g;
2864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2874 $as_echo "## ----------------- ##
2875 ## Output variables. ##
2876 ## ----------------- ##"
2878 for ac_var in $ac_subst_vars
2880 eval ac_val=\$$ac_var
2882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2884 $as_echo "$ac_var='\''$ac_val'\''"
2888 if test -n "$ac_subst_files"; then
2889 $as_echo "## ------------------- ##
2890 ## File substitutions. ##
2891 ## ------------------- ##"
2893 for ac_var in $ac_subst_files
2895 eval ac_val=\$$ac_var
2897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2899 $as_echo "$ac_var='\''$ac_val'\''"
2904 if test -s confdefs.h; then
2905 $as_echo "## ----------- ##
2912 test "$ac_signal" != 0 &&
2913 $as_echo "$as_me: caught signal $ac_signal"
2914 $as_echo "$as_me: exit $exit_status"
2916 rm -f core *.core core.conftest.* &&
2917 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2920 for ac_signal in 1 2 13 15; do
2921 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2925 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2926 rm -f -r conftest* confdefs.h
2928 $as_echo "/* confdefs.h */" > confdefs.h
2930 # Predefined preprocessor variables.
2932 cat >>confdefs.h <<_ACEOF
2933 #define PACKAGE_NAME "$PACKAGE_NAME"
2936 cat >>confdefs.h <<_ACEOF
2937 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2940 cat >>confdefs.h <<_ACEOF
2941 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2944 cat >>confdefs.h <<_ACEOF
2945 #define PACKAGE_STRING "$PACKAGE_STRING"
2948 cat >>confdefs.h <<_ACEOF
2949 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2952 cat >>confdefs.h <<_ACEOF
2953 #define PACKAGE_URL "$PACKAGE_URL"
2957 # Let the site file select an alternate cache file if it wants to.
2958 # Prefer an explicitly selected file to automatically selected ones.
2961 if test -n "$CONFIG_SITE"; then
2962 # We do not want a PATH search for config.site.
2963 case $CONFIG_SITE in #((
2964 -*) ac_site_file1=./$CONFIG_SITE;;
2965 */*) ac_site_file1=$CONFIG_SITE;;
2966 *) ac_site_file1=./$CONFIG_SITE;;
2968 elif test "x$prefix" != xNONE; then
2969 ac_site_file1=$prefix/share/config.site
2970 ac_site_file2=$prefix/etc/config.site
2972 ac_site_file1=$ac_default_prefix/share/config.site
2973 ac_site_file2=$ac_default_prefix/etc/config.site
2975 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2977 test "x$ac_site_file" = xNONE && continue
2978 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2980 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2981 sed 's/^/| /' "$ac_site_file" >&5
2983 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 as_fn_error $? "failed to load site script $ac_site_file
2986 See \`config.log' for more details" "$LINENO" 5; }
2990 if test -r "$cache_file"; then
2991 # Some versions of bash will fail to source /dev/null (special files
2992 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2993 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2995 $as_echo "$as_me: loading cache $cache_file" >&6;}
2997 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2998 *) . "./$cache_file";;
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3003 $as_echo "$as_me: creating cache $cache_file" >&6;}
3007 # Check that the precious variables saved in the cache have kept the same
3009 ac_cache_corrupted=false
3010 for ac_var in $ac_precious_vars; do
3011 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3012 eval ac_new_set=\$ac_env_${ac_var}_set
3013 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3014 eval ac_new_val=\$ac_env_${ac_var}_value
3015 case $ac_old_set,$ac_new_set in
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3018 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3019 ac_cache_corrupted=: ;;
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3022 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3023 ac_cache_corrupted=: ;;
3026 if test "x$ac_old_val" != "x$ac_new_val"; then
3027 # differences in whitespace do not lead to failure.
3028 ac_old_val_w=`echo x $ac_old_val`
3029 ac_new_val_w=`echo x $ac_new_val`
3030 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3032 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3033 ac_cache_corrupted=:
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3036 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3037 eval $ac_var=\$ac_old_val
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3040 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3042 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3045 # Pass precious variables to config.status.
3046 if test "$ac_new_set" = set; then
3048 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3049 *) ac_arg=$ac_var=$ac_new_val ;;
3051 case " $ac_configure_args " in
3052 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3053 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3057 if $ac_cache_corrupted; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3061 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3062 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3064 ## -------------------- ##
3065 ## Main body of script. ##
3066 ## -------------------- ##
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 # using curl-override.m4
3086 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3091 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3092 # Check whether --enable-maintainer-mode was given.
3093 if test "${enable_maintainer_mode+set}" = set; then :
3094 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3096 USE_MAINTAINER_MODE=no
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3100 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3101 if test $USE_MAINTAINER_MODE = yes; then
3102 MAINTAINER_MODE_TRUE=
3103 MAINTAINER_MODE_FALSE='#'
3105 MAINTAINER_MODE_TRUE='#'
3106 MAINTAINER_MODE_FALSE=
3109 MAINT=$MAINTAINER_MODE_TRUE
3112 # Check whether --enable-silent-rules was given.
3113 if test "${enable_silent_rules+set}" = set; then :
3114 enableval=$enable_silent_rules;
3117 case $enable_silent_rules in # (((
3118 yes) AM_DEFAULT_VERBOSITY=0;;
3119 no) AM_DEFAULT_VERBOSITY=1;;
3120 *) AM_DEFAULT_VERBOSITY=0;;
3122 am_make=${MAKE-make}
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3124 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3125 if ${am_cv_make_support_nested_variables+:} false; then :
3126 $as_echo_n "(cached) " >&6
3128 if $as_echo 'TRUE=$(BAR$(V))
3134 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3135 am_cv_make_support_nested_variables=yes
3137 am_cv_make_support_nested_variables=no
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3141 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3142 if test $am_cv_make_support_nested_variables = yes; then
3144 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3146 AM_V=$AM_DEFAULT_VERBOSITY
3147 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3154 $as_echo_n "checking whether to enable debug build options... " >&6; }
3155 OPT_DEBUG_BUILD="default"
3156 # Check whether --enable-debug was given.
3157 if test "${enable_debug+set}" = set; then :
3158 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3161 case "$OPT_DEBUG_BUILD" in
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3173 $as_echo "$want_debug" >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3177 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3178 OPT_COMPILER_OPTIMIZE="default"
3179 # Check whether --enable-optimize was given.
3180 if test "${enable_optimize+set}" = set; then :
3181 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3184 case "$OPT_COMPILER_OPTIMIZE" in
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3191 if test "$want_debug" = "yes"; then
3192 want_optimize="assume_no"
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3194 $as_echo "(assumed) no" >&6; }
3196 want_optimize="assume_yes"
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3198 $as_echo "(assumed) yes" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3210 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3211 OPT_COMPILER_WARNINGS="default"
3212 # Check whether --enable-warnings was given.
3213 if test "${enable_warnings+set}" = set; then :
3214 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3217 case "$OPT_COMPILER_WARNINGS" in
3222 want_warnings="$want_debug"
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3229 $as_echo "$want_warnings" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3233 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3234 OPT_COMPILER_WERROR="default"
3235 # Check whether --enable-werror was given.
3236 if test "${enable_werror+set}" = set; then :
3237 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3240 case "$OPT_COMPILER_WERROR" in
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3252 $as_echo "$want_werror" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3256 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3257 OPT_CURLDEBUG_BUILD="default"
3258 # Check whether --enable-curldebug was given.
3259 if test "${enable_curldebug+set}" = set; then :
3260 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3263 case "$OPT_CURLDEBUG_BUILD" in
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3270 if test "$want_debug" = "yes"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3272 $as_echo "(assumed) yes" >&6; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3277 want_curldebug_assumed="yes"
3278 want_curldebug="$want_debug"
3281 want_curldebug="yes"
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3289 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3290 OPT_SYMBOL_HIDING="default"
3291 # Check whether --enable-symbol-hiding was given.
3292 if test "${enable_symbol_hiding+set}" = set; then :
3293 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3296 # Check whether --enable-hidden-symbols was given.
3297 if test "${enable_hidden_symbols+set}" = set; then :
3298 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3301 case "$OPT_SYMBOL_HIDING" in
3303 want_symbol_hiding="no"
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3308 want_symbol_hiding="yes"
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3313 want_symbol_hiding="yes"
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3321 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3323 # Check whether --enable-ares was given.
3324 if test "${enable_ares+set}" = set; then :
3325 enableval=$enable_ares; OPT_ARES=$enableval
3337 if test -n "$enableval" && test "$enableval" != "yes"; then
3338 want_ares_path="$enableval"
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3343 $as_echo "$want_ares" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3347 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3349 # Check whether --enable-rt was given.
3350 if test "${enable_rt+set}" = set; then :
3351 enableval=$enable_rt; OPT_RT=$enableval
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3363 $as_echo "(assumed no)" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3371 if test "$dontwant_rt" = "yes" && test "$want_thres" = "yes" ; then
3372 as_fn_error $? "options --disable-rt and --enable-thread-resolver are mutually exclusive, at most one can be selected." "$LINENO" 5
3377 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3380 if test -z "$xc_configure_preamble_result"; then
3381 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3385 # Check that 'PATH_SEPARATOR' has already been set.
3388 if test -z "$xc_PATH_SEPARATOR"; then
3389 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3391 if test -z "$PATH_SEPARATOR"; then
3392 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3395 $as_echo_n "checking for path separator... " >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3397 $as_echo "$PATH_SEPARATOR" >&6; }
3398 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3400 $as_echo_n "checking for initial path separator... " >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3402 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3403 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3408 # save the configure arguments
3410 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3413 CURL_CFLAG_EXTRAS=""
3414 if test X"$want_werror" = Xyes; then
3415 CURL_CFLAG_EXTRAS="-Werror"
3419 if test -z "$SED"; then
3420 # Extract the first word of "sed", so it can be a program name with args.
3421 set dummy sed; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_path_SED+:} false; then :
3425 $as_echo_n "(cached) " >&6
3429 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3434 for as_dir in $as_dummy
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3453 if test -n "$SED"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3455 $as_echo "$SED" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3462 if test -z "$SED" || test "$SED" = "not_found"; then
3463 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3468 if test -z "$GREP"; then
3469 # Extract the first word of "grep", so it can be a program name with args.
3470 set dummy grep; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_path_GREP+:} false; then :
3474 $as_echo_n "(cached) " >&6
3478 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3483 for as_dir in $as_dummy
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3501 GREP=$ac_cv_path_GREP
3502 if test -n "$GREP"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3504 $as_echo "$GREP" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3511 if test -z "$GREP" || test "$GREP" = "not_found"; then
3512 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3517 if test -z "$EGREP"; then
3518 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3520 $as_echo_n "checking for egrep... " >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3523 $as_echo "$EGREP" >&6; }
3525 # Extract the first word of "egrep", so it can be a program name with args.
3526 set dummy egrep; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_path_EGREP+:} false; then :
3530 $as_echo_n "(cached) " >&6
3534 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3539 for as_dir in $as_dummy
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3557 EGREP=$ac_cv_path_EGREP
3558 if test -n "$EGREP"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3560 $as_echo "$EGREP" >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3569 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3570 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3574 if test -z "$AR"; then
3575 if test -n "$ac_tool_prefix"; then
3576 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}ar; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_path_AR+:} false; then :
3581 $as_echo_n "(cached) " >&6
3585 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3590 for as_dir in $as_dummy
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 if test -n "$AR"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3610 $as_echo "$AR" >&6; }
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3618 if test -z "$ac_cv_path_AR"; then
3620 # Extract the first word of "ar", so it can be a program name with args.
3621 set dummy ar; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_path_ac_pt_AR+:} false; then :
3625 $as_echo_n "(cached) " >&6
3629 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3634 for as_dir in $as_dummy
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 ac_pt_AR=$ac_cv_path_ac_pt_AR
3652 if test -n "$ac_pt_AR"; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3654 $as_echo "$ac_pt_AR" >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3660 if test "x$ac_pt_AR" = x; then
3663 case $cross_compiling:$ac_tool_warned in
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667 ac_tool_warned=yes ;;
3675 if test -z "$AR" || test "$AR" = "not_found"; then
3676 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3683 if test -f ${srcdir}/include/curl/curlbuild.h; then
3684 rm -f ${srcdir}/include/curl/curlbuild.h
3687 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3689 xc_prog_cc_prev_IFS=$IFS
3690 xc_prog_cc_prev_LIBS=$LIBS
3691 xc_prog_cc_prev_CFLAGS=$CFLAGS
3692 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3693 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3698 for xc_word in $LIBS; do
3708 if test $xc_bad_var_libs = yes; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3710 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3712 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3716 xc_bad_var_ldflags=no
3717 for xc_word in $LDFLAGS; do
3720 xc_bad_var_ldflags=yes
3723 xc_bad_var_ldflags=yes
3726 xc_bad_var_ldflags=yes
3729 xc_bad_var_ldflags=yes
3733 if test $xc_bad_var_ldflags = yes; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3735 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3736 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3737 for xc_word in $LDFLAGS; do
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3741 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3745 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3749 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3753 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3760 xc_bad_var_cppflags=no
3761 for xc_word in $CPPFLAGS; do
3764 xc_bad_var_cppflags=yes
3766 -L* | --library-path=*)
3767 xc_bad_var_cppflags=yes
3770 xc_bad_var_cppflags=yes
3774 if test $xc_bad_var_cppflags = yes; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3776 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3777 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3778 for xc_word in $CPPFLAGS; do
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3782 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3784 -L* | --library-path=*)
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3786 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3790 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3797 xc_bad_var_cflags=no
3798 for xc_word in $CFLAGS; do
3801 xc_bad_var_cflags=yes
3804 xc_bad_var_cflags=yes
3807 xc_bad_var_cflags=yes
3810 xc_bad_var_cflags=yes
3812 -L* | --library-path=*)
3813 xc_bad_var_cflags=yes
3816 xc_bad_var_cflags=yes
3820 if test $xc_bad_var_cflags = yes; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3822 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3823 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3824 for xc_word in $CFLAGS; do
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3828 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3832 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3836 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3840 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3842 -L* | --library-path=*)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3844 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3848 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3854 if test $xc_bad_var_libs = yes ||
3855 test $xc_bad_var_cflags = yes ||
3856 test $xc_bad_var_ldflags = yes ||
3857 test $xc_bad_var_cppflags = yes; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3859 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3863 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3864 if test -f "$ac_dir/install-sh"; then
3866 ac_install_sh="$ac_aux_dir/install-sh -c"
3868 elif test -f "$ac_dir/install.sh"; then
3870 ac_install_sh="$ac_aux_dir/install.sh -c"
3872 elif test -f "$ac_dir/shtool"; then
3874 ac_install_sh="$ac_aux_dir/shtool install -c"
3878 if test -z "$ac_aux_dir"; then
3879 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3882 # These three variables are undocumented and unsupported,
3883 # and are intended to be withdrawn in a future Autoconf release.
3884 # They can cause serious problems if a builder's source tree is in a directory
3885 # whose full name contains unusual characters.
3886 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3887 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3888 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3891 # Find a good install program. We prefer a C program (faster),
3892 # so one script is as good as another. But avoid the broken or
3893 # incompatible versions:
3894 # SysV /etc/install, /usr/sbin/install
3895 # SunOS /usr/etc/install
3896 # IRIX /sbin/install
3898 # AmigaOS /C/install, which installs bootblocks on floppy discs
3899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3902 # OS/2's system install, which has a completely different semantic
3903 # ./install, which can be erroneously created by make from ./install.sh.
3904 # Reject install programs that cannot install multiple files.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3906 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3907 if test -z "$INSTALL"; then
3908 if ${ac_cv_path_install+:} false; then :
3909 $as_echo_n "(cached) " >&6
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 # Account for people who put trailing slashes in PATH elements.
3917 case $as_dir/ in #((
3918 ./ | .// | /[cC]/* | \
3919 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3920 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3923 # OSF1 and SCO ODT 3.0 have their own names for install.
3924 # Don't use installbsd from OSF since it installs stuff as root
3926 for ac_prog in ginstall scoinst install; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3929 if test $ac_prog = install &&
3930 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3931 # AIX install. It has an incompatible calling convention.
3933 elif test $ac_prog = install &&
3934 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3935 # program-specific install script used by HP pwplus--don't use.
3938 rm -rf conftest.one conftest.two conftest.dir
3939 echo one > conftest.one
3940 echo two > conftest.two
3942 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3943 test -s conftest.one && test -s conftest.two &&
3944 test -s conftest.dir/conftest.one &&
3945 test -s conftest.dir/conftest.two
3947 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3960 rm -rf conftest.one conftest.two conftest.dir
3963 if test "${ac_cv_path_install+set}" = set; then
3964 INSTALL=$ac_cv_path_install
3966 # As a last resort, use the slow shell script. Don't cache a
3967 # value for INSTALL within a source directory, because that will
3968 # break other packages using the cache if that directory is
3969 # removed, or if the value is a relative name.
3970 INSTALL=$ac_install_sh
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3974 $as_echo "$INSTALL" >&6; }
3976 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3977 # It thinks the first close brace ends the variable substitution.
3978 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3980 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3982 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3984 # Expand $ac_aux_dir to an absolute path.
3985 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992 if test -n "$ac_tool_prefix"; then
3993 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3994 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_prog_CC+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if test -n "$CC"; then
4001 ac_cv_prog_CC="$CC" # Let the user override the test.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 if test -n "$CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023 $as_echo "$CC" >&6; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4031 if test -z "$ac_cv_prog_CC"; then
4033 # Extract the first word of "gcc", so it can be a program name with args.
4034 set dummy gcc; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4038 $as_echo_n "(cached) " >&6
4040 if test -n "$ac_ct_CC"; then
4041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4050 ac_cv_prog_ac_ct_CC="gcc"
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4061 if test -n "$ac_ct_CC"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4063 $as_echo "$ac_ct_CC" >&6; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4069 if test "x$ac_ct_CC" = x; then
4072 case $cross_compiling:$ac_tool_warned in
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4076 ac_tool_warned=yes ;;
4084 if test -z "$CC"; then
4085 if test -n "$ac_tool_prefix"; then
4086 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4087 set dummy ${ac_tool_prefix}cc; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_CC+:} false; then :
4091 $as_echo_n "(cached) " >&6
4093 if test -n "$CC"; then
4094 ac_cv_prog_CC="$CC" # Let the user override the test.
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103 ac_cv_prog_CC="${ac_tool_prefix}cc"
4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 if test -n "$CC"; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4116 $as_echo "$CC" >&6; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4125 if test -z "$CC"; then
4126 # Extract the first word of "cc", so it can be a program name with args.
4127 set dummy cc; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_CC+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 if test -n "$CC"; then
4134 ac_cv_prog_CC="$CC" # Let the user override the test.
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4145 ac_prog_rejected=yes
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 if test $ac_prog_rejected = yes; then
4157 # We found a bogon in the path, so make sure we never use it.
4158 set dummy $ac_cv_prog_CC
4160 if test $# != 0; then
4161 # We chose a different compiler from the bogus one.
4162 # However, it has the same basename, so the bogon will be chosen
4163 # first if we set CC to just the basename; use the full file name.
4165 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4171 if test -n "$CC"; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4173 $as_echo "$CC" >&6; }
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4181 if test -z "$CC"; then
4182 if test -n "$ac_tool_prefix"; then
4183 for ac_prog in cl.exe
4185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if ${ac_cv_prog_CC+:} false; then :
4190 $as_echo_n "(cached) " >&6
4192 if test -n "$CC"; then
4193 ac_cv_prog_CC="$CC" # Let the user override the test.
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 if test -n "$CC"; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4215 $as_echo "$CC" >&6; }
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4222 test -n "$CC" && break
4225 if test -z "$CC"; then
4227 for ac_prog in cl.exe
4229 # Extract the first word of "$ac_prog", so it can be a program name with args.
4230 set dummy $ac_prog; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4234 $as_echo_n "(cached) " >&6
4236 if test -n "$ac_ct_CC"; then
4237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246 ac_cv_prog_ac_ct_CC="$ac_prog"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4257 if test -n "$ac_ct_CC"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4259 $as_echo "$ac_ct_CC" >&6; }
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4266 test -n "$ac_ct_CC" && break
4269 if test "x$ac_ct_CC" = x; then
4272 case $cross_compiling:$ac_tool_warned in
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4276 ac_tool_warned=yes ;;
4285 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4287 as_fn_error $? "no acceptable C compiler found in \$PATH
4288 See \`config.log' for more details" "$LINENO" 5; }
4290 # Provide some information about the compiler.
4291 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4294 for ac_option in --version -v -V -qversion; do
4295 { { ac_try="$ac_compiler $ac_option >&5"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4304 if test -s conftest.err; then
4306 ... rest of stderr output deleted ...
4307 10q' conftest.err >conftest.er1
4308 cat conftest.er1 >&5
4310 rm -f conftest.er1 conftest.err
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4325 ac_clean_files_save=$ac_clean_files
4326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4327 # Try to create an executable without -o first, disregard a.out.
4328 # It will help us diagnose broken compilers, and finding out an intuition
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4331 $as_echo_n "checking whether the C compiler works... " >&6; }
4332 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4334 # The possible output files:
4335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4338 for ac_file in $ac_files
4341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4347 if { { ac_try="$ac_link_default"
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_link_default") 2>&5
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }; then :
4358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4361 # so that the user can short-circuit this test for compilers unknown to
4363 for ac_file in $ac_files ''
4365 test -f "$ac_file" || continue
4367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4370 # We found the default executable, but exeext='' is most
4374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4378 # We set ac_cv_exeext here because the later test for it is not
4379 # safe: cross compilers may not add the suffix if given an `-o'
4380 # argument, so we may need to know it at that point already.
4381 # Even if this section looks crufty: it has the advantage of
4388 test "$ac_cv_exeext" = no && ac_cv_exeext=
4393 if test -z "$ac_file"; then :
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 $as_echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401 as_fn_error 77 "C compiler cannot create executables
4402 See \`config.log' for more details" "$LINENO" 5; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405 $as_echo "yes" >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4408 $as_echo_n "checking for C compiler default output file name... " >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4410 $as_echo "$ac_file" >&6; }
4411 ac_exeext=$ac_cv_exeext
4413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4414 ac_clean_files=$ac_clean_files_save
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4416 $as_echo_n "checking for suffix of executables... " >&6; }
4417 if { { ac_try="$ac_link"
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_link") 2>&5
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }; then :
4428 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4429 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4430 # work properly (i.e., refer to `conftest.exe'), while it won't with
4432 for ac_file in conftest.exe conftest conftest.*; do
4433 test -f "$ac_file" || continue
4435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4445 See \`config.log' for more details" "$LINENO" 5; }
4447 rm -f conftest conftest$ac_cv_exeext
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4449 $as_echo "$ac_cv_exeext" >&6; }
4451 rm -f conftest.$ac_ext
4452 EXEEXT=$ac_cv_exeext
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4459 FILE *f = fopen ("conftest.out", "w");
4460 return ferror (f) || fclose (f) != 0;
4466 ac_clean_files="$ac_clean_files conftest.out"
4467 # Check that the compiler produces executables we can run. If not, either
4468 # the compiler is broken, or we cross compile.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4470 $as_echo_n "checking whether we are cross compiling... " >&6; }
4471 if test "$cross_compiling" != yes; then
4472 { { ac_try="$ac_link"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479 (eval "$ac_link") 2>&5
4481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }
4483 if { ac_try='./conftest$ac_cv_exeext'
4484 { { case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_try") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }; }; then
4496 if test "$cross_compiling" = maybe; then
4499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4501 as_fn_error $? "cannot run C compiled programs.
4502 If you meant to cross compile, use \`--host'.
4503 See \`config.log' for more details" "$LINENO" 5; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4508 $as_echo "$cross_compiling" >&6; }
4510 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4511 ac_clean_files=$ac_clean_files_save
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4513 $as_echo_n "checking for suffix of object files... " >&6; }
4514 if ${ac_cv_objext+:} false; then :
4515 $as_echo_n "(cached) " >&6
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4527 rm -f conftest.o conftest.obj
4528 if { { ac_try="$ac_compile"
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 $as_echo "$ac_try_echo"; } >&5
4535 (eval "$ac_compile") 2>&5
4537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538 test $ac_status = 0; }; then :
4539 for ac_file in conftest.o conftest.obj conftest.*; do
4540 test -f "$ac_file" || continue;
4542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4543 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4548 $as_echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error $? "cannot compute suffix of object files: cannot compile
4554 See \`config.log' for more details" "$LINENO" 5; }
4556 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4559 $as_echo "$ac_cv_objext" >&6; }
4560 OBJEXT=$ac_cv_objext
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4563 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4564 if ${ac_cv_c_compiler_gnu+:} false; then :
4565 $as_echo_n "(cached) " >&6
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4580 if ac_fn_c_try_compile "$LINENO"; then :
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4590 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4591 if test $ac_compiler_gnu = yes; then
4596 ac_test_CFLAGS=${CFLAGS+set}
4597 ac_save_CFLAGS=$CFLAGS
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4599 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4600 if ${ac_cv_prog_cc_g+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 ac_save_c_werror_flag=$ac_c_werror_flag
4604 ac_c_werror_flag=yes
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4617 if ac_fn_c_try_compile "$LINENO"; then :
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4631 if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_c_werror_flag=$ac_save_c_werror_flag
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4646 if ac_fn_c_try_compile "$LINENO"; then :
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 ac_c_werror_flag=$ac_save_c_werror_flag
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4657 $as_echo "$ac_cv_prog_cc_g" >&6; }
4658 if test "$ac_test_CFLAGS" = set; then
4659 CFLAGS=$ac_save_CFLAGS
4660 elif test $ac_cv_prog_cc_g = yes; then
4661 if test "$GCC" = yes; then
4667 if test "$GCC" = yes; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4675 if ${ac_cv_prog_cc_c89+:} false; then :
4676 $as_echo_n "(cached) " >&6
4678 ac_cv_prog_cc_c89=no
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4686 struct buf { int x; };
4687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4688 static char *e (p, i)
4694 static char *f (char * (*g) (char **, int), char **p, ...)
4699 s = g (p, va_arg (v,int));
4704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4705 function prototypes and stuff, but not '\xHH' hex character constants.
4706 These don't provoke an error unfortunately, instead are silently treated
4707 as 'x'. The following induces an error, until -std is added to get
4708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4709 array size at least. It's necessary to write '\x00'==0 to get something
4710 that's true only with -std. */
4711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4714 inside strings and character constants. */
4716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4718 int test (int i, double x);
4719 struct s1 {int (*f) (int a);};
4720 struct s2 {int (*f) (double a);};
4721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4726 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4731 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4732 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4734 CC="$ac_save_CC $ac_arg"
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736 ac_cv_prog_cc_c89=$ac_arg
4738 rm -f core conftest.err conftest.$ac_objext
4739 test "x$ac_cv_prog_cc_c89" != "xno" && break
4741 rm -f conftest.$ac_ext
4746 case "x$ac_cv_prog_cc_c89" in
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4749 $as_echo "none needed" >&6; } ;;
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4752 $as_echo "unsupported" >&6; } ;;
4754 CC="$CC $ac_cv_prog_cc_c89"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4756 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4758 if test "x$ac_cv_prog_cc_c89" != xno; then :
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769 ac_cpp='$CPP $CPPFLAGS'
4770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4774 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4775 if ${am_cv_prog_cc_c_o+:} false; then :
4776 $as_echo_n "(cached) " >&6
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4788 # Make sure it works both with $CC and with simple cc.
4789 # Following AC_PROG_CC_C_O, we do the test twice because some
4790 # compilers refuse to overwrite an existing .o file with -o,
4791 # though they will create one.
4792 am_cv_prog_cc_c_o=yes
4794 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4795 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } \
4799 && test -f conftest2.$ac_objext; then
4802 am_cv_prog_cc_c_o=no
4806 rm -f core conftest*
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4810 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4811 if test "$am_cv_prog_cc_c_o" != yes; then
4812 # Losing compiler, so override with the script.
4813 # FIXME: It is wrong to rewrite CC.
4814 # But if we don't then we get into trouble of one sort or another.
4815 # A longer-term fix would be to have automake use am__CC in this case,
4816 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4817 CC="$am_aux_dir/compile $CC"
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4833 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4834 # On Suns, sometimes $CPP names a directory.
4835 if test -n "$CPP" && test -d "$CPP"; then
4838 if test -z "$CPP"; then
4839 if ${ac_cv_prog_CPP+:} false; then :
4840 $as_echo_n "(cached) " >&6
4842 # Double quotes because CPP needs to be expanded
4843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4846 for ac_c_preproc_warn_flag in '' yes
4848 # Use a header file that comes with gcc, so configuring glibc
4849 # with a fresh cross-compiler works.
4850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851 # <limits.h> exists even on freestanding compilers.
4852 # On the NeXT, cc -E runs the code through the compiler's parser,
4853 # not just through cpp. "Syntax error" is here to catch this case.
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4857 # include <limits.h>
4859 # include <assert.h>
4863 if ac_fn_c_try_cpp "$LINENO"; then :
4866 # Broken: fails on valid input.
4869 rm -f conftest.err conftest.i conftest.$ac_ext
4871 # OK, works on sane cases. Now check whether nonexistent headers
4872 # can be detected and how.
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 #include <ac_nonexistent.h>
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4878 # Broken: success on invalid input.
4881 # Passes both tests.
4885 rm -f conftest.err conftest.i conftest.$ac_ext
4888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4889 rm -f conftest.i conftest.err conftest.$ac_ext
4890 if $ac_preproc_ok; then :
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4903 $as_echo "$CPP" >&6; }
4905 for ac_c_preproc_warn_flag in '' yes
4907 # Use a header file that comes with gcc, so configuring glibc
4908 # with a fresh cross-compiler works.
4909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4910 # <limits.h> exists even on freestanding compilers.
4911 # On the NeXT, cc -E runs the code through the compiler's parser,
4912 # not just through cpp. "Syntax error" is here to catch this case.
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4916 # include <limits.h>
4918 # include <assert.h>
4922 if ac_fn_c_try_cpp "$LINENO"; then :
4925 # Broken: fails on valid input.
4928 rm -f conftest.err conftest.i conftest.$ac_ext
4930 # OK, works on sane cases. Now check whether nonexistent headers
4931 # can be detected and how.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #include <ac_nonexistent.h>
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4937 # Broken: success on invalid input.
4940 # Passes both tests.
4944 rm -f conftest.err conftest.i conftest.$ac_ext
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.i conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then :
4952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4954 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4955 See \`config.log' for more details" "$LINENO" 5; }
4959 ac_cpp='$CPP $CPPFLAGS'
4960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965 IFS=$xc_prog_cc_prev_IFS
4966 LIBS=$xc_prog_cc_prev_LIBS
4967 CFLAGS=$xc_prog_cc_prev_CFLAGS
4968 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4969 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4975 am__api_version='1.15'
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4978 $as_echo_n "checking whether build environment is sane... " >&6; }
4979 # Reject unsafe characters in $srcdir or the absolute working directory
4980 # name. Accept space and tab only in the latter.
4984 *[\\\"\#\$\&\'\`$am_lf]*)
4985 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4988 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4989 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4992 # Do 'set' in a subshell so we don't clobber the current shell's
4993 # arguments. Must try -L first in case configure is actually a
4994 # symlink; some systems play weird games with the mod time of symlinks
4995 # (eg FreeBSD returns the mod time of the symlink's containing
4999 for am_try in 1 2; do
5000 echo "timestamp, slept: $am_has_slept" > conftest.file
5001 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5002 if test "$*" = "X"; then
5004 set X `ls -t "$srcdir/configure" conftest.file`
5006 if test "$*" != "X $srcdir/configure conftest.file" \
5007 && test "$*" != "X conftest.file $srcdir/configure"; then
5009 # If neither matched, then we have a broken ls. This can happen
5010 # if, for instance, CONFIG_SHELL is bash and it inherits a
5011 # broken ls alias from the environment. This has actually
5012 # happened. Such a system could not be considered "sane".
5013 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5014 alias in your environment" "$LINENO" 5
5016 if test "$2" = conftest.file || test $am_try -eq 2; then
5023 test "$2" = conftest.file
5029 as_fn_error $? "newly created file is older than distributed files!
5030 Check your system clock" "$LINENO" 5
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }
5034 # If we didn't sleep, we still need to ensure time stamps of config.status and
5035 # generated files are strictly newer.
5037 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5044 test "$program_prefix" != NONE &&
5045 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5046 # Use a double $ so make ignores it.
5047 test "$program_suffix" != NONE &&
5048 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5049 # Double any \ or $.
5050 # By default was `s,x,x', remove it if useless.
5051 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5052 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5054 if test x"${MISSING+set}" != xset; then
5057 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5059 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5062 # Use eval to expand $SHELL
5063 if eval "$MISSING --is-lightweight"; then
5064 am_missing_run="$MISSING "
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5068 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5071 if test x"${install_sh+set}" != xset; then
5074 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5076 install_sh="\${SHELL} $am_aux_dir/install-sh"
5080 # Installed binaries are usually stripped using 'strip' when the user
5081 # run "make install-strip". However 'strip' might not be the right
5082 # tool to use in cross-compilation environments, therefore Automake
5083 # will honor the 'STRIP' environment variable to overrule this program.
5084 if test "$cross_compiling" != no; then
5085 if test -n "$ac_tool_prefix"; then
5086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5087 set dummy ${ac_tool_prefix}strip; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_STRIP+:} false; then :
5091 $as_echo_n "(cached) " >&6
5093 if test -n "$STRIP"; then
5094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 STRIP=$ac_cv_prog_STRIP
5114 if test -n "$STRIP"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5116 $as_echo "$STRIP" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5124 if test -z "$ac_cv_prog_STRIP"; then
5126 # Extract the first word of "strip", so it can be a program name with args.
5127 set dummy strip; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5131 $as_echo_n "(cached) " >&6
5133 if test -n "$ac_ct_STRIP"; then
5134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_ac_ct_STRIP="strip"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5154 if test -n "$ac_ct_STRIP"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5156 $as_echo "$ac_ct_STRIP" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5162 if test "x$ac_ct_STRIP" = x; then
5165 case $cross_compiling:$ac_tool_warned in
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169 ac_tool_warned=yes ;;
5174 STRIP="$ac_cv_prog_STRIP"
5178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5182 if test -z "$MKDIR_P"; then
5183 if ${ac_cv_path_mkdir+:} false; then :
5184 $as_echo_n "(cached) " >&6
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5190 test -z "$as_dir" && as_dir=.
5191 for ac_prog in mkdir gmkdir; do
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5194 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5195 'mkdir (GNU coreutils) '* | \
5196 'mkdir (coreutils) '* | \
5197 'mkdir (fileutils) '4.1*)
5198 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5208 test -d ./--version && rmdir ./--version
5209 if test "${ac_cv_path_mkdir+set}" = set; then
5210 MKDIR_P="$ac_cv_path_mkdir -p"
5212 # As a last resort, use the slow shell script. Don't cache a
5213 # value for MKDIR_P within a source directory, because that will
5214 # break other packages using the cache if that directory is
5215 # removed, or if the value is a relative name.
5216 MKDIR_P="$ac_install_sh -d"
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5220 $as_echo "$MKDIR_P" >&6; }
5222 for ac_prog in gawk mawk nawk awk
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_AWK+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 if test -n "$AWK"; then
5232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_AWK="$ac_prog"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 if test -n "$AWK"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5254 $as_echo "$AWK" >&6; }
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5261 test -n "$AWK" && break
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5265 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5267 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5268 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 cat >conftest.make <<\_ACEOF
5274 @echo '@@@%%%=$(MAKE)=@@@%%%'
5276 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5277 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5279 eval ac_cv_prog_make_${ac_make}_set=yes;;
5281 eval ac_cv_prog_make_${ac_make}_set=no;;
5285 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5287 $as_echo "yes" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 SET_MAKE="MAKE=${MAKE-make}"
5295 rm -rf .tst 2>/dev/null
5296 mkdir .tst 2>/dev/null
5297 if test -d .tst; then
5302 rmdir .tst 2>/dev/null
5304 DEPDIR="${am__leading_dot}deps"
5306 ac_config_commands="$ac_config_commands depfiles"
5309 am_make=${MAKE-make}
5310 cat > confinc << 'END'
5312 @echo this is the am__doit target
5315 # If we don't find an include directive, just comment out the code.
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5317 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5321 # First try GNU make style include.
5322 echo "include confinc" > confmf
5323 # Ignore all kinds of additional output from 'make'.
5324 case `$am_make -s -f confmf 2> /dev/null` in #(
5325 *the\ am__doit\ target*)
5331 # Now try BSD make style include.
5332 if test "$am__include" = "#"; then
5333 echo '.include "confinc"' > confmf
5334 case `$am_make -s -f confmf 2> /dev/null` in #(
5335 *the\ am__doit\ target*)
5336 am__include=.include
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5345 $as_echo "$_am_result" >&6; }
5346 rm -f confinc confmf
5348 # Check whether --enable-dependency-tracking was given.
5349 if test "${enable_dependency_tracking+set}" = set; then :
5350 enableval=$enable_dependency_tracking;
5353 if test "x$enable_dependency_tracking" != xno; then
5354 am_depcomp="$ac_aux_dir/depcomp"
5358 if test "x$enable_dependency_tracking" != xno; then
5367 ## --------------------------------------- ##
5368 ## Start of automake initialization code ##
5369 ## --------------------------------------- ##
5371 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5372 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5373 # is not polluted with repeated "-I."
5374 am__isrc=' -I$(srcdir)'
5375 # test to see if srcdir already configured
5376 if test -f $srcdir/config.status; then
5377 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5381 # test whether we have cygpath
5382 if test -z "$CYGPATH_W"; then
5383 if (cygpath --version) >/dev/null 2>/dev/null; then
5384 CYGPATH_W='cygpath -w'
5391 # Define the identity of the package.
5396 cat >>confdefs.h <<_ACEOF
5397 #define PACKAGE "$PACKAGE"
5401 cat >>confdefs.h <<_ACEOF
5402 #define VERSION "$VERSION"
5405 # Some tools Automake needs.
5407 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5410 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5413 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5416 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5419 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5421 # For better backward compatibility. To be removed once Automake 1.9.x
5422 # dies out for good. For more background, see:
5423 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5424 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5425 mkdir_p='$(MKDIR_P)'
5427 # We need awk for the "check" target (and possibly the TAP driver). The
5428 # system "awk" is bad on some platforms.
5429 # Always define AMTAR for backward compatibility. Yes, it's still used
5430 # in the wild :-( We should find a proper way to deprecate it ...
5434 # We'll loop over all known methods to create a tar archive until one works.
5435 _am_tools='gnutar pax cpio none'
5437 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5443 depcc="$CC" am_compiler_list=
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5446 $as_echo_n "checking dependency style of $depcc... " >&6; }
5447 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5448 $as_echo_n "(cached) " >&6
5450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5451 # We make a subdir and do the tests there. Otherwise we can end up
5452 # making bogus files that we don't know about and never remove. For
5453 # instance it was reported that on HP-UX the gcc test will end up
5454 # making a dummy file named 'D' -- because '-MD' means "put the output
5458 # Copy depcomp to subdir because otherwise we won't find it if we're
5459 # using a relative directory.
5460 cp "$am_depcomp" conftest.dir
5462 # We will build objects and dependencies in a subdirectory because
5463 # it helps to detect inapplicable dependency modes. For instance
5464 # both Tru64's cc and ICC support -MD to output dependencies as a
5465 # side effect of compilation, but ICC will put the dependencies in
5466 # the current directory while Tru64 will put them in the object
5470 am_cv_CC_dependencies_compiler_type=none
5471 if test "$am_compiler_list" = ""; then
5472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5475 case " $depcc " in #(
5476 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5479 for depmode in $am_compiler_list; do
5480 # Setup a source with many dependencies, because some compilers
5481 # like to wrap large dependency lists on column 80 (with \), and
5482 # we should not choose a depcomp mode which is confused by this.
5484 # We need to recreate these files for each test, as the compiler may
5485 # overwrite some of them when testing with obscure command lines.
5486 # This happens at least with the AIX C compiler.
5488 for i in 1 2 3 4 5 6; do
5489 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5490 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5491 # Solaris 10 /bin/sh.
5492 echo '/* dummy */' > sub/conftst$i.h
5494 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5496 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5497 # mode. It turns out that the SunPro C++ compiler does not properly
5498 # handle '-M -o', and we need to detect this. Also, some Intel
5499 # versions had trouble with output in subdirs.
5500 am__obj=sub/conftest.${OBJEXT-o}
5501 am__minus_obj="-o $am__obj"
5504 # This depmode causes a compiler race in universal mode.
5505 test "$am__universal" = false || continue
5508 # After this tag, mechanisms are not by side-effect, so they'll
5509 # only be used when explicitly requested.
5510 if test "x$enable_dependency_tracking" = xyes; then
5516 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5517 # This compiler won't grok '-c -o', but also, the minuso test has
5518 # not run yet. These depmodes are late enough in the game, and
5519 # so weak that their functioning should not be impacted.
5520 am__obj=conftest.${OBJEXT-o}
5525 if depmode=$depmode \
5526 source=sub/conftest.c object=$am__obj \
5527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5528 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5529 >/dev/null 2>conftest.err &&
5530 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5532 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5534 # icc doesn't choke on unknown options, it will just issue warnings
5535 # or remarks (even with -Werror). So we grep stderr for any message
5536 # that says an option was ignored or not supported.
5537 # When given -MP, icc 7.0 and 7.1 complain thusly:
5538 # icc: Command line warning: ignoring option '-M'; no argument required
5539 # The diagnosis changed in icc 8.0:
5540 # icc: Command line remark: option '-MP' not supported
5541 if (grep 'ignoring option' conftest.err ||
5542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5543 am_cv_CC_dependencies_compiler_type=$depmode
5552 am_cv_CC_dependencies_compiler_type=none
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5557 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5561 test "x$enable_dependency_tracking" != xno \
5562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5564 am__fastdepCC_FALSE='#'
5566 am__fastdepCC_TRUE='#'
5567 am__fastdepCC_FALSE=
5572 # POSIX will say in a future version that running "rm -f" with no argument
5573 # is OK; and we want to be able to make that assumption in our Makefile
5574 # recipes. So use an aggressive probe to check that the usage we want is
5575 # actually supported "in the wild" to an acceptable degree.
5576 # See automake bug#10828.
5577 # To make any issue more visible, cause the running configure to be aborted
5578 # by default if the 'rm' program in use doesn't match our expectations; the
5579 # user can still override this though.
5580 if rm -f && rm -fr && rm -rf; then : OK; else
5584 Your 'rm' program seems unable to run without file operands specified
5585 on the command line, even when the '-f' option is present. This is contrary
5586 to the behaviour of most rm programs out there, and not conforming with
5587 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5589 Please tell bug-automake@gnu.org about your system, including the value
5590 of your $PATH and any error possibly output before this message. This
5591 can help us improve future automake versions.
5594 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5595 echo 'Configuration will proceed anyway, since you have set the' >&2
5596 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5600 Aborting the configuration process, to ensure you take notice of the issue.
5602 You can download and install GNU coreutils to get an 'rm' implementation
5603 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5605 If you want to complete the configuration process using your problematic
5606 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5607 to "yes", and re-run configure.
5610 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5614 ## ------------------------------------- ##
5615 ## End of automake initialization code ##
5616 ## ------------------------------------- ##
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5620 $as_echo_n "checking curl version... " >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5622 $as_echo "$CURLVERSION" >&6; }
5626 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5629 PKGADD_PKG="HAXXcurl"
5630 PKGADD_NAME="cURL - a client that groks URLs"
5631 PKGADD_VENDOR="curl.haxx.se"
5636 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
5637 curl_ssh_msg="no (--with-libssh2)"
5638 curl_zlib_msg="no (--with-zlib)"
5639 curl_gss_msg="no (--with-gssapi)"
5640 curl_tls_srp_msg="no (--enable-tls-srp)"
5641 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5642 curl_ipv6_msg="no (--enable-ipv6)"
5643 curl_unix_sockets_msg="no (--enable-unix-sockets)"
5644 curl_idn_msg="no (--with-{libidn,winidn})"
5645 curl_manual_msg="no (--enable-manual)"
5646 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5647 curl_verbose_msg="enabled (--disable-verbose)"
5648 curl_sspi_msg="no (--enable-sspi)"
5649 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5650 curl_ldaps_msg="no (--enable-ldaps)"
5651 curl_rtsp_msg="no (--enable-rtsp)"
5652 curl_rtmp_msg="no (--with-librtmp)"
5653 curl_mtlnk_msg="no (--with-libmetalink)"
5654 curl_psl_msg="no (--with-libpsl)"
5656 init_ssl_msg=${curl_ssl_msg}
5658 INITIAL_LDFLAGS=$LDFLAGS
5662 # Make sure we can run config.sub.
5663 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5664 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5667 $as_echo_n "checking build system type... " >&6; }
5668 if ${ac_cv_build+:} false; then :
5669 $as_echo_n "(cached) " >&6
5671 ac_build_alias=$build_alias
5672 test "x$ac_build_alias" = x &&
5673 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5674 test "x$ac_build_alias" = x &&
5675 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5676 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5677 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5681 $as_echo "$ac_cv_build" >&6; }
5682 case $ac_cv_build in
5684 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5687 ac_save_IFS=$IFS; IFS='-'
5693 # Remember, the first character of IFS is used to create $*,
5694 # except with old shells:
5697 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5701 $as_echo_n "checking host system type... " >&6; }
5702 if ${ac_cv_host+:} false; then :
5703 $as_echo_n "(cached) " >&6
5705 if test "x$host_alias" = x; then
5706 ac_cv_host=$ac_cv_build
5708 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5709 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5714 $as_echo "$ac_cv_host" >&6; }
5717 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5720 ac_save_IFS=$IFS; IFS='-'
5726 # Remember, the first character of IFS is used to create $*,
5727 # except with old shells:
5730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5734 cat >>confdefs.h <<_ACEOF
5735 #define OS "${host}"
5742 curl_includes_inttypes="\
5743 /* includes start */
5744 #ifdef HAVE_SYS_TYPES_H
5745 # include <sys/types.h>
5747 #ifdef HAVE_STDINT_H
5748 # include <stdint.h>
5750 #ifdef HAVE_INTTYPES_H
5751 # include <inttypes.h>
5756 ac_cv_header_stdint_h="no"
5759 for ac_header in sys/types.h stdint.h inttypes.h
5761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5764 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5765 cat >>confdefs.h <<_ACEOF
5766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5776 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5777 if ${ac_cv_path_GREP+:} false; then :
5778 $as_echo_n "(cached) " >&6
5780 if test -z "$GREP"; then
5781 ac_path_GREP_found=false
5782 # Loop through the user's path and test for each of PROGNAME-LIST
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5787 test -z "$as_dir" && as_dir=.
5788 for ac_prog in grep ggrep; do
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5791 as_fn_executable_p "$ac_path_GREP" || continue
5792 # Check for GNU ac_path_GREP and select it if it is found.
5793 # Check for GNU $ac_path_GREP
5794 case `"$ac_path_GREP" --version 2>&1` in
5796 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5799 $as_echo_n 0123456789 >"conftest.in"
5802 cat "conftest.in" "conftest.in" >"conftest.tmp"
5803 mv "conftest.tmp" "conftest.in"
5804 cp "conftest.in" "conftest.nl"
5805 $as_echo 'GREP' >> "conftest.nl"
5806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5808 as_fn_arith $ac_count + 1 && ac_count=$as_val
5809 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5810 # Best one so far, save it but keep looking for a better one
5811 ac_cv_path_GREP="$ac_path_GREP"
5812 ac_path_GREP_max=$ac_count
5814 # 10*(2^10) chars as input seems more than enough
5815 test $ac_count -gt 10 && break
5817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5820 $ac_path_GREP_found && break 3
5825 if test -z "$ac_cv_path_GREP"; then
5826 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5829 ac_cv_path_GREP=$GREP
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5834 $as_echo "$ac_cv_path_GREP" >&6; }
5835 GREP="$ac_cv_path_GREP"
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5839 $as_echo_n "checking for egrep... " >&6; }
5840 if ${ac_cv_path_EGREP+:} false; then :
5841 $as_echo_n "(cached) " >&6
5843 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5844 then ac_cv_path_EGREP="$GREP -E"
5846 if test -z "$EGREP"; then
5847 ac_path_EGREP_found=false
5848 # Loop through the user's path and test for each of PROGNAME-LIST
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5853 test -z "$as_dir" && as_dir=.
5854 for ac_prog in egrep; do
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5857 as_fn_executable_p "$ac_path_EGREP" || continue
5858 # Check for GNU ac_path_EGREP and select it if it is found.
5859 # Check for GNU $ac_path_EGREP
5860 case `"$ac_path_EGREP" --version 2>&1` in
5862 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5865 $as_echo_n 0123456789 >"conftest.in"
5868 cat "conftest.in" "conftest.in" >"conftest.tmp"
5869 mv "conftest.tmp" "conftest.in"
5870 cp "conftest.in" "conftest.nl"
5871 $as_echo 'EGREP' >> "conftest.nl"
5872 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5874 as_fn_arith $ac_count + 1 && ac_count=$as_val
5875 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5876 # Best one so far, save it but keep looking for a better one
5877 ac_cv_path_EGREP="$ac_path_EGREP"
5878 ac_path_EGREP_max=$ac_count
5880 # 10*(2^10) chars as input seems more than enough
5881 test $ac_count -gt 10 && break
5883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5886 $ac_path_EGREP_found && break 3
5891 if test -z "$ac_cv_path_EGREP"; then
5892 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5895 ac_cv_path_EGREP=$EGREP
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5901 $as_echo "$ac_cv_path_EGREP" >&6; }
5902 EGREP="$ac_cv_path_EGREP"
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5906 $as_echo_n "checking for ANSI C header files... " >&6; }
5907 if ${ac_cv_header_stdc+:} false; then :
5908 $as_echo_n "(cached) " >&6
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5924 if ac_fn_c_try_compile "$LINENO"; then :
5925 ac_cv_header_stdc=yes
5927 ac_cv_header_stdc=no
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 if test $ac_cv_header_stdc = yes; then
5932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5939 $EGREP "memchr" >/dev/null 2>&1; then :
5942 ac_cv_header_stdc=no
5948 if test $ac_cv_header_stdc = yes; then
5949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5956 $EGREP "free" >/dev/null 2>&1; then :
5959 ac_cv_header_stdc=no
5965 if test $ac_cv_header_stdc = yes; then
5966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5967 if test "$cross_compiling" = yes; then :
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5974 #if ((' ' & 0x0FF) == 0x020)
5975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5978 # define ISLOWER(c) \
5979 (('a' <= (c) && (c) <= 'i') \
5980 || ('j' <= (c) && (c) <= 'r') \
5981 || ('s' <= (c) && (c) <= 'z'))
5982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5990 for (i = 0; i < 256; i++)
5991 if (XOR (islower (i), ISLOWER (i))
5992 || toupper (i) != TOUPPER (i))
5997 if ac_fn_c_try_run "$LINENO"; then :
6000 ac_cv_header_stdc=no
6002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6003 conftest.$ac_objext conftest.beam conftest.$ac_ext
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6009 $as_echo "$ac_cv_header_stdc" >&6; }
6010 if test $ac_cv_header_stdc = yes; then
6012 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6018 inttypes.h stdint.h unistd.h
6020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6021 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6024 cat >>confdefs.h <<_ACEOF
6025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
6035 $as_echo_n "checking if cpp -P is needed... " >&6; }
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
6052 $as_echo "$cpp" >&6; }
6054 if test "x$cpp" = "xyes"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
6056 $as_echo_n "checking if cpp -P works... " >&6; }
6057 OLDCPPFLAGS=$CPPFLAGS
6058 CPPFLAGS="$CPPFLAGS -P"
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
6075 $as_echo "$cpp_p" >&6; }
6077 if test "x$cpp_p" = "xno"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
6079 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
6086 CPPFLAGS=$OLDCPPFLAGS
6095 if test -z "$SED"; then
6096 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6099 # The cast to long int works around a bug in the HP C Compiler
6100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6102 # This bug is HP SR number 8606223364.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6104 $as_echo_n "checking size of long... " >&6; }
6105 if ${ac_cv_sizeof_long+:} false; then :
6106 $as_echo_n "(cached) " >&6
6108 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6111 if test "$ac_cv_type_long" = yes; then
6112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6114 as_fn_error 77 "cannot compute sizeof (long)
6115 See \`config.log' for more details" "$LINENO" 5; }
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6123 $as_echo "$ac_cv_sizeof_long" >&6; }
6127 cat >>confdefs.h <<_ACEOF
6128 #define SIZEOF_LONG $ac_cv_sizeof_long
6132 # The cast to long int works around a bug in the HP C Compiler
6133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6135 # This bug is HP SR number 8606223364.
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6137 $as_echo_n "checking size of void*... " >&6; }
6138 if ${ac_cv_sizeof_voidp+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
6144 if test "$ac_cv_type_voidp" = yes; then
6145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6147 as_fn_error 77 "cannot compute sizeof (void*)
6148 See \`config.log' for more details" "$LINENO" 5; }
6150 ac_cv_sizeof_voidp=0
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6156 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6160 cat >>confdefs.h <<_ACEOF
6161 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6166 if test -z "$ac_cv_sizeof_long" ||
6167 test "$ac_cv_sizeof_long" -eq "0"; then
6168 as_fn_error $? "cannot find out size of long." "$LINENO" 5
6170 if test -z "$ac_cv_sizeof_voidp" ||
6171 test "$ac_cv_sizeof_voidp" -eq "0"; then
6172 as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6178 if test "$ac_cv_sizeof_long" -eq "8" &&
6179 test "$ac_cv_sizeof_voidp" -ge "8"; then
6181 elif test "$ac_cv_sizeof_long" -eq "4" &&
6182 test "$ac_cv_sizeof_voidp" -ge "4"; then
6187 curl_typeof_curl_off_t="unknown"
6188 curl_sizeof_curl_off_t="unknown"
6189 curl_format_curl_off_t="unknown"
6190 curl_format_curl_off_tu="unknown"
6192 if test "$curl_typeof_curl_off_t" = "unknown"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6194 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6203 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6207 case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6209 tmp_includes="$curl_includes_inttypes"
6210 tmp_source="char f[] = PRId64;"
6214 tmp_includes="$curl_includes_inttypes"
6215 tmp_source="char f[] = PRId32;"
6219 tmp_includes="$curl_includes_inttypes"
6220 tmp_source="char f[] = PRId16;"
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6229 typedef $t8 curl_off_t;
6230 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6243 if ac_fn_c_try_compile "$LINENO"; then :
6245 if test -z "$tmp_fmt"; then
6246 curl_typeof_curl_off_t="$t8"
6247 curl_sizeof_curl_off_t="8"
6250 OLDCPPFLAGS=$CPPFLAGS
6251 # CPPPFLAG comes from CURL_CPP_P
6252 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
6253 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6254 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6255 if test -z "$SED"; then
6256 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6258 if test -z "$GREP"; then
6259 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6266 $curl_includes_inttypes
6268 CURL_DEF_TOKEN $tmp_fmt
6273 if ac_fn_c_try_cpp "$LINENO"; then :
6275 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6276 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6277 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6278 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6279 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6284 rm -f conftest.err conftest.i conftest.$ac_ext
6285 if test -z "$tmp_exp"; then
6286 eval "$as_ac_HaveDef=no"
6289 eval "$as_ac_HaveDef=yes"
6290 eval "$as_ac_Def=\$tmp_exp"
6293 CPPFLAGS=$OLDCPPFLAGS
6295 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6296 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6297 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6298 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6299 curl_typeof_curl_off_t="$t8"
6300 curl_sizeof_curl_off_t="8"
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6310 $as_echo "$curl_typeof_curl_off_t" >&6; }
6312 if test "$curl_typeof_curl_off_t" = "unknown"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6314 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6321 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6325 case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6327 tmp_includes="$curl_includes_inttypes"
6328 tmp_source="char f[] = PRId64;"
6332 tmp_includes="$curl_includes_inttypes"
6333 tmp_source="char f[] = PRId32;"
6337 tmp_includes="$curl_includes_inttypes"
6338 tmp_source="char f[] = PRId16;"
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6347 typedef $t4 curl_off_t;
6348 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6361 if ac_fn_c_try_compile "$LINENO"; then :
6363 if test -z "$tmp_fmt"; then
6364 curl_typeof_curl_off_t="$t4"
6365 curl_sizeof_curl_off_t="4"
6368 OLDCPPFLAGS=$CPPFLAGS
6369 # CPPPFLAG comes from CURL_CPP_P
6370 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
6371 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6372 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6373 if test -z "$SED"; then
6374 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6376 if test -z "$GREP"; then
6377 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6384 $curl_includes_inttypes
6386 CURL_DEF_TOKEN $tmp_fmt
6391 if ac_fn_c_try_cpp "$LINENO"; then :
6393 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6394 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6395 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6396 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6397 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6402 rm -f conftest.err conftest.i conftest.$ac_ext
6403 if test -z "$tmp_exp"; then
6404 eval "$as_ac_HaveDef=no"
6407 eval "$as_ac_HaveDef=yes"
6408 eval "$as_ac_Def=\$tmp_exp"
6411 CPPFLAGS=$OLDCPPFLAGS
6413 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6414 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6415 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6416 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6417 curl_typeof_curl_off_t="$t4"
6418 curl_sizeof_curl_off_t="4"
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6428 $as_echo "$curl_typeof_curl_off_t" >&6; }
6430 if test "$curl_typeof_curl_off_t" = "unknown"; then
6431 as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6435 $as_echo_n "checking size of curl_off_t... " >&6; }
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6437 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6440 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6441 if test "$curl_format_curl_off_t" != "unknown"; then
6442 x_pull_headers="yes"
6443 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6444 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6445 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6446 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6449 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6450 long_long | __longlong | __longlong_t)
6451 curl_format_curl_off_t="lld"
6452 curl_format_curl_off_tu="llu"
6455 curl_format_curl_off_t="ld"
6456 curl_format_curl_off_tu="lu"
6459 curl_format_curl_off_t="d"
6460 curl_format_curl_off_tu="u"
6463 curl_format_curl_off_t="I64d"
6464 curl_format_curl_off_tu="I64u"
6467 curl_format_curl_off_t="I32d"
6468 curl_format_curl_off_tu="I32u"
6471 curl_format_curl_off_t="I16d"
6472 curl_format_curl_off_tu="I16u"
6475 as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6480 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6483 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6485 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6489 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6491 curl_suffix_curl_off_t="unknown"
6492 curl_suffix_curl_off_tu="unknown"
6494 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6495 long_long | __longlong | __longlong_t)
6505 tst_suffixes="LL:i64::"
6508 tst_suffixes="L:i32::"
6511 tst_suffixes="L:i16::"
6514 as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6518 old_IFS=$IFS; IFS=':'
6519 for tmp_ssuf in $tst_suffixes ; do
6521 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6524 tmp_usuf="u$tmp_ssuf"
6527 tmp_usuf="U$tmp_ssuf"
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6537 $curl_includes_inttypes
6538 typedef $curl_typeof_curl_off_t new_t;
6555 if ac_fn_c_try_compile "$LINENO"; then :
6557 curl_suffix_curl_off_t="$tmp_ssuf"
6558 curl_suffix_curl_off_tu="$tmp_usuf"
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6567 as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6570 $as_echo "$curl_suffix_curl_off_t" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6572 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6574 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6579 if test "$x_pull_headers" = "yes"; then
6580 if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6582 cat >>confdefs.h <<_EOF
6583 #define CURL_PULL_SYS_TYPES_H 1
6587 if test "x$ac_cv_header_stdint_h" = "xyes"; then
6589 cat >>confdefs.h <<_EOF
6590 #define CURL_PULL_STDINT_H 1
6594 if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6596 cat >>confdefs.h <<_EOF
6597 #define CURL_PULL_INTTYPES_H 1
6604 cat >>confdefs.h <<_EOF
6605 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6609 cat >>confdefs.h <<_EOF
6610 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6614 cat >>confdefs.h <<_EOF
6615 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6619 cat >>confdefs.h <<_EOF
6620 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6624 cat >>confdefs.h <<_EOF
6625 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6629 cat >>confdefs.h <<_EOF
6630 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6634 cat >>confdefs.h <<_EOF
6635 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6644 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6654 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6657 $as_echo "yes" >&6; }
6658 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6674 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6686 force compilation error
6694 if ac_fn_c_try_compile "$LINENO"; then :
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6697 $as_echo "yes" >&6; }
6698 tmp_thread_safe_initially_defined="yes"
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 tmp_thread_safe_initially_defined="no"
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709 if test "$tmp_thread_safe_initially_defined" = "no"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6711 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6714 aix[123].* | aix4.[012].*)
6715 tmp_need_thread_safe="no"
6718 tmp_need_thread_safe="yes"
6721 tmp_need_thread_safe="no"
6725 if test "$tmp_need_thread_safe" = "yes"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6727 $as_echo "yes" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6735 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6736 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6737 test "$tmp_need_thread_safe" = "yes"; then
6740 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6742 cat >>confdefs.h <<_EOF
6743 #ifndef _THREAD_SAFE
6744 # define _THREAD_SAFE
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6749 $as_echo "yes" >&6; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6759 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6771 force compilation error
6779 if ac_fn_c_try_compile "$LINENO"; then :
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6782 $as_echo "yes" >&6; }
6783 tmp_reentrant_initially_defined="yes"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 tmp_reentrant_initially_defined="no"
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 if test "$tmp_reentrant_initially_defined" = "no"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6796 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6800 tmp_need_reentrant="yes"
6803 tmp_need_reentrant="no"
6807 if test "$tmp_need_reentrant" = "no"; then
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6826 if ac_fn_c_try_compile "$LINENO"; then :
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 if test "$tmp_errno" = "yes"; then
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6849 force compilation error
6857 if ac_fn_c_try_compile "$LINENO"; then :
6859 tmp_errno="errno_macro_defined"
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6876 force compilation error
6884 if ac_fn_c_try_compile "$LINENO"; then :
6886 tmp_errno="errno_macro_needs_reentrant"
6887 tmp_need_reentrant="yes"
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 if test "$tmp_need_reentrant" = "no"; then
6899 if test "$tmp_need_reentrant" = "no"; then
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6905 #define gmtime_r innocuous_gmtime_r
6907 # include <limits.h>
6909 # include <assert.h>
6916 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6928 if ac_fn_c_try_link "$LINENO"; then :
6937 rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
6939 if test "$tmp_gmtime_r" = "yes"; then
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6943 #include <sys/types.h>
6947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6948 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6950 tmp_gmtime_r="proto_declared"
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6958 #include <sys/types.h>
6962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6965 tmp_gmtime_r="proto_needs_reentrant"
6966 tmp_need_reentrant="yes"
6978 if test "$tmp_need_reentrant" = "no"; then
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6984 #define localtime_r innocuous_localtime_r
6986 # include <limits.h>
6988 # include <assert.h>
6994 char localtime_r ();
6995 #if defined __stub_localtime_r || defined __stub___localtime_r
7001 return localtime_r ();
7007 if ac_fn_c_try_link "$LINENO"; then :
7009 tmp_localtime_r="yes"
7013 tmp_localtime_r="no"
7016 rm -f core conftest.err conftest.$ac_objext \
7017 conftest$ac_exeext conftest.$ac_ext
7018 if test "$tmp_localtime_r" = "yes"; then
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7022 #include <sys/types.h>
7026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7027 $EGREP "localtime_r" >/dev/null 2>&1; then :
7029 tmp_localtime_r="proto_declared"
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7037 #include <sys/types.h>
7041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042 $EGREP "localtime_r" >/dev/null 2>&1; then :
7044 tmp_localtime_r="proto_needs_reentrant"
7045 tmp_need_reentrant="yes"
7057 if test "$tmp_need_reentrant" = "no"; then
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7063 #define strerror_r innocuous_strerror_r
7065 # include <limits.h>
7067 # include <assert.h>
7074 #if defined __stub_strerror_r || defined __stub___strerror_r
7080 return strerror_r ();
7086 if ac_fn_c_try_link "$LINENO"; then :
7088 tmp_strerror_r="yes"
7095 rm -f core conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7097 if test "$tmp_strerror_r" = "yes"; then
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7101 #include <sys/types.h>
7105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106 $EGREP "strerror_r" >/dev/null 2>&1; then :
7108 tmp_strerror_r="proto_declared"
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7116 #include <sys/types.h>
7120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7121 $EGREP "strerror_r" >/dev/null 2>&1; then :
7123 tmp_strerror_r="proto_needs_reentrant"
7124 tmp_need_reentrant="yes"
7136 if test "$tmp_need_reentrant" = "no"; then
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7142 #define strtok_r innocuous_strtok_r
7144 # include <limits.h>
7146 # include <assert.h>
7153 #if defined __stub_strtok_r || defined __stub___strtok_r
7165 if ac_fn_c_try_link "$LINENO"; then :
7174 rm -f core conftest.err conftest.$ac_objext \
7175 conftest$ac_exeext conftest.$ac_ext
7176 if test "$tmp_strtok_r" = "yes"; then
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7180 #include <sys/types.h>
7184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185 $EGREP "strtok_r" >/dev/null 2>&1; then :
7187 tmp_strtok_r="proto_declared"
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7195 #include <sys/types.h>
7199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7200 $EGREP "strtok_r" >/dev/null 2>&1; then :
7202 tmp_strtok_r="proto_needs_reentrant"
7203 tmp_need_reentrant="yes"
7215 if test "$tmp_need_reentrant" = "no"; then
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7221 #define inet_ntoa_r innocuous_inet_ntoa_r
7223 # include <limits.h>
7225 # include <assert.h>
7231 char inet_ntoa_r ();
7232 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7238 return inet_ntoa_r ();
7244 if ac_fn_c_try_link "$LINENO"; then :
7246 tmp_inet_ntoa_r="yes"
7250 tmp_inet_ntoa_r="no"
7253 rm -f core conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7255 if test "$tmp_inet_ntoa_r" = "yes"; then
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7259 #include <sys/types.h>
7260 #include <sys/socket.h>
7261 #include <netinet/in.h>
7262 #include <arpa/inet.h>
7265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7266 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7268 tmp_inet_ntoa_r="proto_declared"
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7276 #include <sys/types.h>
7277 #include <sys/socket.h>
7278 #include <netinet/in.h>
7279 #include <arpa/inet.h>
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7285 tmp_inet_ntoa_r="proto_needs_reentrant"
7286 tmp_need_reentrant="yes"
7298 if test "$tmp_need_reentrant" = "no"; then
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7304 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7306 # include <limits.h>
7308 # include <assert.h>
7310 #undef gethostbyaddr_r
7314 char gethostbyaddr_r ();
7315 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7321 return gethostbyaddr_r ();
7327 if ac_fn_c_try_link "$LINENO"; then :
7329 tmp_gethostbyaddr_r="yes"
7333 tmp_gethostbyaddr_r="no"
7336 rm -f core conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
7338 if test "$tmp_gethostbyaddr_r" = "yes"; then
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7342 #include <sys/types.h>
7346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7347 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7349 tmp_gethostbyaddr_r="proto_declared"
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7357 #include <sys/types.h>
7361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7362 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7364 tmp_gethostbyaddr_r="proto_needs_reentrant"
7365 tmp_need_reentrant="yes"
7377 if test "$tmp_need_reentrant" = "no"; then
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7383 #define gethostbyname_r innocuous_gethostbyname_r
7385 # include <limits.h>
7387 # include <assert.h>
7389 #undef gethostbyname_r
7393 char gethostbyname_r ();
7394 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7400 return gethostbyname_r ();
7406 if ac_fn_c_try_link "$LINENO"; then :
7408 tmp_gethostbyname_r="yes"
7412 tmp_gethostbyname_r="no"
7415 rm -f core conftest.err conftest.$ac_objext \
7416 conftest$ac_exeext conftest.$ac_ext
7417 if test "$tmp_gethostbyname_r" = "yes"; then
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7421 #include <sys/types.h>
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7428 tmp_gethostbyname_r="proto_declared"
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7436 #include <sys/types.h>
7440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7441 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7443 tmp_gethostbyname_r="proto_needs_reentrant"
7444 tmp_need_reentrant="yes"
7456 if test "$tmp_need_reentrant" = "no"; then
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7462 #define getprotobyname_r innocuous_getprotobyname_r
7464 # include <limits.h>
7466 # include <assert.h>
7468 #undef getprotobyname_r
7472 char getprotobyname_r ();
7473 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7479 return getprotobyname_r ();
7485 if ac_fn_c_try_link "$LINENO"; then :
7487 tmp_getprotobyname_r="yes"
7491 tmp_getprotobyname_r="no"
7494 rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
7496 if test "$tmp_getprotobyname_r" = "yes"; then
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7500 #include <sys/types.h>
7504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7505 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7507 tmp_getprotobyname_r="proto_declared"
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7515 #include <sys/types.h>
7519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7520 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7522 tmp_getprotobyname_r="proto_needs_reentrant"
7523 tmp_need_reentrant="yes"
7535 if test "$tmp_need_reentrant" = "no"; then
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7541 #define getservbyport_r innocuous_getservbyport_r
7543 # include <limits.h>
7545 # include <assert.h>
7547 #undef getservbyport_r
7551 char getservbyport_r ();
7552 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7558 return getservbyport_r ();
7564 if ac_fn_c_try_link "$LINENO"; then :
7566 tmp_getservbyport_r="yes"
7570 tmp_getservbyport_r="no"
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7575 if test "$tmp_getservbyport_r" = "yes"; then
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7579 #include <sys/types.h>
7583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7584 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7586 tmp_getservbyport_r="proto_declared"
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7594 #include <sys/types.h>
7598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7599 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7601 tmp_getservbyport_r="proto_needs_reentrant"
7602 tmp_need_reentrant="yes"
7616 if test "$tmp_need_reentrant" = "yes"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7618 $as_echo "yes" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7626 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7627 if test "$tmp_reentrant_initially_defined" = "yes" ||
7628 test "$tmp_need_reentrant" = "yes"; then
7631 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7633 cat >>confdefs.h <<_EOF
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7640 $as_echo "yes" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7648 # Check whether --enable-largefile was given.
7649 if test "${enable_largefile+set}" = set; then :
7650 enableval=$enable_largefile;
7653 if test "$enable_largefile" != no; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7656 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7657 if ${ac_cv_sys_largefile_CC+:} false; then :
7658 $as_echo_n "(cached) " >&6
7660 ac_cv_sys_largefile_CC=no
7661 if test "$GCC" != yes; then
7664 # IRIX 6.2 and later do not support large files by default,
7665 # so use the C compiler's -n32 option if that helps.
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 #include <sys/types.h>
7669 /* Check that off_t can represent 2**63 - 1 correctly.
7670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7671 since some C++ compilers masquerading as C compilers
7672 incorrectly reject 9223372036854775807. */
7673 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7675 && LARGE_OFF_T % 2147483647 == 1)
7684 if ac_fn_c_try_compile "$LINENO"; then :
7687 rm -f core conftest.err conftest.$ac_objext
7689 if ac_fn_c_try_compile "$LINENO"; then :
7690 ac_cv_sys_largefile_CC=' -n32'; break
7692 rm -f core conftest.err conftest.$ac_objext
7696 rm -f conftest.$ac_ext
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7700 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7701 if test "$ac_cv_sys_largefile_CC" != no; then
7702 CC=$CC$ac_cv_sys_largefile_CC
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7706 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7707 if ${ac_cv_sys_file_offset_bits+:} false; then :
7708 $as_echo_n "(cached) " >&6
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <sys/types.h>
7714 /* Check that off_t can represent 2**63 - 1 correctly.
7715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7716 since some C++ compilers masquerading as C compilers
7717 incorrectly reject 9223372036854775807. */
7718 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7720 && LARGE_OFF_T % 2147483647 == 1)
7729 if ac_fn_c_try_compile "$LINENO"; then :
7730 ac_cv_sys_file_offset_bits=no; break
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7735 #define _FILE_OFFSET_BITS 64
7736 #include <sys/types.h>
7737 /* Check that off_t can represent 2**63 - 1 correctly.
7738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7739 since some C++ compilers masquerading as C compilers
7740 incorrectly reject 9223372036854775807. */
7741 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7743 && LARGE_OFF_T % 2147483647 == 1)
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 ac_cv_sys_file_offset_bits=64; break
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 ac_cv_sys_file_offset_bits=unknown
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7761 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7762 case $ac_cv_sys_file_offset_bits in #(
7765 cat >>confdefs.h <<_ACEOF
7766 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7771 if test $ac_cv_sys_file_offset_bits = unknown; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7773 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7774 if ${ac_cv_sys_large_files+:} false; then :
7775 $as_echo_n "(cached) " >&6
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 #include <sys/types.h>
7781 /* Check that off_t can represent 2**63 - 1 correctly.
7782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7783 since some C++ compilers masquerading as C compilers
7784 incorrectly reject 9223372036854775807. */
7785 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7787 && LARGE_OFF_T % 2147483647 == 1)
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797 ac_cv_sys_large_files=no; break
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 #define _LARGE_FILES 1
7803 #include <sys/types.h>
7804 /* Check that off_t can represent 2**63 - 1 correctly.
7805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7806 since some C++ compilers masquerading as C compilers
7807 incorrectly reject 9223372036854775807. */
7808 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7810 && LARGE_OFF_T % 2147483647 == 1)
7819 if ac_fn_c_try_compile "$LINENO"; then :
7820 ac_cv_sys_large_files=1; break
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 ac_cv_sys_large_files=unknown
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7828 $as_echo "$ac_cv_sys_large_files" >&6; }
7829 case $ac_cv_sys_large_files in #(
7832 cat >>confdefs.h <<_ACEOF
7833 #define _LARGE_FILES $ac_cv_sys_large_files
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7847 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7852 macro_version='2.4.6'
7853 macro_revision='2.4.6'
7867 ltmain=$ac_aux_dir/ltmain.sh
7869 # Backslashify metacharacters that are still active within
7870 # double-quoted strings.
7871 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7873 # Same as above, but do not quote variable references.
7874 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7876 # Sed substitution to delay expansion of an escaped shell variable in a
7877 # double_quote_subst'ed string.
7878 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7880 # Sed substitution to delay expansion of an escaped single quote.
7881 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7883 # Sed substitution to avoid accidental globbing in evaled expressions
7884 no_glob_subst='s/\*/\\\*/g'
7886 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7887 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7888 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7891 $as_echo_n "checking how to print strings... " >&6; }
7892 # Test print first, because it will be a builtin if present.
7893 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7894 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7896 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7899 # Use this function as a fallback that always works.
7900 func_fallback_echo ()
7902 eval 'cat <<_LTECHO_EOF
7906 ECHO='func_fallback_echo'
7909 # func_echo_all arg...
7910 # Invoke $ECHO with all args, space-separated.
7917 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7918 $as_echo "printf" >&6; } ;;
7919 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7920 $as_echo "print -r" >&6; } ;;
7921 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7922 $as_echo "cat" >&6; } ;;
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7939 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7940 if ${ac_cv_path_SED+:} false; then :
7941 $as_echo_n "(cached) " >&6
7943 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7944 for ac_i in 1 2 3 4 5 6 7; do
7945 ac_script="$ac_script$as_nl$ac_script"
7947 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7948 { ac_script=; unset ac_script;}
7949 if test -z "$SED"; then
7950 ac_path_SED_found=false
7951 # Loop through the user's path and test for each of PROGNAME-LIST
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 test -z "$as_dir" && as_dir=.
7957 for ac_prog in sed gsed; do
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7960 as_fn_executable_p "$ac_path_SED" || continue
7961 # Check for GNU ac_path_SED and select it if it is found.
7962 # Check for GNU $ac_path_SED
7963 case `"$ac_path_SED" --version 2>&1` in
7965 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7968 $as_echo_n 0123456789 >"conftest.in"
7971 cat "conftest.in" "conftest.in" >"conftest.tmp"
7972 mv "conftest.tmp" "conftest.in"
7973 cp "conftest.in" "conftest.nl"
7974 $as_echo '' >> "conftest.nl"
7975 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7977 as_fn_arith $ac_count + 1 && ac_count=$as_val
7978 if test $ac_count -gt ${ac_path_SED_max-0}; then
7979 # Best one so far, save it but keep looking for a better one
7980 ac_cv_path_SED="$ac_path_SED"
7981 ac_path_SED_max=$ac_count
7983 # 10*(2^10) chars as input seems more than enough
7984 test $ac_count -gt 10 && break
7986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7989 $ac_path_SED_found && break 3
7994 if test -z "$ac_cv_path_SED"; then
7995 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8003 $as_echo "$ac_cv_path_SED" >&6; }
8004 SED="$ac_cv_path_SED"
8007 test -z "$SED" && SED=sed
8008 Xsed="$SED -e 1s/^X//"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8021 $as_echo_n "checking for fgrep... " >&6; }
8022 if ${ac_cv_path_FGREP+:} false; then :
8023 $as_echo_n "(cached) " >&6
8025 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8026 then ac_cv_path_FGREP="$GREP -F"
8028 if test -z "$FGREP"; then
8029 ac_path_FGREP_found=false
8030 # Loop through the user's path and test for each of PROGNAME-LIST
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8035 test -z "$as_dir" && as_dir=.
8036 for ac_prog in fgrep; do
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8039 as_fn_executable_p "$ac_path_FGREP" || continue
8040 # Check for GNU ac_path_FGREP and select it if it is found.
8041 # Check for GNU $ac_path_FGREP
8042 case `"$ac_path_FGREP" --version 2>&1` in
8044 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8047 $as_echo_n 0123456789 >"conftest.in"
8050 cat "conftest.in" "conftest.in" >"conftest.tmp"
8051 mv "conftest.tmp" "conftest.in"
8052 cp "conftest.in" "conftest.nl"
8053 $as_echo 'FGREP' >> "conftest.nl"
8054 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8056 as_fn_arith $ac_count + 1 && ac_count=$as_val
8057 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8058 # Best one so far, save it but keep looking for a better one
8059 ac_cv_path_FGREP="$ac_path_FGREP"
8060 ac_path_FGREP_max=$ac_count
8062 # 10*(2^10) chars as input seems more than enough
8063 test $ac_count -gt 10 && break
8065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8068 $ac_path_FGREP_found && break 3
8073 if test -z "$ac_cv_path_FGREP"; then
8074 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8077 ac_cv_path_FGREP=$FGREP
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8083 $as_echo "$ac_cv_path_FGREP" >&6; }
8084 FGREP="$ac_cv_path_FGREP"
8087 test -z "$GREP" && GREP=grep
8107 # Check whether --with-gnu-ld was given.
8108 if test "${with_gnu_ld+set}" = set; then :
8109 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8115 if test yes = "$GCC"; then
8116 # Check if gcc -print-prog-name=ld gives a path.
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8118 $as_echo_n "checking for ld used by $CC... " >&6; }
8121 # gcc leaves a trailing carriage return, which upsets mingw
8122 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8124 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8127 # Accept absolute paths.
8129 re_direlt='/[^/][^/]*/\.\./'
8130 # Canonicalize the pathname of ld
8131 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8132 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8133 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8135 test -z "$LD" && LD=$ac_prog
8138 # If it fails, then pretend we aren't using GCC.
8142 # If it is relative, then search for the first ld in PATH.
8146 elif test yes = "$with_gnu_ld"; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8148 $as_echo_n "checking for GNU ld... " >&6; }
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8151 $as_echo_n "checking for non-GNU ld... " >&6; }
8153 if ${lt_cv_path_LD+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 if test -z "$LD"; then
8157 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8158 for ac_dir in $PATH; do
8160 test -z "$ac_dir" && ac_dir=.
8161 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8162 lt_cv_path_LD=$ac_dir/$ac_prog
8163 # Check to see if the program is GNU ld. I'd rather use --version,
8164 # but apparently some variants of GNU ld only accept -v.
8165 # Break only if it was the GNU/non-GNU ld that we prefer.
8166 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8167 *GNU* | *'with BFD'*)
8168 test no != "$with_gnu_ld" && break
8171 test yes != "$with_gnu_ld" && break
8178 lt_cv_path_LD=$LD # Let the user override the test with a path.
8183 if test -n "$LD"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8185 $as_echo "$LD" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8190 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8192 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8193 if ${lt_cv_prog_gnu_ld+:} false; then :
8194 $as_echo_n "(cached) " >&6
8196 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8197 case `$LD -v 2>&1 </dev/null` in
8198 *GNU* | *'with BFD'*)
8199 lt_cv_prog_gnu_ld=yes
8202 lt_cv_prog_gnu_ld=no
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8207 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8208 with_gnu_ld=$lt_cv_prog_gnu_ld
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8219 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8220 if ${lt_cv_path_NM+:} false; then :
8221 $as_echo_n "(cached) " >&6
8223 if test -n "$NM"; then
8224 # Let the user override the test.
8227 lt_nm_to_check=${ac_tool_prefix}nm
8228 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8229 lt_nm_to_check="$lt_nm_to_check nm"
8231 for lt_tmp_nm in $lt_nm_to_check; do
8232 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8233 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8235 test -z "$ac_dir" && ac_dir=.
8236 tmp_nm=$ac_dir/$lt_tmp_nm
8237 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8238 # Check to see if the nm accepts a BSD-compat flag.
8239 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8240 # nm: unknown option "B" ignored
8241 # Tru64's nm complains that /dev/null is an invalid object file
8242 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8244 mingw*) lt_bad_file=conftest.nm/nofile ;;
8245 *) lt_bad_file=/dev/null ;;
8247 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8248 *$lt_bad_file* | *'Invalid file or object type'*)
8249 lt_cv_path_NM="$tmp_nm -B"
8253 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8255 lt_cv_path_NM="$tmp_nm -p"
8259 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8260 continue # so that we can try to find one that supports BSD flags
8269 : ${lt_cv_path_NM=no}
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8273 $as_echo "$lt_cv_path_NM" >&6; }
8274 if test no != "$lt_cv_path_NM"; then
8277 # Didn't find any BSD compatible name lister, look for dumpbin.
8278 if test -n "$DUMPBIN"; then :
8279 # Let the user override the test.
8281 if test -n "$ac_tool_prefix"; then
8282 for ac_prog in dumpbin "link -dump"
8284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287 $as_echo_n "checking for $ac_word... " >&6; }
8288 if ${ac_cv_prog_DUMPBIN+:} false; then :
8289 $as_echo_n "(cached) " >&6
8291 if test -n "$DUMPBIN"; then
8292 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 test -z "$as_dir" && as_dir=.
8299 for ac_exec_ext in '' $ac_executable_extensions; do
8300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8301 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 DUMPBIN=$ac_cv_prog_DUMPBIN
8312 if test -n "$DUMPBIN"; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8314 $as_echo "$DUMPBIN" >&6; }
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317 $as_echo "no" >&6; }
8321 test -n "$DUMPBIN" && break
8324 if test -z "$DUMPBIN"; then
8325 ac_ct_DUMPBIN=$DUMPBIN
8326 for ac_prog in dumpbin "link -dump"
8328 # Extract the first word of "$ac_prog", so it can be a program name with args.
8329 set dummy $ac_prog; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8333 $as_echo_n "(cached) " >&6
8335 if test -n "$ac_ct_DUMPBIN"; then
8336 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8356 if test -n "$ac_ct_DUMPBIN"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8358 $as_echo "$ac_ct_DUMPBIN" >&6; }
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8365 test -n "$ac_ct_DUMPBIN" && break
8368 if test "x$ac_ct_DUMPBIN" = x; then
8371 case $cross_compiling:$ac_tool_warned in
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8375 ac_tool_warned=yes ;;
8377 DUMPBIN=$ac_ct_DUMPBIN
8381 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8383 DUMPBIN="$DUMPBIN -symbols -headers"
8391 if test : != "$DUMPBIN"; then
8395 test -z "$NM" && NM=nm
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8403 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8404 if ${lt_cv_nm_interface+:} false; then :
8405 $as_echo_n "(cached) " >&6
8407 lt_cv_nm_interface="BSD nm"
8408 echo "int some_variable = 0;" > conftest.$ac_ext
8409 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8410 (eval "$ac_compile" 2>conftest.err)
8411 cat conftest.err >&5
8412 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8413 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8414 cat conftest.err >&5
8415 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8416 cat conftest.out >&5
8417 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8418 lt_cv_nm_interface="MS dumpbin"
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8423 $as_echo "$lt_cv_nm_interface" >&6; }
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8426 $as_echo_n "checking whether ln -s works... " >&6; }
8428 if test "$LN_S" = "ln -s"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8430 $as_echo "yes" >&6; }
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8433 $as_echo "no, using $LN_S" >&6; }
8436 # find the maximum length of command line arguments
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8438 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8439 if ${lt_cv_sys_max_cmd_len+:} false; then :
8440 $as_echo_n "(cached) " >&6
8447 # On DJGPP, this test can blow up pretty badly due to problems in libc
8448 # (any single argument exceeding 2000 bytes causes a buffer overrun
8449 # during glob expansion). Even if it were fixed, the result of this
8450 # check would be larger than it should be.
8451 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8455 # Under GNU Hurd, this test is not required because there is
8456 # no limit to the length of command line arguments.
8457 # Libtool will interpret -1 as no limit whatsoever
8458 lt_cv_sys_max_cmd_len=-1;
8461 cygwin* | mingw* | cegcc*)
8462 # On Win9x/ME, this test blows up -- it succeeds, but takes
8463 # about 5 minutes as the teststring grows exponentially.
8464 # Worse, since 9x/ME are not pre-emptively multitasking,
8465 # you end up with a "frozen" computer, even though with patience
8466 # the test eventually succeeds (with a max line length of 256k).
8467 # Instead, let's just punt: use the minimum linelength reported by
8468 # all of the supported platforms: 8192 (on NT/2K/XP).
8469 lt_cv_sys_max_cmd_len=8192;
8473 # On MiNT this can take a long time and run out of memory.
8474 lt_cv_sys_max_cmd_len=8192;
8478 # On AmigaOS with pdksh, this test takes hours, literally.
8479 # So we just punt and use a minimum line length of 8192.
8480 lt_cv_sys_max_cmd_len=8192;
8483 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8484 # This has been around since 386BSD, at least. Likely further.
8485 if test -x /sbin/sysctl; then
8486 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8487 elif test -x /usr/sbin/sysctl; then
8488 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8490 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8492 # And add a safety zone
8493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8498 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8499 lt_cv_sys_max_cmd_len=196608
8503 # The test takes a long time on OS/2.
8504 lt_cv_sys_max_cmd_len=8192
8508 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8509 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8510 # nice to cause kernel panics so lets avoid the loop below.
8511 # First set a reasonable default.
8512 lt_cv_sys_max_cmd_len=16384
8514 if test -x /sbin/sysconfig; then
8515 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8516 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8521 lt_cv_sys_max_cmd_len=102400
8523 sysv5* | sco5v6* | sysv4.2uw2*)
8524 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8525 if test -n "$kargmax"; then
8526 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8528 lt_cv_sys_max_cmd_len=32768
8532 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8533 if test -n "$lt_cv_sys_max_cmd_len" && \
8534 test undefined != "$lt_cv_sys_max_cmd_len"; then
8535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8538 # Make teststring a little bigger before we do anything with it.
8539 # a 1K string should be a reasonable start.
8540 for i in 1 2 3 4 5 6 7 8; do
8541 teststring=$teststring$teststring
8543 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8544 # If test is not a shell built-in, we'll probably end up computing a
8545 # maximum length that is only half of the actual maximum length, but
8547 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8548 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8549 test 17 != "$i" # 1/2 MB should be enough
8552 teststring=$teststring$teststring
8554 # Only check the string length outside the loop.
8555 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8557 # Add a significant safety factor because C++ compilers can tack on
8558 # massive amounts of additional arguments before passing them to the
8559 # linker. It appears as though 1/2 is a usable value.
8560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8567 if test -n "$lt_cv_sys_max_cmd_len"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8569 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8572 $as_echo "none" >&6; }
8574 max_cmd_len=$lt_cv_sys_max_cmd_len
8585 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8595 # test EBCDIC or ASCII
8596 case `echo X|tr X '\101'` in
8597 A) # ASCII based system
8598 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8599 lt_SP2NL='tr \040 \012'
8600 lt_NL2SP='tr \015\012 \040\040'
8602 *) # EBCDIC based system
8603 lt_SP2NL='tr \100 \n'
8604 lt_NL2SP='tr \r\n \100\100'
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8617 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8618 if ${lt_cv_to_host_file_cmd+:} false; then :
8619 $as_echo_n "(cached) " >&6
8624 *-*-mingw* ) # actually msys
8625 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8628 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8630 * ) # otherwise, assume *nix
8631 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8637 *-*-mingw* ) # actually msys
8638 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8641 lt_cv_to_host_file_cmd=func_convert_file_noop
8643 * ) # otherwise, assume *nix
8644 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8648 * ) # unhandled hosts (and "normal" native builds)
8649 lt_cv_to_host_file_cmd=func_convert_file_noop
8655 to_host_file_cmd=$lt_cv_to_host_file_cmd
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8657 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8664 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8665 if ${lt_cv_to_tool_file_cmd+:} false; then :
8666 $as_echo_n "(cached) " >&6
8668 #assume ordinary cross tools, or native build.
8669 lt_cv_to_tool_file_cmd=func_convert_file_noop
8673 *-*-mingw* ) # actually msys
8674 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8682 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8684 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8691 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8692 if ${lt_cv_ld_reload_flag+:} false; then :
8693 $as_echo_n "(cached) " >&6
8695 lt_cv_ld_reload_flag='-r'
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8698 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8699 reload_flag=$lt_cv_ld_reload_flag
8700 case $reload_flag in
8702 *) reload_flag=" $reload_flag" ;;
8704 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8706 cygwin* | mingw* | pw32* | cegcc*)
8707 if test yes != "$GCC"; then
8712 if test yes = "$GCC"; then
8713 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8715 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8728 if test -n "$ac_tool_prefix"; then
8729 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_OBJDUMP+:} false; then :
8734 $as_echo_n "(cached) " >&6
8736 if test -n "$OBJDUMP"; then
8737 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8746 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 OBJDUMP=$ac_cv_prog_OBJDUMP
8757 if test -n "$OBJDUMP"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8759 $as_echo "$OBJDUMP" >&6; }
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8767 if test -z "$ac_cv_prog_OBJDUMP"; then
8768 ac_ct_OBJDUMP=$OBJDUMP
8769 # Extract the first word of "objdump", so it can be a program name with args.
8770 set dummy objdump; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8774 $as_echo_n "(cached) " >&6
8776 if test -n "$ac_ct_OBJDUMP"; then
8777 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8797 if test -n "$ac_ct_OBJDUMP"; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8799 $as_echo "$ac_ct_OBJDUMP" >&6; }
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8805 if test "x$ac_ct_OBJDUMP" = x; then
8808 case $cross_compiling:$ac_tool_warned in
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812 ac_tool_warned=yes ;;
8814 OBJDUMP=$ac_ct_OBJDUMP
8817 OBJDUMP="$ac_cv_prog_OBJDUMP"
8820 test -z "$OBJDUMP" && OBJDUMP=objdump
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8828 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8829 if ${lt_cv_deplibs_check_method+:} false; then :
8830 $as_echo_n "(cached) " >&6
8832 lt_cv_file_magic_cmd='$MAGIC_CMD'
8833 lt_cv_file_magic_test_file=
8834 lt_cv_deplibs_check_method='unknown'
8835 # Need to set the preceding variable on all platforms that support
8836 # interlibrary dependencies.
8837 # 'none' -- dependencies not supported.
8838 # 'unknown' -- same as none, but documents that we really don't know.
8839 # 'pass_all' -- all dependencies passed with no checks.
8840 # 'test_compile' -- check by making test program.
8841 # 'file_magic [[regex]]' -- check by looking for files in library path
8842 # that responds to the $file_magic_cmd with a given extended regex.
8843 # If you have 'file' or equivalent on your system and you're not sure
8844 # whether 'pass_all' will *always* work, you probably want this one.
8848 lt_cv_deplibs_check_method=pass_all
8852 lt_cv_deplibs_check_method=pass_all
8856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8857 lt_cv_file_magic_cmd='/usr/bin/file -L'
8858 lt_cv_file_magic_test_file=/shlib/libc.so
8862 # func_win32_libid is a shell function defined in ltmain.sh
8863 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8864 lt_cv_file_magic_cmd='func_win32_libid'
8868 # Base MSYS/MinGW do not provide the 'file' command needed by
8869 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8870 # unless we find 'file', for example because we are cross-compiling.
8871 if ( file / ) >/dev/null 2>&1; then
8872 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8873 lt_cv_file_magic_cmd='func_win32_libid'
8875 # Keep this pattern in sync with the one in func_win32_libid.
8876 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8877 lt_cv_file_magic_cmd='$OBJDUMP -f'
8882 # use the weaker test based on 'objdump'. See mingw*.
8883 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8884 lt_cv_file_magic_cmd='$OBJDUMP -f'
8887 darwin* | rhapsody*)
8888 lt_cv_deplibs_check_method=pass_all
8891 freebsd* | dragonfly*)
8892 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8895 # Not sure whether the presence of OpenBSD here was a mistake.
8896 # Let's accept both of them until this is cleared up.
8897 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8898 lt_cv_file_magic_cmd=/usr/bin/file
8899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8903 lt_cv_deplibs_check_method=pass_all
8908 lt_cv_deplibs_check_method=pass_all
8911 hpux10.20* | hpux11*)
8912 lt_cv_file_magic_cmd=/usr/bin/file
8915 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8916 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8919 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]'
8920 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8924 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8930 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8934 irix5* | irix6* | nonstopux*)
8936 *-32|*"-32 ") libmagic=32-bit;;
8937 *-n32|*"-n32 ") libmagic=N32;;
8938 *-64|*"-64 ") libmagic=64-bit;;
8939 *) libmagic=never-match;;
8941 lt_cv_deplibs_check_method=pass_all
8944 # This must be glibc/ELF.
8945 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8946 lt_cv_deplibs_check_method=pass_all
8949 netbsd* | netbsdelf*-gnu)
8950 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8959 lt_cv_file_magic_cmd=/usr/bin/file
8960 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8964 lt_cv_deplibs_check_method=pass_all
8968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8975 osf3* | osf4* | osf5*)
8976 lt_cv_deplibs_check_method=pass_all
8980 lt_cv_deplibs_check_method=pass_all
8984 lt_cv_deplibs_check_method=pass_all
8987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8988 lt_cv_deplibs_check_method=pass_all
8992 case $host_vendor in
8994 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]'
8995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8998 lt_cv_deplibs_check_method=pass_all
9001 lt_cv_file_magic_cmd='/bin/file'
9002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9005 lt_cv_file_magic_cmd='/bin/file'
9006 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9007 lt_cv_file_magic_test_file=/lib/libc.so
9010 lt_cv_deplibs_check_method=pass_all
9013 lt_cv_deplibs_check_method=pass_all
9019 lt_cv_deplibs_check_method=pass_all
9022 lt_cv_deplibs_check_method=pass_all
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9028 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9032 if test "$build" = "$host"; then
9035 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9038 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9044 file_magic_cmd=$lt_cv_file_magic_cmd
9045 deplibs_check_method=$lt_cv_deplibs_check_method
9046 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9069 if test -n "$ac_tool_prefix"; then
9070 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9071 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if ${ac_cv_prog_DLLTOOL+:} false; then :
9075 $as_echo_n "(cached) " >&6
9077 if test -n "$DLLTOOL"; then
9078 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084 test -z "$as_dir" && as_dir=.
9085 for ac_exec_ext in '' $ac_executable_extensions; do
9086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9087 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 DLLTOOL=$ac_cv_prog_DLLTOOL
9098 if test -n "$DLLTOOL"; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9100 $as_echo "$DLLTOOL" >&6; }
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9108 if test -z "$ac_cv_prog_DLLTOOL"; then
9109 ac_ct_DLLTOOL=$DLLTOOL
9110 # Extract the first word of "dlltool", so it can be a program name with args.
9111 set dummy dlltool; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9115 $as_echo_n "(cached) " >&6
9117 if test -n "$ac_ct_DLLTOOL"; then
9118 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9138 if test -n "$ac_ct_DLLTOOL"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9140 $as_echo "$ac_ct_DLLTOOL" >&6; }
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9146 if test "x$ac_ct_DLLTOOL" = x; then
9149 case $cross_compiling:$ac_tool_warned in
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9153 ac_tool_warned=yes ;;
9155 DLLTOOL=$ac_ct_DLLTOOL
9158 DLLTOOL="$ac_cv_prog_DLLTOOL"
9161 test -z "$DLLTOOL" && DLLTOOL=dlltool
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9170 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9171 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9172 $as_echo_n "(cached) " >&6
9174 lt_cv_sharedlib_from_linklib_cmd='unknown'
9177 cygwin* | mingw* | pw32* | cegcc*)
9178 # two different shell functions defined in ltmain.sh;
9179 # decide which one to use based on capabilities of $DLLTOOL
9180 case `$DLLTOOL --help 2>&1` in
9181 *--identify-strict*)
9182 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9185 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9190 # fallback: assume linklib IS sharedlib
9191 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9197 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9198 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9199 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9207 if test -n "$ac_tool_prefix"; then
9210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_prog_AR+:} false; then :
9215 $as_echo_n "(cached) " >&6
9217 if test -n "$AR"; then
9218 ac_cv_prog_AR="$AR" # Let the user override the test.
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9238 if test -n "$AR"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9240 $as_echo "$AR" >&6; }
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9247 test -n "$AR" && break
9250 if test -z "$AR"; then
9254 # Extract the first word of "$ac_prog", so it can be a program name with args.
9255 set dummy $ac_prog; ac_word=$2
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257 $as_echo_n "checking for $ac_word... " >&6; }
9258 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9259 $as_echo_n "(cached) " >&6
9261 if test -n "$ac_ct_AR"; then
9262 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 test -z "$as_dir" && as_dir=.
9269 for ac_exec_ext in '' $ac_executable_extensions; do
9270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9271 ac_cv_prog_ac_ct_AR="$ac_prog"
9272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9281 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9282 if test -n "$ac_ct_AR"; then
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9284 $as_echo "$ac_ct_AR" >&6; }
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9287 $as_echo "no" >&6; }
9291 test -n "$ac_ct_AR" && break
9294 if test "x$ac_ct_AR" = x; then
9297 case $cross_compiling:$ac_tool_warned in
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9301 ac_tool_warned=yes ;;
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9321 $as_echo_n "checking for archiver @FILE support... " >&6; }
9322 if ${lt_cv_ar_at_file+:} false; then :
9323 $as_echo_n "(cached) " >&6
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9336 if ac_fn_c_try_compile "$LINENO"; then :
9337 echo conftest.$ac_objext > conftest.lst
9338 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9340 (eval $lt_ar_try) 2>&5
9342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9343 test $ac_status = 0; }
9344 if test 0 -eq "$ac_status"; then
9345 # Ensure the archiver fails upon bogus file names.
9346 rm -f conftest.$ac_objext libconftest.a
9347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9348 (eval $lt_ar_try) 2>&5
9350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9351 test $ac_status = 0; }
9352 if test 0 -ne "$ac_status"; then
9356 rm -f conftest.* libconftest.a
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9363 $as_echo "$lt_cv_ar_at_file" >&6; }
9365 if test no = "$lt_cv_ar_at_file"; then
9368 archiver_list_spec=$lt_cv_ar_at_file
9377 if test -n "$ac_tool_prefix"; then
9378 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9379 set dummy ${ac_tool_prefix}strip; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if ${ac_cv_prog_STRIP+:} false; then :
9383 $as_echo_n "(cached) " >&6
9385 if test -n "$STRIP"; then
9386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9395 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9405 STRIP=$ac_cv_prog_STRIP
9406 if test -n "$STRIP"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9408 $as_echo "$STRIP" >&6; }
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9416 if test -z "$ac_cv_prog_STRIP"; then
9418 # Extract the first word of "strip", so it can be a program name with args.
9419 set dummy strip; ac_word=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9423 $as_echo_n "(cached) " >&6
9425 if test -n "$ac_ct_STRIP"; then
9426 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9435 ac_cv_prog_ac_ct_STRIP="strip"
9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9446 if test -n "$ac_ct_STRIP"; then
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9448 $as_echo "$ac_ct_STRIP" >&6; }
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9454 if test "x$ac_ct_STRIP" = x; then
9457 case $cross_compiling:$ac_tool_warned in
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9461 ac_tool_warned=yes ;;
9466 STRIP="$ac_cv_prog_STRIP"
9469 test -z "$STRIP" && STRIP=:
9476 if test -n "$ac_tool_prefix"; then
9477 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 $as_echo_n "checking for $ac_word... " >&6; }
9481 if ${ac_cv_prog_RANLIB+:} false; then :
9482 $as_echo_n "(cached) " >&6
9484 if test -n "$RANLIB"; then
9485 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 test -z "$as_dir" && as_dir=.
9492 for ac_exec_ext in '' $ac_executable_extensions; do
9493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9494 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9504 RANLIB=$ac_cv_prog_RANLIB
9505 if test -n "$RANLIB"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9507 $as_echo "$RANLIB" >&6; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9515 if test -z "$ac_cv_prog_RANLIB"; then
9516 ac_ct_RANLIB=$RANLIB
9517 # Extract the first word of "ranlib", so it can be a program name with args.
9518 set dummy ranlib; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9522 $as_echo_n "(cached) " >&6
9524 if test -n "$ac_ct_RANLIB"; then
9525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534 ac_cv_prog_ac_ct_RANLIB="ranlib"
9535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9545 if test -n "$ac_ct_RANLIB"; then
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9547 $as_echo "$ac_ct_RANLIB" >&6; }
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9553 if test "x$ac_ct_RANLIB" = x; then
9556 case $cross_compiling:$ac_tool_warned in
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9560 ac_tool_warned=yes ;;
9562 RANLIB=$ac_ct_RANLIB
9565 RANLIB="$ac_cv_prog_RANLIB"
9568 test -z "$RANLIB" && RANLIB=:
9575 # Determine commands to create old-style static archives.
9576 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9577 old_postinstall_cmds='chmod 644 $oldlib'
9578 old_postuninstall_cmds=
9580 if test -n "$RANLIB"; then
9583 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9586 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9589 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9594 lock_old_archive_extraction=yes ;;
9596 lock_old_archive_extraction=no ;;
9637 # If no C compiler was specified, use CC.
9640 # If no C compiler flags were specified, use CFLAGS.
9641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9643 # Allow CC to be a program name with arguments.
9647 # Check for command to grab the raw symbol name followed by C symbol from nm.
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9649 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9650 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9651 $as_echo_n "(cached) " >&6
9654 # These are sane defaults that work on at least a few old systems.
9655 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9657 # Character class describing NM global symbol codes.
9658 symcode='[BCDEGRST]'
9660 # Regexp to match symbols that can be accessed directly from C.
9661 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9663 # Define system-specific variables.
9668 cygwin* | mingw* | pw32* | cegcc*)
9669 symcode='[ABCDGISTW]'
9672 if test ia64 = "$host_cpu"; then
9673 symcode='[ABCDEGRST]'
9677 symcode='[BCDEGRST]'
9680 symcode='[BCDEGQRST]'
9691 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9699 # If we're using GNU nm, then use its standard symbol codes.
9700 case `$NM -V 2>&1` in
9701 *GNU* | *'with BFD'*)
9702 symcode='[ABCDGIRSTW]' ;;
9705 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9706 # Gets list of data symbols to import.
9707 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9708 # Adjust the below global symbol transforms to fixup imported variables.
9709 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9710 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9711 lt_c_name_lib_hook="\
9712 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9713 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9715 # Disable hooks by default.
9716 lt_cv_sys_global_symbol_to_import=
9722 # Transform an extracted symbol line into a proper C declaration.
9723 # Some systems (esp. on ia64) link data and code symbols differently,
9724 # so use this general approach.
9725 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9727 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9728 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9730 # Transform an extracted symbol line into symbol name and symbol address
9731 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9733 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9734 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9736 # Transform an extracted symbol line into symbol name with lib prefix and
9738 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9739 $lt_c_name_lib_hook\
9740 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9741 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9742 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9744 # Handle CRLF in mingw tool chain
9748 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9752 # Try without a prefix underscore, then with it.
9753 for ac_symprfx in "" "_"; do
9755 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9756 symxfrm="\\1 $ac_symprfx\\2 \\2"
9758 # Write the raw and C identifiers.
9759 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9760 # Fake it for dumpbin and say T for any non-static function,
9761 # D for any global variable and I for any imported variable.
9762 # Also find C++ and __fastcall symbols from MSVC++,
9763 # which start with @ or ?.
9764 lt_cv_sys_global_symbol_pipe="$AWK '"\
9765 " {last_section=section; section=\$ 3};"\
9766 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9767 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9768 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9769 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9770 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9771 " \$ 0!~/External *\|/{next};"\
9772 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9773 " {if(hide[section]) next};"\
9774 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9775 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9776 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9777 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9778 " ' prfx=^$ac_symprfx"
9780 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9782 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9784 # Check to see that the pipe works correctly.
9788 cat > conftest.$ac_ext <<_LT_EOF
9793 void nm_test_func(void);
9794 void nm_test_func(void){}
9798 int main(){nm_test_var='a';nm_test_func();return(0);}
9801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9802 (eval $ac_compile) 2>&5
9804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805 test $ac_status = 0; }; then
9806 # Now try to grab the symbols.
9808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9809 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9812 test $ac_status = 0; } && test -s "$nlist"; then
9813 # Try sorting and uniquifying the output.
9814 if sort "$nlist" | uniq > "$nlist"T; then
9815 mv -f "$nlist"T "$nlist"
9820 # Make sure that we snagged all the symbols we need.
9821 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9822 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9823 cat <<_LT_EOF > conftest.$ac_ext
9824 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9825 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9826 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9827 relocations are performed -- see ld's documentation on pseudo-relocs. */
9828 # define LT_DLSYM_CONST
9829 #elif defined __osf__
9830 /* This system does not cope well with relocations in const data. */
9831 # define LT_DLSYM_CONST
9833 # define LT_DLSYM_CONST const
9841 # Now generate the symbol file.
9842 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9844 cat <<_LT_EOF >> conftest.$ac_ext
9846 /* The mapping between symbol names and symbols. */
9847 LT_DLSYM_CONST struct {
9851 lt__PROGRAM__LTX_preloaded_symbols[] =
9853 { "@PROGRAM@", (void *) 0 },
9855 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9856 cat <<\_LT_EOF >> conftest.$ac_ext
9860 /* This works around a problem in FreeBSD linker */
9861 #ifdef FREEBSD_WORKAROUND
9862 static const void *lt_preloaded_setup() {
9863 return lt__PROGRAM__LTX_preloaded_symbols;
9871 # Now try linking the two files.
9872 mv -f conftest.$ac_objext conftstm.$ac_objext
9873 lt_globsym_save_LIBS=$LIBS
9874 lt_globsym_save_CFLAGS=$CFLAGS
9875 LIBS=conftstm.$ac_objext
9876 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9878 (eval $ac_link) 2>&5
9880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9881 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9884 LIBS=$lt_globsym_save_LIBS
9885 CFLAGS=$lt_globsym_save_CFLAGS
9887 echo "cannot find nm_test_func in $nlist" >&5
9890 echo "cannot find nm_test_var in $nlist" >&5
9893 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9896 echo "$progname: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9899 rm -rf conftest* conftst*
9901 # Do not use the global_symbol_pipe unless it works.
9902 if test yes = "$pipe_works"; then
9905 lt_cv_sys_global_symbol_pipe=
9911 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9912 lt_cv_sys_global_symbol_to_cdecl=
9914 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9916 $as_echo "failed" >&6; }
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9919 $as_echo "ok" >&6; }
9922 # Response file support.
9923 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9924 nm_file_list_spec='@'
9925 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9926 nm_file_list_spec='@'
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9966 $as_echo_n "checking for sysroot... " >&6; }
9968 # Check whether --with-sysroot was given.
9969 if test "${with_sysroot+set}" = set; then :
9970 withval=$with_sysroot;
9977 case $with_sysroot in #(
9979 if test yes = "$GCC"; then
9980 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9984 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9990 $as_echo "$with_sysroot" >&6; }
9991 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9996 $as_echo "${lt_sysroot:-no}" >&6; }
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10003 $as_echo_n "checking for a working dd... " >&6; }
10004 if ${ac_cv_path_lt_DD+:} false; then :
10005 $as_echo_n "(cached) " >&6
10007 printf 0123456789abcdef0123456789abcdef >conftest.i
10008 cat conftest.i conftest.i >conftest2.i
10010 if test -z "$lt_DD"; then
10011 ac_path_lt_DD_found=false
10012 # Loop through the user's path and test for each of PROGNAME-LIST
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10017 test -z "$as_dir" && as_dir=.
10018 for ac_prog in dd; do
10019 for ac_exec_ext in '' $ac_executable_extensions; do
10020 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10021 as_fn_executable_p "$ac_path_lt_DD" || continue
10022 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10023 cmp -s conftest.i conftest.out \
10024 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10026 $ac_path_lt_DD_found && break 3
10031 if test -z "$ac_cv_path_lt_DD"; then
10035 ac_cv_path_lt_DD=$lt_DD
10038 rm -f conftest.i conftest2.i conftest.out
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10041 $as_echo "$ac_cv_path_lt_DD" >&6; }
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10045 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10046 if ${lt_cv_truncate_bin+:} false; then :
10047 $as_echo_n "(cached) " >&6
10049 printf 0123456789abcdef0123456789abcdef >conftest.i
10050 cat conftest.i conftest.i >conftest2.i
10051 lt_cv_truncate_bin=
10052 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10053 cmp -s conftest.i conftest.out \
10054 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10056 rm -f conftest.i conftest2.i conftest.out
10057 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10060 $as_echo "$lt_cv_truncate_bin" >&6; }
10068 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10069 func_cc_basename ()
10071 for cc_temp in $*""; do
10073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10079 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10082 # Check whether --enable-libtool-lock was given.
10083 if test "${enable_libtool_lock+set}" = set; then :
10084 enableval=$enable_libtool_lock;
10087 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10089 # Some flags need to be propagated to the compiler or linker for good
10093 # Find out what ABI is being produced by ac_compile, and set mode
10094 # options accordingly.
10095 echo 'int i;' > conftest.$ac_ext
10096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10097 (eval $ac_compile) 2>&5
10099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10100 test $ac_status = 0; }; then
10101 case `/usr/bin/file conftest.$ac_objext` in
10113 # Find out what ABI is being produced by ac_compile, and set linker
10114 # options accordingly.
10115 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10117 (eval $ac_compile) 2>&5
10119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10120 test $ac_status = 0; }; then
10121 if test yes = "$lt_cv_prog_gnu_ld"; then
10122 case `/usr/bin/file conftest.$ac_objext` in
10124 LD="${LD-ld} -melf32bsmip"
10127 LD="${LD-ld} -melf32bmipn32"
10130 LD="${LD-ld} -melf64bmip"
10134 case `/usr/bin/file conftest.$ac_objext` in
10151 # Find out what ABI is being produced by ac_compile, and set linker
10152 # options accordingly.
10153 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10155 (eval $ac_compile) 2>&5
10157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10158 test $ac_status = 0; }; then
10160 case `/usr/bin/file conftest.$ac_objext` in
10168 case `/usr/bin/file conftest.$ac_objext` in
10170 emul="${emul}btsmip"
10173 emul="${emul}ltsmip"
10176 case `/usr/bin/file conftest.$ac_objext` in
10181 LD="${LD-ld} -m $emul"
10186 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10187 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10188 # Find out what ABI is being produced by ac_compile, and set linker
10189 # options accordingly. Note that the listed cases only cover the
10190 # situations where additional linker options are needed (such as when
10191 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10192 # vice versa); the common cases where no linker options are needed do
10193 # not appear in the list.
10194 echo 'int i;' > conftest.$ac_ext
10195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10196 (eval $ac_compile) 2>&5
10198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199 test $ac_status = 0; }; then
10200 case `/usr/bin/file conftest.o` in
10203 x86_64-*kfreebsd*-gnu)
10204 LD="${LD-ld} -m elf_i386_fbsd"
10207 case `/usr/bin/file conftest.o` in
10209 LD="${LD-ld} -m elf32_x86_64"
10212 LD="${LD-ld} -m elf_i386"
10216 powerpc64le-*linux*)
10217 LD="${LD-ld} -m elf32lppclinux"
10220 LD="${LD-ld} -m elf32ppclinux"
10223 LD="${LD-ld} -m elf_s390"
10226 LD="${LD-ld} -m elf32_sparc"
10232 x86_64-*kfreebsd*-gnu)
10233 LD="${LD-ld} -m elf_x86_64_fbsd"
10236 LD="${LD-ld} -m elf_x86_64"
10239 LD="${LD-ld} -m elf64lppc"
10242 LD="${LD-ld} -m elf64ppc"
10244 s390*-*linux*|s390*-*tpf*)
10245 LD="${LD-ld} -m elf64_s390"
10248 LD="${LD-ld} -m elf64_sparc"
10258 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10259 SAVE_CFLAGS=$CFLAGS
10260 CFLAGS="$CFLAGS -belf"
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10262 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10263 if ${lt_cv_cc_needs_belf+:} false; then :
10264 $as_echo_n "(cached) " >&6
10267 ac_cpp='$CPP $CPPFLAGS'
10268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10282 if ac_fn_c_try_link "$LINENO"; then :
10283 lt_cv_cc_needs_belf=yes
10285 lt_cv_cc_needs_belf=no
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10290 ac_cpp='$CPP $CPPFLAGS'
10291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10297 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10298 if test yes != "$lt_cv_cc_needs_belf"; then
10299 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10300 CFLAGS=$SAVE_CFLAGS
10304 # Find out what ABI is being produced by ac_compile, and set linker
10305 # options accordingly.
10306 echo 'int i;' > conftest.$ac_ext
10307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10308 (eval $ac_compile) 2>&5
10310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10311 test $ac_status = 0; }; then
10312 case `/usr/bin/file conftest.o` in
10314 case $lt_cv_prog_gnu_ld in
10317 i?86-*-solaris*|x86_64-*-solaris*)
10318 LD="${LD-ld} -m elf_x86_64"
10321 LD="${LD-ld} -m elf64_sparc"
10324 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10325 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10330 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10342 need_locks=$enable_libtool_lock
10344 if test -n "$ac_tool_prefix"; then
10345 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10346 set dummy ${ac_tool_prefix}mt; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10350 $as_echo_n "(cached) " >&6
10352 if test -n "$MANIFEST_TOOL"; then
10353 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10373 if test -n "$MANIFEST_TOOL"; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10375 $as_echo "$MANIFEST_TOOL" >&6; }
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10383 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10384 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10385 # Extract the first word of "mt", so it can be a program name with args.
10386 set dummy mt; ac_word=$2
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388 $as_echo_n "checking for $ac_word... " >&6; }
10389 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10390 $as_echo_n "(cached) " >&6
10392 if test -n "$ac_ct_MANIFEST_TOOL"; then
10393 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10413 if test -n "$ac_ct_MANIFEST_TOOL"; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10415 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418 $as_echo "no" >&6; }
10421 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10424 case $cross_compiling:$ac_tool_warned in
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10428 ac_tool_warned=yes ;;
10430 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10433 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10436 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10438 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10439 if ${lt_cv_path_mainfest_tool+:} false; then :
10440 $as_echo_n "(cached) " >&6
10442 lt_cv_path_mainfest_tool=no
10443 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10444 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10445 cat conftest.err >&5
10446 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10447 lt_cv_path_mainfest_tool=yes
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10452 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10453 if test yes != "$lt_cv_path_mainfest_tool"; then
10463 rhapsody* | darwin*)
10464 if test -n "$ac_tool_prefix"; then
10465 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10466 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468 $as_echo_n "checking for $ac_word... " >&6; }
10469 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10470 $as_echo_n "(cached) " >&6
10472 if test -n "$DSYMUTIL"; then
10473 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10493 if test -n "$DSYMUTIL"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10495 $as_echo "$DSYMUTIL" >&6; }
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10503 if test -z "$ac_cv_prog_DSYMUTIL"; then
10504 ac_ct_DSYMUTIL=$DSYMUTIL
10505 # Extract the first word of "dsymutil", so it can be a program name with args.
10506 set dummy dsymutil; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10510 $as_echo_n "(cached) " >&6
10512 if test -n "$ac_ct_DSYMUTIL"; then
10513 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in $PATH
10519 test -z "$as_dir" && as_dir=.
10520 for ac_exec_ext in '' $ac_executable_extensions; do
10521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10522 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10533 if test -n "$ac_ct_DSYMUTIL"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10535 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10541 if test "x$ac_ct_DSYMUTIL" = x; then
10544 case $cross_compiling:$ac_tool_warned in
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10548 ac_tool_warned=yes ;;
10550 DSYMUTIL=$ac_ct_DSYMUTIL
10553 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10556 if test -n "$ac_tool_prefix"; then
10557 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10558 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if ${ac_cv_prog_NMEDIT+:} false; then :
10562 $as_echo_n "(cached) " >&6
10564 if test -n "$NMEDIT"; then
10565 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568 for as_dir in $PATH
10571 test -z "$as_dir" && as_dir=.
10572 for ac_exec_ext in '' $ac_executable_extensions; do
10573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10574 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584 NMEDIT=$ac_cv_prog_NMEDIT
10585 if test -n "$NMEDIT"; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10587 $as_echo "$NMEDIT" >&6; }
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590 $as_echo "no" >&6; }
10595 if test -z "$ac_cv_prog_NMEDIT"; then
10596 ac_ct_NMEDIT=$NMEDIT
10597 # Extract the first word of "nmedit", so it can be a program name with args.
10598 set dummy nmedit; ac_word=$2
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600 $as_echo_n "checking for $ac_word... " >&6; }
10601 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10602 $as_echo_n "(cached) " >&6
10604 if test -n "$ac_ct_NMEDIT"; then
10605 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10611 test -z "$as_dir" && as_dir=.
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10625 if test -n "$ac_ct_NMEDIT"; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10627 $as_echo "$ac_ct_NMEDIT" >&6; }
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10633 if test "x$ac_ct_NMEDIT" = x; then
10636 case $cross_compiling:$ac_tool_warned in
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10640 ac_tool_warned=yes ;;
10642 NMEDIT=$ac_ct_NMEDIT
10645 NMEDIT="$ac_cv_prog_NMEDIT"
10648 if test -n "$ac_tool_prefix"; then
10649 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10650 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if ${ac_cv_prog_LIPO+:} false; then :
10654 $as_echo_n "(cached) " >&6
10656 if test -n "$LIPO"; then
10657 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10663 test -z "$as_dir" && as_dir=.
10664 for ac_exec_ext in '' $ac_executable_extensions; do
10665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10666 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 LIPO=$ac_cv_prog_LIPO
10677 if test -n "$LIPO"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10679 $as_echo "$LIPO" >&6; }
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10687 if test -z "$ac_cv_prog_LIPO"; then
10689 # Extract the first word of "lipo", so it can be a program name with args.
10690 set dummy lipo; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10694 $as_echo_n "(cached) " >&6
10696 if test -n "$ac_ct_LIPO"; then
10697 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
10705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10706 ac_cv_prog_ac_ct_LIPO="lipo"
10707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10717 if test -n "$ac_ct_LIPO"; then
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10719 $as_echo "$ac_ct_LIPO" >&6; }
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10722 $as_echo "no" >&6; }
10725 if test "x$ac_ct_LIPO" = x; then
10728 case $cross_compiling:$ac_tool_warned in
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10732 ac_tool_warned=yes ;;
10737 LIPO="$ac_cv_prog_LIPO"
10740 if test -n "$ac_tool_prefix"; then
10741 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10742 set dummy ${ac_tool_prefix}otool; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if ${ac_cv_prog_OTOOL+:} false; then :
10746 $as_echo_n "(cached) " >&6
10748 if test -n "$OTOOL"; then
10749 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10758 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 OTOOL=$ac_cv_prog_OTOOL
10769 if test -n "$OTOOL"; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10771 $as_echo "$OTOOL" >&6; }
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10779 if test -z "$ac_cv_prog_OTOOL"; then
10781 # Extract the first word of "otool", so it can be a program name with args.
10782 set dummy otool; ac_word=$2
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784 $as_echo_n "checking for $ac_word... " >&6; }
10785 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10786 $as_echo_n "(cached) " >&6
10788 if test -n "$ac_ct_OTOOL"; then
10789 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798 ac_cv_prog_ac_ct_OTOOL="otool"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10809 if test -n "$ac_ct_OTOOL"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10811 $as_echo "$ac_ct_OTOOL" >&6; }
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10817 if test "x$ac_ct_OTOOL" = x; then
10820 case $cross_compiling:$ac_tool_warned in
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10824 ac_tool_warned=yes ;;
10829 OTOOL="$ac_cv_prog_OTOOL"
10832 if test -n "$ac_tool_prefix"; then
10833 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10834 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if ${ac_cv_prog_OTOOL64+:} false; then :
10838 $as_echo_n "(cached) " >&6
10840 if test -n "$OTOOL64"; then
10841 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 OTOOL64=$ac_cv_prog_OTOOL64
10861 if test -n "$OTOOL64"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10863 $as_echo "$OTOOL64" >&6; }
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; }
10871 if test -z "$ac_cv_prog_OTOOL64"; then
10872 ac_ct_OTOOL64=$OTOOL64
10873 # Extract the first word of "otool64", so it can be a program name with args.
10874 set dummy otool64; ac_word=$2
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876 $as_echo_n "checking for $ac_word... " >&6; }
10877 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10878 $as_echo_n "(cached) " >&6
10880 if test -n "$ac_ct_OTOOL64"; then
10881 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890 ac_cv_prog_ac_ct_OTOOL64="otool64"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10901 if test -n "$ac_ct_OTOOL64"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10903 $as_echo "$ac_ct_OTOOL64" >&6; }
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10909 if test "x$ac_ct_OTOOL64" = x; then
10912 case $cross_compiling:$ac_tool_warned in
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10916 ac_tool_warned=yes ;;
10918 OTOOL64=$ac_ct_OTOOL64
10921 OTOOL64="$ac_cv_prog_OTOOL64"
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10951 $as_echo_n "checking for -single_module linker flag... " >&6; }
10952 if ${lt_cv_apple_cc_single_mod+:} false; then :
10953 $as_echo_n "(cached) " >&6
10955 lt_cv_apple_cc_single_mod=no
10956 if test -z "$LT_MULTI_MODULE"; then
10957 # By default we will add the -single_module flag. You can override
10958 # by either setting the environment variable LT_MULTI_MODULE
10959 # non-empty at configure time, or by adding -multi_module to the
10961 rm -rf libconftest.dylib*
10962 echo "int foo(void){return 1;}" > conftest.c
10963 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10964 -dynamiclib -Wl,-single_module conftest.c" >&5
10965 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10966 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10968 # If there is a non-empty error log, and "single_module"
10969 # appears in it, assume the flag caused a linker warning
10970 if test -s conftest.err && $GREP single_module conftest.err; then
10971 cat conftest.err >&5
10972 # Otherwise, if the output was created with a 0 exit code from
10973 # the compiler, it worked.
10974 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10975 lt_cv_apple_cc_single_mod=yes
10977 cat conftest.err >&5
10979 rm -rf libconftest.dylib*
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10984 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10987 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10988 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10989 $as_echo_n "(cached) " >&6
10991 lt_cv_ld_exported_symbols_list=no
10992 save_LDFLAGS=$LDFLAGS
10993 echo "_main" > conftest.sym
10994 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
11005 if ac_fn_c_try_link "$LINENO"; then :
11006 lt_cv_ld_exported_symbols_list=yes
11008 lt_cv_ld_exported_symbols_list=no
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 LDFLAGS=$save_LDFLAGS
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11016 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11019 $as_echo_n "checking for -force_load linker flag... " >&6; }
11020 if ${lt_cv_ld_force_load+:} false; then :
11021 $as_echo_n "(cached) " >&6
11023 lt_cv_ld_force_load=no
11024 cat > conftest.c << _LT_EOF
11025 int forced_loaded() { return 2;}
11027 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11028 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11029 echo "$AR cru libconftest.a conftest.o" >&5
11030 $AR cru libconftest.a conftest.o 2>&5
11031 echo "$RANLIB libconftest.a" >&5
11032 $RANLIB libconftest.a 2>&5
11033 cat > conftest.c << _LT_EOF
11034 int main() { return 0;}
11036 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11037 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11039 if test -s conftest.err && $GREP force_load conftest.err; then
11040 cat conftest.err >&5
11041 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11042 lt_cv_ld_force_load=yes
11044 cat conftest.err >&5
11046 rm -f conftest.err libconftest.a conftest conftest.c
11047 rm -rf conftest.dSYM
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11051 $as_echo "$lt_cv_ld_force_load" >&6; }
11053 rhapsody* | darwin1.[012])
11054 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11056 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11057 darwin*) # darwin 5.x on
11058 # if running on 10.5 or later, the deployment target defaults
11059 # to the OS version, if on x86, and 10.4, the deployment
11060 # target defaults to 10.4. Don't you love it?
11061 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11062 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11063 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11065 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11067 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11071 if test yes = "$lt_cv_apple_cc_single_mod"; then
11072 _lt_dar_single_mod='$single_module'
11074 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11075 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11077 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11079 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11080 _lt_dsymutil='~$DSYMUTIL $lib || :'
11087 # func_munge_path_list VARIABLE PATH
11088 # -----------------------------------
11089 # VARIABLE is name of variable containing _space_ separated list of
11090 # directories to be munged by the contents of PATH, which is string
11093 # string "DIR[ DIR]" will be prepended to VARIABLE
11095 # string "DIR[ DIR]" will be appended to VARIABLE
11096 # "DIRP[:DIRP]::[DIRA:]DIRA"
11097 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11098 # "DIRA[ DIRA]" will be appended to VARIABLE
11100 # VARIABLE will be replaced by "DIR[ DIR]"
11101 func_munge_path_list ()
11107 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11110 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11113 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11114 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11117 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11122 for ac_header in dlfcn.h
11124 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11126 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11127 cat >>confdefs.h <<_ACEOF
11128 #define HAVE_DLFCN_H 1
11135 # ------------------------------------ #
11136 # Determine libtool default behavior #
11137 # ------------------------------------ #
11140 # Default behavior is to enable shared and static libraries on systems
11141 # where libtool knows how to build both library versions, and does not
11142 # require separate configuration and build runs for each flavor.
11145 xc_lt_want_enable_shared='yes'
11146 xc_lt_want_enable_static='yes'
11149 # User may have disabled shared or static libraries.
11151 case "x$enable_shared" in # (
11153 xc_lt_want_enable_shared='no'
11156 case "x$enable_static" in # (
11158 xc_lt_want_enable_static='no'
11161 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11162 test "x$xc_lt_want_enable_static" = 'xno'; then
11163 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11167 # Default behavior on systems that require independent configuration
11168 # and build runs for shared and static is to enable shared libraries
11169 # and disable static ones. On these systems option '--disable-shared'
11170 # must be used in order to build a proper static library.
11173 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11174 test "x$xc_lt_want_enable_static" = 'xyes'; then
11175 case $host_os in # (
11176 pw32* | cegcc* | os2* | aix*)
11177 xc_lt_want_enable_static='no'
11183 # Make libtool aware of current shared and static library preferences
11184 # taking in account that, depending on host characteristics, libtool
11185 # may modify these option preferences later in this configure script.
11188 enable_shared=$xc_lt_want_enable_shared
11189 enable_static=$xc_lt_want_enable_static
11192 # Default behavior is to build PIC objects for shared libraries and
11193 # non-PIC objects for static libraries.
11196 xc_lt_want_with_pic='default'
11199 # User may have specified PIC preference.
11202 case "x$with_pic" in # ((
11204 xc_lt_want_with_pic='no'
11207 xc_lt_want_with_pic='yes'
11212 # Default behavior on some systems where building a shared library out
11213 # of non-PIC compiled objects will fail with following linker error
11214 # "relocation R_X86_64_32 can not be used when making a shared object"
11215 # is to build PIC objects even for static libraries. This behavior may
11216 # be overriden using 'configure --disable-shared --without-pic'.
11219 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11220 case $host_cpu in # (
11221 x86_64 | amd64 | ia64)
11222 case $host_os in # (
11224 xc_lt_want_with_pic='yes'
11232 # Make libtool aware of current PIC preference taking in account that,
11233 # depending on host characteristics, libtool may modify PIC default
11234 # behavior to fit host system idiosyncrasies later in this script.
11237 with_pic=$xc_lt_want_with_pic
11239 ## ----------------------- ##
11240 ## Start of libtool code ##
11241 ## ----------------------- ##
11247 enable_win32_dll=yes
11250 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11251 if test -n "$ac_tool_prefix"; then
11252 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11253 set dummy ${ac_tool_prefix}as; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if ${ac_cv_prog_AS+:} false; then :
11257 $as_echo_n "(cached) " >&6
11259 if test -n "$AS"; then
11260 ac_cv_prog_AS="$AS" # Let the user override the test.
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269 ac_cv_prog_AS="${ac_tool_prefix}as"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 if test -n "$AS"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11282 $as_echo "$AS" >&6; }
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11290 if test -z "$ac_cv_prog_AS"; then
11292 # Extract the first word of "as", so it can be a program name with args.
11293 set dummy as; ac_word=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11297 $as_echo_n "(cached) " >&6
11299 if test -n "$ac_ct_AS"; then
11300 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309 ac_cv_prog_ac_ct_AS="as"
11310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11320 if test -n "$ac_ct_AS"; then
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11322 $as_echo "$ac_ct_AS" >&6; }
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325 $as_echo "no" >&6; }
11328 if test "x$ac_ct_AS" = x; then
11331 case $cross_compiling:$ac_tool_warned in
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11335 ac_tool_warned=yes ;;
11340 AS="$ac_cv_prog_AS"
11343 if test -n "$ac_tool_prefix"; then
11344 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11345 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if ${ac_cv_prog_DLLTOOL+:} false; then :
11349 $as_echo_n "(cached) " >&6
11351 if test -n "$DLLTOOL"; then
11352 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11371 DLLTOOL=$ac_cv_prog_DLLTOOL
11372 if test -n "$DLLTOOL"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11374 $as_echo "$DLLTOOL" >&6; }
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11382 if test -z "$ac_cv_prog_DLLTOOL"; then
11383 ac_ct_DLLTOOL=$DLLTOOL
11384 # Extract the first word of "dlltool", so it can be a program name with args.
11385 set dummy dlltool; ac_word=$2
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387 $as_echo_n "checking for $ac_word... " >&6; }
11388 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11389 $as_echo_n "(cached) " >&6
11391 if test -n "$ac_ct_DLLTOOL"; then
11392 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11398 test -z "$as_dir" && as_dir=.
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11401 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11412 if test -n "$ac_ct_DLLTOOL"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11414 $as_echo "$ac_ct_DLLTOOL" >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11420 if test "x$ac_ct_DLLTOOL" = x; then
11423 case $cross_compiling:$ac_tool_warned in
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11427 ac_tool_warned=yes ;;
11429 DLLTOOL=$ac_ct_DLLTOOL
11432 DLLTOOL="$ac_cv_prog_DLLTOOL"
11435 if test -n "$ac_tool_prefix"; then
11436 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11437 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_prog_OBJDUMP+:} false; then :
11441 $as_echo_n "(cached) " >&6
11443 if test -n "$OBJDUMP"; then
11444 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11453 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11463 OBJDUMP=$ac_cv_prog_OBJDUMP
11464 if test -n "$OBJDUMP"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11466 $as_echo "$OBJDUMP" >&6; }
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11474 if test -z "$ac_cv_prog_OBJDUMP"; then
11475 ac_ct_OBJDUMP=$OBJDUMP
11476 # Extract the first word of "objdump", so it can be a program name with args.
11477 set dummy objdump; ac_word=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11481 $as_echo_n "(cached) " >&6
11483 if test -n "$ac_ct_OBJDUMP"; then
11484 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11493 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11504 if test -n "$ac_ct_OBJDUMP"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11506 $as_echo "$ac_ct_OBJDUMP" >&6; }
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11512 if test "x$ac_ct_OBJDUMP" = x; then
11515 case $cross_compiling:$ac_tool_warned in
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11519 ac_tool_warned=yes ;;
11521 OBJDUMP=$ac_ct_OBJDUMP
11524 OBJDUMP="$ac_cv_prog_OBJDUMP"
11530 test -z "$AS" && AS=as
11536 test -z "$DLLTOOL" && DLLTOOL=dlltool
11542 test -z "$OBJDUMP" && OBJDUMP=objdump
11554 # Check whether --enable-shared was given.
11555 if test "${enable_shared+set}" = set; then :
11556 enableval=$enable_shared; p=${PACKAGE-default}
11558 yes) enable_shared=yes ;;
11559 no) enable_shared=no ;;
11562 # Look at the argument we got. We use all the common list separators.
11563 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11564 for pkg in $enableval; do
11566 if test "X$pkg" = "X$p"; then
11585 # Check whether --enable-static was given.
11586 if test "${enable_static+set}" = set; then :
11587 enableval=$enable_static; p=${PACKAGE-default}
11589 yes) enable_static=yes ;;
11590 no) enable_static=no ;;
11593 # Look at the argument we got. We use all the common list separators.
11594 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11595 for pkg in $enableval; do
11597 if test "X$pkg" = "X$p"; then
11617 # Check whether --with-pic was given.
11618 if test "${with_pic+set}" = set; then :
11619 withval=$with_pic; lt_p=${PACKAGE-default}
11621 yes|no) pic_mode=$withval ;;
11624 # Look at the argument we got. We use all the common list separators.
11625 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11626 for lt_pkg in $withval; do
11628 if test "X$lt_pkg" = "X$lt_p"; then
11646 # Check whether --enable-fast-install was given.
11647 if test "${enable_fast_install+set}" = set; then :
11648 enableval=$enable_fast_install; p=${PACKAGE-default}
11650 yes) enable_fast_install=yes ;;
11651 no) enable_fast_install=no ;;
11653 enable_fast_install=no
11654 # Look at the argument we got. We use all the common list separators.
11655 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11656 for pkg in $enableval; do
11658 if test "X$pkg" = "X$p"; then
11659 enable_fast_install=yes
11666 enable_fast_install=yes
11676 shared_archive_member_spec=
11677 case $host,$enable_shared in
11678 power*-*-aix[5-9]*,yes)
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11680 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11682 # Check whether --with-aix-soname was given.
11683 if test "${with_aix_soname+set}" = set; then :
11684 withval=$with_aix_soname; case $withval in
11688 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11691 lt_cv_with_aix_soname=$with_aix_soname
11693 if ${lt_cv_with_aix_soname+:} false; then :
11694 $as_echo_n "(cached) " >&6
11696 lt_cv_with_aix_soname=aix
11699 with_aix_soname=$lt_cv_with_aix_soname
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11703 $as_echo "$with_aix_soname" >&6; }
11704 if test aix != "$with_aix_soname"; then
11705 # For the AIX way of multilib, we name the shared archive member
11706 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11707 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11708 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11709 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11710 if test 64 = "${OBJECT_MODE-32}"; then
11711 shared_archive_member_spec=shr_64
11713 shared_archive_member_spec=shr
11718 with_aix_soname=aix
11731 # This can be used to rebuild libtool when needed
11732 LIBTOOL_DEPS=$ltmain
11734 # Always use our own libtool.
11735 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11766 test -z "$LN_S" && LN_S="ln -s"
11781 if test -n "${ZSH_VERSION+set}"; then
11782 setopt NO_GLOB_SUBST
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11786 $as_echo_n "checking for objdir... " >&6; }
11787 if ${lt_cv_objdir+:} false; then :
11788 $as_echo_n "(cached) " >&6
11790 rm -f .libs 2>/dev/null
11791 mkdir .libs 2>/dev/null
11792 if test -d .libs; then
11795 # MS-DOS does not allow filenames that begin with a dot.
11798 rmdir .libs 2>/dev/null
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11801 $as_echo "$lt_cv_objdir" >&6; }
11802 objdir=$lt_cv_objdir
11808 cat >>confdefs.h <<_ACEOF
11809 #define LT_OBJDIR "$lt_cv_objdir/"
11817 # AIX sometimes has problems with the GCC collect2 program. For some
11818 # reason, if we set the COLLECT_NAMES environment variable, the problems
11819 # vanish in a puff of smoke.
11820 if test set != "${COLLECT_NAMES+set}"; then
11822 export COLLECT_NAMES
11827 # Global variables:
11829 can_build_shared=yes
11831 # All known linkers require a '.a' archive for static linking (except MSVC,
11832 # which needs '.lib').
11835 with_gnu_ld=$lt_cv_prog_gnu_ld
11840 # Set sane defaults for various variables
11841 test -z "$CC" && CC=cc
11842 test -z "$LTCC" && LTCC=$CC
11843 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11844 test -z "$LD" && LD=ld
11845 test -z "$ac_objext" && ac_objext=o
11847 func_cc_basename $compiler
11848 cc_basename=$func_cc_basename_result
11851 # Only perform the check for file, if the check method requires it
11852 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11853 case $deplibs_check_method in
11855 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11857 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11858 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11859 $as_echo_n "(cached) " >&6
11863 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11866 lt_save_MAGIC_CMD=$MAGIC_CMD
11867 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11868 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11869 for ac_dir in $ac_dummy; do
11871 test -z "$ac_dir" && ac_dir=.
11872 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11873 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11874 if test -n "$file_magic_test_file"; then
11875 case $deplibs_check_method in
11877 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11878 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11879 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11880 $EGREP "$file_magic_regex" > /dev/null; then
11885 *** Warning: the command libtool uses to detect shared libraries,
11886 *** $file_magic_cmd, produces output that libtool cannot recognize.
11887 *** The result is that libtool may fail to recognize shared libraries
11888 *** as such. This will affect the creation of libtool libraries that
11889 *** depend on shared libraries, but programs linked with such libtool
11890 *** libraries will work regardless of this problem. Nevertheless, you
11891 *** may want to report the problem to your system manager and/or to
11892 *** bug-libtool@gnu.org
11902 MAGIC_CMD=$lt_save_MAGIC_CMD
11907 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11908 if test -n "$MAGIC_CMD"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11910 $as_echo "$MAGIC_CMD" >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11920 if test -z "$lt_cv_path_MAGIC_CMD"; then
11921 if test -n "$ac_tool_prefix"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11923 $as_echo_n "checking for file... " >&6; }
11924 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11925 $as_echo_n "(cached) " >&6
11929 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11932 lt_save_MAGIC_CMD=$MAGIC_CMD
11933 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11934 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11935 for ac_dir in $ac_dummy; do
11937 test -z "$ac_dir" && ac_dir=.
11938 if test -f "$ac_dir/file"; then
11939 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11940 if test -n "$file_magic_test_file"; then
11941 case $deplibs_check_method in
11943 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11944 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11945 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11946 $EGREP "$file_magic_regex" > /dev/null; then
11951 *** Warning: the command libtool uses to detect shared libraries,
11952 *** $file_magic_cmd, produces output that libtool cannot recognize.
11953 *** The result is that libtool may fail to recognize shared libraries
11954 *** as such. This will affect the creation of libtool libraries that
11955 *** depend on shared libraries, but programs linked with such libtool
11956 *** libraries will work regardless of this problem. Nevertheless, you
11957 *** may want to report the problem to your system manager and/or to
11958 *** bug-libtool@gnu.org
11968 MAGIC_CMD=$lt_save_MAGIC_CMD
11973 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11974 if test -n "$MAGIC_CMD"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11976 $as_echo "$MAGIC_CMD" >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11992 # Use C for the default configuration in the libtool script
11996 ac_cpp='$CPP $CPPFLAGS'
11997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12002 # Source file extension for C test sources.
12005 # Object file extension for compiled C test sources.
12009 # Code to be used in simple compile tests
12010 lt_simple_compile_test_code="int some_variable = 0;"
12012 # Code to be used in simple link tests
12013 lt_simple_link_test_code='int main(){return(0);}'
12021 # If no C compiler was specified, use CC.
12024 # If no C compiler flags were specified, use CFLAGS.
12025 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12027 # Allow CC to be a program name with arguments.
12030 # Save the default compiler, since it gets overwritten when the other
12031 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12032 compiler_DEFAULT=$CC
12034 # save warnings/boilerplate of simple test code
12035 ac_outfile=conftest.$ac_objext
12036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12038 _lt_compiler_boilerplate=`cat conftest.err`
12041 ac_outfile=conftest.$ac_objext
12042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12044 _lt_linker_boilerplate=`cat conftest.err`
12049 ## There is no encapsulation within the following macros, do not change
12050 ## the running order or otherwise move them around unless you know exactly
12051 ## what you are doing...
12052 if test -n "$compiler"; then
12054 lt_prog_compiler_no_builtin_flag=
12056 if test yes = "$GCC"; then
12057 case $cc_basename in
12059 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12061 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12065 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12066 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12067 $as_echo_n "(cached) " >&6
12069 lt_cv_prog_compiler_rtti_exceptions=no
12070 ac_outfile=conftest.$ac_objext
12071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12072 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12073 # Insert the option either (1) after the last *FLAGS variable, or
12074 # (2) before a word containing "conftest.", or (3) at the end.
12075 # Note that $ac_compile itself does not contain backslashes and begins
12076 # with a dollar sign (not a hyphen), so the echo should work correctly.
12077 # The option is referenced via a variable to avoid confusing sed.
12078 lt_compile=`echo "$ac_compile" | $SED \
12079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12081 -e 's:$: $lt_compiler_flag:'`
12082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12083 (eval "$lt_compile" 2>conftest.err)
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 if (exit $ac_status) && test -s "$ac_outfile"; then
12088 # The compiler can only warn and ignore the option if not recognized
12089 # So say no if there are warnings other than the usual output.
12090 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12092 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12093 lt_cv_prog_compiler_rtti_exceptions=yes
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12100 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12102 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12103 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12115 lt_prog_compiler_wl=
12116 lt_prog_compiler_pic=
12117 lt_prog_compiler_static=
12120 if test yes = "$GCC"; then
12121 lt_prog_compiler_wl='-Wl,'
12122 lt_prog_compiler_static='-static'
12126 # All AIX code is PIC.
12127 if test ia64 = "$host_cpu"; then
12128 # AIX 5 now supports IA64 processor
12129 lt_prog_compiler_static='-Bstatic'
12131 lt_prog_compiler_pic='-fPIC'
12137 # see comment about AmigaOS4 .so support
12138 lt_prog_compiler_pic='-fPIC'
12141 # FIXME: we need at least 68020 code to build shared libraries, but
12142 # adding the '-m68020' flag to GCC prevents building anything better,
12144 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12149 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12150 # PIC is the default for these OSes.
12153 mingw* | cygwin* | pw32* | os2* | cegcc*)
12154 # This hack is so that the source file can tell whether it is being
12155 # built for inclusion in a dll (and should export symbols for example).
12156 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12157 # (--disable-auto-import) libraries
12158 lt_prog_compiler_pic='-DDLL_EXPORT'
12161 lt_prog_compiler_static='$wl-static'
12166 darwin* | rhapsody*)
12167 # PIC is the default on this platform
12168 # Common symbols not allowed in MH_DYLIB files
12169 lt_prog_compiler_pic='-fno-common'
12173 # PIC is the default for Haiku.
12174 # The "-static" flag exists, but is broken.
12175 lt_prog_compiler_static=
12179 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12180 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12181 # sets the default TLS model and affects inlining.
12187 lt_prog_compiler_pic='-fPIC'
12193 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12194 # Instead, we relocate shared libraries at runtime.
12198 # Just because we use GCC doesn't mean we suddenly get shared libraries
12199 # on systems that don't support them.
12200 lt_prog_compiler_can_build_shared=no
12205 # QNX uses GNU C++, but need to define -shared option too, otherwise
12206 # it will coredump.
12207 lt_prog_compiler_pic='-fPIC -shared'
12211 if test -d /usr/nec; then
12212 lt_prog_compiler_pic=-Kconform_pic
12217 lt_prog_compiler_pic='-fPIC'
12221 case $cc_basename in
12222 nvcc*) # Cuda Compiler Driver 2.2
12223 lt_prog_compiler_wl='-Xlinker '
12224 if test -n "$lt_prog_compiler_pic"; then
12225 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12230 # PORTME Check for flag to pass linker flags through the system compiler.
12233 lt_prog_compiler_wl='-Wl,'
12234 if test ia64 = "$host_cpu"; then
12235 # AIX 5 now supports IA64 processor
12236 lt_prog_compiler_static='-Bstatic'
12238 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12242 darwin* | rhapsody*)
12243 # PIC is the default on this platform
12244 # Common symbols not allowed in MH_DYLIB files
12245 lt_prog_compiler_pic='-fno-common'
12246 case $cc_basename in
12248 # NAG Fortran compiler
12249 lt_prog_compiler_wl='-Wl,-Wl,,'
12250 lt_prog_compiler_pic='-PIC'
12251 lt_prog_compiler_static='-Bstatic'
12256 mingw* | cygwin* | pw32* | os2* | cegcc*)
12257 # This hack is so that the source file can tell whether it is being
12258 # built for inclusion in a dll (and should export symbols for example).
12259 lt_prog_compiler_pic='-DDLL_EXPORT'
12262 lt_prog_compiler_static='$wl-static'
12267 hpux9* | hpux10* | hpux11*)
12268 lt_prog_compiler_wl='-Wl,'
12269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12270 # not for PA HP-UX.
12276 lt_prog_compiler_pic='+Z'
12279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12280 lt_prog_compiler_static='$wl-a ${wl}archive'
12283 irix5* | irix6* | nonstopux*)
12284 lt_prog_compiler_wl='-Wl,'
12285 # PIC (with -KPIC) is the default.
12286 lt_prog_compiler_static='-non_shared'
12289 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12290 case $cc_basename in
12291 # old Intel for x86_64, which still supported -KPIC.
12293 lt_prog_compiler_wl='-Wl,'
12294 lt_prog_compiler_pic='-KPIC'
12295 lt_prog_compiler_static='-static'
12297 # icc used to be incompatible with GCC.
12298 # ICC 10 doesn't accept -KPIC any more.
12300 lt_prog_compiler_wl='-Wl,'
12301 lt_prog_compiler_pic='-fPIC'
12302 lt_prog_compiler_static='-static'
12304 # Lahey Fortran 8.1.
12306 lt_prog_compiler_wl='-Wl,'
12307 lt_prog_compiler_pic='--shared'
12308 lt_prog_compiler_static='--static'
12311 # NAG Fortran compiler
12312 lt_prog_compiler_wl='-Wl,-Wl,,'
12313 lt_prog_compiler_pic='-PIC'
12314 lt_prog_compiler_static='-Bstatic'
12317 # Fabrice Bellard et al's Tiny C Compiler
12318 lt_prog_compiler_wl='-Wl,'
12319 lt_prog_compiler_pic='-fPIC'
12320 lt_prog_compiler_static='-static'
12322 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12323 # Portland Group compilers (*not* the Pentium gcc compiler,
12324 # which looks to be a dead project)
12325 lt_prog_compiler_wl='-Wl,'
12326 lt_prog_compiler_pic='-fpic'
12327 lt_prog_compiler_static='-Bstatic'
12330 lt_prog_compiler_wl='-Wl,'
12331 # All Alpha code is PIC.
12332 lt_prog_compiler_static='-non_shared'
12334 xl* | bgxl* | bgf* | mpixl*)
12335 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12336 lt_prog_compiler_wl='-Wl,'
12337 lt_prog_compiler_pic='-qpic'
12338 lt_prog_compiler_static='-qstaticlink'
12341 case `$CC -V 2>&1 | sed 5q` in
12342 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12343 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12344 lt_prog_compiler_pic='-KPIC'
12345 lt_prog_compiler_static='-Bstatic'
12346 lt_prog_compiler_wl=''
12348 *Sun\ F* | *Sun*Fortran*)
12349 lt_prog_compiler_pic='-KPIC'
12350 lt_prog_compiler_static='-Bstatic'
12351 lt_prog_compiler_wl='-Qoption ld '
12355 lt_prog_compiler_pic='-KPIC'
12356 lt_prog_compiler_static='-Bstatic'
12357 lt_prog_compiler_wl='-Wl,'
12359 *Intel*\ [CF]*Compiler*)
12360 lt_prog_compiler_wl='-Wl,'
12361 lt_prog_compiler_pic='-fPIC'
12362 lt_prog_compiler_static='-static'
12365 lt_prog_compiler_wl='-Wl,'
12366 lt_prog_compiler_pic='-fpic'
12367 lt_prog_compiler_static='-Bstatic'
12375 lt_prog_compiler_pic='-KPIC'
12376 lt_prog_compiler_static='-Bstatic'
12380 # QNX uses GNU C++, but need to define -shared option too, otherwise
12381 # it will coredump.
12382 lt_prog_compiler_pic='-fPIC -shared'
12385 osf3* | osf4* | osf5*)
12386 lt_prog_compiler_wl='-Wl,'
12387 # All OSF/1 code is PIC.
12388 lt_prog_compiler_static='-non_shared'
12392 lt_prog_compiler_static='-non_shared'
12396 lt_prog_compiler_pic='-KPIC'
12397 lt_prog_compiler_static='-Bstatic'
12398 case $cc_basename in
12399 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12400 lt_prog_compiler_wl='-Qoption ld ';;
12402 lt_prog_compiler_wl='-Wl,';;
12407 lt_prog_compiler_wl='-Qoption ld '
12408 lt_prog_compiler_pic='-PIC'
12409 lt_prog_compiler_static='-Bstatic'
12412 sysv4 | sysv4.2uw2* | sysv4.3*)
12413 lt_prog_compiler_wl='-Wl,'
12414 lt_prog_compiler_pic='-KPIC'
12415 lt_prog_compiler_static='-Bstatic'
12419 if test -d /usr/nec; then
12420 lt_prog_compiler_pic='-Kconform_pic'
12421 lt_prog_compiler_static='-Bstatic'
12425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12426 lt_prog_compiler_wl='-Wl,'
12427 lt_prog_compiler_pic='-KPIC'
12428 lt_prog_compiler_static='-Bstatic'
12432 lt_prog_compiler_wl='-Wl,'
12433 lt_prog_compiler_can_build_shared=no
12437 lt_prog_compiler_pic='-pic'
12438 lt_prog_compiler_static='-Bstatic'
12442 lt_prog_compiler_can_build_shared=no
12448 # For platforms that do not support PIC, -DPIC is meaningless:
12450 lt_prog_compiler_pic=
12453 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12458 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12459 if ${lt_cv_prog_compiler_pic+:} false; then :
12460 $as_echo_n "(cached) " >&6
12462 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12465 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12466 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12469 # Check to make sure the PIC flag actually works.
12471 if test -n "$lt_prog_compiler_pic"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12473 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12474 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12475 $as_echo_n "(cached) " >&6
12477 lt_cv_prog_compiler_pic_works=no
12478 ac_outfile=conftest.$ac_objext
12479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12480 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12481 # Insert the option either (1) after the last *FLAGS variable, or
12482 # (2) before a word containing "conftest.", or (3) at the end.
12483 # Note that $ac_compile itself does not contain backslashes and begins
12484 # with a dollar sign (not a hyphen), so the echo should work correctly.
12485 # The option is referenced via a variable to avoid confusing sed.
12486 lt_compile=`echo "$ac_compile" | $SED \
12487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12489 -e 's:$: $lt_compiler_flag:'`
12490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12491 (eval "$lt_compile" 2>conftest.err)
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 if (exit $ac_status) && test -s "$ac_outfile"; then
12496 # The compiler can only warn and ignore the option if not recognized
12497 # So say no if there are warnings other than the usual output.
12498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12501 lt_cv_prog_compiler_pic_works=yes
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12508 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12510 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12511 case $lt_prog_compiler_pic in
12513 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12516 lt_prog_compiler_pic=
12517 lt_prog_compiler_can_build_shared=no
12533 # Check to make sure the static flag actually works.
12535 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12537 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12538 if ${lt_cv_prog_compiler_static_works+:} false; then :
12539 $as_echo_n "(cached) " >&6
12541 lt_cv_prog_compiler_static_works=no
12542 save_LDFLAGS=$LDFLAGS
12543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12544 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12546 # The linker can only warn and ignore the option if not recognized
12547 # So say no if there are warnings
12548 if test -s conftest.err; then
12549 # Append any errors to the config.log.
12550 cat conftest.err 1>&5
12551 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12553 if diff conftest.exp conftest.er2 >/dev/null; then
12554 lt_cv_prog_compiler_static_works=yes
12557 lt_cv_prog_compiler_static_works=yes
12561 LDFLAGS=$save_LDFLAGS
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12565 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12567 if test yes = "$lt_cv_prog_compiler_static_works"; then
12570 lt_prog_compiler_static=
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12580 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12581 if ${lt_cv_prog_compiler_c_o+:} false; then :
12582 $as_echo_n "(cached) " >&6
12584 lt_cv_prog_compiler_c_o=no
12585 $RM -r conftest 2>/dev/null
12589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12591 lt_compiler_flag="-o out/conftest2.$ac_objext"
12592 # Insert the option either (1) after the last *FLAGS variable, or
12593 # (2) before a word containing "conftest.", or (3) at the end.
12594 # Note that $ac_compile itself does not contain backslashes and begins
12595 # with a dollar sign (not a hyphen), so the echo should work correctly.
12596 lt_compile=`echo "$ac_compile" | $SED \
12597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12599 -e 's:$: $lt_compiler_flag:'`
12600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12601 (eval "$lt_compile" 2>out/conftest.err)
12603 cat out/conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12607 # The compiler can only warn and ignore the option if not recognized
12608 # So say no if there are warnings
12609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12612 lt_cv_prog_compiler_c_o=yes
12617 # SGI C++ compiler will create directory out/ii_files/ for
12618 # template instantiation
12619 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12620 $RM out/* && rmdir out
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12627 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12636 if ${lt_cv_prog_compiler_c_o+:} false; then :
12637 $as_echo_n "(cached) " >&6
12639 lt_cv_prog_compiler_c_o=no
12640 $RM -r conftest 2>/dev/null
12644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12646 lt_compiler_flag="-o out/conftest2.$ac_objext"
12647 # Insert the option either (1) after the last *FLAGS variable, or
12648 # (2) before a word containing "conftest.", or (3) at the end.
12649 # Note that $ac_compile itself does not contain backslashes and begins
12650 # with a dollar sign (not a hyphen), so the echo should work correctly.
12651 lt_compile=`echo "$ac_compile" | $SED \
12652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12654 -e 's:$: $lt_compiler_flag:'`
12655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12656 (eval "$lt_compile" 2>out/conftest.err)
12658 cat out/conftest.err >&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12662 # The compiler can only warn and ignore the option if not recognized
12663 # So say no if there are warnings
12664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12667 lt_cv_prog_compiler_c_o=yes
12672 # SGI C++ compiler will create directory out/ii_files/ for
12673 # template instantiation
12674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12675 $RM out/* && rmdir out
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12682 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12687 hard_links=nottested
12688 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12689 # do not overwrite the value of need_locks provided by the user
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12691 $as_echo_n "checking if we can lock with hard links... " >&6; }
12694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12696 ln conftest.a conftest.b 2>&5 || hard_links=no
12697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12699 $as_echo "$hard_links" >&6; }
12700 if test no = "$hard_links"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12702 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12715 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12718 allow_undefined_flag=
12719 always_export_symbols=no
12721 archive_expsym_cmds=
12722 compiler_needs_object=no
12723 enable_shared_with_static_runtimes=no
12724 export_dynamic_flag_spec=
12725 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12726 hardcode_automatic=no
12728 hardcode_direct_absolute=no
12729 hardcode_libdir_flag_spec=
12730 hardcode_libdir_separator=
12731 hardcode_minus_L=no
12732 hardcode_shlibpath_var=unsupported
12734 link_all_deplibs=unknown
12736 module_expsym_cmds=
12737 old_archive_from_new_cmds=
12738 old_archive_from_expsyms_cmds=
12739 thread_safe_flag_spec=
12740 whole_archive_flag_spec=
12741 # include_expsyms should be a list of space-separated symbols to be *always*
12742 # included in the symbol list
12744 # exclude_expsyms can be an extended regexp of symbols to exclude
12745 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12746 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12747 # as well as any symbol that contains 'd'.
12748 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12750 # platforms (ab)use it in PIC code, but their linkers get confused if
12751 # the symbol is explicitly referenced. Since portable code cannot
12752 # rely on this symbol name, it's probably fine to never include it in
12753 # preloaded symbol tables.
12754 # Exclude shared library initialization/finalization symbols.
12755 extract_expsyms_cmds=
12758 cygwin* | mingw* | pw32* | cegcc*)
12759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12760 # When not using gcc, we currently assume that we are using
12761 # Microsoft Visual C++.
12762 if test yes != "$GCC"; then
12767 # we just hope/assume this is gcc and not c89 (= MSVC++)
12770 openbsd* | bitrig*)
12773 linux* | k*bsd*-gnu | gnu*)
12774 link_all_deplibs=no
12780 # On some targets, GNU ld is compatible enough with the native linker
12781 # that we're better off using the native interface for both.
12782 lt_use_gnu_ld_interface=no
12783 if test yes = "$with_gnu_ld"; then
12786 # The AIX port of GNU ld has always aspired to compatibility
12787 # with the native linker. However, as the warning in the GNU ld
12788 # block says, versions before 2.19.5* couldn't really create working
12789 # shared libraries, regardless of the interface used.
12790 case `$LD -v 2>&1` in
12791 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12792 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12793 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12795 lt_use_gnu_ld_interface=yes
12800 lt_use_gnu_ld_interface=yes
12805 if test yes = "$lt_use_gnu_ld_interface"; then
12806 # If archive_cmds runs LD, not CC, wlarc should be empty
12809 # Set some defaults for GNU ld with shared library support. These
12810 # are reset later if shared libraries are not supported. Putting them
12811 # here allows them to be overridden if necessary.
12812 runpath_var=LD_RUN_PATH
12813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12814 export_dynamic_flag_spec='$wl--export-dynamic'
12815 # ancient GNU ld didn't support --whole-archive et. al.
12816 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12817 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12819 whole_archive_flag_spec=
12821 supports_anon_versioning=no
12822 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12823 *GNU\ gold*) supports_anon_versioning=yes ;;
12824 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12825 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12826 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12827 *\ 2.11.*) ;; # other 2.11 versions
12828 *) supports_anon_versioning=yes ;;
12831 # See if GNU ld supports shared libraries.
12834 # On AIX/PPC, the GNU linker is very broken
12835 if test ia64 != "$host_cpu"; then
12839 *** Warning: the GNU linker, at least up to release 2.19, is reported
12840 *** to be unable to reliably create shared libraries on AIX.
12841 *** Therefore, libtool is disabling shared libraries support. If you
12842 *** really care for shared libraries, you may want to install binutils
12843 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12844 *** You will then need to restart the configuration process.
12853 # see comment about AmigaOS4 .so support
12854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12855 archive_expsym_cmds=''
12858 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)'
12859 hardcode_libdir_flag_spec='-L$libdir'
12860 hardcode_minus_L=yes
12866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12867 allow_undefined_flag=unsupported
12868 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12869 # support --undefined. This deserves some investigation. FIXME
12870 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12876 cygwin* | mingw* | pw32* | cegcc*)
12877 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12878 # as there is no search path for DLLs.
12879 hardcode_libdir_flag_spec='-L$libdir'
12880 export_dynamic_flag_spec='$wl--export-all-symbols'
12881 allow_undefined_flag=unsupported
12882 always_export_symbols=no
12883 enable_shared_with_static_runtimes=yes
12884 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'
12885 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12887 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12889 # If the export-symbols file already is a .def file, use it as
12890 # is; otherwise, prepend EXPORTS...
12891 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12892 cp $export_symbols $output_objdir/$soname.def;
12894 echo EXPORTS > $output_objdir/$soname.def;
12895 cat $export_symbols >> $output_objdir/$soname.def;
12897 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12905 link_all_deplibs=yes
12909 hardcode_libdir_flag_spec='-L$libdir'
12910 hardcode_minus_L=yes
12911 allow_undefined_flag=unsupported
12913 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12914 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12915 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12916 $ECHO EXPORTS >> $output_objdir/$libname.def~
12917 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12918 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12919 emximp -o $lib $output_objdir/$libname.def'
12920 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12921 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12922 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12923 $ECHO EXPORTS >> $output_objdir/$libname.def~
12924 prefix_cmds="$SED"~
12925 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12926 prefix_cmds="$prefix_cmds -e 1d";
12928 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12929 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12930 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12931 emximp -o $lib $output_objdir/$libname.def'
12932 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12933 enable_shared_with_static_runtimes=yes
12938 hardcode_shlibpath_var=no
12939 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12940 export_dynamic_flag_spec='$wl-E'
12941 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12942 # Instead, shared libraries are loaded at an image base (0x10000000 by
12943 # default) and relocated if they conflict, which is a slow very memory
12944 # consuming and fragmenting process. To avoid this, we pick a random,
12945 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12946 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12947 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12948 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'
12951 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12953 if test linux-dietlibc = "$host_os"; then
12954 case $cc_basename in
12955 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12958 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12959 && test no = "$tmp_diet"
12961 tmp_addflag=' $pic_flag'
12962 tmp_sharedflag='-shared'
12963 case $cc_basename,$host_cpu in
12964 pgcc*) # Portland Group C compiler
12965 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'
12966 tmp_addflag=' $pic_flag'
12968 pgf77* | pgf90* | pgf95* | pgfortran*)
12969 # Portland Group f77 and f90 compilers
12970 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'
12971 tmp_addflag=' $pic_flag -Mnomain' ;;
12972 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12973 tmp_addflag=' -i_dynamic' ;;
12974 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12975 tmp_addflag=' -i_dynamic -nofor_main' ;;
12976 ifc* | ifort*) # Intel Fortran compiler
12977 tmp_addflag=' -nofor_main' ;;
12978 lf95*) # Lahey Fortran 8.1
12979 whole_archive_flag_spec=
12980 tmp_sharedflag='--shared' ;;
12981 nagfor*) # NAGFOR 5.3
12982 tmp_sharedflag='-Wl,-shared' ;;
12983 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12984 tmp_sharedflag='-qmkshrobj'
12986 nvcc*) # Cuda Compiler Driver 2.2
12987 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'
12988 compiler_needs_object=yes
12991 case `$CC -V 2>&1 | sed 5q` in
12992 *Sun\ C*) # Sun C 5.9
12993 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'
12994 compiler_needs_object=yes
12995 tmp_sharedflag='-G' ;;
12996 *Sun\ F*) # Sun Fortran 8.3
12997 tmp_sharedflag='-G' ;;
12999 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13001 if test yes = "$supports_anon_versioning"; then
13002 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13004 echo "local: *; };" >> $output_objdir/$libname.ver~
13005 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13008 case $cc_basename in
13010 export_dynamic_flag_spec='-rdynamic'
13012 xlf* | bgf* | bgxlf* | mpixlf*)
13013 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13014 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13015 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13016 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13017 if test yes = "$supports_anon_versioning"; then
13018 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13019 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13020 echo "local: *; };" >> $output_objdir/$libname.ver~
13021 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13030 netbsd* | netbsdelf*-gnu)
13031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13032 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13035 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13036 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13041 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13046 *** create shared libraries on Solaris systems. Therefore, libtool
13047 *** is disabling shared libraries support. We urge you to upgrade GNU
13048 *** binutils to release 2.9.1 or newer. Another option is to modify
13049 *** your PATH or compiler configuration so that the native linker is
13050 *** used, and then restart.
13053 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13055 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13062 case `$LD -v 2>&1` in
13063 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13067 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13068 *** reliably create shared libraries on SCO systems. Therefore, libtool
13069 *** is disabling shared libraries support. We urge you to upgrade GNU
13070 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13071 *** your PATH or compiler configuration so that the native linker is
13072 *** used, and then restart.
13077 # For security reasons, it is highly recommended that you always
13078 # use absolute paths for naming shared libraries, and exclude the
13079 # DT_RUNPATH tag from executables and libraries. But doing so
13080 # requires that you compile everything twice, which is a pain.
13081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13082 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13084 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13093 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13095 hardcode_direct=yes
13096 hardcode_shlibpath_var=no
13100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13102 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13109 if test no = "$ld_shlibs"; then
13111 hardcode_libdir_flag_spec=
13112 export_dynamic_flag_spec=
13113 whole_archive_flag_spec=
13116 # PORTME fill in a description of your system's linker (not GNU ld)
13119 allow_undefined_flag=unsupported
13120 always_export_symbols=yes
13121 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'
13122 # Note: this linker hardcodes the directories in LIBPATH if there
13123 # are no directories specified by -L.
13124 hardcode_minus_L=yes
13125 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13126 # Neither direct hardcoding nor static linking is supported with a
13128 hardcode_direct=unsupported
13133 if test ia64 = "$host_cpu"; then
13134 # On IA64, the linker does run time linking by default, so we don't
13135 # have to do anything special.
13136 aix_use_runtimelinking=no
13137 exp_sym_flag='-Bexport'
13140 # If we're using GNU nm, then we don't want the "-C" option.
13141 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13142 # Without the "-l" option, or with the "-B" option, AIX nm treats
13143 # weak defined symbols like other global defined symbols, whereas
13144 # GNU nm marks them as "W".
13145 # While the 'weak' keyword is ignored in the Export File, we need
13146 # it in the Import File for the 'aix-soname' feature, so we have
13147 # to replace the "-B" option with "-P" for AIX nm.
13148 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13149 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'
13151 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'
13153 aix_use_runtimelinking=no
13155 # Test if we are trying to use run time linking or normal
13156 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13157 # have runtime linking enabled, and use it for executables.
13158 # For shared libraries, we enable/disable runtime linking
13159 # depending on the kind of the shared library created -
13160 # when "with_aix_soname,aix_use_runtimelinking" is:
13161 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13162 # "aix,yes" lib.so shared, rtl:yes, for executables
13163 # lib.a static archive
13164 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13165 # lib.a(lib.so.V) shared, rtl:no, for executables
13166 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13167 # lib.a(lib.so.V) shared, rtl:no
13168 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13169 # lib.a static archive
13170 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13171 for ld_flag in $LDFLAGS; do
13172 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13173 aix_use_runtimelinking=yes
13177 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13178 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13179 # so we don't have lib.a shared libs to link our executables.
13180 # We have to force runtime linking in this case.
13181 aix_use_runtimelinking=yes
13182 LDFLAGS="$LDFLAGS -Wl,-brtl"
13187 exp_sym_flag='-bexport'
13188 no_entry_flag='-bnoentry'
13191 # When large executables or shared objects are built, AIX ld can
13192 # have problems creating the table of contents. If linking a library
13193 # or program results in "error TOC overflow" add -mminimal-toc to
13194 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13195 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13198 hardcode_direct=yes
13199 hardcode_direct_absolute=yes
13200 hardcode_libdir_separator=':'
13201 link_all_deplibs=yes
13202 file_list_spec='$wl-f,'
13203 case $with_aix_soname,$aix_use_runtimelinking in
13204 aix,*) ;; # traditional, no import file
13205 svr4,* | *,yes) # use import file
13206 # The Import File defines what to hardcode.
13208 hardcode_direct_absolute=no
13212 if test yes = "$GCC"; then
13213 case $host_os in aix4.[012]|aix4.[012].*)
13214 # We only want to do this on AIX 4.2 and lower, the check
13215 # below for broken collect2 doesn't work under 4.3+
13216 collect2name=`$CC -print-prog-name=collect2`
13217 if test -f "$collect2name" &&
13218 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13220 # We have reworked collect2
13223 # We have old collect2
13224 hardcode_direct=unsupported
13225 # It fails to find uninstalled libraries when the uninstalled
13226 # path is not listed in the libpath. Setting hardcode_minus_L
13227 # to unsupported forces relinking
13228 hardcode_minus_L=yes
13229 hardcode_libdir_flag_spec='-L$libdir'
13230 hardcode_libdir_separator=
13234 shared_flag='-shared'
13235 if test yes = "$aix_use_runtimelinking"; then
13236 shared_flag="$shared_flag "'$wl-G'
13238 # Need to ensure runtime linking is disabled for the traditional
13239 # shared library, or the linker may eventually find shared libraries
13240 # /with/ Import File - we do not want to mix them.
13241 shared_flag_aix='-shared'
13242 shared_flag_svr4='-shared $wl-G'
13245 if test ia64 = "$host_cpu"; then
13246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13247 # chokes on -Wl,-G. The following line is correct:
13250 if test yes = "$aix_use_runtimelinking"; then
13251 shared_flag='$wl-G'
13253 shared_flag='$wl-bM:SRE'
13255 shared_flag_aix='$wl-bM:SRE'
13256 shared_flag_svr4='$wl-G'
13260 export_dynamic_flag_spec='$wl-bexpall'
13261 # It seems that -bexpall does not export symbols beginning with
13262 # underscore (_), so it is better to generate a list of symbols to export.
13263 always_export_symbols=yes
13264 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13265 # Warning - without using the other runtime loading flags (-brtl),
13266 # -berok will link without error, but may produce a broken library.
13267 allow_undefined_flag='-berok'
13268 # Determine the default libpath from the value encoded in an
13269 # empty executable.
13270 if test set = "${lt_cv_aix_libpath+set}"; then
13271 aix_libpath=$lt_cv_aix_libpath
13273 if ${lt_cv_aix_libpath_+:} false; then :
13274 $as_echo_n "(cached) " >&6
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13286 if ac_fn_c_try_link "$LINENO"; then :
13288 lt_aix_libpath_sed='
13289 /Import File Strings/,/^$/ {
13291 s/^0 *\([^ ]*\) *$/\1/
13295 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13296 # Check for a 64-bit object if we didn't find anything.
13297 if test -z "$lt_cv_aix_libpath_"; then
13298 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13301 rm -f core conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext conftest.$ac_ext
13303 if test -z "$lt_cv_aix_libpath_"; then
13304 lt_cv_aix_libpath_=/usr/lib:/lib
13309 aix_libpath=$lt_cv_aix_libpath_
13312 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13313 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
13315 if test ia64 = "$host_cpu"; then
13316 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13317 allow_undefined_flag="-z nodefs"
13318 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"
13320 # Determine the default libpath from the value encoded in an
13321 # empty executable.
13322 if test set = "${lt_cv_aix_libpath+set}"; then
13323 aix_libpath=$lt_cv_aix_libpath
13325 if ${lt_cv_aix_libpath_+:} false; then :
13326 $as_echo_n "(cached) " >&6
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13338 if ac_fn_c_try_link "$LINENO"; then :
13340 lt_aix_libpath_sed='
13341 /Import File Strings/,/^$/ {
13343 s/^0 *\([^ ]*\) *$/\1/
13347 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13348 # Check for a 64-bit object if we didn't find anything.
13349 if test -z "$lt_cv_aix_libpath_"; then
13350 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13353 rm -f core conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13355 if test -z "$lt_cv_aix_libpath_"; then
13356 lt_cv_aix_libpath_=/usr/lib:/lib
13361 aix_libpath=$lt_cv_aix_libpath_
13364 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13365 # Warning - without using the other run time loading flags,
13366 # -berok will link without error, but may produce a broken library.
13367 no_undefined_flag=' $wl-bernotok'
13368 allow_undefined_flag=' $wl-berok'
13369 if test yes = "$with_gnu_ld"; then
13370 # We only use this code for GNU lds that support --whole-archive.
13371 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13373 # Exported symbols can be pulled into shared objects from archives
13374 whole_archive_flag_spec='$convenience'
13376 archive_cmds_need_lc=yes
13377 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13378 # -brtl affects multiple linker settings, -berok does not and is overridden later
13379 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13380 if test svr4 != "$with_aix_soname"; then
13381 # This is similar to how AIX traditionally builds its shared libraries.
13382 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'
13384 if test aix != "$with_aix_soname"; then
13385 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'
13387 # used by -dlpreopen to get the symbols
13388 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13390 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13398 # see comment about AmigaOS4 .so support
13399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13400 archive_expsym_cmds=''
13403 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)'
13404 hardcode_libdir_flag_spec='-L$libdir'
13405 hardcode_minus_L=yes
13411 export_dynamic_flag_spec=-rdynamic
13414 cygwin* | mingw* | pw32* | cegcc*)
13415 # When not using gcc, we currently assume that we are using
13416 # Microsoft Visual C++.
13417 # hardcode_libdir_flag_spec is actually meaningless, as there is
13418 # no search path for DLLs.
13419 case $cc_basename in
13422 hardcode_libdir_flag_spec=' '
13423 allow_undefined_flag=unsupported
13424 always_export_symbols=yes
13426 # Tell ltmain to make .lib files, not .a files.
13428 # Tell ltmain to make .dll files, not .so files.
13430 # FIXME: Setting linknames here is a bad hack.
13431 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13432 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13433 cp "$export_symbols" "$output_objdir/$soname.def";
13434 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13436 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13438 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13440 # The linker will not automatically build a static lib if we build a DLL.
13441 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13442 enable_shared_with_static_runtimes=yes
13443 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13444 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13446 old_postinstall_cmds='chmod 644 $oldlib'
13447 postlink_cmds='lt_outputfile="@OUTPUT@"~
13448 lt_tool_outputfile="@TOOL_OUTPUT@"~
13449 case $lt_outputfile in
13452 lt_outputfile=$lt_outputfile.exe
13453 lt_tool_outputfile=$lt_tool_outputfile.exe
13456 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13457 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13458 $RM "$lt_outputfile.manifest";
13462 # Assume MSVC wrapper
13463 hardcode_libdir_flag_spec=' '
13464 allow_undefined_flag=unsupported
13465 # Tell ltmain to make .lib files, not .a files.
13467 # Tell ltmain to make .dll files, not .so files.
13469 # FIXME: Setting linknames here is a bad hack.
13470 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13471 # The linker will automatically build a .lib file if we build a DLL.
13472 old_archive_from_new_cmds='true'
13473 # FIXME: Should let the user specify the lib program.
13474 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13475 enable_shared_with_static_runtimes=yes
13480 darwin* | rhapsody*)
13483 archive_cmds_need_lc=no
13485 hardcode_automatic=yes
13486 hardcode_shlibpath_var=unsupported
13487 if test yes = "$lt_cv_ld_force_load"; then
13488 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\"`'
13491 whole_archive_flag_spec=''
13493 link_all_deplibs=yes
13494 allow_undefined_flag=$_lt_dar_allow_undefined
13495 case $cc_basename in
13496 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13497 *) _lt_dar_can_shared=$GCC ;;
13499 if test yes = "$_lt_dar_can_shared"; then
13500 output_verbose_link_cmd=func_echo_all
13501 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13502 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13503 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"
13504 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"
13513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_libdir_flag_spec='-L$libdir'
13515 hardcode_shlibpath_var=no
13518 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13519 # support. Future versions do this automatically, but an explicit c++rt0.o
13520 # does not break anything, and helps significantly (at the cost of a little
13523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13524 hardcode_libdir_flag_spec='-R$libdir'
13525 hardcode_direct=yes
13526 hardcode_shlibpath_var=no
13529 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_direct=yes
13533 hardcode_minus_L=yes
13534 hardcode_shlibpath_var=no
13537 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13538 freebsd* | dragonfly*)
13539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13540 hardcode_libdir_flag_spec='-R$libdir'
13541 hardcode_direct=yes
13542 hardcode_shlibpath_var=no
13546 if test yes = "$GCC"; then
13547 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'
13549 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'
13551 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13552 hardcode_libdir_separator=:
13553 hardcode_direct=yes
13555 # hardcode_minus_L: Not really in the search PATH,
13556 # but as the default location of the library.
13557 hardcode_minus_L=yes
13558 export_dynamic_flag_spec='$wl-E'
13562 if test yes,no = "$GCC,$with_gnu_ld"; then
13563 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13565 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13567 if test no = "$with_gnu_ld"; then
13568 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13569 hardcode_libdir_separator=:
13570 hardcode_direct=yes
13571 hardcode_direct_absolute=yes
13572 export_dynamic_flag_spec='$wl-E'
13573 # hardcode_minus_L: Not really in the search PATH,
13574 # but as the default location of the library.
13575 hardcode_minus_L=yes
13580 if test yes,no = "$GCC,$with_gnu_ld"; then
13583 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13586 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13595 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13598 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13602 # Older versions of the 11.00 compiler do not understand -b yet
13603 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13605 $as_echo_n "checking if $CC understands -b... " >&6; }
13606 if ${lt_cv_prog_compiler__b+:} false; then :
13607 $as_echo_n "(cached) " >&6
13609 lt_cv_prog_compiler__b=no
13610 save_LDFLAGS=$LDFLAGS
13611 LDFLAGS="$LDFLAGS -b"
13612 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13613 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13614 # The linker can only warn and ignore the option if not recognized
13615 # So say no if there are warnings
13616 if test -s conftest.err; then
13617 # Append any errors to the config.log.
13618 cat conftest.err 1>&5
13619 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13621 if diff conftest.exp conftest.er2 >/dev/null; then
13622 lt_cv_prog_compiler__b=yes
13625 lt_cv_prog_compiler__b=yes
13629 LDFLAGS=$save_LDFLAGS
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13633 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13635 if test yes = "$lt_cv_prog_compiler__b"; then
13636 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13638 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13644 if test no = "$with_gnu_ld"; then
13645 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13646 hardcode_libdir_separator=:
13651 hardcode_shlibpath_var=no
13654 hardcode_direct=yes
13655 hardcode_direct_absolute=yes
13656 export_dynamic_flag_spec='$wl-E'
13658 # hardcode_minus_L: Not really in the search PATH,
13659 # but as the default location of the library.
13660 hardcode_minus_L=yes
13666 irix5* | irix6* | nonstopux*)
13667 if test yes = "$GCC"; then
13668 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'
13669 # Try to use the -exported_symbol ld option, if it does not
13670 # work, assume that -exports_file does not work either and
13671 # implicitly export all symbols.
13672 # This should be the same for all languages, so no per-tag cache variable.
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13674 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13675 if ${lt_cv_irix_exported_symbol+:} false; then :
13676 $as_echo_n "(cached) " >&6
13678 save_LDFLAGS=$LDFLAGS
13679 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 int foo (void) { return 0; }
13684 if ac_fn_c_try_link "$LINENO"; then :
13685 lt_cv_irix_exported_symbol=yes
13687 lt_cv_irix_exported_symbol=no
13689 rm -f core conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext conftest.$ac_ext
13691 LDFLAGS=$save_LDFLAGS
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13694 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13695 if test yes = "$lt_cv_irix_exported_symbol"; then
13696 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'
13698 link_all_deplibs=no
13700 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'
13701 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'
13703 archive_cmds_need_lc='no'
13704 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13705 hardcode_libdir_separator=:
13707 link_all_deplibs=yes
13711 case $cc_basename in
13713 # Fabrice Bellard et al's Tiny C Compiler
13715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13720 netbsd* | netbsdelf*-gnu)
13721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13724 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13726 hardcode_libdir_flag_spec='-R$libdir'
13727 hardcode_direct=yes
13728 hardcode_shlibpath_var=no
13732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13733 hardcode_direct=yes
13734 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13735 hardcode_libdir_separator=:
13736 hardcode_shlibpath_var=no
13742 openbsd* | bitrig*)
13743 if test -f /usr/libexec/ld.so; then
13744 hardcode_direct=yes
13745 hardcode_shlibpath_var=no
13746 hardcode_direct_absolute=yes
13747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13749 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13750 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13751 export_dynamic_flag_spec='$wl-E'
13753 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13754 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13762 hardcode_libdir_flag_spec='-L$libdir'
13763 hardcode_minus_L=yes
13764 allow_undefined_flag=unsupported
13766 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13767 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13768 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13769 $ECHO EXPORTS >> $output_objdir/$libname.def~
13770 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13771 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13772 emximp -o $lib $output_objdir/$libname.def'
13773 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13774 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13775 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13776 $ECHO EXPORTS >> $output_objdir/$libname.def~
13777 prefix_cmds="$SED"~
13778 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13779 prefix_cmds="$prefix_cmds -e 1d";
13781 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13782 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13783 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13784 emximp -o $lib $output_objdir/$libname.def'
13785 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13786 enable_shared_with_static_runtimes=yes
13790 if test yes = "$GCC"; then
13791 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13792 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'
13794 allow_undefined_flag=' -expect_unresolved \*'
13795 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'
13797 archive_cmds_need_lc='no'
13798 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13799 hardcode_libdir_separator=:
13802 osf4* | osf5*) # as osf3* with the addition of -msym flag
13803 if test yes = "$GCC"; then
13804 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13805 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'
13806 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13808 allow_undefined_flag=' -expect_unresolved \*'
13809 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'
13810 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~
13811 $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'
13813 # Both c and cxx compiler support -rpath directly
13814 hardcode_libdir_flag_spec='-rpath $libdir'
13816 archive_cmds_need_lc='no'
13817 hardcode_libdir_separator=:
13821 no_undefined_flag=' -z defs'
13822 if test yes = "$GCC"; then
13824 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13825 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13826 $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'
13828 case `$CC -V 2>&1` in
13831 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13833 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13837 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13839 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13843 hardcode_libdir_flag_spec='-R$libdir'
13844 hardcode_shlibpath_var=no
13846 solaris2.[0-5] | solaris2.[0-5].*) ;;
13848 # The compiler driver will combine and reorder linker options,
13849 # but understands '-z linker_flag'. GCC discards it without '$wl',
13850 # but is careful enough not to reorder.
13851 # Supported since Solaris 2.6 (maybe 2.5.1?)
13852 if test yes = "$GCC"; then
13853 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13855 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13859 link_all_deplibs=yes
13863 if test sequent = "$host_vendor"; then
13864 # Use $CC to link under sequent, because it throws in some extra .o
13865 # files that make .init and .fini sections work.
13866 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13868 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13870 hardcode_libdir_flag_spec='-L$libdir'
13871 hardcode_direct=yes
13872 hardcode_minus_L=yes
13873 hardcode_shlibpath_var=no
13877 case $host_vendor in
13879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13880 hardcode_direct=yes # is this really true???
13883 ## LD is ld it makes a PLAMLIB
13884 ## CC just makes a GrossModule.
13885 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13886 reload_cmds='$CC -r -o $output$reload_objs'
13890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13894 runpath_var='LD_RUN_PATH'
13895 hardcode_shlibpath_var=no
13899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13900 hardcode_shlibpath_var=no
13901 export_dynamic_flag_spec='-Bexport'
13905 if test -d /usr/nec; then
13906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13907 hardcode_shlibpath_var=no
13908 runpath_var=LD_RUN_PATH
13909 hardcode_runpath_var=yes
13914 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13915 no_undefined_flag='$wl-z,text'
13916 archive_cmds_need_lc=no
13917 hardcode_shlibpath_var=no
13918 runpath_var='LD_RUN_PATH'
13920 if test yes = "$GCC"; then
13921 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13922 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13924 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13925 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13929 sysv5* | sco3.2v5* | sco5v6*)
13930 # Note: We CANNOT use -z defs as we might desire, because we do not
13931 # link with -lc, and that would cause any symbols used from libc to
13932 # always be unresolved, which means just about no library would
13933 # ever link correctly. If we're not using GNU ld we use -z text
13934 # though, which does catch some bad symbols but isn't as heavy-handed
13936 no_undefined_flag='$wl-z,text'
13937 allow_undefined_flag='$wl-z,nodefs'
13938 archive_cmds_need_lc=no
13939 hardcode_shlibpath_var=no
13940 hardcode_libdir_flag_spec='$wl-R,$libdir'
13941 hardcode_libdir_separator=':'
13942 link_all_deplibs=yes
13943 export_dynamic_flag_spec='$wl-Bexport'
13944 runpath_var='LD_RUN_PATH'
13946 if test yes = "$GCC"; then
13947 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13948 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13950 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957 hardcode_libdir_flag_spec='-L$libdir'
13958 hardcode_shlibpath_var=no
13966 if test sni = "$host_vendor"; then
13968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13969 export_dynamic_flag_spec='$wl-Blargedynsym'
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13976 $as_echo "$ld_shlibs" >&6; }
13977 test no = "$ld_shlibs" && can_build_shared=no
13979 with_gnu_ld=$with_gnu_ld
13996 # Do we need to explicitly link libc?
13998 case "x$archive_cmds_need_lc" in
14000 # Assume -lc should be added
14001 archive_cmds_need_lc=yes
14003 if test yes,yes = "$GCC,$enable_shared"; then
14004 case $archive_cmds in
14006 # FIXME: we may have to deal with multi-command sequences.
14009 # Test whether the compiler implicitly links with -lc since on some
14010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14011 # to ld, don't add -lc before -lgcc.
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14013 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14014 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14015 $as_echo_n "(cached) " >&6
14018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14021 (eval $ac_compile) 2>&5
14023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14024 test $ac_status = 0; } 2>conftest.err; then
14027 libobjs=conftest.$ac_objext
14029 wl=$lt_prog_compiler_wl
14030 pic_flag=$lt_prog_compiler_pic
14036 lt_save_allow_undefined_flag=$allow_undefined_flag
14037 allow_undefined_flag=
14038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14039 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14042 test $ac_status = 0; }
14044 lt_cv_archive_cmds_need_lc=no
14046 lt_cv_archive_cmds_need_lc=yes
14048 allow_undefined_flag=$lt_save_allow_undefined_flag
14050 cat conftest.err 1>&5
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14056 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14057 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14216 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14218 if test yes = "$GCC"; then
14220 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14221 *) lt_awk_arg='/^libraries:/' ;;
14224 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14225 *) lt_sed_strip_eq='s|=/|/|g' ;;
14227 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14228 case $lt_search_path_spec in
14230 # if the path contains ";" then we assume it to be the separator
14231 # otherwise default to the standard path separator (i.e. ":") - it is
14232 # assumed that no part of a normal pathname contains ";" but that should
14233 # okay in the real world where ";" in dirpaths is itself problematic.
14234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14237 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14240 # Ok, now we have the path, separated by spaces, we can step through it
14241 # and add multilib dir if necessary...
14242 lt_tmp_lt_search_path_spec=
14243 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14244 # ...but if some path component already ends with the multilib dir we assume
14245 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14246 case "$lt_multi_os_dir; $lt_search_path_spec " in
14247 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14251 for lt_sys_path in $lt_search_path_spec; do
14252 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14254 elif test -n "$lt_multi_os_dir"; then
14255 test -d "$lt_sys_path" && \
14256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14259 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14260 BEGIN {RS = " "; FS = "/|\n";} {
14263 for (lt_i = NF; lt_i > 0; lt_i--) {
14264 if ($lt_i != "" && $lt_i != ".") {
14265 if ($lt_i == "..") {
14268 if (lt_count == 0) {
14269 lt_foo = "/" $lt_i lt_foo;
14276 if (lt_foo != "") { lt_freq[lt_foo]++; }
14277 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14279 # AWK program above erroneously prepends '/' to C:/dos/paths
14282 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14283 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14285 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14289 library_names_spec=
14290 libname_spec='lib$name'
14294 postuninstall_cmds=
14298 shlibpath_overrides_runpath=unknown
14300 dynamic_linker="$host_os ld.so"
14301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14302 need_lib_prefix=unknown
14303 hardcode_into_libs=no
14305 # when you set need_version to no, make sure it does not cause -set_version
14306 # flags to be left without arguments
14307 need_version=unknown
14313 version_type=linux # correct to gnu/linux during the next big refactor
14314 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14315 shlibpath_var=LIBPATH
14317 # AIX 3 has no versioning support, so we append a major version to the name.
14318 soname_spec='$libname$release$shared_ext$major'
14322 version_type=linux # correct to gnu/linux during the next big refactor
14325 hardcode_into_libs=yes
14326 if test ia64 = "$host_cpu"; then
14327 # AIX 5 supports IA64
14328 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14329 shlibpath_var=LD_LIBRARY_PATH
14331 # With GCC up to 2.95.x, collect2 would create an import file
14332 # for dependence libraries. The import file would start with
14333 # the line '#! .'. This would cause the generated library to
14334 # depend on '.', always an invalid library. This was fixed in
14335 # development snapshots of GCC prior to 3.0.
14337 aix4 | aix4.[01] | aix4.[01].*)
14338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14340 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14343 can_build_shared=no
14347 # Using Import Files as archive members, it is possible to support
14348 # filename-based versioning of shared library archives on AIX. While
14349 # this would work for both with and without runtime linking, it will
14350 # prevent static linking of such archives. So we do filename-based
14351 # shared library versioning with .so extension only, which is used
14352 # when both runtime linking and shared linking is enabled.
14353 # Unfortunately, runtime linking may impact performance, so we do
14354 # not want this to be the default eventually. Also, we use the
14355 # versioned .so libs for executables only if there is the -brtl
14356 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14357 # To allow for filename-based versioning support, we need to create
14358 # libNAME.so.V as an archive file, containing:
14359 # *) an Import File, referring to the versioned filename of the
14360 # archive as well as the shared archive member, telling the
14361 # bitwidth (32 or 64) of that shared object, and providing the
14362 # list of exported symbols of that shared object, eventually
14363 # decorated with the 'weak' keyword
14364 # *) the shared object with the F_LOADONLY flag set, to really avoid
14365 # it being seen by the linker.
14366 # At run time we better use the real file rather than another symlink,
14367 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14369 case $with_aix_soname,$aix_use_runtimelinking in
14370 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14371 # soname into executable. Probably we can add versioning support to
14372 # collect2, so additional links can be useful in future.
14373 aix,yes) # traditional libtool
14374 dynamic_linker='AIX unversionable lib.so'
14375 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14376 # instead of lib<name>.a to let people know that these are not
14377 # typical AIX shared libraries.
14378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14380 aix,no) # traditional AIX only
14381 dynamic_linker='AIX lib.a(lib.so.V)'
14382 # We preserve .a as extension for shared libraries through AIX4.2
14383 # and later when we are not doing run time linking.
14384 library_names_spec='$libname$release.a $libname.a'
14385 soname_spec='$libname$release$shared_ext$major'
14387 svr4,*) # full svr4 only
14388 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14389 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14390 # We do not specify a path in Import Files, so LIBPATH fires.
14391 shlibpath_overrides_runpath=yes
14393 *,yes) # both, prefer svr4
14394 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14395 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14396 # unpreferred sharedlib libNAME.a needs extra handling
14397 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"'
14398 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"'
14399 # We do not specify a path in Import Files, so LIBPATH fires.
14400 shlibpath_overrides_runpath=yes
14402 *,no) # both, prefer aix
14403 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14404 library_names_spec='$libname$release.a $libname.a'
14405 soname_spec='$libname$release$shared_ext$major'
14406 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14407 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)'
14408 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"'
14411 shlibpath_var=LIBPATH
14418 # Since July 2007 AmigaOS4 officially supports .so libraries.
14419 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14423 library_names_spec='$libname.ixlibrary $libname.a'
14424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14425 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'
14431 library_names_spec='$libname$shared_ext'
14432 dynamic_linker="$host_os ld.so"
14433 shlibpath_var=LIBRARY_PATH
14437 version_type=linux # correct to gnu/linux during the next big refactor
14439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14440 soname_spec='$libname$release$shared_ext$major'
14441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14445 # the default ld.so.conf also contains /usr/contrib/lib and
14446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14447 # libtool to hard-code these into programs
14450 cygwin* | mingw* | pw32* | cegcc*)
14451 version_type=windows
14456 case $GCC,$cc_basename in
14459 library_names_spec='$libname.dll.a'
14460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14461 postinstall_cmds='base_file=`basename \$file`~
14462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14463 dldir=$destdir/`dirname \$dlpath`~
14464 test -d \$dldir || mkdir -p \$dldir~
14465 $install_prog $dir/$dlname \$dldir/$dlname~
14466 chmod a+x \$dldir/$dlname~
14467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14471 dlpath=$dir/\$dldll~
14473 shlibpath_overrides_runpath=yes
14477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14478 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14480 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14483 # MinGW DLLs use traditional 'lib' prefix
14484 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14487 # pw32 DLLs use 'pw' prefix rather than 'lib'
14488 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14491 dynamic_linker='Win32 ld.exe'
14496 libname_spec='$name'
14497 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14498 library_names_spec='$libname.dll.lib'
14502 sys_lib_search_path_spec=
14505 for lt_path in $LIB
14508 # Let DOS variable expansion print the short 8.3 style file name.
14509 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14510 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14513 # Convert to MSYS style.
14514 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14517 # Convert to unix form, then to dos form, then back to unix form
14518 # but this time dos style (no spaces!) so that the unix form looks
14519 # like /cygdrive/c/PROGRA~1:/cygdr...
14520 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14521 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14522 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14525 sys_lib_search_path_spec=$LIB
14526 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14527 # It is most probably a Windows format PATH.
14528 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14530 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14532 # FIXME: find the short name or the path components, as spaces are
14533 # common. (e.g. "Program Files" -> "PROGRA~1")
14537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14538 postinstall_cmds='base_file=`basename \$file`~
14539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14540 dldir=$destdir/`dirname \$dlpath`~
14541 test -d \$dldir || mkdir -p \$dldir~
14542 $install_prog $dir/$dlname \$dldir/$dlname'
14543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14544 dlpath=$dir/\$dldll~
14546 shlibpath_overrides_runpath=yes
14547 dynamic_linker='Win32 link.exe'
14551 # Assume MSVC wrapper
14552 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14553 dynamic_linker='Win32 ld.exe'
14556 # FIXME: first we should search . and the directory the executable is in
14560 darwin* | rhapsody*)
14561 dynamic_linker="$host_os dyld"
14562 version_type=darwin
14565 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14566 soname_spec='$libname$release$major$shared_ext'
14567 shlibpath_overrides_runpath=yes
14568 shlibpath_var=DYLD_LIBRARY_PATH
14569 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14576 version_type=linux # correct to gnu/linux during the next big refactor
14579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14580 soname_spec='$libname$release$shared_ext$major'
14581 shlibpath_var=LD_LIBRARY_PATH
14584 freebsd* | dragonfly*)
14585 # DragonFly does not have aout. When/if they implement a new
14586 # versioning mechanism, adjust this.
14587 if test -x /usr/bin/objformat; then
14588 objformat=`/usr/bin/objformat`
14591 freebsd[23].*) objformat=aout ;;
14592 *) objformat=elf ;;
14595 version_type=freebsd-$objformat
14596 case $version_type in
14598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14599 soname_spec='$libname$release$shared_ext$major'
14604 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14608 shlibpath_var=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath=yes
14613 freebsd3.[01]* | freebsdelf3.[01]*)
14614 shlibpath_overrides_runpath=yes
14615 hardcode_into_libs=yes
14617 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14618 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14619 shlibpath_overrides_runpath=no
14620 hardcode_into_libs=yes
14622 *) # from 4.6 on, and DragonFly
14623 shlibpath_overrides_runpath=yes
14624 hardcode_into_libs=yes
14630 version_type=linux # correct to gnu/linux during the next big refactor
14633 dynamic_linker="$host_os runtime_loader"
14634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14635 soname_spec='$libname$release$shared_ext$major'
14636 shlibpath_var=LIBRARY_PATH
14637 shlibpath_overrides_runpath=no
14638 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14639 hardcode_into_libs=yes
14642 hpux9* | hpux10* | hpux11*)
14643 # Give a soname corresponding to the major version so that dld.sl refuses to
14644 # link against other versions.
14651 hardcode_into_libs=yes
14652 dynamic_linker="$host_os dld.so"
14653 shlibpath_var=LD_LIBRARY_PATH
14654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14656 soname_spec='$libname$release$shared_ext$major'
14657 if test 32 = "$HPUX_IA64_MODE"; then
14658 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14659 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14662 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14667 hardcode_into_libs=yes
14668 dynamic_linker="$host_os dld.sl"
14669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14672 soname_spec='$libname$release$shared_ext$major'
14673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14678 dynamic_linker="$host_os dld.sl"
14679 shlibpath_var=SHLIB_PATH
14680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14682 soname_spec='$libname$release$shared_ext$major'
14685 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14686 postinstall_cmds='chmod 555 $lib'
14687 # or fails outright, so override atomically:
14688 install_override_mode=555
14692 version_type=linux # correct to gnu/linux during the next big refactor
14695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14696 soname_spec='$libname$release$shared_ext$major'
14697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=no
14700 hardcode_into_libs=yes
14703 irix5* | irix6* | nonstopux*)
14705 nonstopux*) version_type=nonstopux ;;
14707 if test yes = "$lt_cv_prog_gnu_ld"; then
14708 version_type=linux # correct to gnu/linux during the next big refactor
14715 soname_spec='$libname$release$shared_ext$major'
14716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14718 irix5* | nonstopux*)
14719 libsuff= shlibsuff=
14722 case $LD in # libtool.m4 will add one of these switches to LD
14723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14724 libsuff= shlibsuff= libmagic=32-bit;;
14725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14726 libsuff=32 shlibsuff=N32 libmagic=N32;;
14727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14728 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14729 *) libsuff= shlibsuff= libmagic=never-match;;
14733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14734 shlibpath_overrides_runpath=no
14735 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14736 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14737 hardcode_into_libs=yes
14740 # No shared lib support for Linux oldld, aout, or coff.
14741 linux*oldld* | linux*aout* | linux*coff*)
14746 version_type=none # Android doesn't support versioned libraries.
14749 library_names_spec='$libname$release$shared_ext'
14750 soname_spec='$libname$release$shared_ext'
14752 shlibpath_var=LD_LIBRARY_PATH
14753 shlibpath_overrides_runpath=yes
14755 # This implies no fast_install, which is unacceptable.
14756 # Some rework will be needed to allow for fast_install
14757 # before this can be enabled.
14758 hardcode_into_libs=yes
14760 dynamic_linker='Android linker'
14761 # Don't embed -rpath directories since the linker doesn't support them.
14762 hardcode_libdir_flag_spec='-L$libdir'
14765 # This must be glibc/ELF.
14766 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14767 version_type=linux # correct to gnu/linux during the next big refactor
14770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14771 soname_spec='$libname$release$shared_ext$major'
14772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14773 shlibpath_var=LD_LIBRARY_PATH
14774 shlibpath_overrides_runpath=no
14776 # Some binutils ld are patched to set DT_RUNPATH
14777 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14778 $as_echo_n "(cached) " >&6
14780 lt_cv_shlibpath_overrides_runpath=no
14781 save_LDFLAGS=$LDFLAGS
14782 save_libdir=$libdir
14783 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14784 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14795 if ac_fn_c_try_link "$LINENO"; then :
14796 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14797 lt_cv_shlibpath_overrides_runpath=yes
14800 rm -f core conftest.err conftest.$ac_objext \
14801 conftest$ac_exeext conftest.$ac_ext
14802 LDFLAGS=$save_LDFLAGS
14803 libdir=$save_libdir
14807 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14809 # This implies no fast_install, which is unacceptable.
14810 # Some rework will be needed to allow for fast_install
14811 # before this can be enabled.
14812 hardcode_into_libs=yes
14814 # Ideally, we could use ldconfig to report *all* directores which are
14815 # searched for libraries, however this is still not possible. Aside from not
14816 # being certain /sbin/ldconfig is available, command
14817 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14818 # even though it is searched at run-time. Try to do the best guess by
14819 # appending ld.so.conf contents (and includes) to the search path.
14820 if test -f /etc/ld.so.conf; then
14821 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' ' '`
14822 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14825 # We used to test for /lib/ld.so.1 and disable shared libraries on
14826 # powerpc, because MkLinux only supported shared libraries with the
14827 # GNU dynamic linker. Since this was broken with cross compilers,
14828 # most powerpc-linux boxes support dynamic linking these days and
14829 # people can always --disable-shared, the test was removed, and we
14830 # assume the GNU/Linux dynamic linker is in use.
14831 dynamic_linker='GNU/Linux ld.so'
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14839 soname_spec='${libname}${release}${shared_ext}$major'
14840 shlibpath_var=LD_LIBRARY_PATH
14841 shlibpath_overrides_runpath=no
14842 hardcode_into_libs=yes
14843 dynamic_linker='NetBSD ld.elf_so'
14850 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14851 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14853 dynamic_linker='NetBSD (a.out) ld.so'
14855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14856 soname_spec='$libname$release$shared_ext$major'
14857 dynamic_linker='NetBSD ld.elf_so'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=yes
14861 hardcode_into_libs=yes
14865 version_type=linux # correct to gnu/linux during the next big refactor
14866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14867 shlibpath_var=LD_LIBRARY_PATH
14868 shlibpath_overrides_runpath=yes
14875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14876 soname_spec='$libname$release$shared_ext$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 shlibpath_overrides_runpath=no
14879 hardcode_into_libs=yes
14880 dynamic_linker='ldqnx.so'
14883 openbsd* | bitrig*)
14885 sys_lib_dlsearch_path_spec=/usr/lib
14887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14892 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14894 shlibpath_var=LD_LIBRARY_PATH
14895 shlibpath_overrides_runpath=yes
14899 libname_spec='$name'
14900 version_type=windows
14904 # OS/2 can only load a DLL with a base name of 8 characters or less.
14905 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14906 v=$($ECHO $release$versuffix | tr -d .-);
14907 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14908 $ECHO $n$v`$shared_ext'
14909 library_names_spec='${libname}_dll.$libext'
14910 dynamic_linker='OS/2 ld.exe'
14911 shlibpath_var=BEGINLIBPATH
14912 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14914 postinstall_cmds='base_file=`basename \$file`~
14915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14916 dldir=$destdir/`dirname \$dlpath`~
14917 test -d \$dldir || mkdir -p \$dldir~
14918 $install_prog $dir/$dlname \$dldir/$dlname~
14919 chmod a+x \$dldir/$dlname~
14920 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14921 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14924 dlpath=$dir/\$dldll~
14928 osf3* | osf4* | osf5*)
14932 soname_spec='$libname$release$shared_ext$major'
14933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14944 version_type=linux # correct to gnu/linux during the next big refactor
14947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14948 soname_spec='$libname$release$shared_ext$major'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 shlibpath_overrides_runpath=yes
14951 hardcode_into_libs=yes
14952 # ldd complains unless libraries are executable
14953 postinstall_cmds='chmod +x $lib'
14958 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14960 shlibpath_var=LD_LIBRARY_PATH
14961 shlibpath_overrides_runpath=yes
14962 if test yes = "$with_gnu_ld"; then
14969 version_type=linux # correct to gnu/linux during the next big refactor
14970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14971 soname_spec='$libname$release$shared_ext$major'
14972 shlibpath_var=LD_LIBRARY_PATH
14973 case $host_vendor in
14975 shlibpath_overrides_runpath=no
14977 runpath_var=LD_RUN_PATH
14985 shlibpath_overrides_runpath=no
14986 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14992 if test -d /usr/nec; then
14993 version_type=linux # correct to gnu/linux during the next big refactor
14994 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14995 soname_spec='$libname$shared_ext.$major'
14996 shlibpath_var=LD_LIBRARY_PATH
15000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15005 soname_spec='$libname$release$shared_ext$major'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 shlibpath_overrides_runpath=yes
15008 hardcode_into_libs=yes
15009 if test yes = "$with_gnu_ld"; then
15010 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15012 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15015 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15019 sys_lib_dlsearch_path_spec='/usr/lib'
15023 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15024 version_type=linux # correct to gnu/linux during the next big refactor
15027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15028 shlibpath_var=LD_LIBRARY_PATH
15029 shlibpath_overrides_runpath=no
15030 hardcode_into_libs=yes
15034 version_type=linux # correct to gnu/linux during the next big refactor
15035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15036 soname_spec='$libname$release$shared_ext$major'
15037 shlibpath_var=LD_LIBRARY_PATH
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15045 $as_echo "$dynamic_linker" >&6; }
15046 test no = "$dynamic_linker" && can_build_shared=no
15048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15049 if test yes = "$GCC"; then
15050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15053 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15054 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15057 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15058 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15061 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15062 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15064 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15065 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15067 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15068 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15167 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15169 if test -n "$hardcode_libdir_flag_spec" ||
15170 test -n "$runpath_var" ||
15171 test yes = "$hardcode_automatic"; then
15173 # We can hardcode non-existent directories.
15174 if test no != "$hardcode_direct" &&
15175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15176 # have to relink, otherwise we might link with an installed library
15177 # when we should be linking with a yet-to-be-installed one
15178 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15179 test no != "$hardcode_minus_L"; then
15180 # Linking always hardcodes the temporary library directory.
15181 hardcode_action=relink
15183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15184 hardcode_action=immediate
15187 # We cannot hardcode anything, or else we can only hardcode existing
15189 hardcode_action=unsupported
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15192 $as_echo "$hardcode_action" >&6; }
15194 if test relink = "$hardcode_action" ||
15195 test yes = "$inherit_rpath"; then
15196 # Fast installation is not supported
15197 enable_fast_install=no
15198 elif test yes = "$shlibpath_overrides_runpath" ||
15199 test no = "$enable_shared"; then
15200 # Fast installation is not necessary
15201 enable_fast_install=needless
15209 if test yes != "$enable_dlopen"; then
15210 enable_dlopen=unknown
15211 enable_dlopen_self=unknown
15212 enable_dlopen_self_static=unknown
15219 lt_cv_dlopen=load_add_on
15221 lt_cv_dlopen_self=yes
15224 mingw* | pw32* | cegcc*)
15225 lt_cv_dlopen=LoadLibrary
15230 lt_cv_dlopen=dlopen
15235 # if libdl is installed we need to link against it
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15237 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15238 if ${ac_cv_lib_dl_dlopen+:} false; then :
15239 $as_echo_n "(cached) " >&6
15241 ac_check_lib_save_LIBS=$LIBS
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h. */
15258 if ac_fn_c_try_link "$LINENO"; then :
15259 ac_cv_lib_dl_dlopen=yes
15261 ac_cv_lib_dl_dlopen=no
15263 rm -f core conftest.err conftest.$ac_objext \
15264 conftest$ac_exeext conftest.$ac_ext
15265 LIBS=$ac_check_lib_save_LIBS
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15269 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15270 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15275 lt_cv_dlopen_self=yes
15282 # Don't try to run any link tests for TPF. We know it's impossible
15283 # because TPF is a cross-compiler, and we know how we open DSOs.
15284 lt_cv_dlopen=dlopen
15286 lt_cv_dlopen_self=no
15290 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15291 if test "x$ac_cv_func_shl_load" = xyes; then :
15292 lt_cv_dlopen=shl_load
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15295 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15296 if ${ac_cv_lib_dld_shl_load+:} false; then :
15297 $as_echo_n "(cached) " >&6
15299 ac_check_lib_save_LIBS=$LIBS
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h. */
15311 return shl_load ();
15316 if ac_fn_c_try_link "$LINENO"; then :
15317 ac_cv_lib_dld_shl_load=yes
15319 ac_cv_lib_dld_shl_load=no
15321 rm -f core conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15326 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15327 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15328 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15330 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15331 if test "x$ac_cv_func_dlopen" = xyes; then :
15332 lt_cv_dlopen=dlopen
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15336 if ${ac_cv_lib_dl_dlopen+:} false; then :
15337 $as_echo_n "(cached) " >&6
15339 ac_check_lib_save_LIBS=$LIBS
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15356 if ac_fn_c_try_link "$LINENO"; then :
15357 ac_cv_lib_dl_dlopen=yes
15359 ac_cv_lib_dl_dlopen=no
15361 rm -f core conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15363 LIBS=$ac_check_lib_save_LIBS
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15366 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15367 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15368 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15371 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15372 if ${ac_cv_lib_svld_dlopen+:} false; then :
15373 $as_echo_n "(cached) " >&6
15375 ac_check_lib_save_LIBS=$LIBS
15376 LIBS="-lsvld $LIBS"
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15392 if ac_fn_c_try_link "$LINENO"; then :
15393 ac_cv_lib_svld_dlopen=yes
15395 ac_cv_lib_svld_dlopen=no
15397 rm -f core conftest.err conftest.$ac_objext \
15398 conftest$ac_exeext conftest.$ac_ext
15399 LIBS=$ac_check_lib_save_LIBS
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15402 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15403 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15404 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15407 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15408 if ${ac_cv_lib_dld_dld_link+:} false; then :
15409 $as_echo_n "(cached) " >&6
15411 ac_check_lib_save_LIBS=$LIBS
15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15423 return dld_link ();
15428 if ac_fn_c_try_link "$LINENO"; then :
15429 ac_cv_lib_dld_dld_link=yes
15431 ac_cv_lib_dld_dld_link=no
15433 rm -f core conftest.err conftest.$ac_objext \
15434 conftest$ac_exeext conftest.$ac_ext
15435 LIBS=$ac_check_lib_save_LIBS
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15438 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15439 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15440 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15461 if test no = "$lt_cv_dlopen"; then
15467 case $lt_cv_dlopen in
15469 save_CPPFLAGS=$CPPFLAGS
15470 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15472 save_LDFLAGS=$LDFLAGS
15473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15476 LIBS="$lt_cv_dlopen_libs $LIBS"
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15479 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15480 if ${lt_cv_dlopen_self+:} false; then :
15481 $as_echo_n "(cached) " >&6
15483 if test yes = "$cross_compiling"; then :
15484 lt_cv_dlopen_self=cross
15486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15487 lt_status=$lt_dlunknown
15488 cat > conftest.$ac_ext <<_LT_EOF
15489 #line $LINENO "configure"
15490 #include "confdefs.h"
15499 # define LT_DLGLOBAL RTLD_GLOBAL
15502 # define LT_DLGLOBAL DL_GLOBAL
15504 # define LT_DLGLOBAL 0
15508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15509 find out it does not work in some platform. */
15510 #ifndef LT_DLLAZY_OR_NOW
15512 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15515 # define LT_DLLAZY_OR_NOW DL_LAZY
15518 # define LT_DLLAZY_OR_NOW RTLD_NOW
15521 # define LT_DLLAZY_OR_NOW DL_NOW
15523 # define LT_DLLAZY_OR_NOW 0
15530 /* When -fvisibility=hidden is used, assume the code has been annotated
15531 correspondingly for the symbols needed. */
15532 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15533 int fnord () __attribute__((visibility("default")));
15536 int fnord () { return 42; }
15539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15540 int status = $lt_dlunknown;
15544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15547 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15548 else puts (dlerror ());
15550 /* dlclose (self); */
15558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15559 (eval $ac_link) 2>&5
15561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15562 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15563 (./conftest; exit; ) >&5 2>/dev/null
15565 case x$lt_status in
15566 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15567 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15568 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15571 # compilation failed
15572 lt_cv_dlopen_self=no
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15580 $as_echo "$lt_cv_dlopen_self" >&6; }
15582 if test yes = "$lt_cv_dlopen_self"; then
15583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15585 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15586 if ${lt_cv_dlopen_self_static+:} false; then :
15587 $as_echo_n "(cached) " >&6
15589 if test yes = "$cross_compiling"; then :
15590 lt_cv_dlopen_self_static=cross
15592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15593 lt_status=$lt_dlunknown
15594 cat > conftest.$ac_ext <<_LT_EOF
15595 #line $LINENO "configure"
15596 #include "confdefs.h"
15605 # define LT_DLGLOBAL RTLD_GLOBAL
15608 # define LT_DLGLOBAL DL_GLOBAL
15610 # define LT_DLGLOBAL 0
15614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15615 find out it does not work in some platform. */
15616 #ifndef LT_DLLAZY_OR_NOW
15618 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15621 # define LT_DLLAZY_OR_NOW DL_LAZY
15624 # define LT_DLLAZY_OR_NOW RTLD_NOW
15627 # define LT_DLLAZY_OR_NOW DL_NOW
15629 # define LT_DLLAZY_OR_NOW 0
15636 /* When -fvisibility=hidden is used, assume the code has been annotated
15637 correspondingly for the symbols needed. */
15638 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15639 int fnord () __attribute__((visibility("default")));
15642 int fnord () { return 42; }
15645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15646 int status = $lt_dlunknown;
15650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15653 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15654 else puts (dlerror ());
15656 /* dlclose (self); */
15664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15665 (eval $ac_link) 2>&5
15667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15668 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15669 (./conftest; exit; ) >&5 2>/dev/null
15671 case x$lt_status in
15672 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15673 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15674 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15677 # compilation failed
15678 lt_cv_dlopen_self_static=no
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15686 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15689 CPPFLAGS=$save_CPPFLAGS
15690 LDFLAGS=$save_LDFLAGS
15695 case $lt_cv_dlopen_self in
15696 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15697 *) enable_dlopen_self=unknown ;;
15700 case $lt_cv_dlopen_self_static in
15701 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15702 *) enable_dlopen_self_static=unknown ;;
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15725 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15726 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15727 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15728 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15730 $as_echo "yes" >&6; }
15732 # FIXME - insert some real tests, host_os isn't really good enough
15735 if test -n "$STRIP"; then
15736 striplib="$STRIP -x"
15737 old_striplib="$STRIP -S"
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15739 $as_echo "yes" >&6; }
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15742 $as_echo "no" >&6; }
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15747 $as_echo "no" >&6; }
15763 # Report what library types will actually be built
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15765 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15767 $as_echo "$can_build_shared" >&6; }
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15770 $as_echo_n "checking whether to build shared libraries... " >&6; }
15771 test no = "$can_build_shared" && enable_shared=no
15773 # On AIX, shared libraries and static libraries use the same namespace, and
15774 # are all built from PIC.
15777 test yes = "$enable_shared" && enable_static=no
15778 if test -n "$RANLIB"; then
15779 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15780 postinstall_cmds='$RANLIB $lib'
15785 if test ia64 != "$host_cpu"; then
15786 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15787 yes,aix,yes) ;; # shared object as lib.so file only
15788 yes,svr4,*) ;; # shared object as lib.so archive member only
15789 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15795 $as_echo "$enable_shared" >&6; }
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15798 $as_echo_n "checking whether to build static libraries... " >&6; }
15799 # Make sure either enable_shared or enable_static is yes.
15800 test yes = "$enable_shared" || enable_static=yes
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15802 $as_echo "$enable_static" >&6; }
15809 ac_cpp='$CPP $CPPFLAGS'
15810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15830 ac_config_commands="$ac_config_commands libtool"
15835 # Only expand once:
15838 ## --------------------- ##
15839 ## End of libtool code ##
15840 ## --------------------- ##
15843 # Verify if finally libtool shared libraries will be built
15846 case "x$enable_shared" in # ((
15848 xc_lt_build_shared=$enable_shared
15851 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15856 # Verify if finally libtool static libraries will be built
15859 case "x$enable_static" in # ((
15861 xc_lt_build_static=$enable_static
15864 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15869 # Verify if libtool shared libraries should be linked using flag -version-info
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15873 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15874 xc_lt_shlib_use_version_info='yes'
15875 if test "x$version_type" = 'xnone'; then
15876 xc_lt_shlib_use_version_info='no'
15878 case $host_os in # (
15880 xc_lt_shlib_use_version_info='yes'
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15884 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15887 # Verify if libtool shared libraries should be linked using flag -no-undefined
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15891 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15892 xc_lt_shlib_use_no_undefined='no'
15893 if test "x$allow_undefined" = 'xno'; then
15894 xc_lt_shlib_use_no_undefined='yes'
15895 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15896 xc_lt_shlib_use_no_undefined='yes'
15898 case $host_os in # (
15899 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15900 xc_lt_shlib_use_no_undefined='yes'
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15904 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15907 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15911 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15912 xc_lt_shlib_use_mimpure_text='no'
15913 case $host_os in # (
15915 if test "x$GCC" = 'xyes'; then
15916 xc_lt_shlib_use_mimpure_text='yes'
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15921 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15924 # Find out wether libtool libraries would be built wit PIC
15927 case "x$pic_mode" in # ((((
15929 xc_lt_build_shared_with_pic='yes'
15930 xc_lt_build_static_with_pic='no'
15933 xc_lt_build_shared_with_pic='yes'
15934 xc_lt_build_static_with_pic='yes'
15937 xc_lt_build_shared_with_pic='no'
15938 xc_lt_build_static_with_pic='no'
15941 xc_lt_build_shared_with_pic='unknown'
15942 xc_lt_build_static_with_pic='unknown'
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15944 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15948 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15950 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15952 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15954 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15957 # Verify if libtool shared libraries will be built while static not built
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15961 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15962 if test "$xc_lt_build_shared" = 'yes' &&
15963 test "$xc_lt_build_static" = 'no'; then
15964 xc_lt_build_shared_only='yes'
15966 xc_lt_build_shared_only='no'
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15969 $as_echo "$xc_lt_build_shared_only" >&6; }
15972 # Verify if libtool static libraries will be built while shared not built
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15976 $as_echo_n "checking whether to build static libraries only... " >&6; }
15977 if test "$xc_lt_build_static" = 'yes' &&
15978 test "$xc_lt_build_shared" = 'no'; then
15979 xc_lt_build_static_only='yes'
15981 xc_lt_build_static_only='no'
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15984 $as_echo "$xc_lt_build_static_only" >&6; }
15990 # Automake conditionals based on libtool related checks
15993 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15994 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15995 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15997 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15998 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
16001 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16002 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16003 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16005 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16006 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16009 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16010 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16011 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16013 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16014 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16019 # Due to libtool and automake machinery limitations of not allowing
16020 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
16021 # inclusion of these in shared or static libraries, we are forced to
16022 # build using separate configure runs for shared and static libraries
16023 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
16024 # to compile objects for each kind of library. Notice that relying on
16025 # the '-DPIC' CFLAG that libtool provides is not valid given that the
16026 # user might for example choose to build static libraries with PIC.
16030 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16031 # targeting a static library and not building its shared counterpart.
16034 if test "x$xc_lt_build_static_only" = 'xyes'; then
16035 USE_CPPFLAG_CURL_STATICLIB_TRUE=
16036 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16038 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16039 USE_CPPFLAG_CURL_STATICLIB_FALSE=
16044 # Make staticlib CPPFLAG variable and its definition visible in output
16045 # files unconditionally, providing an empty definition unless strictly
16046 # targeting a static library and not building its shared counterpart.
16049 CPPFLAG_CURL_STATICLIB=
16050 if test "x$xc_lt_build_static_only" = 'xyes'; then
16051 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16056 # Determine whether all dependent libraries must be specified when linking
16057 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16059 REQUIRE_LIB_DEPS=no
16061 REQUIRE_LIB_DEPS=yes
16064 if test x$REQUIRE_LIB_DEPS = xyes; then
16065 USE_EXPLICIT_LIB_DEPS_TRUE=
16066 USE_EXPLICIT_LIB_DEPS_FALSE='#'
16068 USE_EXPLICIT_LIB_DEPS_TRUE='#'
16069 USE_EXPLICIT_LIB_DEPS_FALSE=
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16074 $as_echo_n "checking for inline... " >&6; }
16075 if ${ac_cv_c_inline+:} false; then :
16076 $as_echo_n "(cached) " >&6
16079 for ac_kw in inline __inline__ __inline; do
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082 #ifndef __cplusplus
16084 static $ac_kw foo_t static_foo () {return 0; }
16085 $ac_kw foo_t foo () {return 0; }
16089 if ac_fn_c_try_compile "$LINENO"; then :
16090 ac_cv_c_inline=$ac_kw
16092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093 test "$ac_cv_c_inline" != no && break
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16098 $as_echo "$ac_cv_c_inline" >&6; }
16100 case $ac_cv_c_inline in
16103 case $ac_cv_c_inline in
16105 *) ac_val=$ac_cv_c_inline;;
16107 cat >>confdefs.h <<_ACEOF
16108 #ifndef __cplusplus
16109 #define inline $ac_val
16119 compiler_id="unknown"
16122 flags_dbg_all="unknown"
16123 flags_dbg_yes="unknown"
16124 flags_dbg_off="unknown"
16125 flags_opt_all="unknown"
16126 flags_opt_yes="unknown"
16127 flags_opt_off="unknown"
16129 flags_prefer_cppflags="no"
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16133 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16135 OLDCPPFLAGS=$CPPFLAGS
16136 # CPPPFLAG comes from CURL_CPP_P
16137 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16138 if test -z "$SED"; then
16139 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16141 if test -z "$GREP"; then
16142 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16151 CURL_DEF_TOKEN __DECC
16156 if ac_fn_c_try_cpp "$LINENO"; then :
16158 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16159 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16160 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16161 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16162 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16167 rm -f conftest.err conftest.i conftest.$ac_ext
16168 if test -z "$tmp_exp"; then
16169 curl_cv_have_def___DECC=no
16172 curl_cv_have_def___DECC=yes
16173 curl_cv_def___DECC=$tmp_exp
16176 CPPFLAGS=$OLDCPPFLAGS
16179 OLDCPPFLAGS=$CPPFLAGS
16180 # CPPPFLAG comes from CURL_CPP_P
16181 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16182 if test -z "$SED"; then
16183 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16185 if test -z "$GREP"; then
16186 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16195 CURL_DEF_TOKEN __DECC_VER
16200 if ac_fn_c_try_cpp "$LINENO"; then :
16202 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16203 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16204 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16205 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16206 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16211 rm -f conftest.err conftest.i conftest.$ac_ext
16212 if test -z "$tmp_exp"; then
16213 curl_cv_have_def___DECC_VER=no
16216 curl_cv_have_def___DECC_VER=yes
16217 curl_cv_def___DECC_VER=$tmp_exp
16220 CPPFLAGS=$OLDCPPFLAGS
16222 if test "$curl_cv_have_def___DECC" = "yes" &&
16223 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16225 $as_echo "yes" >&6; }
16226 compiler_id="DEC_C"
16227 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16228 flags_dbg_yes="-g2"
16230 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16231 flags_opt_yes="-O1"
16232 flags_opt_off="-O0"
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16235 $as_echo "no" >&6; }
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16240 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16242 OLDCPPFLAGS=$CPPFLAGS
16243 # CPPPFLAG comes from CURL_CPP_P
16244 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16245 if test -z "$SED"; then
16246 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16248 if test -z "$GREP"; then
16249 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16258 CURL_DEF_TOKEN __HP_cc
16263 if ac_fn_c_try_cpp "$LINENO"; then :
16265 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16266 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16267 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16268 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16269 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16274 rm -f conftest.err conftest.i conftest.$ac_ext
16275 if test -z "$tmp_exp"; then
16276 curl_cv_have_def___HP_cc=no
16279 curl_cv_have_def___HP_cc=yes
16280 curl_cv_def___HP_cc=$tmp_exp
16283 CPPFLAGS=$OLDCPPFLAGS
16285 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16287 $as_echo "yes" >&6; }
16288 compiler_id="HP_UX_C"
16289 flags_dbg_all="-g -s"
16292 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16293 flags_opt_yes="+O2"
16294 flags_opt_off="+O0"
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16297 $as_echo "no" >&6; }
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16302 $as_echo_n "checking if compiler is IBM C... " >&6; }
16304 OLDCPPFLAGS=$CPPFLAGS
16305 # CPPPFLAG comes from CURL_CPP_P
16306 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16307 if test -z "$SED"; then
16308 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16310 if test -z "$GREP"; then
16311 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16316 /* end confdefs.h. */
16320 CURL_DEF_TOKEN __IBMC__
16325 if ac_fn_c_try_cpp "$LINENO"; then :
16327 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16328 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16329 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16330 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16331 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16336 rm -f conftest.err conftest.i conftest.$ac_ext
16337 if test -z "$tmp_exp"; then
16338 curl_cv_have_def___IBMC__=no
16341 curl_cv_have_def___IBMC__=yes
16342 curl_cv_def___IBMC__=$tmp_exp
16345 CPPFLAGS=$OLDCPPFLAGS
16347 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16349 $as_echo "yes" >&6; }
16350 compiler_id="IBM_C"
16351 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16354 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16355 flags_opt_all="$flags_opt_all -qnooptimize"
16356 flags_opt_all="$flags_opt_all -qoptimize=0"
16357 flags_opt_all="$flags_opt_all -qoptimize=1"
16358 flags_opt_all="$flags_opt_all -qoptimize=2"
16359 flags_opt_all="$flags_opt_all -qoptimize=3"
16360 flags_opt_all="$flags_opt_all -qoptimize=4"
16361 flags_opt_all="$flags_opt_all -qoptimize=5"
16362 flags_opt_yes="-O2"
16363 flags_opt_off="-qnooptimize"
16364 flags_prefer_cppflags="yes"
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16367 $as_echo "no" >&6; }
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16372 $as_echo_n "checking if compiler is Intel C... " >&6; }
16374 OLDCPPFLAGS=$CPPFLAGS
16375 # CPPPFLAG comes from CURL_CPP_P
16376 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16377 if test -z "$SED"; then
16378 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16380 if test -z "$GREP"; then
16381 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16389 #ifdef __INTEL_COMPILER
16390 CURL_DEF_TOKEN __INTEL_COMPILER
16395 if ac_fn_c_try_cpp "$LINENO"; then :
16397 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16398 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16399 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16400 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16401 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16406 rm -f conftest.err conftest.i conftest.$ac_ext
16407 if test -z "$tmp_exp"; then
16408 curl_cv_have_def___INTEL_COMPILER=no
16411 curl_cv_have_def___INTEL_COMPILER=yes
16412 curl_cv_def___INTEL_COMPILER=$tmp_exp
16415 CPPFLAGS=$OLDCPPFLAGS
16417 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16419 $as_echo "yes" >&6; }
16420 compiler_num="$curl_cv_def___INTEL_COMPILER"
16422 OLDCPPFLAGS=$CPPFLAGS
16423 # CPPPFLAG comes from CURL_CPP_P
16424 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16425 if test -z "$SED"; then
16426 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16428 if test -z "$GREP"; then
16429 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h. */
16438 CURL_DEF_TOKEN __unix__
16443 if ac_fn_c_try_cpp "$LINENO"; then :
16445 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16446 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16447 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16448 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16449 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16454 rm -f conftest.err conftest.i conftest.$ac_ext
16455 if test -z "$tmp_exp"; then
16456 curl_cv_have_def___unix__=no
16459 curl_cv_have_def___unix__=yes
16460 curl_cv_def___unix__=$tmp_exp
16463 CPPFLAGS=$OLDCPPFLAGS
16465 if test "$curl_cv_have_def___unix__" = "yes"; then
16466 compiler_id="INTEL_UNIX_C"
16467 flags_dbg_all="-g -g0"
16470 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16471 flags_opt_yes="-O2"
16472 flags_opt_off="-O0"
16474 compiler_id="INTEL_WINDOWS_C"
16475 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16476 flags_dbg_all="$flags_dbg_all /debug"
16477 flags_dbg_all="$flags_dbg_all /debug:none"
16478 flags_dbg_all="$flags_dbg_all /debug:minimal"
16479 flags_dbg_all="$flags_dbg_all /debug:partial"
16480 flags_dbg_all="$flags_dbg_all /debug:full"
16481 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16482 flags_dbg_all="$flags_dbg_all /debug:extended"
16483 flags_dbg_yes="/Zi /Oy-"
16484 flags_dbg_off="/debug:none /Oy-"
16485 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16486 flags_opt_yes="/O2"
16487 flags_opt_off="/Od"
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16491 $as_echo "no" >&6; }
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16496 $as_echo_n "checking if compiler is clang... " >&6; }
16498 OLDCPPFLAGS=$CPPFLAGS
16499 # CPPPFLAG comes from CURL_CPP_P
16500 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16501 if test -z "$SED"; then
16502 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16504 if test -z "$GREP"; then
16505 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16514 CURL_DEF_TOKEN __clang__
16519 if ac_fn_c_try_cpp "$LINENO"; then :
16521 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16522 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16523 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16524 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16525 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16530 rm -f conftest.err conftest.i conftest.$ac_ext
16531 if test -z "$tmp_exp"; then
16532 curl_cv_have_def___clang__=no
16535 curl_cv_have_def___clang__=yes
16536 curl_cv_def___clang__=$tmp_exp
16539 CPPFLAGS=$OLDCPPFLAGS
16541 if test "$curl_cv_have_def___clang__" = "yes"; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16543 $as_echo "yes" >&6; }
16544 compiler_id="CLANG"
16545 clangver=`$CC -dumpversion`
16546 clangvhi=`echo $clangver | cut -d . -f1`
16547 clangvlo=`echo $clangver | cut -d . -f2`
16548 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16549 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16550 flags_dbg_all="$flags_dbg_all -ggdb"
16551 flags_dbg_all="$flags_dbg_all -gstabs"
16552 flags_dbg_all="$flags_dbg_all -gstabs+"
16553 flags_dbg_all="$flags_dbg_all -gcoff"
16554 flags_dbg_all="$flags_dbg_all -gxcoff"
16555 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16556 flags_dbg_all="$flags_dbg_all -gvms"
16559 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16560 flags_opt_yes="-Os"
16561 flags_opt_off="-O0"
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564 $as_echo "no" >&6; }
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16569 $as_echo_n "checking if compiler is GNU C... " >&6; }
16571 OLDCPPFLAGS=$CPPFLAGS
16572 # CPPPFLAG comes from CURL_CPP_P
16573 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16574 if test -z "$SED"; then
16575 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16577 if test -z "$GREP"; then
16578 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h. */
16587 CURL_DEF_TOKEN __GNUC__
16592 if ac_fn_c_try_cpp "$LINENO"; then :
16594 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16595 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16596 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16597 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16598 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16603 rm -f conftest.err conftest.i conftest.$ac_ext
16604 if test -z "$tmp_exp"; then
16605 curl_cv_have_def___GNUC__=no
16608 curl_cv_have_def___GNUC__=yes
16609 curl_cv_def___GNUC__=$tmp_exp
16612 CPPFLAGS=$OLDCPPFLAGS
16614 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16615 test "$compiler_id" = "unknown"; then
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16617 $as_echo "yes" >&6; }
16618 compiler_id="GNU_C"
16619 gccver=`$CC -dumpversion`
16620 gccvhi=`echo $gccver | cut -d . -f1`
16621 gccvlo=`echo $gccver | cut -d . -f2`
16622 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16623 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16624 flags_dbg_all="$flags_dbg_all -ggdb"
16625 flags_dbg_all="$flags_dbg_all -gstabs"
16626 flags_dbg_all="$flags_dbg_all -gstabs+"
16627 flags_dbg_all="$flags_dbg_all -gcoff"
16628 flags_dbg_all="$flags_dbg_all -gxcoff"
16629 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16630 flags_dbg_all="$flags_dbg_all -gvms"
16633 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16634 flags_opt_yes="-O2"
16635 flags_opt_off="-O0"
16637 OLDCPPFLAGS=$CPPFLAGS
16638 # CPPPFLAG comes from CURL_CPP_P
16639 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16640 if test -z "$SED"; then
16641 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16643 if test -z "$GREP"; then
16644 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h. */
16653 CURL_DEF_TOKEN _WIN32
16658 if ac_fn_c_try_cpp "$LINENO"; then :
16660 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16661 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16662 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16663 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16664 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16669 rm -f conftest.err conftest.i conftest.$ac_ext
16670 if test -z "$tmp_exp"; then
16671 curl_cv_have_def__WIN32=no
16674 curl_cv_have_def__WIN32=yes
16675 curl_cv_def__WIN32=$tmp_exp
16678 CPPFLAGS=$OLDCPPFLAGS
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682 $as_echo "no" >&6; }
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16687 $as_echo_n "checking if compiler is LCC... " >&6; }
16689 OLDCPPFLAGS=$CPPFLAGS
16690 # CPPPFLAG comes from CURL_CPP_P
16691 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16692 if test -z "$SED"; then
16693 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16695 if test -z "$GREP"; then
16696 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16705 CURL_DEF_TOKEN __LCC__
16710 if ac_fn_c_try_cpp "$LINENO"; then :
16712 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16713 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16714 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16715 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16716 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16721 rm -f conftest.err conftest.i conftest.$ac_ext
16722 if test -z "$tmp_exp"; then
16723 curl_cv_have_def___LCC__=no
16726 curl_cv_have_def___LCC__=yes
16727 curl_cv_def___LCC__=$tmp_exp
16730 CPPFLAGS=$OLDCPPFLAGS
16732 if test "$curl_cv_have_def___LCC__" = "yes"; then
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16734 $as_echo "yes" >&6; }
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16744 $as_echo "no" >&6; }
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16749 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16751 OLDCPPFLAGS=$CPPFLAGS
16752 # CPPPFLAG comes from CURL_CPP_P
16753 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16754 if test -z "$SED"; then
16755 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16757 if test -z "$GREP"; then
16758 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16767 CURL_DEF_TOKEN __GNUC__
16772 if ac_fn_c_try_cpp "$LINENO"; then :
16774 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16775 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16776 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16777 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16778 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16783 rm -f conftest.err conftest.i conftest.$ac_ext
16784 if test -z "$tmp_exp"; then
16785 curl_cv_have_def___GNUC__=no
16788 curl_cv_have_def___GNUC__=yes
16789 curl_cv_def___GNUC__=$tmp_exp
16792 CPPFLAGS=$OLDCPPFLAGS
16795 OLDCPPFLAGS=$CPPFLAGS
16796 # CPPPFLAG comes from CURL_CPP_P
16797 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16798 if test -z "$SED"; then
16799 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16801 if test -z "$GREP"; then
16802 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h. */
16810 #ifdef _COMPILER_VERSION
16811 CURL_DEF_TOKEN _COMPILER_VERSION
16816 if ac_fn_c_try_cpp "$LINENO"; then :
16818 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16819 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16820 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16821 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16822 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16827 rm -f conftest.err conftest.i conftest.$ac_ext
16828 if test -z "$tmp_exp"; then
16829 curl_cv_have_def__COMPILER_VERSION=no
16832 curl_cv_have_def__COMPILER_VERSION=yes
16833 curl_cv_def__COMPILER_VERSION=$tmp_exp
16836 CPPFLAGS=$OLDCPPFLAGS
16839 OLDCPPFLAGS=$CPPFLAGS
16840 # CPPPFLAG comes from CURL_CPP_P
16841 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16842 if test -z "$SED"; then
16843 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16845 if test -z "$GREP"; then
16846 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16851 /* end confdefs.h. */
16854 #ifdef _SGI_COMPILER_VERSION
16855 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16860 if ac_fn_c_try_cpp "$LINENO"; then :
16862 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16863 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16864 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16865 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16866 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16871 rm -f conftest.err conftest.i conftest.$ac_ext
16872 if test -z "$tmp_exp"; then
16873 curl_cv_have_def__SGI_COMPILER_VERSION=no
16876 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16877 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16880 CPPFLAGS=$OLDCPPFLAGS
16882 if test "$curl_cv_have_def___GNUC__" = "no" &&
16883 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16884 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16886 $as_echo "yes" >&6; }
16887 compiler_id="SGI_MIPSPRO_C"
16888 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16891 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16892 flags_opt_yes="-O2"
16893 flags_opt_off="-O0"
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896 $as_echo "no" >&6; }
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16901 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16903 OLDCPPFLAGS=$CPPFLAGS
16904 # CPPPFLAG comes from CURL_CPP_P
16905 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16906 if test -z "$SED"; then
16907 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16909 if test -z "$GREP"; then
16910 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16919 CURL_DEF_TOKEN __GNUC__
16924 if ac_fn_c_try_cpp "$LINENO"; then :
16926 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16927 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16928 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16929 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16930 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16935 rm -f conftest.err conftest.i conftest.$ac_ext
16936 if test -z "$tmp_exp"; then
16937 curl_cv_have_def___GNUC__=no
16940 curl_cv_have_def___GNUC__=yes
16941 curl_cv_def___GNUC__=$tmp_exp
16944 CPPFLAGS=$OLDCPPFLAGS
16947 OLDCPPFLAGS=$CPPFLAGS
16948 # CPPPFLAG comes from CURL_CPP_P
16949 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16950 if test -z "$SED"; then
16951 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16953 if test -z "$GREP"; then
16954 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16963 CURL_DEF_TOKEN __sgi
16968 if ac_fn_c_try_cpp "$LINENO"; then :
16970 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16971 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16972 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16973 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16974 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16979 rm -f conftest.err conftest.i conftest.$ac_ext
16980 if test -z "$tmp_exp"; then
16981 curl_cv_have_def___sgi=no
16984 curl_cv_have_def___sgi=yes
16985 curl_cv_def___sgi=$tmp_exp
16988 CPPFLAGS=$OLDCPPFLAGS
16990 if test "$curl_cv_have_def___GNUC__" = "no" &&
16991 test "$curl_cv_have_def___sgi" = "yes" &&
16992 test "$compiler_id" = "unknown"; then
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16994 $as_echo "yes" >&6; }
16995 compiler_id="SGI_MIPS_C"
16996 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16999 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17000 flags_opt_yes="-O2"
17001 flags_opt_off="-O0"
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17004 $as_echo "no" >&6; }
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17009 $as_echo_n "checking if compiler is SunPro C... " >&6; }
17011 OLDCPPFLAGS=$CPPFLAGS
17012 # CPPPFLAG comes from CURL_CPP_P
17013 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17014 if test -z "$SED"; then
17015 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17017 if test -z "$GREP"; then
17018 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023 /* end confdefs.h. */
17027 CURL_DEF_TOKEN __SUNPRO_C
17032 if ac_fn_c_try_cpp "$LINENO"; then :
17034 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17035 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17036 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17037 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17038 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17043 rm -f conftest.err conftest.i conftest.$ac_ext
17044 if test -z "$tmp_exp"; then
17045 curl_cv_have_def___SUNPRO_C=no
17048 curl_cv_have_def___SUNPRO_C=yes
17049 curl_cv_def___SUNPRO_C=$tmp_exp
17052 CPPFLAGS=$OLDCPPFLAGS
17054 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17056 $as_echo "yes" >&6; }
17057 compiler_id="SUNPRO_C"
17058 flags_dbg_all="-g -s"
17061 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17062 flags_opt_yes="-xO2"
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17066 $as_echo "no" >&6; }
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17071 $as_echo_n "checking if compiler is Tiny C... " >&6; }
17073 OLDCPPFLAGS=$CPPFLAGS
17074 # CPPPFLAG comes from CURL_CPP_P
17075 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17076 if test -z "$SED"; then
17077 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17079 if test -z "$GREP"; then
17080 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085 /* end confdefs.h. */
17089 CURL_DEF_TOKEN __TINYC__
17094 if ac_fn_c_try_cpp "$LINENO"; then :
17096 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17097 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17098 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17099 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17100 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17105 rm -f conftest.err conftest.i conftest.$ac_ext
17106 if test -z "$tmp_exp"; then
17107 curl_cv_have_def___TINYC__=no
17110 curl_cv_have_def___TINYC__=yes
17111 curl_cv_def___TINYC__=$tmp_exp
17114 CPPFLAGS=$OLDCPPFLAGS
17116 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17118 $as_echo "yes" >&6; }
17119 compiler_id="TINY_C"
17120 flags_dbg_all="-g -b"
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17133 $as_echo_n "checking if compiler is Watcom C... " >&6; }
17135 OLDCPPFLAGS=$CPPFLAGS
17136 # CPPPFLAG comes from CURL_CPP_P
17137 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17138 if test -z "$SED"; then
17139 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17141 if test -z "$GREP"; then
17142 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17151 CURL_DEF_TOKEN __WATCOMC__
17156 if ac_fn_c_try_cpp "$LINENO"; then :
17158 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17159 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17160 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17161 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17162 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17167 rm -f conftest.err conftest.i conftest.$ac_ext
17168 if test -z "$tmp_exp"; then
17169 curl_cv_have_def___WATCOMC__=no
17172 curl_cv_have_def___WATCOMC__=yes
17173 curl_cv_def___WATCOMC__=$tmp_exp
17176 CPPFLAGS=$OLDCPPFLAGS
17178 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17180 $as_echo "yes" >&6; }
17182 OLDCPPFLAGS=$CPPFLAGS
17183 # CPPPFLAG comes from CURL_CPP_P
17184 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17185 if test -z "$SED"; then
17186 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17188 if test -z "$GREP"; then
17189 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17198 CURL_DEF_TOKEN __UNIX__
17203 if ac_fn_c_try_cpp "$LINENO"; then :
17205 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17206 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17207 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17208 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17209 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17214 rm -f conftest.err conftest.i conftest.$ac_ext
17215 if test -z "$tmp_exp"; then
17216 curl_cv_have_def___UNIX__=no
17219 curl_cv_have_def___UNIX__=yes
17220 curl_cv_def___UNIX__=$tmp_exp
17223 CPPFLAGS=$OLDCPPFLAGS
17225 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17226 compiler_id="WATCOM_UNIX_C"
17227 flags_dbg_all="-g1 -g1+ -g2 -g3"
17228 flags_dbg_yes="-g2"
17230 flags_opt_all="-O0 -O1 -O2 -O3"
17231 flags_opt_yes="-O2"
17232 flags_opt_off="-O0"
17234 compiler_id="WATCOM_WINDOWS_C"
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244 $as_echo "no" >&6; }
17248 if test "$compiler_id" = "unknown"; then
17251 *** Warning: This configure script does not have information about the
17252 *** compiler you are using, relative to the flags required to enable or
17253 *** disable generation of debug info, optimization options or warnings.
17255 *** Whatever settings are present in CFLAGS will be used for this run.
17257 *** If you wish to help the cURL project to better support your compiler
17258 *** you can report this and the required info on the libcurl development
17259 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17267 eval _sqz_input=\$$1
17268 for _sqz_token in $_sqz_input; do
17269 if test -z "$_sqz_result"; then
17270 _sqz_result="$_sqz_token"
17272 _sqz_result="$_sqz_result $_sqz_token"
17275 eval $1=\$_sqz_result
17281 if test "$compiler_id" != "unknown"; then
17283 if test "$compiler_id" = "GNU_C" ||
17284 test "$compiler_id" = "CLANG"; then
17286 if test "$compiler_id" = "GNU_C" ||
17287 test "$compiler_id" = "CLANG"; then
17288 tmp_has_include="no"
17289 tmp_chg_FLAGS="$CFLAGS"
17290 for word1 in $tmp_chg_FLAGS; do
17293 tmp_has_include="yes"
17297 if test "$tmp_has_include" = "yes"; then
17298 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17299 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17300 CFLAGS="$tmp_chg_FLAGS"
17303 tmp_has_include="no"
17304 tmp_chg_FLAGS="$CPPFLAGS"
17305 for word1 in $tmp_chg_FLAGS; do
17308 tmp_has_include="yes"
17312 if test "$tmp_has_include" = "yes"; then
17313 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17314 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17315 CPPFLAGS="$tmp_chg_FLAGS"
17322 tmp_save_CPPFLAGS="$CPPFLAGS"
17323 tmp_save_CFLAGS="$CFLAGS"
17327 case "$compiler_id" in
17331 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17336 tmp_CFLAGS="$tmp_CFLAGS -std1"
17337 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17338 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17339 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17344 tmp_CFLAGS="$tmp_CFLAGS"
17349 tmp_CFLAGS="$tmp_CFLAGS -z"
17350 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17355 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17356 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17357 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17362 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17363 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17364 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17369 tmp_CFLAGS="$tmp_CFLAGS"
17374 tmp_CFLAGS="$tmp_CFLAGS -n"
17379 tmp_CFLAGS="$tmp_CFLAGS"
17384 tmp_CFLAGS="$tmp_CFLAGS"
17389 tmp_CFLAGS="$tmp_CFLAGS"
17394 tmp_CFLAGS="$tmp_CFLAGS"
17399 tmp_CFLAGS="$tmp_CFLAGS"
17404 tmp_CFLAGS="$tmp_CFLAGS"
17409 squeeze tmp_CPPFLAGS
17412 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17414 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17415 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17416 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17420 tmp_compiler_works="unknown"
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17437 if ac_fn_c_try_compile "$LINENO"; then :
17439 tmp_compiler_works="yes"
17443 tmp_compiler_works="no"
17445 sed 's/^/cc-fail: /' conftest.err >&6
17449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450 if test "$tmp_compiler_works" = "yes"; then
17451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452 /* end confdefs.h. */
17467 if ac_fn_c_try_link "$LINENO"; then :
17469 tmp_compiler_works="yes"
17473 tmp_compiler_works="no"
17475 sed 's/^/link-fail: /' conftest.err >&6
17479 rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
17482 if test "x$cross_compiling" != "xyes" &&
17483 test "$tmp_compiler_works" = "yes"; then
17484 if test "$cross_compiling" = yes; then :
17485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17487 as_fn_error $? "cannot run test program while cross compiling
17488 See \`config.log' for more details" "$LINENO" 5; }
17490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491 /* end confdefs.h. */
17495 # include <stdlib.h>
17509 if ac_fn_c_try_run "$LINENO"; then :
17511 tmp_compiler_works="yes"
17515 tmp_compiler_works="no"
17517 echo "run-fail: test program exited with status $ac_status" >&6
17521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17522 conftest.$ac_objext conftest.beam conftest.$ac_ext
17526 if test "$tmp_compiler_works" = "yes"; then
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17529 $as_echo "yes" >&6; }
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17531 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17536 $as_echo "no" >&6; }
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17538 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17539 CPPFLAGS="$tmp_save_CPPFLAGS"
17540 CFLAGS="$tmp_save_CFLAGS"
17550 if test "$compiler_id" != "unknown"; then
17552 tmp_save_CFLAGS="$CFLAGS"
17553 tmp_save_CPPFLAGS="$CPPFLAGS"
17556 tmp_CFLAGS="$CFLAGS"
17557 tmp_CPPFLAGS="$CPPFLAGS"
17560 for word1 in $tmp_CFLAGS; do
17561 ac_var_strip_word="no"
17562 for word2 in $flags_dbg_all; do
17563 if test "$word1" = "$word2"; then
17564 ac_var_strip_word="yes"
17567 if test "$ac_var_strip_word" = "no"; then
17568 ac_var_stripped="$ac_var_stripped $word1"
17571 tmp_CFLAGS="$ac_var_stripped"
17576 for word1 in $tmp_CPPFLAGS; do
17577 ac_var_strip_word="no"
17578 for word2 in $flags_dbg_all; do
17579 if test "$word1" = "$word2"; then
17580 ac_var_strip_word="yes"
17583 if test "$ac_var_strip_word" = "no"; then
17584 ac_var_stripped="$ac_var_stripped $word1"
17587 tmp_CPPFLAGS="$ac_var_stripped"
17588 squeeze tmp_CPPFLAGS
17591 if test "$want_debug" = "yes"; then
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17593 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17594 tmp_options="$flags_dbg_yes"
17596 if test "$want_debug" = "no"; then
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17598 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17599 tmp_options="$flags_dbg_off"
17602 if test "$flags_prefer_cppflags" = "yes"; then
17603 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17604 CFLAGS="$tmp_CFLAGS"
17606 CPPFLAGS="$tmp_CPPFLAGS"
17607 CFLAGS="$tmp_CFLAGS $tmp_options"
17612 tmp_compiler_works="unknown"
17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17614 /* end confdefs.h. */
17629 if ac_fn_c_try_compile "$LINENO"; then :
17631 tmp_compiler_works="yes"
17635 tmp_compiler_works="no"
17637 sed 's/^/cc-fail: /' conftest.err >&6
17641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17642 if test "$tmp_compiler_works" = "yes"; then
17643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h. */
17659 if ac_fn_c_try_link "$LINENO"; then :
17661 tmp_compiler_works="yes"
17665 tmp_compiler_works="no"
17667 sed 's/^/link-fail: /' conftest.err >&6
17671 rm -f core conftest.err conftest.$ac_objext \
17672 conftest$ac_exeext conftest.$ac_ext
17674 if test "x$cross_compiling" != "xyes" &&
17675 test "$tmp_compiler_works" = "yes"; then
17676 if test "$cross_compiling" = yes; then :
17677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17679 as_fn_error $? "cannot run test program while cross compiling
17680 See \`config.log' for more details" "$LINENO" 5; }
17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h. */
17687 # include <stdlib.h>
17701 if ac_fn_c_try_run "$LINENO"; then :
17703 tmp_compiler_works="yes"
17707 tmp_compiler_works="no"
17709 echo "run-fail: test program exited with status $ac_status" >&6
17713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17714 conftest.$ac_objext conftest.beam conftest.$ac_ext
17718 if test "$tmp_compiler_works" = "yes"; then
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17721 $as_echo "yes" >&6; }
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17723 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17728 $as_echo "no" >&6; }
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17730 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17731 CPPFLAGS="$tmp_save_CPPFLAGS"
17732 CFLAGS="$tmp_save_CFLAGS"
17741 if test "$compiler_id" != "unknown"; then
17743 tmp_save_CFLAGS="$CFLAGS"
17744 tmp_save_CPPFLAGS="$CPPFLAGS"
17747 tmp_CFLAGS="$CFLAGS"
17748 tmp_CPPFLAGS="$CPPFLAGS"
17749 honor_optimize_option="yes"
17752 if test "$want_optimize" = "assume_no" ||
17753 test "$want_optimize" = "assume_yes"; then
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17755 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17758 ac_var_match_word="no"
17759 for word1 in $tmp_CFLAGS; do
17760 for word2 in $flags_opt_all; do
17761 if test "$word1" = "$word2"; then
17762 ac_var_match_word="yes"
17767 if test "$ac_var_match_word" = "yes"; then
17769 honor_optimize_option="no"
17776 ac_var_match_word="no"
17777 for word1 in $tmp_CPPFLAGS; do
17778 for word2 in $flags_opt_all; do
17779 if test "$word1" = "$word2"; then
17780 ac_var_match_word="yes"
17785 if test "$ac_var_match_word" = "yes"; then
17787 honor_optimize_option="no"
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17793 $as_echo "$honor_optimize_option" >&6; }
17794 if test "$honor_optimize_option" = "yes"; then
17795 if test "$want_optimize" = "assume_yes"; then
17796 want_optimize="yes"
17798 if test "$want_optimize" = "assume_no"; then
17804 if test "$honor_optimize_option" = "yes"; then
17807 for word1 in $tmp_CFLAGS; do
17808 ac_var_strip_word="no"
17809 for word2 in $flags_opt_all; do
17810 if test "$word1" = "$word2"; then
17811 ac_var_strip_word="yes"
17814 if test "$ac_var_strip_word" = "no"; then
17815 ac_var_stripped="$ac_var_stripped $word1"
17818 tmp_CFLAGS="$ac_var_stripped"
17823 for word1 in $tmp_CPPFLAGS; do
17824 ac_var_strip_word="no"
17825 for word2 in $flags_opt_all; do
17826 if test "$word1" = "$word2"; then
17827 ac_var_strip_word="yes"
17830 if test "$ac_var_strip_word" = "no"; then
17831 ac_var_stripped="$ac_var_stripped $word1"
17834 tmp_CPPFLAGS="$ac_var_stripped"
17835 squeeze tmp_CPPFLAGS
17837 if test "$want_optimize" = "yes"; then
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17839 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17840 tmp_options="$flags_opt_yes"
17842 if test "$want_optimize" = "no"; then
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17844 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17845 tmp_options="$flags_opt_off"
17847 if test "$flags_prefer_cppflags" = "yes"; then
17848 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17849 CFLAGS="$tmp_CFLAGS"
17851 CPPFLAGS="$tmp_CPPFLAGS"
17852 CFLAGS="$tmp_CFLAGS $tmp_options"
17857 tmp_compiler_works="unknown"
17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859 /* end confdefs.h. */
17874 if ac_fn_c_try_compile "$LINENO"; then :
17876 tmp_compiler_works="yes"
17880 tmp_compiler_works="no"
17882 sed 's/^/cc-fail: /' conftest.err >&6
17886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17887 if test "$tmp_compiler_works" = "yes"; then
17888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h. */
17904 if ac_fn_c_try_link "$LINENO"; then :
17906 tmp_compiler_works="yes"
17910 tmp_compiler_works="no"
17912 sed 's/^/link-fail: /' conftest.err >&6
17916 rm -f core conftest.err conftest.$ac_objext \
17917 conftest$ac_exeext conftest.$ac_ext
17919 if test "x$cross_compiling" != "xyes" &&
17920 test "$tmp_compiler_works" = "yes"; then
17921 if test "$cross_compiling" = yes; then :
17922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17924 as_fn_error $? "cannot run test program while cross compiling
17925 See \`config.log' for more details" "$LINENO" 5; }
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17932 # include <stdlib.h>
17946 if ac_fn_c_try_run "$LINENO"; then :
17948 tmp_compiler_works="yes"
17952 tmp_compiler_works="no"
17954 echo "run-fail: test program exited with status $ac_status" >&6
17958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17959 conftest.$ac_objext conftest.beam conftest.$ac_ext
17963 if test "$tmp_compiler_works" = "yes"; then
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17966 $as_echo "yes" >&6; }
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17968 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17973 $as_echo "no" >&6; }
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17975 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17976 CPPFLAGS="$tmp_save_CPPFLAGS"
17977 CFLAGS="$tmp_save_CFLAGS"
17987 if test "$compiler_id" != "unknown"; then
17989 tmp_save_CPPFLAGS="$CPPFLAGS"
17990 tmp_save_CFLAGS="$CFLAGS"
17994 case "$compiler_id" in
17998 if test "$want_warnings" = "yes"; then
17999 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18000 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18001 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18002 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
18003 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18004 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18005 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18006 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18007 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18008 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18009 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18010 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18011 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18012 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18013 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18014 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18015 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
18017 if test "$compiler_num" -ge "101"; then
18018 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
18025 if test "$want_warnings" = "yes"; then
18026 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18032 if test "$want_warnings" = "yes"; then
18034 if test "x$cross_compiling" != "xyes" ||
18035 test "$compiler_num" -ge "300"; then
18036 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18039 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
18041 if test "$compiler_num" -ge "104"; then
18042 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18043 if test "x$cross_compiling" != "xyes" ||
18044 test "$compiler_num" -ge "300"; then
18045 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
18049 if test "$compiler_num" -ge "207"; then
18050 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18051 if test "x$cross_compiling" != "xyes" ||
18052 test "$compiler_num" -ge "300"; then
18053 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18054 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18058 if test "$compiler_num" -ge "295"; then
18059 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18062 if test "$compiler_num" -ge "296"; then
18063 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18064 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18065 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18068 if test "$compiler_num" -ge "297"; then
18069 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18072 if test "$compiler_num" -ge "300"; then
18073 tmp_CFLAGS="$tmp_CFLAGS"
18076 if test "$compiler_num" -ge "303"; then
18077 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18080 if test "$compiler_num" -ge "304"; then
18081 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18084 if test "$compiler_num" -ge "400"; then
18085 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18088 if test "$compiler_num" -ge "402"; then
18089 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18092 if test "$compiler_num" -ge "403"; then
18093 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18094 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18095 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18096 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18099 if test "$compiler_num" -ge "405"; then
18100 if test "$curl_cv_have_def__WIN32" = "yes"; then
18101 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18107 if test "$compiler_num" -ge "300"; then
18108 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18110 if test "x$cross_compiling" = "xyes"; then
18111 if test "$compiler_num" -ge "104"; then
18112 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18114 if test "$compiler_num" -ge "207"; then
18115 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18116 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18124 if test "$want_warnings" = "yes"; then
18125 tmp_CFLAGS="$tmp_CFLAGS +w1"
18131 tmp_CFLAGS="$tmp_CFLAGS"
18136 if test "$want_warnings" = "yes"; then
18137 if test "$compiler_num" -gt "600"; then
18138 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18139 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18140 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18141 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18142 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18143 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18144 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18145 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18146 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18147 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18148 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18151 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18152 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18153 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18154 if test "$compiler_num" -ge "1000"; then
18155 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18161 tmp_CFLAGS="$tmp_CFLAGS"
18166 if test "$want_warnings" = "yes"; then
18167 tmp_CFLAGS="$tmp_CFLAGS"
18173 if test "$want_warnings" = "yes"; then
18174 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18180 if test "$want_warnings" = "yes"; then
18181 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18182 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18188 if test "$want_warnings" = "yes"; then
18189 tmp_CFLAGS="$tmp_CFLAGS -v"
18195 if test "$want_warnings" = "yes"; then
18196 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18197 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18198 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18204 if test "$want_warnings" = "yes"; then
18205 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18211 tmp_CFLAGS="$tmp_CFLAGS"
18216 squeeze tmp_CPPFLAGS
18219 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18221 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18222 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18223 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18227 tmp_compiler_works="unknown"
18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h. */
18244 if ac_fn_c_try_compile "$LINENO"; then :
18246 tmp_compiler_works="yes"
18250 tmp_compiler_works="no"
18252 sed 's/^/cc-fail: /' conftest.err >&6
18256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18257 if test "$tmp_compiler_works" = "yes"; then
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18274 if ac_fn_c_try_link "$LINENO"; then :
18276 tmp_compiler_works="yes"
18280 tmp_compiler_works="no"
18282 sed 's/^/link-fail: /' conftest.err >&6
18286 rm -f core conftest.err conftest.$ac_objext \
18287 conftest$ac_exeext conftest.$ac_ext
18289 if test "x$cross_compiling" != "xyes" &&
18290 test "$tmp_compiler_works" = "yes"; then
18291 if test "$cross_compiling" = yes; then :
18292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18294 as_fn_error $? "cannot run test program while cross compiling
18295 See \`config.log' for more details" "$LINENO" 5; }
18297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h. */
18302 # include <stdlib.h>
18316 if ac_fn_c_try_run "$LINENO"; then :
18318 tmp_compiler_works="yes"
18322 tmp_compiler_works="no"
18324 echo "run-fail: test program exited with status $ac_status" >&6
18328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18329 conftest.$ac_objext conftest.beam conftest.$ac_ext
18333 if test "$tmp_compiler_works" = "yes"; then
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18336 $as_echo "yes" >&6; }
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18338 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343 $as_echo "no" >&6; }
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18345 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18346 CPPFLAGS="$tmp_save_CPPFLAGS"
18347 CFLAGS="$tmp_save_CFLAGS"
18356 if test "$compiler_id" = "INTEL_UNIX_C"; then
18358 if test "$compiler_num" -ge "1000"; then
18359 CFLAGS="$CFLAGS -shared-intel"
18360 elif test "$compiler_num" -ge "900"; then
18361 CFLAGS="$CFLAGS -i-dynamic"
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18368 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h. */
18377 force compilation error
18384 if ac_fn_c_try_compile "$LINENO"; then :
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387 $as_echo "no" >&6; }
18388 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18393 $as_echo "yes" >&6; }
18396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18400 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18405 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18417 if ac_fn_c_try_compile "$LINENO"; then :
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18420 $as_echo "no" >&6; }
18421 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18426 $as_echo "yes" >&6; }
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18433 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h. */
18438 # include <stdlib.h>
18452 int j = rand(i[0]);
18461 if ac_fn_c_try_compile "$LINENO"; then :
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18464 $as_echo "no" >&6; }
18465 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18470 $as_echo "yes" >&6; }
18473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18477 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18478 supports_symbol_hiding="no"
18479 symbol_hiding_CFLAGS=""
18480 symbol_hiding_EXTERN=""
18483 case "$compiler_id" in
18485 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18486 tmp_CFLAGS="-fvisibility=hidden"
18487 supports_symbol_hiding="yes"
18490 if test "$compiler_num" -ge "304"; then
18491 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18492 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18493 tmp_CFLAGS="-fvisibility=hidden"
18494 supports_symbol_hiding="yes"
18499 if test "$compiler_num" -ge "900"; then
18500 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18501 tmp_save_CFLAGS="$CFLAGS"
18502 CFLAGS="$CFLAGS -fvisibility=hidden"
18503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h. */
18507 # include <stdio.h>
18512 printf("icc fvisibility bug test");
18519 if ac_fn_c_try_link "$LINENO"; then :
18521 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18522 tmp_CFLAGS="-fvisibility=hidden"
18523 supports_symbol_hiding="yes"
18526 rm -f core conftest.err conftest.$ac_objext \
18527 conftest$ac_exeext conftest.$ac_ext
18528 CFLAGS="$tmp_save_CFLAGS"
18533 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18534 tmp_EXTERN="__global"
18535 tmp_CFLAGS="-xldscope=hidden"
18536 supports_symbol_hiding="yes"
18540 if test "$supports_symbol_hiding" = "yes"; then
18541 tmp_save_CFLAGS="$CFLAGS"
18542 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18548 $tmp_EXTERN char *dummy(char *buff);
18549 char *dummy(char *buff)
18561 char *r = dummy(&b[0]);
18570 if ac_fn_c_try_compile "$LINENO"; then :
18572 supports_symbol_hiding="yes"
18573 if test -f conftest.err; then
18574 grep 'visibility' conftest.err >/dev/null
18575 if test "$?" -eq "0"; then
18576 supports_symbol_hiding="no"
18582 supports_symbol_hiding="no"
18584 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18585 sed 's/^/cc-err: /' conftest.err >&6
18589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18590 CFLAGS="$tmp_save_CFLAGS"
18592 if test "$supports_symbol_hiding" = "yes"; then
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18594 $as_echo "yes" >&6; }
18595 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18596 symbol_hiding_EXTERN="$tmp_EXTERN"
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18599 $as_echo "no" >&6; }
18604 supports_curldebug="unknown"
18605 if test "$want_curldebug" = "yes"; then
18606 if test "x$enable_shared" != "xno" &&
18607 test "x$enable_shared" != "xyes"; then
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18609 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18610 supports_curldebug="no"
18612 if test "x$enable_static" != "xno" &&
18613 test "x$enable_static" != "xyes"; then
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18615 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18616 supports_curldebug="no"
18618 if test "$supports_curldebug" != "no"; then
18619 if test "$enable_shared" = "yes" &&
18620 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18621 supports_curldebug="no"
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18623 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18628 if test "$want_curldebug" = "yes"; then
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18630 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18631 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18633 $as_echo "$supports_curldebug" >&6; }
18634 if test "$supports_curldebug" = "no"; then
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18636 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18637 want_curldebug="no"
18641 if test "$want_curldebug" = "yes"; then
18642 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18645 if test "$want_debug" = "yes"; then
18646 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18650 if test x$want_curldebug = xyes; then
18652 CURLDEBUG_FALSE='#'
18659 supports_unittests=yes
18660 # cross-compilation of unit tests static library/programs fails when
18661 # libcurl shared library is built. This might be due to a libtool or
18662 # automake issue. In this case we disable unit tests.
18663 if test "x$cross_compiling" != "xno" &&
18664 test "x$enable_shared" != "xno"; then
18665 supports_unittests=no
18668 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18669 # a problem related with OpenSSL headers and library versions not matching.
18670 # Disable unit tests while time to further investigate this is found.
18673 if test "$compiler_id" = "GNU_C"; then
18674 supports_unittests=no
18679 # All AIX autobuilds fails unit tests linking against unittests library
18680 # due to unittests library being built with no symbols or members. Libtool ?
18681 # Disable unit tests while time to further investigate this is found.
18684 supports_unittests=no
18688 if test "x$want_debug" = "xyes" &&
18689 test "x$supports_unittests" = "xyes"; then
18694 if test x$want_unittests = xyes; then
18695 BUILD_UNITTESTS_TRUE=
18696 BUILD_UNITTESTS_FALSE='#'
18698 BUILD_UNITTESTS_TRUE='#'
18699 BUILD_UNITTESTS_FALSE=
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18707 $as_echo_n "checking for windows.h... " >&6; }
18708 if ${curl_cv_header_windows_h+:} false; then :
18709 $as_echo_n "(cached) " >&6
18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18717 #ifndef WIN32_LEAN_AND_MEAN
18718 #define WIN32_LEAN_AND_MEAN
18720 #include <windows.h>
18725 #if defined(__CYGWIN__) || defined(__CEGCC__)
18726 HAVE_WINDOWS_H shall not be defined.
18728 int dummy=2*WINVER;
18736 if ac_fn_c_try_compile "$LINENO"; then :
18738 curl_cv_header_windows_h="yes"
18742 curl_cv_header_windows_h="no"
18745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18749 $as_echo "$curl_cv_header_windows_h" >&6; }
18750 case "$curl_cv_header_windows_h" in
18753 cat >>confdefs.h <<_ACEOF
18754 #define HAVE_WINDOWS_H 1
18758 cat >>confdefs.h <<_ACEOF
18759 #define WIN32_LEAN_AND_MEAN 1
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18767 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18768 if ${curl_cv_native_windows+:} false; then :
18769 $as_echo_n "(cached) " >&6
18772 if test "$curl_cv_header_windows_h" = "no"; then
18773 curl_cv_native_windows="no"
18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18783 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18784 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18787 Not a native Windows build target.
18795 if ac_fn_c_try_compile "$LINENO"; then :
18797 curl_cv_native_windows="yes"
18801 curl_cv_native_windows="no"
18804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18809 $as_echo "$curl_cv_native_windows" >&6; }
18810 if test "x$curl_cv_native_windows" = xyes; then
18811 DOING_NATIVE_WINDOWS_TRUE=
18812 DOING_NATIVE_WINDOWS_FALSE='#'
18814 DOING_NATIVE_WINDOWS_TRUE='#'
18815 DOING_NATIVE_WINDOWS_FALSE=
18819 case X-"$curl_cv_native_windows" in
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18823 $as_echo_n "checking for winsock.h... " >&6; }
18824 if ${curl_cv_header_winsock_h+:} false; then :
18825 $as_echo_n "(cached) " >&6
18828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h. */
18833 #ifndef WIN32_LEAN_AND_MEAN
18834 #define WIN32_LEAN_AND_MEAN
18836 #include <windows.h>
18837 #include <winsock.h>
18842 #if defined(__CYGWIN__) || defined(__CEGCC__)
18843 HAVE_WINSOCK_H shall not be defined.
18845 int dummy=WSACleanup();
18853 if ac_fn_c_try_compile "$LINENO"; then :
18855 curl_cv_header_winsock_h="yes"
18859 curl_cv_header_winsock_h="no"
18862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18866 $as_echo "$curl_cv_header_winsock_h" >&6; }
18867 case "$curl_cv_header_winsock_h" in
18870 cat >>confdefs.h <<_ACEOF
18871 #define HAVE_WINSOCK_H 1
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18879 $as_echo_n "checking for winsock2.h... " >&6; }
18880 if ${curl_cv_header_winsock2_h+:} false; then :
18881 $as_echo_n "(cached) " >&6
18884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h. */
18889 #ifndef WIN32_LEAN_AND_MEAN
18890 #define WIN32_LEAN_AND_MEAN
18892 #include <windows.h>
18893 #include <winsock2.h>
18898 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18899 HAVE_WINSOCK2_H shall not be defined.
18901 int dummy=2*IPPROTO_ESP;
18909 if ac_fn_c_try_compile "$LINENO"; then :
18911 curl_cv_header_winsock2_h="yes"
18915 curl_cv_header_winsock2_h="no"
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18922 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18923 case "$curl_cv_header_winsock2_h" in
18926 cat >>confdefs.h <<_ACEOF
18927 #define HAVE_WINSOCK2_H 1
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18935 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18936 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18937 $as_echo_n "(cached) " >&6
18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18945 #ifndef WIN32_LEAN_AND_MEAN
18946 #define WIN32_LEAN_AND_MEAN
18948 #include <windows.h>
18949 #include <winsock2.h>
18950 #include <ws2tcpip.h>
18955 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18956 HAVE_WS2TCPIP_H shall not be defined.
18958 int dummy=2*IP_PKTINFO;
18966 if ac_fn_c_try_compile "$LINENO"; then :
18968 curl_cv_header_ws2tcpip_h="yes"
18972 curl_cv_header_ws2tcpip_h="no"
18975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18979 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18980 case "$curl_cv_header_ws2tcpip_h" in
18983 cat >>confdefs.h <<_ACEOF
18984 #define HAVE_WS2TCPIP_H 1
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18992 $as_echo_n "checking for winldap.h... " >&6; }
18993 if ${curl_cv_header_winldap_h+:} false; then :
18994 $as_echo_n "(cached) " >&6
18997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h. */
19002 #ifdef HAVE_WINDOWS_H
19003 #ifndef WIN32_LEAN_AND_MEAN
19004 #define WIN32_LEAN_AND_MEAN
19006 #include <windows.h>
19008 #include <winldap.h>
19013 #if defined(__CYGWIN__) || defined(__CEGCC__)
19014 HAVE_WINLDAP_H shall not be defined.
19016 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
19017 ULONG res = ldap_unbind(ldp);
19025 if ac_fn_c_try_compile "$LINENO"; then :
19027 curl_cv_header_winldap_h="yes"
19031 curl_cv_header_winldap_h="no"
19034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
19038 $as_echo "$curl_cv_header_winldap_h" >&6; }
19039 case "$curl_cv_header_winldap_h" in
19042 cat >>confdefs.h <<_ACEOF
19043 #define HAVE_WINLDAP_H 1
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
19051 $as_echo_n "checking for winber.h... " >&6; }
19052 if ${curl_cv_header_winber_h+:} false; then :
19053 $as_echo_n "(cached) " >&6
19056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h. */
19061 #ifdef HAVE_WINDOWS_H
19062 #ifndef WIN32_LEAN_AND_MEAN
19063 #define WIN32_LEAN_AND_MEAN
19065 #include <windows.h>
19067 #include <winldap.h>
19068 #include <winber.h>
19073 #if defined(__CYGWIN__) || defined(__CEGCC__)
19074 HAVE_WINBER_H shall not be defined.
19076 BERVAL *bvp = NULL;
19077 BerElement *bep = ber_init(bvp);
19086 if ac_fn_c_try_compile "$LINENO"; then :
19088 curl_cv_header_winber_h="yes"
19092 curl_cv_header_winber_h="no"
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19099 $as_echo "$curl_cv_header_winber_h" >&6; }
19100 case "$curl_cv_header_winber_h" in
19103 cat >>confdefs.h <<_ACEOF
19104 #define HAVE_WINBER_H 1
19112 curl_cv_header_winsock_h="no"
19113 curl_cv_header_winsock2_h="no"
19114 curl_cv_header_ws2tcpip_h="no"
19115 curl_cv_header_winldap_h="no"
19116 curl_cv_header_winber_h="no"
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19121 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19122 curl_win32_file_api="no"
19123 if test "$curl_cv_header_windows_h" = "yes"; then
19124 if test x"$enable_largefile" != "xno"; then
19125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19126 /* end confdefs.h. */
19133 #if !defined(_WIN32_WCE) && \
19134 (defined(__MINGW32__) || \
19135 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19138 WIN32 large file API not supported.
19146 if ac_fn_c_try_compile "$LINENO"; then :
19148 curl_win32_file_api="win32_large_files"
19151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19153 if test "$curl_win32_file_api" = "no"; then
19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h. */
19162 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19165 WIN32 small file API not supported.
19173 if ac_fn_c_try_compile "$LINENO"; then :
19175 curl_win32_file_api="win32_small_files"
19178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 case "$curl_win32_file_api" in
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19184 $as_echo "yes (large file enabled)" >&6; }
19186 cat >>confdefs.h <<_ACEOF
19187 #define USE_WIN32_LARGE_FILES 1
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19193 $as_echo "yes (large file disabled)" >&6; }
19195 cat >>confdefs.h <<_ACEOF
19196 #define USE_WIN32_SMALL_FILES 1
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 $as_echo "no" >&6; }
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19208 $as_echo_n "checking whether to support http... " >&6; }
19209 # Check whether --enable-http was given.
19210 if test "${enable_http+set}" = set; then :
19211 enableval=$enable_http; case "$enableval" in
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19214 $as_echo "no" >&6; }
19216 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19219 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19220 CURL_DISABLE_HTTP=1
19223 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19225 CURL_DISABLE_RTSP=1
19228 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19229 $as_echo "yes" >&6; }
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19234 $as_echo "yes" >&6; }
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19239 $as_echo_n "checking whether to support ftp... " >&6; }
19240 # Check whether --enable-ftp was given.
19241 if test "${enable_ftp+set}" = set; then :
19242 enableval=$enable_ftp; case "$enableval" in
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19247 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19252 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19253 $as_echo "yes" >&6; }
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19258 $as_echo "yes" >&6; }
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19263 $as_echo_n "checking whether to support file... " >&6; }
19264 # Check whether --enable-file was given.
19265 if test "${enable_file+set}" = set; then :
19266 enableval=$enable_file; case "$enableval" in
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19269 $as_echo "no" >&6; }
19271 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19273 CURL_DISABLE_FILE=1
19276 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19277 $as_echo "yes" >&6; }
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19282 $as_echo "yes" >&6; }
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19287 $as_echo_n "checking whether to support ldap... " >&6; }
19288 # Check whether --enable-ldap was given.
19289 if test "${enable_ldap+set}" = set; then :
19290 enableval=$enable_ldap; case "$enableval" in
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19293 $as_echo "no" >&6; }
19295 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19297 CURL_DISABLE_LDAP=1
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19302 $as_echo "yes" >&6; }
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308 $as_echo "yes" >&6; }
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19313 $as_echo_n "checking whether to support ldaps... " >&6; }
19314 # Check whether --enable-ldaps was given.
19315 if test "${enable_ldaps+set}" = set; then :
19316 enableval=$enable_ldaps; case "$enableval" in
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 $as_echo "no" >&6; }
19321 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19323 CURL_DISABLE_LDAPS=1
19326 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19328 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19330 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19332 CURL_DISABLE_LDAPS=1
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19336 $as_echo "yes" >&6; }
19338 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19347 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19349 $as_echo "no" >&6; }
19351 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19353 CURL_DISABLE_LDAPS=1
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19357 $as_echo "yes" >&6; }
19359 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19369 $as_echo_n "checking whether to support rtsp... " >&6; }
19370 # Check whether --enable-rtsp was given.
19371 if test "${enable_rtsp+set}" = set; then :
19372 enableval=$enable_rtsp; case "$enableval" in
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19375 $as_echo "no" >&6; }
19377 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19379 CURL_DISABLE_RTSP=1
19382 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19383 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19386 $as_echo "yes" >&6; }
19387 curl_rtsp_msg="enabled"
19392 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19394 $as_echo "yes" >&6; }
19395 curl_rtsp_msg="enabled"
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398 $as_echo "no" >&6; }
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19405 $as_echo_n "checking whether to support proxies... " >&6; }
19406 # Check whether --enable-proxy was given.
19407 if test "${enable_proxy+set}" = set; then :
19408 enableval=$enable_proxy; case "$enableval" in
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19411 $as_echo "no" >&6; }
19413 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19415 CURL_DISABLE_PROXY=1
19418 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19419 $as_echo "yes" >&6; }
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19424 $as_echo "yes" >&6; }
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19430 $as_echo_n "checking whether to support dict... " >&6; }
19431 # Check whether --enable-dict was given.
19432 if test "${enable_dict+set}" = set; then :
19433 enableval=$enable_dict; case "$enableval" in
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19436 $as_echo "no" >&6; }
19438 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19440 CURL_DISABLE_DICT=1
19443 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19444 $as_echo "yes" >&6; }
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19449 $as_echo "yes" >&6; }
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19454 $as_echo_n "checking whether to support telnet... " >&6; }
19455 # Check whether --enable-telnet was given.
19456 if test "${enable_telnet+set}" = set; then :
19457 enableval=$enable_telnet; case "$enableval" in
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19460 $as_echo "no" >&6; }
19462 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19464 CURL_DISABLE_TELNET=1
19467 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19468 $as_echo "yes" >&6; }
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19473 $as_echo "yes" >&6; }
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19478 $as_echo_n "checking whether to support tftp... " >&6; }
19479 # Check whether --enable-tftp was given.
19480 if test "${enable_tftp+set}" = set; then :
19481 enableval=$enable_tftp; case "$enableval" in
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19484 $as_echo "no" >&6; }
19486 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19488 CURL_DISABLE_TFTP=1
19491 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19492 $as_echo "yes" >&6; }
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19497 $as_echo "yes" >&6; }
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19503 $as_echo_n "checking whether to support pop3... " >&6; }
19504 # Check whether --enable-pop3 was given.
19505 if test "${enable_pop3+set}" = set; then :
19506 enableval=$enable_pop3; case "$enableval" in
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19509 $as_echo "no" >&6; }
19511 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19513 CURL_DISABLE_POP3=1
19516 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19517 $as_echo "yes" >&6; }
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19522 $as_echo "yes" >&6; }
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19529 $as_echo_n "checking whether to support imap... " >&6; }
19530 # Check whether --enable-imap was given.
19531 if test "${enable_imap+set}" = set; then :
19532 enableval=$enable_imap; case "$enableval" in
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19535 $as_echo "no" >&6; }
19537 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19539 CURL_DISABLE_IMAP=1
19542 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19543 $as_echo "yes" >&6; }
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19548 $as_echo "yes" >&6; }
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19555 $as_echo_n "checking whether to support smb... " >&6; }
19556 # Check whether --enable-smb was given.
19557 if test "${enable_smb+set}" = set; then :
19558 enableval=$enable_smb; case "$enableval" in
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19561 $as_echo "no" >&6; }
19563 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19568 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19569 $as_echo "yes" >&6; }
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19574 $as_echo "yes" >&6; }
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19580 $as_echo_n "checking whether to support smtp... " >&6; }
19581 # Check whether --enable-smtp was given.
19582 if test "${enable_smtp+set}" = set; then :
19583 enableval=$enable_smtp; case "$enableval" in
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19586 $as_echo "no" >&6; }
19588 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19590 CURL_DISABLE_SMTP=1
19593 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19594 $as_echo "yes" >&6; }
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19599 $as_echo "yes" >&6; }
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19605 $as_echo_n "checking whether to support gopher... " >&6; }
19606 # Check whether --enable-gopher was given.
19607 if test "${enable_gopher+set}" = set; then :
19608 enableval=$enable_gopher; case "$enableval" in
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19611 $as_echo "no" >&6; }
19613 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19615 CURL_DISABLE_GOPHER=1
19618 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19619 $as_echo "yes" >&6; }
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19624 $as_echo "yes" >&6; }
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19632 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19633 # Check whether --enable-manual was given.
19634 if test "${enable_manual+set}" = set; then :
19635 enableval=$enable_manual; case "$enableval" in
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19638 $as_echo "no" >&6; }
19640 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19641 $as_echo "yes" >&6; }
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19647 $as_echo "yes" >&6; }
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19654 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19655 # Check whether --enable-libcurl_option was given.
19656 if test "${enable_libcurl_option+set}" = set; then :
19657 enableval=$enable_libcurl_option; case "$enableval" in
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19660 $as_echo "no" >&6; }
19662 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19664 curl_libcurl_msg="no"
19666 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19667 $as_echo "yes" >&6; }
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19672 $as_echo "yes" >&6; }
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19679 $as_echo_n "checking whether to use libgcc... " >&6; }
19680 # Check whether --enable-libgcc was given.
19681 if test "${enable_libgcc+set}" = set; then :
19682 enableval=$enable_libgcc; case "$enableval" in
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19686 $as_echo "yes" >&6; }
19688 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19689 $as_echo "no" >&6; }
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19694 $as_echo "no" >&6; }
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19701 $as_echo_n "checking if X/Open network library is required... " >&6; }
19702 tst_lib_xnet_required="no"
19703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19704 /* end confdefs.h. */
19709 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19711 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19714 force compilation error
19720 if ac_fn_c_try_compile "$LINENO"; then :
19722 tst_lib_xnet_required="yes"
19723 LIBS="-lxnet $LIBS"
19726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19728 $as_echo "$tst_lib_xnet_required" >&6; }
19731 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19732 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19733 HAVE_GETHOSTBYNAME="1"
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19737 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19738 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19739 $as_echo_n "(cached) " >&6
19741 ac_check_lib_save_LIBS=$LIBS
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h. */
19750 char gethostbyname ();
19753 return gethostbyname ();
19758 if ac_fn_c_try_link "$LINENO"; then :
19759 ac_cv_lib_nsl_gethostbyname=yes
19761 ac_cv_lib_nsl_gethostbyname=no
19763 rm -f core conftest.err conftest.$ac_objext \
19764 conftest$ac_exeext conftest.$ac_ext
19765 LIBS=$ac_check_lib_save_LIBS
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19768 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19769 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19770 HAVE_GETHOSTBYNAME="1"
19779 if test "$HAVE_GETHOSTBYNAME" != "1"
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19782 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19783 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19784 $as_echo_n "(cached) " >&6
19786 ac_check_lib_save_LIBS=$LIBS
19787 LIBS="-lsocket $LIBS"
19788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19789 /* end confdefs.h. */
19795 char gethostbyname ();
19798 return gethostbyname ();
19803 if ac_fn_c_try_link "$LINENO"; then :
19804 ac_cv_lib_socket_gethostbyname=yes
19806 ac_cv_lib_socket_gethostbyname=no
19808 rm -f core conftest.err conftest.$ac_objext \
19809 conftest$ac_exeext conftest.$ac_ext
19810 LIBS=$ac_check_lib_save_LIBS
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19813 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19814 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19815 HAVE_GETHOSTBYNAME="1"
19816 LIBS="-lsocket $LIBS"
19822 if test "$HAVE_GETHOSTBYNAME" != "1"
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19825 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19826 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19827 $as_echo_n "(cached) " >&6
19829 ac_check_lib_save_LIBS=$LIBS
19830 LIBS="-lwatt $LIBS"
19831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h. */
19838 char gethostbyname ();
19841 return gethostbyname ();
19846 if ac_fn_c_try_link "$LINENO"; then :
19847 ac_cv_lib_watt_gethostbyname=yes
19849 ac_cv_lib_watt_gethostbyname=no
19851 rm -f core conftest.err conftest.$ac_objext \
19852 conftest$ac_exeext conftest.$ac_ext
19853 LIBS=$ac_check_lib_save_LIBS
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19856 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19857 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19858 HAVE_GETHOSTBYNAME="1"
19859 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19860 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19861 LIBS="-lwatt $LIBS"
19867 if test "$HAVE_GETHOSTBYNAME" != "1"
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19870 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19871 my_ac_save_LIBS=$LIBS
19872 LIBS="-lnsl -lsocket $LIBS"
19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h. */
19888 if ac_fn_c_try_link "$LINENO"; then :
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19891 $as_echo "yes" >&6; }
19892 HAVE_GETHOSTBYNAME="1"
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19897 $as_echo "no" >&6; }
19898 LIBS=$my_ac_save_LIBS
19901 rm -f core conftest.err conftest.$ac_objext \
19902 conftest$ac_exeext conftest.$ac_ext
19905 if test "$HAVE_GETHOSTBYNAME" != "1"
19907 if test "$curl_cv_header_windows_h" = "yes"; then
19908 if test "$curl_cv_header_winsock_h" = "yes"; then
19911 winsock_LIB="-lwinsock"
19914 winsock_LIB="-lwsock32"
19918 if test "$curl_cv_header_winsock2_h" = "yes"; then
19919 winsock_LIB="-lws2_32"
19921 if test ! -z "$winsock_LIB"; then
19922 my_ac_save_LIBS=$LIBS
19923 LIBS="$winsock_LIB $LIBS"
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19925 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927 /* end confdefs.h. */
19930 #ifdef HAVE_WINDOWS_H
19931 #ifndef WIN32_LEAN_AND_MEAN
19932 #define WIN32_LEAN_AND_MEAN
19934 #include <windows.h>
19935 #ifdef HAVE_WINSOCK2_H
19936 #include <winsock2.h>
19938 #ifdef HAVE_WINSOCK_H
19939 #include <winsock.h>
19947 gethostbyname("www.dummysite.com");
19954 if ac_fn_c_try_link "$LINENO"; then :
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19957 $as_echo "yes" >&6; }
19958 HAVE_GETHOSTBYNAME="1"
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19963 $as_echo "no" >&6; }
19965 LIBS=$my_ac_save_LIBS
19968 rm -f core conftest.err conftest.$ac_objext \
19969 conftest$ac_exeext conftest.$ac_ext
19974 if test "$HAVE_GETHOSTBYNAME" != "1"
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19977 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979 /* end confdefs.h. */
19982 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19988 gethostbyname("www.dummysite.com");
19995 if ac_fn_c_try_link "$LINENO"; then :
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19998 $as_echo "yes" >&6; }
19999 HAVE_GETHOSTBYNAME="1"
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20004 $as_echo "no" >&6; }
20007 rm -f core conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
20011 if test "$HAVE_GETHOSTBYNAME" != "1"
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20014 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20016 /* end confdefs.h. */
20025 gethostbyname("www.dummysite.com");
20032 if ac_fn_c_try_link "$LINENO"; then :
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20035 $as_echo "yes" >&6; }
20036 HAVE_GETHOSTBYNAME="1"
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20041 $as_echo "no" >&6; }
20044 rm -f core conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
20048 if test "$HAVE_GETHOSTBYNAME" != "1"
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20051 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20052 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20053 $as_echo_n "(cached) " >&6
20055 ac_check_lib_save_LIBS=$LIBS
20056 LIBS="-lnetwork $LIBS"
20057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058 /* end confdefs.h. */
20064 char gethostbyname ();
20067 return gethostbyname ();
20072 if ac_fn_c_try_link "$LINENO"; then :
20073 ac_cv_lib_network_gethostbyname=yes
20075 ac_cv_lib_network_gethostbyname=no
20077 rm -f core conftest.err conftest.$ac_objext \
20078 conftest$ac_exeext conftest.$ac_ext
20079 LIBS=$ac_check_lib_save_LIBS
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20082 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20083 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20084 HAVE_GETHOSTBYNAME="1"
20085 LIBS="-lnetwork $LIBS"
20091 if test "$HAVE_GETHOSTBYNAME" != "1"
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20094 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20095 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20096 $as_echo_n "(cached) " >&6
20098 ac_check_lib_save_LIBS=$LIBS
20100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h. */
20107 char gethostbyname ();
20110 return gethostbyname ();
20115 if ac_fn_c_try_link "$LINENO"; then :
20116 ac_cv_lib_net_gethostbyname=yes
20118 ac_cv_lib_net_gethostbyname=no
20120 rm -f core conftest.err conftest.$ac_objext \
20121 conftest$ac_exeext conftest.$ac_ext
20122 LIBS=$ac_check_lib_save_LIBS
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20125 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20126 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20127 HAVE_GETHOSTBYNAME="1"
20135 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20136 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20140 curl_includes_winsock2="\
20141 /* includes start */
20142 #ifdef HAVE_WINDOWS_H
20143 # ifndef WIN32_LEAN_AND_MEAN
20144 # define WIN32_LEAN_AND_MEAN
20146 # include <windows.h>
20147 # ifdef HAVE_WINSOCK2_H
20148 # include <winsock2.h>
20150 # ifdef HAVE_WINSOCK_H
20151 # include <winsock.h>
20155 /* includes end */"
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20158 $as_echo_n "checking for windows.h... " >&6; }
20159 if ${curl_cv_header_windows_h+:} false; then :
20160 $as_echo_n "(cached) " >&6
20163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20168 #ifndef WIN32_LEAN_AND_MEAN
20169 #define WIN32_LEAN_AND_MEAN
20171 #include <windows.h>
20176 #if defined(__CYGWIN__) || defined(__CEGCC__)
20177 HAVE_WINDOWS_H shall not be defined.
20179 int dummy=2*WINVER;
20187 if ac_fn_c_try_compile "$LINENO"; then :
20189 curl_cv_header_windows_h="yes"
20193 curl_cv_header_windows_h="no"
20196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20200 $as_echo "$curl_cv_header_windows_h" >&6; }
20201 case "$curl_cv_header_windows_h" in
20204 cat >>confdefs.h <<_ACEOF
20205 #define HAVE_WINDOWS_H 1
20209 cat >>confdefs.h <<_ACEOF
20210 #define WIN32_LEAN_AND_MEAN 1
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20218 $as_echo_n "checking for winsock.h... " >&6; }
20219 if ${curl_cv_header_winsock_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>
20232 #include <winsock.h>
20237 #if defined(__CYGWIN__) || defined(__CEGCC__)
20238 HAVE_WINSOCK_H shall not be defined.
20240 int dummy=WSACleanup();
20248 if ac_fn_c_try_compile "$LINENO"; then :
20250 curl_cv_header_winsock_h="yes"
20254 curl_cv_header_winsock_h="no"
20257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20261 $as_echo "$curl_cv_header_winsock_h" >&6; }
20262 case "$curl_cv_header_winsock_h" in
20265 cat >>confdefs.h <<_ACEOF
20266 #define HAVE_WINSOCK_H 1
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20274 $as_echo_n "checking for winsock2.h... " >&6; }
20275 if ${curl_cv_header_winsock2_h+:} false; then :
20276 $as_echo_n "(cached) " >&6
20279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h. */
20284 #ifndef WIN32_LEAN_AND_MEAN
20285 #define WIN32_LEAN_AND_MEAN
20287 #include <windows.h>
20288 #include <winsock2.h>
20293 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20294 HAVE_WINSOCK2_H shall not be defined.
20296 int dummy=2*IPPROTO_ESP;
20304 if ac_fn_c_try_compile "$LINENO"; then :
20306 curl_cv_header_winsock2_h="yes"
20310 curl_cv_header_winsock2_h="no"
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20317 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20318 case "$curl_cv_header_winsock2_h" in
20321 cat >>confdefs.h <<_ACEOF
20322 #define HAVE_WINSOCK2_H 1
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20331 $as_echo_n "checking for connect in libraries... " >&6; }
20332 tst_connect_save_LIBS="$LIBS"
20333 tst_connect_need_LIBS="unknown"
20334 for tst_lib in '' '-lsocket' ; do
20335 if test "$tst_connect_need_LIBS" = "unknown"; then
20336 LIBS="$tst_lib $tst_connect_save_LIBS"
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20341 $curl_includes_winsock2
20342 #ifndef HAVE_WINDOWS_H
20343 int connect(int, void*, int);
20349 if(0 != connect(0, 0, 0))
20357 if ac_fn_c_try_link "$LINENO"; then :
20359 tst_connect_need_LIBS="$tst_lib"
20362 rm -f core conftest.err conftest.$ac_objext \
20363 conftest$ac_exeext conftest.$ac_ext
20366 LIBS="$tst_connect_save_LIBS"
20368 case X-"$tst_connect_need_LIBS" in
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20371 $as_echo "cannot find connect" >&6; }
20372 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20376 $as_echo "yes" >&6; }
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20380 $as_echo "$tst_connect_need_LIBS" >&6; }
20381 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20386 CURL_NETWORK_LIBS=$LIBS
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20389 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20390 if ${ac_cv_header_time+:} false; then :
20391 $as_echo_n "(cached) " >&6
20393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20394 /* end confdefs.h. */
20395 #include <sys/types.h>
20396 #include <sys/time.h>
20401 if ((struct tm *) 0)
20407 if ac_fn_c_try_compile "$LINENO"; then :
20408 ac_cv_header_time=yes
20410 ac_cv_header_time=no
20412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20415 $as_echo "$ac_cv_header_time" >&6; }
20416 if test $ac_cv_header_time = yes; then
20418 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20423 for ac_header in sys/types.h sys/time.h time.h
20425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20426 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20428 cat >>confdefs.h <<_ACEOF
20429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20437 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20439 if test "x$dontwant_rt" == "xno" ; then
20440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441 /* end confdefs.h. */
20444 #ifdef HAVE_SYS_TYPES_H
20445 #include <sys/types.h>
20447 #ifdef HAVE_SYS_TIME_H
20448 #include <sys/time.h>
20449 #ifdef TIME_WITH_SYS_TIME
20461 struct timespec ts;
20462 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20469 if ac_fn_c_try_compile "$LINENO"; then :
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20472 $as_echo "yes" >&6; }
20473 curl_func_clock_gettime="yes"
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20478 $as_echo "no" >&6; }
20479 curl_func_clock_gettime="no"
20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487 if test "$curl_func_clock_gettime" = "yes"; then
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20490 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20492 curl_cv_save_LIBS="$LIBS"
20493 curl_cv_gclk_LIBS="unknown"
20495 for x_xlibs in '' '-lrt' '-lposix4' ; do
20496 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20497 if test -z "$x_xlibs"; then
20498 LIBS="$curl_cv_save_LIBS"
20500 LIBS="$x_xlibs $curl_cv_save_LIBS"
20502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h. */
20506 #ifdef HAVE_SYS_TYPES_H
20507 #include <sys/types.h>
20509 #ifdef HAVE_SYS_TIME_H
20510 #include <sys/time.h>
20511 #ifdef TIME_WITH_SYS_TIME
20523 struct timespec ts;
20524 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20531 if ac_fn_c_try_link "$LINENO"; then :
20533 curl_cv_gclk_LIBS="$x_xlibs"
20536 rm -f core conftest.err conftest.$ac_objext \
20537 conftest$ac_exeext conftest.$ac_ext
20541 LIBS="$curl_cv_save_LIBS"
20543 case X-"$curl_cv_gclk_LIBS" in
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20546 $as_echo "cannot find clock_gettime" >&6; }
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20548 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20549 curl_func_clock_gettime="no"
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20553 $as_echo "no additional lib required" >&6; }
20554 curl_func_clock_gettime="yes"
20557 if test -z "$curl_cv_save_LIBS"; then
20558 LIBS="$curl_cv_gclk_LIBS"
20560 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20563 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20564 curl_func_clock_gettime="yes"
20568 if test "x$cross_compiling" != "xyes" &&
20569 test "$curl_func_clock_gettime" = "yes"; then
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20571 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20572 if test "$cross_compiling" = yes; then :
20573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20575 as_fn_error $? "cannot run test program while cross compiling
20576 See \`config.log' for more details" "$LINENO" 5; }
20578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h. */
20582 #ifdef HAVE_STDLIB_H
20583 #include <stdlib.h>
20585 #ifdef HAVE_SYS_TYPES_H
20586 #include <sys/types.h>
20588 #ifdef HAVE_SYS_TIME_H
20589 #include <sys/time.h>
20590 #ifdef TIME_WITH_SYS_TIME
20602 struct timespec ts;
20603 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20613 if ac_fn_c_try_run "$LINENO"; then :
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20616 $as_echo "yes" >&6; }
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20621 $as_echo "no" >&6; }
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20623 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20624 curl_func_clock_gettime="no"
20625 LIBS="$curl_cv_save_LIBS"
20628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20629 conftest.$ac_objext conftest.beam conftest.$ac_ext
20634 case "$curl_func_clock_gettime" in
20637 cat >>confdefs.h <<_ACEOF
20638 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20648 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20652 clean_CPPFLAGS=$CPPFLAGS
20653 clean_LDFLAGS=$LDFLAGS
20657 # Check whether --with-zlib was given.
20658 if test "${with_zlib+set}" = set; then :
20659 withval=$with_zlib; OPT_ZLIB="$withval"
20663 if test "$OPT_ZLIB" = "no" ; then
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20665 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20667 if test "$OPT_ZLIB" = "yes" ; then
20672 if test -n "$PKG_CONFIG"; then
20673 PKGCONFIG="$PKG_CONFIG"
20675 if test -n "$ac_tool_prefix"; then
20676 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20677 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20679 $as_echo_n "checking for $ac_word... " >&6; }
20680 if ${ac_cv_path_PKGCONFIG+:} false; then :
20681 $as_echo_n "(cached) " >&6
20685 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20689 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20690 for as_dir in $as_dummy
20693 test -z "$as_dir" && as_dir=.
20694 for ac_exec_ext in '' $ac_executable_extensions; do
20695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20696 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20707 PKGCONFIG=$ac_cv_path_PKGCONFIG
20708 if test -n "$PKGCONFIG"; then
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20710 $as_echo "$PKGCONFIG" >&6; }
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20713 $as_echo "no" >&6; }
20718 if test -z "$ac_cv_path_PKGCONFIG"; then
20719 ac_pt_PKGCONFIG=$PKGCONFIG
20720 # Extract the first word of "pkg-config", so it can be a program name with args.
20721 set dummy pkg-config; ac_word=$2
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20723 $as_echo_n "checking for $ac_word... " >&6; }
20724 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20725 $as_echo_n "(cached) " >&6
20727 case $ac_pt_PKGCONFIG in
20729 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20733 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20734 for as_dir in $as_dummy
20737 test -z "$as_dir" && as_dir=.
20738 for ac_exec_ext in '' $ac_executable_extensions; do
20739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20740 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20751 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20752 if test -n "$ac_pt_PKGCONFIG"; then
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20754 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20757 $as_echo "no" >&6; }
20760 if test "x$ac_pt_PKGCONFIG" = x; then
20763 case $cross_compiling:$ac_tool_warned in
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20767 ac_tool_warned=yes ;;
20769 PKGCONFIG=$ac_pt_PKGCONFIG
20772 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20777 if test "x$PKGCONFIG" != "xno"; then
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20779 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20781 if test -n ""; then
20782 PKG_CONFIG_LIBDIR=""
20783 export PKG_CONFIG_LIBDIR
20785 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20787 if test -z "$itexists"; then
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20790 $as_echo "no" >&6; }
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20793 $as_echo "found" >&6; }
20798 if test "$PKGCONFIG" != "no" ; then
20799 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20800 LDFLAGS="`$PKGCONFIG --libs-only-L zlib` $LDFLAGS"
20801 CPPFLAGS="`$PKGCONFIG --cflags-only-I zlib` $CPPFLAGS"
20806 if test -z "$OPT_ZLIB" ; then
20808 if test -z "$HAVE_LIBZ"; then
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20812 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20813 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20814 $as_echo_n "(cached) " >&6
20816 ac_check_lib_save_LIBS=$LIBS
20818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20819 /* end confdefs.h. */
20825 char inflateEnd ();
20828 return inflateEnd ();
20833 if ac_fn_c_try_link "$LINENO"; then :
20834 ac_cv_lib_z_inflateEnd=yes
20836 ac_cv_lib_z_inflateEnd=no
20838 rm -f core conftest.err conftest.$ac_objext \
20839 conftest$ac_exeext conftest.$ac_ext
20840 LIBS=$ac_check_lib_save_LIBS
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20843 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20844 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20848 OPT_ZLIB="/usr/local"
20854 if test -n "$OPT_ZLIB"; then
20855 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20856 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20859 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20860 if test "x$ac_cv_header_zlib_h" = xyes; then :
20863 if test "$HAVE_LIBZ" != "1"; then
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20865 $as_echo_n "checking for gzread in -lz... " >&6; }
20866 if ${ac_cv_lib_z_gzread+:} false; then :
20867 $as_echo_n "(cached) " >&6
20869 ac_check_lib_save_LIBS=$LIBS
20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h. */
20886 if ac_fn_c_try_link "$LINENO"; then :
20887 ac_cv_lib_z_gzread=yes
20889 ac_cv_lib_z_gzread=no
20891 rm -f core conftest.err conftest.$ac_objext \
20892 conftest$ac_exeext conftest.$ac_ext
20893 LIBS=$ac_check_lib_save_LIBS
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20896 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20897 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20903 CPPFLAGS=$clean_CPPFLAGS
20904 LDFLAGS=$clean_LDFLAGS
20911 CPPFLAGS=$clean_CPPFLAGS
20912 LDFLAGS=$clean_LDFLAGS
20918 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20921 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20923 CPPFLAGS=$clean_CPPFLAGS
20924 LDFLAGS=$clean_LDFLAGS
20926 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20929 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20930 CPPFLAGS=$clean_CPPFLAGS
20931 LDFLAGS=$clean_LDFLAGS
20933 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20937 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20940 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20944 LIBS="-lz $clean_LIBS"
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20948 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20949 curl_zlib_msg="enabled"
20953 if test x"$AMFIXLIB" = x1; then
20955 HAVE_LIBZ_FALSE='#'
20966 # Check whether --with-ldap-lib was given.
20967 if test "${with_ldap_lib+set}" = set; then :
20968 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20974 # Check whether --with-lber-lib was given.
20975 if test "${with_lber_lib+set}" = set; then :
20976 withval=$with_lber_lib; LBERLIBNAME="$withval"
20980 if test x$CURL_DISABLE_LDAP != x1 ; then
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20984 $as_echo_n "checking for lber.h... " >&6; }
20985 if ${curl_cv_header_lber_h+:} false; then :
20986 $as_echo_n "(cached) " >&6
20989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h. */
20994 #ifdef HAVE_WINDOWS_H
20995 #ifndef WIN32_LEAN_AND_MEAN
20996 #define WIN32_LEAN_AND_MEAN
20998 #include <windows.h>
21000 #ifdef HAVE_SYS_TYPES_H
21001 #include <sys/types.h>
21005 #define NULL (void *)0
21012 BerValue *bvp = NULL;
21013 BerElement *bep = ber_init(bvp);
21021 if ac_fn_c_try_compile "$LINENO"; then :
21023 curl_cv_header_lber_h="yes"
21027 curl_cv_header_lber_h="no"
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21034 $as_echo "$curl_cv_header_lber_h" >&6; }
21035 if test "$curl_cv_header_lber_h" = "yes"; then
21037 cat >>confdefs.h <<_ACEOF
21038 #define HAVE_LBER_H 1
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21047 #ifdef HAVE_WINDOWS_H
21048 #ifndef WIN32_LEAN_AND_MEAN
21049 #define WIN32_LEAN_AND_MEAN
21051 #include <windows.h>
21053 #ifdef HAVE_SYS_TYPES_H
21054 #include <sys/types.h>
21058 #define NULL (void *)0
21060 #ifndef LDAP_DEPRECATED
21061 #define LDAP_DEPRECATED 1
21068 BerValue *bvp = NULL;
21069 BerElement *bep = ber_init(bvp);
21077 if ac_fn_c_try_compile "$LINENO"; then :
21079 curl_cv_need_header_lber_h="no"
21083 curl_cv_need_header_lber_h="yes"
21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21088 case "$curl_cv_need_header_lber_h" in
21091 cat >>confdefs.h <<_ACEOF
21092 #define NEED_LBER_H 1
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21101 $as_echo_n "checking for ldap.h... " >&6; }
21102 if ${curl_cv_header_ldap_h+:} false; then :
21103 $as_echo_n "(cached) " >&6
21106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21107 /* end confdefs.h. */
21111 #ifdef HAVE_WINDOWS_H
21112 #ifndef WIN32_LEAN_AND_MEAN
21113 #define WIN32_LEAN_AND_MEAN
21115 #include <windows.h>
21117 #ifdef HAVE_SYS_TYPES_H
21118 #include <sys/types.h>
21121 #ifndef LDAP_DEPRECATED
21122 #define LDAP_DEPRECATED 1
21132 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21133 int res = ldap_unbind(ldp);
21140 if ac_fn_c_try_compile "$LINENO"; then :
21142 curl_cv_header_ldap_h="yes"
21146 curl_cv_header_ldap_h="no"
21149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21153 $as_echo "$curl_cv_header_ldap_h" >&6; }
21154 case "$curl_cv_header_ldap_h" in
21157 cat >>confdefs.h <<_ACEOF
21158 #define HAVE_LDAP_H 1
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21166 $as_echo_n "checking for ldapssl.h... " >&6; }
21167 if ${curl_cv_header_ldapssl_h+:} false; then :
21168 $as_echo_n "(cached) " >&6
21171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21172 /* end confdefs.h. */
21176 #ifdef HAVE_WINDOWS_H
21177 #ifndef WIN32_LEAN_AND_MEAN
21178 #define WIN32_LEAN_AND_MEAN
21180 #include <windows.h>
21182 #ifdef HAVE_SYS_TYPES_H
21183 #include <sys/types.h>
21187 #define NULL (void *)0
21189 #ifndef LDAP_DEPRECATED
21190 #define LDAP_DEPRECATED 1
21198 #include <ldapssl.h>
21203 char *cert_label = NULL;
21204 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21211 if ac_fn_c_try_compile "$LINENO"; then :
21213 curl_cv_header_ldapssl_h="yes"
21217 curl_cv_header_ldapssl_h="no"
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21224 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21225 case "$curl_cv_header_ldapssl_h" in
21228 cat >>confdefs.h <<_ACEOF
21229 #define HAVE_LDAPSSL_H 1
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21237 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21238 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21239 $as_echo_n "(cached) " >&6
21242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21243 /* end confdefs.h. */
21247 #ifdef HAVE_WINDOWS_H
21248 #ifndef WIN32_LEAN_AND_MEAN
21249 #define WIN32_LEAN_AND_MEAN
21251 #include <windows.h>
21253 #ifdef HAVE_SYS_TYPES_H
21254 #include <sys/types.h>
21257 #ifndef LDAP_DEPRECATED
21258 #define LDAP_DEPRECATED 1
21266 #include <ldap_ssl.h>
21271 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21278 if ac_fn_c_try_compile "$LINENO"; then :
21280 curl_cv_header_ldap_ssl_h="yes"
21284 curl_cv_header_ldap_ssl_h="no"
21287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21291 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21292 case "$curl_cv_header_ldap_ssl_h" in
21295 cat >>confdefs.h <<_ACEOF
21296 #define HAVE_LDAP_SSL_H 1
21303 if test -z "$LDAPLIBNAME" ; then
21304 if test "$curl_cv_native_windows" = "yes"; then
21305 LDAPLIBNAME="wldap32"
21310 if test "$LDAPLIBNAME" ; then
21311 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21313 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21314 if eval \${$as_ac_Lib+:} false; then :
21315 $as_echo_n "(cached) " >&6
21317 ac_check_lib_save_LIBS=$LIBS
21318 LIBS="-l"$LDAPLIBNAME" $LIBS"
21319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21320 /* end confdefs.h. */
21329 return ldap_init ();
21334 if ac_fn_c_try_link "$LINENO"; then :
21335 eval "$as_ac_Lib=yes"
21337 eval "$as_ac_Lib=no"
21339 rm -f core conftest.err conftest.$ac_objext \
21340 conftest$ac_exeext conftest.$ac_ext
21341 LIBS=$ac_check_lib_save_LIBS
21343 eval ac_res=\$$as_ac_Lib
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21345 $as_echo "$ac_res" >&6; }
21346 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21347 cat >>confdefs.h <<_ACEOF
21348 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21351 LIBS="-l"$LDAPLIBNAME" $LIBS"
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21356 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21358 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21360 CURL_DISABLE_LDAP=1
21363 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21365 CURL_DISABLE_LDAPS=1
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21373 $as_echo_n "checking for LDAP libraries... " >&6; }
21379 curl_cv_save_LIBS="$LIBS"
21380 curl_cv_ldap_LIBS="unknown"
21382 for x_nlibs in '' "$u_libs" \
21386 '-lldapssl -lldapx -lldapsdk' \
21387 '-lldapsdk -lldapx -lldapssl' ; do
21388 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21389 if test -z "$x_nlibs"; then
21390 LIBS="$curl_cv_save_LIBS"
21392 LIBS="$x_nlibs $curl_cv_save_LIBS"
21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21399 #ifdef HAVE_WINDOWS_H
21400 #ifndef WIN32_LEAN_AND_MEAN
21401 #define WIN32_LEAN_AND_MEAN
21403 #include <windows.h>
21405 #ifdef HAVE_SYS_TYPES_H
21406 #include <sys/types.h>
21410 #define NULL (void *)0
21412 #ifndef LDAP_DEPRECATED
21413 #define LDAP_DEPRECATED 1
21425 BerValue *bvp = NULL;
21426 BerElement *bep = ber_init(bvp);
21427 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21428 int res = ldap_unbind(ldp);
21436 if ac_fn_c_try_link "$LINENO"; then :
21438 curl_cv_ldap_LIBS="$x_nlibs"
21441 rm -f core conftest.err conftest.$ac_objext \
21442 conftest$ac_exeext conftest.$ac_ext
21446 LIBS="$curl_cv_save_LIBS"
21448 case X-"$curl_cv_ldap_LIBS" in
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21451 $as_echo "cannot find LDAP libraries" >&6; }
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21455 $as_echo "no additional lib required" >&6; }
21458 if test -z "$curl_cv_save_LIBS"; then
21459 LIBS="$curl_cv_ldap_LIBS"
21461 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21464 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21469 case X-"$curl_cv_ldap_LIBS" in
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21472 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21474 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21476 CURL_DISABLE_LDAP=1
21479 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21481 CURL_DISABLE_LDAPS=1
21488 if test x$CURL_DISABLE_LDAP != x1 ; then
21490 if test "$LBERLIBNAME" ; then
21491 if test "$LBERLIBNAME" != "no" ; then
21492 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21494 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21495 if eval \${$as_ac_Lib+:} false; then :
21496 $as_echo_n "(cached) " >&6
21498 ac_check_lib_save_LIBS=$LIBS
21499 LIBS="-l"$LBERLIBNAME" $LIBS"
21500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21501 /* end confdefs.h. */
21510 return ber_free ();
21515 if ac_fn_c_try_link "$LINENO"; then :
21516 eval "$as_ac_Lib=yes"
21518 eval "$as_ac_Lib=no"
21520 rm -f core conftest.err conftest.$ac_objext \
21521 conftest$ac_exeext conftest.$ac_ext
21522 LIBS=$ac_check_lib_save_LIBS
21524 eval ac_res=\$$as_ac_Lib
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21526 $as_echo "$ac_res" >&6; }
21527 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21528 cat >>confdefs.h <<_ACEOF
21529 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21532 LIBS="-l"$LBERLIBNAME" $LIBS"
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21537 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21539 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21541 CURL_DISABLE_LDAP=1
21544 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21546 CURL_DISABLE_LDAPS=1
21554 if test x$CURL_DISABLE_LDAP != x1 ; then
21555 for ac_func in ldap_url_parse ldap_init_fd
21557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21559 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21560 cat >>confdefs.h <<_ACEOF
21561 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21568 if test "$LDAPLIBNAME" = "wldap32"; then
21569 curl_ldap_msg="enabled (winldap)"
21571 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21574 curl_ldap_msg="enabled (OpenLDAP)"
21575 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21577 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21585 if test x$CURL_DISABLE_LDAPS != x1 ; then
21586 curl_ldaps_msg="enabled"
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21591 $as_echo_n "checking whether to enable IPv6... " >&6; }
21592 # Check whether --enable-ipv6 was given.
21593 if test "${enable_ipv6+set}" = set; then :
21594 enableval=$enable_ipv6; case "$enableval" in
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21597 $as_echo "no" >&6; }
21600 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21601 $as_echo "yes" >&6; }
21606 if test "$cross_compiling" = yes; then :
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21608 $as_echo "yes" >&6; }
21612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21613 /* end confdefs.h. */
21614 /* is AF_INET6 available? */
21615 #include <sys/types.h>
21616 #ifdef HAVE_WINSOCK2_H
21617 #include <winsock2.h>
21619 #include <sys/socket.h>
21621 #include <stdlib.h> /* for exit() */
21624 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21631 if ac_fn_c_try_run "$LINENO"; then :
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21633 $as_echo "yes" >&6; }
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21637 $as_echo "no" >&6; }
21640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21641 conftest.$ac_objext conftest.beam conftest.$ac_ext
21647 if test "$ipv6" = "yes"; then
21648 curl_ipv6_msg="enabled"
21651 # Check if struct sockaddr_in6 have sin6_scope_id member
21652 if test "$ipv6" = yes; then
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21654 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21656 /* end confdefs.h. */
21658 #include <sys/types.h>
21659 #ifdef HAVE_WINSOCK2_H
21660 #include <winsock2.h>
21661 #include <ws2tcpip.h>
21663 #include <netinet/in.h>
21667 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21672 if ac_fn_c_try_compile "$LINENO"; then :
21673 have_sin6_scope_id=yes
21675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21676 if test "$have_sin6_scope_id" = yes; then
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21678 $as_echo "yes" >&6; }
21680 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21684 $as_echo "no" >&6; }
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21690 $as_echo_n "checking if argv can be written to... " >&6; }
21691 if test "$cross_compiling" = yes; then :
21693 curl_cv_writable_argv=cross
21696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21697 /* end confdefs.h. */
21700 int main(int argc, char ** argv) {
21702 return (argv[0][0] == ' ')?0:1;
21707 if ac_fn_c_try_run "$LINENO"; then :
21709 curl_cv_writable_argv=yes
21713 curl_cv_writable_argv=no
21716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21717 conftest.$ac_objext conftest.beam conftest.$ac_ext
21720 case $curl_cv_writable_argv in
21723 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21726 $as_echo "yes" >&6; }
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21730 $as_echo "no" >&6; }
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21734 $as_echo "no" >&6; }
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21736 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21744 # Check whether --with-gssapi-includes was given.
21745 if test "${with_gssapi_includes+set}" = set; then :
21746 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21753 # Check whether --with-gssapi-libs was given.
21754 if test "${with_gssapi_libs+set}" = set; then :
21755 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21762 # Check whether --with-gssapi was given.
21763 if test "${with_gssapi+set}" = set; then :
21764 withval=$with_gssapi;
21765 GSSAPI_ROOT="$withval"
21766 if test x"$GSSAPI_ROOT" != xno; then
21768 if test x"$GSSAPI_ROOT" = xyes; then
21776 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21778 save_CPPFLAGS="$CPPFLAGS"
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21780 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21781 if test x"$want_gss" = xyes; then
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21783 $as_echo "yes" >&6; }
21785 if test -z "$GSSAPI_INCS"; then
21786 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21787 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21788 elif test -f "$KRB5CONFIG"; then
21789 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21790 elif test "$GSSAPI_ROOT" != "yes"; then
21791 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21795 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21797 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21798 if test "x$ac_cv_header_gss_h" = xyes; then :
21801 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21807 for ac_header in gssapi/gssapi.h
21809 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21810 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21811 cat >>confdefs.h <<_ACEOF
21812 #define HAVE_GSSAPI_GSSAPI_H 1
21821 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21824 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21825 $ac_includes_default
21826 #ifdef HAVE_GSSAPI_GSSAPI_H
21827 #include <gssapi/gssapi.h>
21831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21832 cat >>confdefs.h <<_ACEOF
21833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21842 if test "x$not_mit" = "x1"; then
21843 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21844 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21847 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21854 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21862 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21865 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h. */
21870 #include <gssapi/gssapi.h>
21871 #include <gssapi/gssapi_generic.h>
21872 #include <gssapi/gssapi_krb5.h>
21880 GSS_C_NT_HOSTBASED_SERVICE,
21888 if ac_fn_c_try_compile "$LINENO"; then :
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21891 $as_echo "yes" >&6; }
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21896 $as_echo "no" >&6; }
21898 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21911 $as_echo "no" >&6; }
21913 if test x"$want_gss" = xyes; then
21915 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21918 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21920 if test -n "$gnu_gss"; then
21921 curl_gss_msg="enabled (GNU GSS)"
21922 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21924 elif test -z "$GSSAPI_LIB_DIR"; then
21927 LIBS="-lgssapi_krb5 -lresolv $LIBS"
21930 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21931 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21932 LIBS="$gss_libs $LIBS"
21933 elif test -f "$KRB5CONFIG"; then
21934 gss_libs=`$KRB5CONFIG --libs gssapi`
21935 LIBS="$gss_libs $LIBS"
21942 gss_libname="gssapi"
21946 if test "$GSSAPI_ROOT" != "yes"; then
21947 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21948 LIBS="-l$gss_libname $LIBS"
21950 LIBS="-l$gss_libname $LIBS"
21956 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21962 LIBS="-lgssapi $LIBS"
21967 CPPFLAGS="$save_CPPFLAGS"
21973 # Check whether --with-winssl was given.
21974 if test "${with_winssl+set}" = set; then :
21975 withval=$with_winssl; OPT_WINSSL=$withval
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21980 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21981 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21982 if test "x$OPT_WINSSL" != "xno" &&
21983 test "x$curl_cv_native_windows" = "xyes"; then
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21985 $as_echo "yes" >&6; }
21987 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21991 curl_ssl_msg="enabled (Windows-native)"
21993 # --with-winssl implies --enable-sspi
21995 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21999 curl_sspi_msg="enabled"
22000 LIBS="-lcrypt32 $LIBS"
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22003 $as_echo "no" >&6; }
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22007 $as_echo "no" >&6; }
22012 # Check whether --with-darwinssl was given.
22013 if test "${with_darwinssl+set}" = set; then :
22014 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
22019 $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
22020 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22021 if test "x$OPT_DARWINSSL" != "xno" &&
22022 test -d "/System/Library/Frameworks/Security.framework"; then
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22024 $as_echo "yes" >&6; }
22026 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22030 curl_ssl_msg="enabled (iOS/Mac OS X-native)"
22031 DARWINSSL_ENABLED=1
22032 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22035 $as_echo "no" >&6; }
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22039 $as_echo "no" >&6; }
22046 # Check whether --with-ssl was given.
22047 if test "${with_ssl+set}" = set; then :
22048 withval=$with_ssl; OPT_SSL=$withval
22052 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
22053 CLEANLDFLAGS="$LDFLAGS"
22054 CLEANCPPFLAGS="$CPPFLAGS"
22058 *-*-msys* | *-*-mingw*)
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22060 $as_echo_n "checking for gdi32... " >&6; }
22061 my_ac_save_LIBS=$LIBS
22062 LIBS="-lgdi32 $LIBS"
22063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h. */
22065 #include <windef.h>
22066 #include <wingdi.h>
22074 if ac_fn_c_try_link "$LINENO"; then :
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22076 $as_echo "yes" >&6; }
22078 LIBS=$my_ac_save_LIBS
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22080 $as_echo "no" >&6; }
22083 rm -f core conftest.err conftest.$ac_objext \
22084 conftest$ac_exeext conftest.$ac_ext
22090 if test x$cross_compiling != xyes; then
22093 PREFIX_OPENSSL=/usr/local/ssl
22094 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22097 if test x$cross_compiling != xyes; then
22104 PREFIX_OPENSSL=$OPT_SSL
22106 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22108 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22109 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22113 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22114 if test "$PREFIX_OPENSSL" != "/usr" ; then
22115 SSL_LDFLAGS="-L$LIB_OPENSSL"
22116 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22118 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22122 if test "$PKGTEST" = "yes"; then
22125 if test -n "$PKG_CONFIG"; then
22126 PKGCONFIG="$PKG_CONFIG"
22128 if test -n "$ac_tool_prefix"; then
22129 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22130 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22132 $as_echo_n "checking for $ac_word... " >&6; }
22133 if ${ac_cv_path_PKGCONFIG+:} false; then :
22134 $as_echo_n "(cached) " >&6
22138 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22142 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22143 for as_dir in $as_dummy
22146 test -z "$as_dir" && as_dir=.
22147 for ac_exec_ext in '' $ac_executable_extensions; do
22148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22149 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22160 PKGCONFIG=$ac_cv_path_PKGCONFIG
22161 if test -n "$PKGCONFIG"; then
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22163 $as_echo "$PKGCONFIG" >&6; }
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22166 $as_echo "no" >&6; }
22171 if test -z "$ac_cv_path_PKGCONFIG"; then
22172 ac_pt_PKGCONFIG=$PKGCONFIG
22173 # Extract the first word of "pkg-config", so it can be a program name with args.
22174 set dummy pkg-config; ac_word=$2
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22176 $as_echo_n "checking for $ac_word... " >&6; }
22177 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22178 $as_echo_n "(cached) " >&6
22180 case $ac_pt_PKGCONFIG in
22182 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22186 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22187 for as_dir in $as_dummy
22190 test -z "$as_dir" && as_dir=.
22191 for ac_exec_ext in '' $ac_executable_extensions; do
22192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22193 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22204 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22205 if test -n "$ac_pt_PKGCONFIG"; then
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22207 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22210 $as_echo "no" >&6; }
22213 if test "x$ac_pt_PKGCONFIG" = x; then
22216 case $cross_compiling:$ac_tool_warned in
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22220 ac_tool_warned=yes ;;
22222 PKGCONFIG=$ac_pt_PKGCONFIG
22225 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22230 if test "x$PKGCONFIG" != "xno"; then
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22232 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22234 if test -n "$OPENSSL_PCDIR"; then
22235 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22236 export PKG_CONFIG_LIBDIR
22238 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22240 if test -z "$itexists"; then
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22243 $as_echo "no" >&6; }
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22246 $as_echo "found" >&6; }
22251 if test "$PKGCONFIG" != "no" ; then
22253 if test -n "$OPENSSL_PCDIR"; then
22254 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22255 export PKG_CONFIG_LIBDIR
22257 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22260 if test -n "$OPENSSL_PCDIR"; then
22261 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22262 export PKG_CONFIG_LIBDIR
22264 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22267 if test -n "$OPENSSL_PCDIR"; then
22268 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22269 export PKG_CONFIG_LIBDIR
22271 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22275 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22277 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22279 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22281 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22283 LIBS="$SSL_LIBS $LIBS"
22287 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22288 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22291 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22292 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22293 $as_echo_n "(cached) " >&6
22295 ac_check_lib_save_LIBS=$LIBS
22296 LIBS="-lcrypto $LIBS"
22297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22298 /* end confdefs.h. */
22304 char HMAC_Update ();
22307 return HMAC_Update ();
22312 if ac_fn_c_try_link "$LINENO"; then :
22313 ac_cv_lib_crypto_HMAC_Update=yes
22315 ac_cv_lib_crypto_HMAC_Update=no
22317 rm -f core conftest.err conftest.$ac_objext \
22318 conftest$ac_exeext conftest.$ac_ext
22319 LIBS=$ac_check_lib_save_LIBS
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22322 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22323 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22326 LIBS="-lcrypto $LIBS"
22330 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22331 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22333 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22334 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22335 $as_echo_n "(cached) " >&6
22337 ac_check_lib_save_LIBS=$LIBS
22338 LIBS="-lcrypto $LIBS"
22339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h. */
22346 char HMAC_Init_ex ();
22349 return HMAC_Init_ex ();
22354 if ac_fn_c_try_link "$LINENO"; then :
22355 ac_cv_lib_crypto_HMAC_Init_ex=yes
22357 ac_cv_lib_crypto_HMAC_Init_ex=no
22359 rm -f core conftest.err conftest.$ac_objext \
22360 conftest$ac_exeext conftest.$ac_ext
22361 LIBS=$ac_check_lib_save_LIBS
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22364 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22365 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22368 LIBS="-lcrypto $LIBS"
22371 LDFLAGS="$CLEANLDFLAGS"
22372 CPPFLAGS="$CLEANCPPFLAGS"
22382 if test X"$HAVECRYPTO" = X"yes"; then
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking without -ldl" >&5
22384 $as_echo_n "checking OpenSSL linking without -ldl... " >&6; }
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22389 #include <openssl/evp.h>
22394 SSLeay_add_all_algorithms();
22400 if ac_fn_c_try_link "$LINENO"; then :
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22403 $as_echo "yes" >&6; }
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22409 $as_echo "no" >&6; }
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22411 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22414 /* end confdefs.h. */
22416 #include <openssl/evp.h>
22421 SSLeay_add_all_algorithms();
22427 if ac_fn_c_try_link "$LINENO"; then :
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22430 $as_echo "yes" >&6; }
22431 LIBS="$saved_libs -ldl"
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22436 $as_echo "no" >&6; }
22441 rm -f core conftest.err conftest.$ac_objext \
22442 conftest$ac_exeext conftest.$ac_ext
22447 rm -f core conftest.err conftest.$ac_objext \
22448 conftest$ac_exeext conftest.$ac_ext
22452 if test X"$HAVECRYPTO" = X"yes"; then
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22455 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22456 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22457 $as_echo_n "(cached) " >&6
22459 ac_check_lib_save_LIBS=$LIBS
22461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22462 /* end confdefs.h. */
22468 char SSL_connect ();
22471 return SSL_connect ();
22476 if ac_fn_c_try_link "$LINENO"; then :
22477 ac_cv_lib_ssl_SSL_connect=yes
22479 ac_cv_lib_ssl_SSL_connect=no
22481 rm -f core conftest.err conftest.$ac_objext \
22482 conftest$ac_exeext conftest.$ac_ext
22483 LIBS=$ac_check_lib_save_LIBS
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22486 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22487 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22488 cat >>confdefs.h <<_ACEOF
22489 #define HAVE_LIBSSL 1
22497 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22499 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22501 LIBS="-lRSAglue -lrsaref $LIBS"
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22503 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22504 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22505 $as_echo_n "(cached) " >&6
22507 ac_check_lib_save_LIBS=$LIBS
22509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22510 /* end confdefs.h. */
22516 char SSL_connect ();
22519 return SSL_connect ();
22524 if ac_fn_c_try_link "$LINENO"; then :
22525 ac_cv_lib_ssl_SSL_connect=yes
22527 ac_cv_lib_ssl_SSL_connect=no
22529 rm -f core conftest.err conftest.$ac_objext \
22530 conftest$ac_exeext conftest.$ac_ext
22531 LIBS=$ac_check_lib_save_LIBS
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22534 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22535 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22536 cat >>confdefs.h <<_ACEOF
22537 #define HAVE_LIBSSL 1
22544 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22546 $as_echo "no" >&6; }
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22550 $as_echo "yes" >&6; }
22555 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22556 openssl/pem.h openssl/ssl.h openssl/err.h
22558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22559 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22561 cat >>confdefs.h <<_ACEOF
22562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22564 curl_ssl_msg="enabled (OpenSSL)"
22567 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22574 if test $ac_cv_header_openssl_x509_h = no; then
22575 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22578 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22579 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22580 cat >>confdefs.h <<_ACEOF
22581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22589 if test $ac_cv_header_x509_h = yes &&
22590 test $ac_cv_header_crypto_h = yes &&
22591 test $ac_cv_header_ssl_h = yes; then
22592 curl_ssl_msg="enabled (OpenSSL)"
22598 if test X"$OPENSSL_ENABLED" = X"1"; then
22599 for ac_header in openssl/pkcs12.h
22601 ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
22602 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
22603 cat >>confdefs.h <<_ACEOF
22604 #define HAVE_OPENSSL_PKCS12_H 1
22615 if test X"$OPT_SSL" != Xoff &&
22616 test "$OPENSSL_ENABLED" != "1"; then
22617 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22621 if test X"$OPENSSL_ENABLED" = X"1"; then
22622 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22623 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22625 for ac_header in openssl/engine.h
22627 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22628 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22629 cat >>confdefs.h <<_ACEOF
22630 #define HAVE_OPENSSL_ENGINE_H 1
22637 for ac_func in ENGINE_load_builtin_engines
22639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22641 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22642 cat >>confdefs.h <<_ACEOF
22643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22654 for ac_func in RAND_status \
22658 CRYPTO_cleanup_all_ex_data \
22660 SSLv2_client_method
22662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22663 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22664 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22665 cat >>confdefs.h <<_ACEOF
22666 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22674 $as_echo_n "checking for BoringSSL... " >&6; }
22675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h. */
22679 #include <openssl/base.h>
22684 #ifndef OPENSSL_IS_BORINGSSL
22685 #error not boringssl
22693 if ac_fn_c_try_compile "$LINENO"; then :
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22696 $as_echo "yes" >&6; }
22698 cat >>confdefs.h <<_ACEOF
22699 #define HAVE_BORINGSSL 1
22702 curl_ssl_msg="enabled (BoringSSL)"
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22707 $as_echo "no" >&6; }
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22713 $as_echo_n "checking for libressl... " >&6; }
22714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22715 /* end confdefs.h. */
22718 #include <openssl/opensslv.h>
22723 int dummy = LIBRESSL_VERSION_NUMBER;
22730 if ac_fn_c_try_compile "$LINENO"; then :
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22733 $as_echo "yes" >&6; }
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_LIBRESSL 1
22739 curl_ssl_msg="enabled (libressl)"
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22744 $as_echo "no" >&6; }
22747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22750 if test "$OPENSSL_ENABLED" = "1"; then
22751 if test -n "$LIB_OPENSSL"; then
22752 if test "x$cross_compiling" != "xyes"; then
22753 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22754 export LD_LIBRARY_PATH
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22756 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22766 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22768 OLDCPPFLAGS=$CPPFLAGS
22769 # CPPPFLAG comes from CURL_CPP_P
22770 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22771 if test -z "$SED"; then
22772 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22774 if test -z "$GREP"; then
22775 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22780 /* end confdefs.h. */
22783 # ifdef USE_OPENSSL
22784 # include <openssl/crypto.h>
22786 # include <crypto.h>
22789 #ifdef OPENSSL_VERSION_NUMBER
22790 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22795 if ac_fn_c_try_cpp "$LINENO"; then :
22797 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22798 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22799 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22800 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22801 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22806 rm -f conftest.err conftest.i conftest.$ac_ext
22807 if test -z "$tmp_exp"; then
22808 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22811 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22812 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22815 CPPFLAGS=$OLDCPPFLAGS
22817 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22818 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22819 case "x$tst_verlen" in
22821 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22822 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22823 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22824 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22827 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22828 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22829 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22830 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22837 0x110) tst_show="1.1.0" ;;
22838 0x102) tst_show="1.0.2" ;;
22839 0x101) tst_show="1.0.1" ;;
22840 0x100) tst_show="1.0.0" ;;
22841 0x099) tst_show="0.9.9" ;;
22842 0x098) tst_show="0.9.8" ;;
22843 0x097) tst_show="0.9.7" ;;
22844 0x096) tst_show="0.9.6" ;;
22845 0x095) tst_show="0.9.5" ;;
22846 0x094) tst_show="0.9.4" ;;
22847 0x093) tst_show="0.9.3" ;;
22848 0x092) tst_show="0.9.2" ;;
22849 0x091) tst_show="0.9.1" ;;
22850 *) tst_show="unknown" ;;
22852 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22857 $as_echo "$tst_show" >&6; }
22859 curl_openssl_api_headers=$tst_api
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22866 $as_echo_n "checking for OpenSSL library version... " >&6; }
22867 if test "$tst_api" = "unknown"; then
22870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22871 /* end confdefs.h. */
22874 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22876 # include <limits.h>
22878 # include <assert.h>
22880 #undef SSL_CTX_set_not_resumbl_sess_cb
22884 char SSL_CTX_set_not_resumbl_sess_cb ();
22885 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22891 return SSL_CTX_set_not_resumbl_sess_cb ();
22897 if ac_fn_c_try_link "$LINENO"; then :
22902 rm -f core conftest.err conftest.$ac_objext \
22903 conftest$ac_exeext conftest.$ac_ext
22906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22907 /* end confdefs.h. */
22910 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22912 # include <limits.h>
22914 # include <assert.h>
22916 #undef SSL_CTX_set_not_resumable_session_callback
22920 char SSL_CTX_set_not_resumable_session_callback ();
22921 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22927 return SSL_CTX_set_not_resumable_session_callback ();
22933 if ac_fn_c_try_link "$LINENO"; then :
22938 rm -f core conftest.err conftest.$ac_objext \
22939 conftest$ac_exeext conftest.$ac_ext
22943 if test "$tst_api" = "unknown"; then
22944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22945 /* end confdefs.h. */
22948 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
22950 # include <limits.h>
22952 # include <assert.h>
22954 #undef SSL_CONF_CTX_new
22958 char SSL_CONF_CTX_new ();
22959 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
22965 return SSL_CONF_CTX_new ();
22971 if ac_fn_c_try_link "$LINENO"; then :
22976 rm -f core conftest.err conftest.$ac_objext \
22977 conftest$ac_exeext conftest.$ac_ext
22979 if test "$tst_api" = "unknown"; then
22980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h. */
22984 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22986 # include <limits.h>
22988 # include <assert.h>
22990 #undef SSL_renegotiate_abbreviated
22994 char SSL_renegotiate_abbreviated ();
22995 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23001 return SSL_renegotiate_abbreviated ();
23007 if ac_fn_c_try_link "$LINENO"; then :
23012 rm -f core conftest.err conftest.$ac_objext \
23013 conftest$ac_exeext conftest.$ac_ext
23015 if test "$tst_api" = "unknown"; then
23016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23017 /* end confdefs.h. */
23020 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23022 # include <limits.h>
23024 # include <assert.h>
23026 #undef OBJ_add_sigid
23030 char OBJ_add_sigid ();
23031 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23037 return OBJ_add_sigid ();
23043 if ac_fn_c_try_link "$LINENO"; then :
23048 rm -f core conftest.err conftest.$ac_objext \
23049 conftest$ac_exeext conftest.$ac_ext
23051 if test "$tst_api" = "unknown"; then
23052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23053 /* end confdefs.h. */
23056 #define ERR_set_mark innocuous_ERR_set_mark
23058 # include <limits.h>
23060 # include <assert.h>
23062 #undef ERR_set_mark
23066 char ERR_set_mark ();
23067 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23073 return ERR_set_mark ();
23079 if ac_fn_c_try_link "$LINENO"; then :
23084 rm -f core conftest.err conftest.$ac_objext \
23085 conftest$ac_exeext conftest.$ac_ext
23087 if test "$tst_api" = "unknown"; then
23088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h. */
23092 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23094 # include <limits.h>
23096 # include <assert.h>
23098 #undef ERR_peek_last_error
23102 char ERR_peek_last_error ();
23103 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23109 return ERR_peek_last_error ();
23115 if ac_fn_c_try_link "$LINENO"; then :
23120 rm -f core conftest.err conftest.$ac_objext \
23121 conftest$ac_exeext conftest.$ac_ext
23123 if test "$tst_api" = "unknown"; then
23124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23125 /* end confdefs.h. */
23128 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23130 # include <limits.h>
23132 # include <assert.h>
23134 #undef c2i_ASN1_OBJECT
23138 char c2i_ASN1_OBJECT ();
23139 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23145 return c2i_ASN1_OBJECT ();
23151 if ac_fn_c_try_link "$LINENO"; then :
23156 rm -f core conftest.err conftest.$ac_objext \
23157 conftest$ac_exeext conftest.$ac_ext
23159 if test "$tst_api" = "unknown"; then
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161 /* end confdefs.h. */
23164 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23166 # include <limits.h>
23168 # include <assert.h>
23170 #undef SSL_CTX_set_purpose
23174 char SSL_CTX_set_purpose ();
23175 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23181 return SSL_CTX_set_purpose ();
23187 if ac_fn_c_try_link "$LINENO"; then :
23192 rm -f core conftest.err conftest.$ac_objext \
23193 conftest$ac_exeext conftest.$ac_ext
23195 if test "$tst_api" = "unknown"; then
23196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23197 /* end confdefs.h. */
23200 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23202 # include <limits.h>
23204 # include <assert.h>
23210 char OBJ_obj2txt ();
23211 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23217 return OBJ_obj2txt ();
23223 if ac_fn_c_try_link "$LINENO"; then :
23228 rm -f core conftest.err conftest.$ac_objext \
23229 conftest$ac_exeext conftest.$ac_ext
23231 if test "$tst_api" = "unknown"; then
23232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23233 /* end confdefs.h. */
23236 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23238 # include <limits.h>
23240 # include <assert.h>
23242 #undef SSL_get_verify_depth
23246 char SSL_get_verify_depth ();
23247 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23253 return SSL_get_verify_depth ();
23259 if ac_fn_c_try_link "$LINENO"; then :
23264 rm -f core conftest.err conftest.$ac_objext \
23265 conftest$ac_exeext conftest.$ac_ext
23267 if test "$tst_api" = "unknown"; then
23268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23269 /* end confdefs.h. */
23272 #define SSL_library_init innocuous_SSL_library_init
23274 # include <limits.h>
23276 # include <assert.h>
23278 #undef SSL_library_init
23282 char SSL_library_init ();
23283 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23289 return SSL_library_init ();
23295 if ac_fn_c_try_link "$LINENO"; then :
23300 rm -f core conftest.err conftest.$ac_objext \
23301 conftest$ac_exeext conftest.$ac_ext
23303 if test "$tst_api" = "unknown"; then
23304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23305 /* end confdefs.h. */
23308 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23310 # include <limits.h>
23312 # include <assert.h>
23314 #undef SSL_CTX_set_cipher_list
23318 char SSL_CTX_set_cipher_list ();
23319 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23325 return SSL_CTX_set_cipher_list ();
23331 if ac_fn_c_try_link "$LINENO"; then :
23336 rm -f core conftest.err conftest.$ac_objext \
23337 conftest$ac_exeext conftest.$ac_ext
23340 0x110) tst_show="1.1.0" ;;
23341 0x102) tst_show="1.0.2" ;;
23342 0x101) tst_show="1.0.1" ;;
23343 0x100) tst_show="1.0.0" ;;
23344 0x099) tst_show="0.9.9" ;;
23345 0x098) tst_show="0.9.8" ;;
23346 0x097) tst_show="0.9.7" ;;
23347 0x096) tst_show="0.9.6" ;;
23348 0x095) tst_show="0.9.5" ;;
23349 0x094) tst_show="0.9.4" ;;
23350 0x093) tst_show="0.9.3" ;;
23351 0x092) tst_show="0.9.2" ;;
23352 0x091) tst_show="0.9.1" ;;
23353 *) tst_show="unknown" ;;
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23356 $as_echo "$tst_show" >&6; }
23358 curl_openssl_api_library=$tst_api
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23364 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23365 if test "$curl_openssl_api_headers" = "unknown" ||
23366 test "$curl_openssl_api_library" = "unknown"; then
23368 tst_warns="Can not compare OpenSSL headers and library versions."
23369 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23371 tst_warns="OpenSSL headers and library versions do not match."
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23374 $as_echo "$tst_match" >&6; }
23375 if test "$tst_match" != "yes"; then
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23377 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23385 if test X"$OPENSSL_ENABLED" = X"1"; then
23387 # Check whether --with-egd-socket was given.
23388 if test "${with_egd_socket+set}" = set; then :
23389 withval=$with_egd_socket; EGD_SOCKET="$withval"
23393 if test -n "$EGD_SOCKET" ; then
23395 cat >>confdefs.h <<_ACEOF
23396 #define EGD_SOCKET "$EGD_SOCKET"
23402 # Check whether --with-random was given.
23403 if test "${with_random+set}" = set; then :
23404 withval=$with_random; RANDOM_FILE="$withval"
23407 if test x$cross_compiling != xyes; then
23408 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23410 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23411 if eval \${$as_ac_File+:} false; then :
23412 $as_echo_n "(cached) " >&6
23414 test "$cross_compiling" = yes &&
23415 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23416 if test -r ""/dev/urandom""; then
23417 eval "$as_ac_File=yes"
23419 eval "$as_ac_File=no"
23422 eval ac_res=\$$as_ac_File
23423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23424 $as_echo "$ac_res" >&6; }
23425 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23426 RANDOM_FILE="/dev/urandom"
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23431 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23437 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23440 cat >>confdefs.h <<_ACEOF
23441 #define RANDOM_FILE "$RANDOM_FILE"
23447 if test "$OPENSSL_ENABLED" = "1"; then
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23449 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23450 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23451 $as_echo_n "(cached) " >&6
23453 ac_check_lib_save_LIBS=$LIBS
23454 LIBS="-lcrypto $LIBS"
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h. */
23462 char SRP_Calc_client_key ();
23465 return SRP_Calc_client_key ();
23470 if ac_fn_c_try_link "$LINENO"; then :
23471 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23473 ac_cv_lib_crypto_SRP_Calc_client_key=no
23475 rm -f core conftest.err conftest.$ac_objext \
23476 conftest$ac_exeext conftest.$ac_ext
23477 LIBS=$ac_check_lib_save_LIBS
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23480 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23481 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23484 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23497 # Check whether --with-gnutls was given.
23498 if test "${with_gnutls+set}" = set; then :
23499 withval=$with_gnutls; OPT_GNUTLS=$withval
23503 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23505 if test X"$OPT_GNUTLS" != Xno; then
23513 if test "x$OPT_GNUTLS" = "xyes"; then
23515 if test -n "$PKG_CONFIG"; then
23516 PKGCONFIG="$PKG_CONFIG"
23518 if test -n "$ac_tool_prefix"; then
23519 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23520 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23522 $as_echo_n "checking for $ac_word... " >&6; }
23523 if ${ac_cv_path_PKGCONFIG+:} false; then :
23524 $as_echo_n "(cached) " >&6
23528 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23532 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23533 for as_dir in $as_dummy
23536 test -z "$as_dir" && as_dir=.
23537 for ac_exec_ext in '' $ac_executable_extensions; do
23538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23539 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23550 PKGCONFIG=$ac_cv_path_PKGCONFIG
23551 if test -n "$PKGCONFIG"; then
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23553 $as_echo "$PKGCONFIG" >&6; }
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23556 $as_echo "no" >&6; }
23561 if test -z "$ac_cv_path_PKGCONFIG"; then
23562 ac_pt_PKGCONFIG=$PKGCONFIG
23563 # Extract the first word of "pkg-config", so it can be a program name with args.
23564 set dummy pkg-config; ac_word=$2
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23566 $as_echo_n "checking for $ac_word... " >&6; }
23567 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23568 $as_echo_n "(cached) " >&6
23570 case $ac_pt_PKGCONFIG in
23572 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23576 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23577 for as_dir in $as_dummy
23580 test -z "$as_dir" && as_dir=.
23581 for ac_exec_ext in '' $ac_executable_extensions; do
23582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23583 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23594 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23595 if test -n "$ac_pt_PKGCONFIG"; then
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23597 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23600 $as_echo "no" >&6; }
23603 if test "x$ac_pt_PKGCONFIG" = x; then
23606 case $cross_compiling:$ac_tool_warned in
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23610 ac_tool_warned=yes ;;
23612 PKGCONFIG=$ac_pt_PKGCONFIG
23615 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23620 if test "x$PKGCONFIG" != "xno"; then
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23622 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23624 if test -n ""; then
23625 PKG_CONFIG_LIBDIR=""
23626 export PKG_CONFIG_LIBDIR
23628 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23630 if test -z "$itexists"; then
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23633 $as_echo "no" >&6; }
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23636 $as_echo "found" >&6; }
23641 if test "$PKGCONFIG" != "no" ; then
23642 addlib=`$PKGCONFIG --libs-only-l gnutls`
23643 addld=`$PKGCONFIG --libs-only-L gnutls`
23644 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23645 version=`$PKGCONFIG --modversion gnutls`
23646 gtlslib=`echo $addld | $SED -e 's/-L//'`
23648 check=`libgnutls-config --version 2>/dev/null`
23649 if test -n "$check"; then
23650 addlib=`libgnutls-config --libs`
23651 addcflags=`libgnutls-config --cflags`
23652 version=`libgnutls-config --version`
23653 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23657 cfg=$OPT_GNUTLS/bin/libgnutls-config
23658 check=`$cfg --version 2>/dev/null`
23659 if test -n "$check"; then
23660 addlib=`$cfg --libs`
23661 addcflags=`$cfg --cflags`
23662 version=`$cfg --version`
23663 gtlslib=`$cfg --prefix`/lib$libsuff
23666 addld=-L$OPT_GNUTLS/lib$libsuff
23667 addcflags=-I$OPT_GNUTLS/include
23668 version="" # we just don't know
23669 gtlslib=$OPT_GNUTLS/lib$libsuff
23673 if test -z "$version"; then
23677 if test -n "$addlib"; then
23680 CLEANCPPFLAGS="$CPPFLAGS"
23681 CLEANLDFLAGS="$LDFLAGS"
23683 LIBS="$addlib $LIBS"
23684 LDFLAGS="$LDFLAGS $addld"
23685 if test "$addcflags" != "-I/usr/include"; then
23686 CPPFLAGS="$CPPFLAGS $addcflags"
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23690 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23691 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23692 $as_echo_n "(cached) " >&6
23694 ac_check_lib_save_LIBS=$LIBS
23695 LIBS="-lgnutls $LIBS"
23696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23697 /* end confdefs.h. */
23703 char gnutls_check_version ();
23706 return gnutls_check_version ();
23711 if ac_fn_c_try_link "$LINENO"; then :
23712 ac_cv_lib_gnutls_gnutls_check_version=yes
23714 ac_cv_lib_gnutls_gnutls_check_version=no
23716 rm -f core conftest.err conftest.$ac_objext \
23717 conftest$ac_exeext conftest.$ac_ext
23718 LIBS=$ac_check_lib_save_LIBS
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23721 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23722 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23725 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23731 curl_ssl_msg="enabled (GnuTLS)"
23736 CPPFLAGS="$CLEANCPPFLAGS"
23741 if test "x$USE_GNUTLS" = "xyes"; then
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23743 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23745 if test -n "$gtlslib"; then
23746 if test "x$cross_compiling" != "xyes"; then
23747 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23748 export LD_LIBRARY_PATH
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23750 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23753 for ac_func in gnutls_certificate_set_x509_key_file2
23755 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_x509_key_file2" "ac_cv_func_gnutls_certificate_set_x509_key_file2"
23756 if test "x$ac_cv_func_gnutls_certificate_set_x509_key_file2" = xyes; then :
23757 cat >>confdefs.h <<_ACEOF
23758 #define HAVE_GNUTLS_CERTIFICATE_SET_X509_KEY_FILE2 1
23772 if test "$GNUTLS_ENABLED" = "1"; then
23774 # First check if we can detect either crypto library via transitive linking
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23776 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23777 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23778 $as_echo_n "(cached) " >&6
23780 ac_check_lib_save_LIBS=$LIBS
23781 LIBS="-lgnutls $LIBS"
23782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23783 /* end confdefs.h. */
23789 char nettle_MD5Init ();
23792 return nettle_MD5Init ();
23797 if ac_fn_c_try_link "$LINENO"; then :
23798 ac_cv_lib_gnutls_nettle_MD5Init=yes
23800 ac_cv_lib_gnutls_nettle_MD5Init=no
23802 rm -f core conftest.err conftest.$ac_objext \
23803 conftest$ac_exeext conftest.$ac_ext
23804 LIBS=$ac_check_lib_save_LIBS
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23807 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23808 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23809 USE_GNUTLS_NETTLE=1
23812 if test "$USE_GNUTLS_NETTLE" = ""; then
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23814 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23815 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23816 $as_echo_n "(cached) " >&6
23818 ac_check_lib_save_LIBS=$LIBS
23819 LIBS="-lgnutls $LIBS"
23820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23821 /* end confdefs.h. */
23827 char gcry_control ();
23830 return gcry_control ();
23835 if ac_fn_c_try_link "$LINENO"; then :
23836 ac_cv_lib_gnutls_gcry_control=yes
23838 ac_cv_lib_gnutls_gcry_control=no
23840 rm -f core conftest.err conftest.$ac_objext \
23841 conftest$ac_exeext conftest.$ac_ext
23842 LIBS=$ac_check_lib_save_LIBS
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23845 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23846 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23847 USE_GNUTLS_NETTLE=0
23851 # If not, try linking directly to both of them to see if they are available
23852 if test "$USE_GNUTLS_NETTLE" = ""; then
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23854 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23855 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23856 $as_echo_n "(cached) " >&6
23858 ac_check_lib_save_LIBS=$LIBS
23859 LIBS="-lnettle $LIBS"
23860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861 /* end confdefs.h. */
23867 char nettle_MD5Init ();
23870 return nettle_MD5Init ();
23875 if ac_fn_c_try_link "$LINENO"; then :
23876 ac_cv_lib_nettle_nettle_MD5Init=yes
23878 ac_cv_lib_nettle_nettle_MD5Init=no
23880 rm -f core conftest.err conftest.$ac_objext \
23881 conftest$ac_exeext conftest.$ac_ext
23882 LIBS=$ac_check_lib_save_LIBS
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23885 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23886 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23887 USE_GNUTLS_NETTLE=1
23891 if test "$USE_GNUTLS_NETTLE" = ""; then
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23893 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23894 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23895 $as_echo_n "(cached) " >&6
23897 ac_check_lib_save_LIBS=$LIBS
23898 LIBS="-lgcrypt $LIBS"
23899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23900 /* end confdefs.h. */
23906 char gcry_control ();
23909 return gcry_control ();
23914 if ac_fn_c_try_link "$LINENO"; then :
23915 ac_cv_lib_gcrypt_gcry_control=yes
23917 ac_cv_lib_gcrypt_gcry_control=no
23919 rm -f core conftest.err conftest.$ac_objext \
23920 conftest$ac_exeext conftest.$ac_ext
23921 LIBS=$ac_check_lib_save_LIBS
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23924 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23925 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23926 USE_GNUTLS_NETTLE=0
23930 if test "$USE_GNUTLS_NETTLE" = ""; then
23931 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23933 if test "$USE_GNUTLS_NETTLE" = "1"; then
23935 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23937 USE_GNUTLS_NETTLE=1
23939 LIBS="-lnettle $LIBS"
23941 LIBS="-lgcrypt $LIBS"
23945 if test "$GNUTLS_ENABLED" = "1"; then
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23947 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23948 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23949 $as_echo_n "(cached) " >&6
23951 ac_check_lib_save_LIBS=$LIBS
23952 LIBS="-lgnutls $LIBS"
23953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23954 /* end confdefs.h. */
23960 char gnutls_srp_verifier ();
23963 return gnutls_srp_verifier ();
23968 if ac_fn_c_try_link "$LINENO"; then :
23969 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23971 ac_cv_lib_gnutls_gnutls_srp_verifier=no
23973 rm -f core conftest.err conftest.$ac_objext \
23974 conftest$ac_exeext conftest.$ac_ext
23975 LIBS=$ac_check_lib_save_LIBS
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23978 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23979 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23982 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23994 _cppflags=$CPPFLAGS
23997 # Check whether --with-polarssl was given.
23998 if test "${with_polarssl+set}" = set; then :
23999 withval=$with_polarssl; OPT_POLARSSL=$withval
24003 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24005 if test X"$OPT_POLARSSL" != Xno; then
24007 if test "$OPT_POLARSSL" = "yes"; then
24011 if test -z "$OPT_POLARSSL" ; then
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24014 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24015 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24016 $as_echo_n "(cached) " >&6
24018 ac_check_lib_save_LIBS=$LIBS
24019 LIBS="-lpolarssl $LIBS"
24020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24021 /* end confdefs.h. */
24027 char havege_init ();
24030 return havege_init ();
24035 if ac_fn_c_try_link "$LINENO"; then :
24036 ac_cv_lib_polarssl_havege_init=yes
24038 ac_cv_lib_polarssl_havege_init=no
24040 rm -f core conftest.err conftest.$ac_objext \
24041 conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_check_lib_save_LIBS
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24045 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24046 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24049 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24055 curl_ssl_msg="enabled (PolarSSL)"
24066 if test "x$USE_POLARSSL" != "xyes"; then
24067 addld=-L$OPT_POLARSSL/lib$libsuff
24068 addcflags=-I$OPT_POLARSSL/include
24069 polarssllib=$OPT_POLARSSL/lib$libsuff
24071 LDFLAGS="$LDFLAGS $addld"
24072 if test "$addcflags" != "-I/usr/include"; then
24073 CPPFLAGS="$CPPFLAGS $addcflags"
24076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24077 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24078 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24079 $as_echo_n "(cached) " >&6
24081 ac_check_lib_save_LIBS=$LIBS
24082 LIBS="-lpolarssl $LIBS"
24083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24084 /* end confdefs.h. */
24093 return ssl_init ();
24098 if ac_fn_c_try_link "$LINENO"; then :
24099 ac_cv_lib_polarssl_ssl_init=yes
24101 ac_cv_lib_polarssl_ssl_init=no
24103 rm -f core conftest.err conftest.$ac_objext \
24104 conftest$ac_exeext conftest.$ac_ext
24105 LIBS=$ac_check_lib_save_LIBS
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24108 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24109 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24112 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24118 curl_ssl_msg="enabled (PolarSSL)"
24122 CPPFLAGS=$_cppflags
24129 if test "x$USE_POLARSSL" = "xyes"; then
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24131 $as_echo "$as_me: detected PolarSSL" >&6;}
24133 LIBS="-lpolarssl $LIBS"
24135 if test -n "$polarssllib"; then
24136 if test "x$cross_compiling" != "xyes"; then
24137 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24138 export LD_LIBRARY_PATH
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24140 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24151 _cppflags=$CPPFLAGS
24154 # Check whether --with-mbedtls was given.
24155 if test "${with_mbedtls+set}" = set; then :
24156 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24160 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24162 if test X"$OPT_MBEDTLS" != Xno; then
24164 if test "$OPT_MBEDTLS" = "yes"; then
24168 if test -z "$OPT_MBEDTLS" ; then
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24171 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24172 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24173 $as_echo_n "(cached) " >&6
24175 ac_check_lib_save_LIBS=$LIBS
24176 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24178 /* end confdefs.h. */
24184 char mbedtls_havege_init ();
24187 return mbedtls_havege_init ();
24192 if ac_fn_c_try_link "$LINENO"; then :
24193 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24195 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24197 rm -f core conftest.err conftest.$ac_objext \
24198 conftest$ac_exeext conftest.$ac_ext
24199 LIBS=$ac_check_lib_save_LIBS
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24202 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24203 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24206 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24212 curl_ssl_msg="enabled (mbedTLS)"
24223 if test "x$USE_MBEDTLS" != "xyes"; then
24224 addld=-L$OPT_MBEDTLS/lib$libsuff
24225 addcflags=-I$OPT_MBEDTLS/include
24226 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24228 LDFLAGS="$LDFLAGS $addld"
24229 if test "$addcflags" != "-I/usr/include"; then
24230 CPPFLAGS="$CPPFLAGS $addcflags"
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24234 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24235 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24236 $as_echo_n "(cached) " >&6
24238 ac_check_lib_save_LIBS=$LIBS
24239 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24247 char mbedtls_ssl_init ();
24250 return mbedtls_ssl_init ();
24255 if ac_fn_c_try_link "$LINENO"; then :
24256 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24258 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24260 rm -f core conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
24262 LIBS=$ac_check_lib_save_LIBS
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24265 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24266 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24269 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24275 curl_ssl_msg="enabled (mbedTLS)"
24279 CPPFLAGS=$_cppflags
24286 if test "x$USE_MBEDTLS" = "xyes"; then
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24288 $as_echo "$as_me: detected mbedTLS" >&6;}
24290 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24292 if test -n "$mbedtlslib"; then
24293 if test "x$cross_compiling" != "xyes"; then
24294 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24295 export LD_LIBRARY_PATH
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24297 $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24308 _cppflags=$CPPFLAGS
24311 # Check whether --with-cyassl was given.
24312 if test "${with_cyassl+set}" = set; then :
24313 withval=$with_cyassl; OPT_CYASSL=$withval
24317 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24319 if test X"$OPT_CYASSL" != Xno; then
24321 if test "$OPT_CYASSL" = "yes"; then
24326 cyassllibname=cyassl
24328 if test -z "$OPT_CYASSL" ; then
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24331 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24332 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24333 $as_echo_n "(cached) " >&6
24335 ac_check_lib_save_LIBS=$LIBS
24336 LIBS="-lcyassl $LIBS"
24337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24338 /* end confdefs.h. */
24344 char CyaSSL_Init ();
24347 return CyaSSL_Init ();
24352 if ac_fn_c_try_link "$LINENO"; then :
24353 ac_cv_lib_cyassl_CyaSSL_Init=yes
24355 ac_cv_lib_cyassl_CyaSSL_Init=no
24357 rm -f core conftest.err conftest.$ac_objext \
24358 conftest$ac_exeext conftest.$ac_ext
24359 LIBS=$ac_check_lib_save_LIBS
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24362 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24363 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24366 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24372 curl_ssl_msg="enabled (CyaSSL)"
24383 if test "x$USE_CYASSL" != "xyes"; then
24384 addld=-L$OPT_CYASSL/lib$libsuff
24385 addcflags=-I$OPT_CYASSL/include
24386 cyassllib=$OPT_CYASSL/lib$libsuff
24388 LDFLAGS="$LDFLAGS $addld"
24389 if test "$addcflags" != "-I/usr/include"; then
24390 CPPFLAGS="$CPPFLAGS $addcflags"
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24394 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24395 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24396 $as_echo_n "(cached) " >&6
24398 ac_check_lib_save_LIBS=$LIBS
24399 LIBS="-lcyassl $LIBS"
24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h. */
24407 char CyaSSL_Init ();
24410 return CyaSSL_Init ();
24415 if ac_fn_c_try_link "$LINENO"; then :
24416 ac_cv_lib_cyassl_CyaSSL_Init=yes
24418 ac_cv_lib_cyassl_CyaSSL_Init=no
24420 rm -f core conftest.err conftest.$ac_objext \
24421 conftest$ac_exeext conftest.$ac_ext
24422 LIBS=$ac_check_lib_save_LIBS
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24425 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24426 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24429 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24435 curl_ssl_msg="enabled (CyaSSL)"
24439 CPPFLAGS=$_cppflags
24451 if test "x$USE_CYASSL" != "xyes"; then
24452 addld=-L$OPT_CYASSL/lib$libsuff
24453 addcflags=-I$OPT_CYASSL/include
24454 cyassllib=$OPT_CYASSL/lib$libsuff
24456 LDFLAGS="$LDFLAGS $addld"
24457 if test "$addcflags" != "-I/usr/include"; then
24458 CPPFLAGS="$CPPFLAGS $addcflags"
24461 cyassllibname=wolfssl
24462 my_ac_save_LIBS="$LIBS"
24463 LIBS="-l$cyassllibname -lm $LIBS"
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24466 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24468 /* end confdefs.h. */
24471 /* These aren't needed for detection and confuse WolfSSL.
24472 They are set up properly later if it is detected. */
24474 #undef SIZEOF_LONG_LONG
24475 #include <cyassl/ssl.h>
24480 return CyaSSL_Init();
24487 if ac_fn_c_try_link "$LINENO"; then :
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24490 $as_echo "yes" >&6; }
24492 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24498 curl_ssl_msg="enabled (WolfSSL)"
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24503 $as_echo "no" >&6; }
24504 CPPFLAGS=$_cppflags
24509 rm -f core conftest.err conftest.$ac_objext \
24510 conftest$ac_exeext conftest.$ac_ext
24511 LIBS="$my_ac_save_LIBS"
24514 if test "x$USE_CYASSL" = "xyes"; then
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24516 $as_echo "$as_me: detected $cyassllibname" >&6;}
24518 # The cast to long int works around a bug in the HP C Compiler
24519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24521 # This bug is HP SR number 8606223364.
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24523 $as_echo_n "checking size of long long... " >&6; }
24524 if ${ac_cv_sizeof_long_long+:} false; then :
24525 $as_echo_n "(cached) " >&6
24527 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24530 if test "$ac_cv_type_long_long" = yes; then
24531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24533 as_fn_error 77 "cannot compute sizeof (long long)
24534 See \`config.log' for more details" "$LINENO" 5; }
24536 ac_cv_sizeof_long_long=0
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24542 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24546 cat >>confdefs.h <<_ACEOF
24547 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24552 for ac_header in cyassl/options.h
24554 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24555 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24556 cat >>confdefs.h <<_ACEOF
24557 #define HAVE_CYASSL_OPTIONS_H 1
24565 for ac_header in cyassl/error-ssl.h
24567 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24568 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24569 cat >>confdefs.h <<_ACEOF
24570 #define HAVE_CYASSL_ERROR_SSL_H 1
24578 LIBS="-l$cyassllibname -lm $LIBS"
24580 if test "x$cyassllibname" = "xwolfssl"; then
24581 for ac_func in wolfSSLv3_client_method \
24582 wolfSSL_CTX_UseSupportedCurve \
24583 wolfSSL_get_peer_certificate \
24586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24589 cat >>confdefs.h <<_ACEOF
24590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24597 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24598 CyaSSL_get_peer_certificate
24600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24602 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24603 cat >>confdefs.h <<_ACEOF
24604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24612 if test -n "$cyassllib"; then
24613 if test "x$cross_compiling" != "xyes"; then
24614 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24615 export LD_LIBRARY_PATH
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24617 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24630 # Check whether --with-nss was given.
24631 if test "${with_nss+set}" = set; then :
24632 withval=$with_nss; OPT_NSS=$withval
24636 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24638 if test X"$OPT_NSS" != Xno; then
24646 if test "x$OPT_NSS" = "xyes"; then
24649 if test -n "$PKG_CONFIG"; then
24650 PKGCONFIG="$PKG_CONFIG"
24652 if test -n "$ac_tool_prefix"; then
24653 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24654 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24656 $as_echo_n "checking for $ac_word... " >&6; }
24657 if ${ac_cv_path_PKGCONFIG+:} false; then :
24658 $as_echo_n "(cached) " >&6
24662 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24666 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24667 for as_dir in $as_dummy
24670 test -z "$as_dir" && as_dir=.
24671 for ac_exec_ext in '' $ac_executable_extensions; do
24672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24673 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24684 PKGCONFIG=$ac_cv_path_PKGCONFIG
24685 if test -n "$PKGCONFIG"; then
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24687 $as_echo "$PKGCONFIG" >&6; }
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24690 $as_echo "no" >&6; }
24695 if test -z "$ac_cv_path_PKGCONFIG"; then
24696 ac_pt_PKGCONFIG=$PKGCONFIG
24697 # Extract the first word of "pkg-config", so it can be a program name with args.
24698 set dummy pkg-config; ac_word=$2
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24700 $as_echo_n "checking for $ac_word... " >&6; }
24701 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24702 $as_echo_n "(cached) " >&6
24704 case $ac_pt_PKGCONFIG in
24706 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24710 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24711 for as_dir in $as_dummy
24714 test -z "$as_dir" && as_dir=.
24715 for ac_exec_ext in '' $ac_executable_extensions; do
24716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24717 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24728 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24729 if test -n "$ac_pt_PKGCONFIG"; then
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24731 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24734 $as_echo "no" >&6; }
24737 if test "x$ac_pt_PKGCONFIG" = x; then
24740 case $cross_compiling:$ac_tool_warned in
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24744 ac_tool_warned=yes ;;
24746 PKGCONFIG=$ac_pt_PKGCONFIG
24749 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24754 if test "x$PKGCONFIG" != "xno"; then
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24756 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24758 if test -n ""; then
24759 PKG_CONFIG_LIBDIR=""
24760 export PKG_CONFIG_LIBDIR
24762 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24764 if test -z "$itexists"; then
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24767 $as_echo "no" >&6; }
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24770 $as_echo "found" >&6; }
24775 if test "$PKGCONFIG" != "no" ; then
24776 addlib=`$PKGCONFIG --libs nss`
24777 addcflags=`$PKGCONFIG --cflags nss`
24778 version=`$PKGCONFIG --modversion nss`
24779 nssprefix=`$PKGCONFIG --variable=prefix nss`
24782 check=`nss-config --version 2>/dev/null`
24783 if test -n "$check"; then
24784 addlib=`nss-config --libs`
24785 addcflags=`nss-config --cflags`
24786 version=`nss-config --version`
24787 nssprefix=`nss-config --prefix`
24795 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
24796 if test -f "$NSS_PCDIR/nss.pc"; then
24798 if test -n "$PKG_CONFIG"; then
24799 PKGCONFIG="$PKG_CONFIG"
24801 if test -n "$ac_tool_prefix"; then
24802 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24803 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24805 $as_echo_n "checking for $ac_word... " >&6; }
24806 if ${ac_cv_path_PKGCONFIG+:} false; then :
24807 $as_echo_n "(cached) " >&6
24811 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24815 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24816 for as_dir in $as_dummy
24819 test -z "$as_dir" && as_dir=.
24820 for ac_exec_ext in '' $ac_executable_extensions; do
24821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24822 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24833 PKGCONFIG=$ac_cv_path_PKGCONFIG
24834 if test -n "$PKGCONFIG"; then
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24836 $as_echo "$PKGCONFIG" >&6; }
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24839 $as_echo "no" >&6; }
24844 if test -z "$ac_cv_path_PKGCONFIG"; then
24845 ac_pt_PKGCONFIG=$PKGCONFIG
24846 # Extract the first word of "pkg-config", so it can be a program name with args.
24847 set dummy pkg-config; ac_word=$2
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24849 $as_echo_n "checking for $ac_word... " >&6; }
24850 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24851 $as_echo_n "(cached) " >&6
24853 case $ac_pt_PKGCONFIG in
24855 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24859 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24860 for as_dir in $as_dummy
24863 test -z "$as_dir" && as_dir=.
24864 for ac_exec_ext in '' $ac_executable_extensions; do
24865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24866 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24877 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24878 if test -n "$ac_pt_PKGCONFIG"; then
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24880 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24883 $as_echo "no" >&6; }
24886 if test "x$ac_pt_PKGCONFIG" = x; then
24889 case $cross_compiling:$ac_tool_warned in
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24893 ac_tool_warned=yes ;;
24895 PKGCONFIG=$ac_pt_PKGCONFIG
24898 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24903 if test "x$PKGCONFIG" != "xno"; then
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24905 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24907 if test -n "$NSS_PCDIR"; then
24908 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24909 export PKG_CONFIG_LIBDIR
24911 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24913 if test -z "$itexists"; then
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24916 $as_echo "no" >&6; }
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24919 $as_echo "found" >&6; }
24923 if test "$PKGCONFIG" != "no" ; then
24925 if test -n "$NSS_PCDIR"; then
24926 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24927 export PKG_CONFIG_LIBDIR
24929 $PKGCONFIG --libs-only-L nss`
24931 if test -n "$NSS_PCDIR"; then
24932 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24933 export PKG_CONFIG_LIBDIR
24935 $PKGCONFIG --libs-only-l nss`
24937 if test -n "$NSS_PCDIR"; then
24938 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24939 export PKG_CONFIG_LIBDIR
24941 $PKGCONFIG --cflags nss`
24943 if test -n "$NSS_PCDIR"; then
24944 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24945 export PKG_CONFIG_LIBDIR
24947 $PKGCONFIG --modversion nss`
24949 if test -n "$NSS_PCDIR"; then
24950 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24951 export PKG_CONFIG_LIBDIR
24953 $PKGCONFIG --variable=prefix nss`
24958 if test -z "$addlib"; then
24959 # Without pkg-config, we'll kludge in some defaults
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
24961 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
24962 addld="-L$OPT_NSS/lib"
24963 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
24964 addcflags="-I$OPT_NSS/include"
24969 CLEANLDFLAGS="$LDFLAGS"
24971 CLEANCPPFLAGS="$CPPFLAGS"
24973 LDFLAGS="$addld $LDFLAGS"
24974 LIBS="$addlib $LIBS"
24975 if test "$addcflags" != "-I/usr/include"; then
24976 CPPFLAGS="$CPPFLAGS $addcflags"
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
24980 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
24981 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
24982 $as_echo_n "(cached) " >&6
24984 ac_check_lib_save_LIBS=$LIBS
24985 LIBS="-lnss3 $LIBS"
24986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24987 /* end confdefs.h. */
24993 char SSL_VersionRangeSet ();
24996 return SSL_VersionRangeSet ();
25001 if ac_fn_c_try_link "$LINENO"; then :
25002 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25004 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25006 rm -f core conftest.err conftest.$ac_objext \
25007 conftest$ac_exeext conftest.$ac_ext
25008 LIBS=$ac_check_lib_save_LIBS
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25011 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25012 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25015 $as_echo "#define USE_NSS 1" >>confdefs.h
25021 curl_ssl_msg="enabled (NSS)"
25025 LDFLAGS="$CLEANLDFLAGS"
25027 CPPFLAGS="$CLEANCPPFLAGS"
25032 if test "x$USE_NSS" = "xyes"; then
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25034 $as_echo "$as_me: detected NSS version $version" >&6;}
25039 if test "x$cross_compiling" != "xyes"; then
25040 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25041 export LD_LIBRARY_PATH
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25043 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25052 # Check whether --with-axtls was given.
25053 if test "${with_axtls+set}" = set; then :
25054 withval=$with_axtls; OPT_AXTLS=$withval
25058 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
25059 if test X"$OPT_AXTLS" != Xno; then
25060 CLEANLDFLAGS="$LDFLAGS"
25061 CLEANCPPFLAGS="$CPPFLAGS"
25064 case "$OPT_AXTLS" in
25066 PREFIX_AXTLS=/usr/local
25067 LIB_AXTLS="$PREFIX_AXTLS/lib"
25068 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25069 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25075 PREFIX_AXTLS=$OPT_AXTLS
25076 LIB_AXTLS="$PREFIX_AXTLS/lib"
25077 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25078 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25083 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25084 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25085 $as_echo_n "(cached) " >&6
25087 ac_check_lib_save_LIBS=$LIBS
25088 LIBS="-laxtls $LIBS"
25089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090 /* end confdefs.h. */
25096 char ssl_version ();
25099 return ssl_version ();
25104 if ac_fn_c_try_link "$LINENO"; then :
25105 ac_cv_lib_axtls_ssl_version=yes
25107 ac_cv_lib_axtls_ssl_version=no
25109 rm -f core conftest.err conftest.$ac_objext \
25110 conftest$ac_exeext conftest.$ac_ext
25111 LIBS=$ac_check_lib_save_LIBS
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25114 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25115 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25117 LIBS="-laxtls $LIBS"
25119 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25125 curl_ssl_msg="enabled (axTLS)"
25127 if test "x$cross_compiling" != "xyes"; then
25128 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25129 export LD_LIBRARY_PATH
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25131 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25136 LDFLAGS="$CLEANLDFLAGS"
25137 CPPFLAGS="$CLEANCPPFLAGS"
25145 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25147 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25148 { $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
25149 $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;}
25151 # SSL is enabled, genericly
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25160 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25163 # Check whether --with-ca-bundle was given.
25164 if test "${with_ca_bundle+set}" = set; then :
25165 withval=$with_ca_bundle;
25167 if test "x$want_ca" = "xyes"; then
25168 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25176 # Check whether --with-ca-path was given.
25177 if test "${with_ca_path+set}" = set; then :
25178 withval=$with_ca_path;
25179 want_capath="$withval"
25180 if test "x$want_capath" = "xyes"; then
25181 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25185 want_capath="unset"
25189 ca_warning=" (warning: certs not found)"
25190 capath_warning=" (warning: certs not found)"
25193 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25194 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25196 capath="$want_capath"
25197 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25200 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25201 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25202 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25204 capath="$want_capath"
25209 if test "x$cross_compiling" != "xyes"; then
25210 if test "x$want_ca" = "xunset"; then
25211 if test "x$prefix" != xNONE; then
25212 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25214 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25217 for a in /etc/ssl/certs/ca-certificates.crt \
25218 /etc/pki/tls/certs/ca-bundle.crt \
25219 /usr/share/ssl/certs/ca-bundle.crt \
25220 /usr/local/share/certs/ca-root-nss.crt \
25221 /etc/ssl/cert.pem \
25223 if test -f "$a"; then
25229 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25230 "x$OPENSSL_ENABLED" = "x1"; then
25231 check_capath="/etc/ssl/certs/"
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25235 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25239 if test "x$ca" = "xno" || test -f "$ca"; then
25243 if test "x$capath" != "xno"; then
25244 check_capath="$capath"
25247 if test ! -z "$check_capath"; then
25248 for a in "$check_capath"; do
25249 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
25250 if test "x$capath" = "xno"; then
25259 if test "x$capath" = "xno"; then
25263 if test "x$ca" != "xno"; then
25264 CURL_CA_BUNDLE='"'$ca'"'
25266 cat >>confdefs.h <<_ACEOF
25267 #define CURL_CA_BUNDLE "$ca"
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25272 $as_echo "$ca" >&6; }
25274 if test "x$capath" != "xno"; then
25275 CURL_CA_PATH="\"$capath\""
25277 cat >>confdefs.h <<_ACEOF
25278 #define CURL_CA_PATH "$capath"
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25282 $as_echo "$capath (capath)" >&6; }
25284 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25286 $as_echo "no" >&6; }
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25290 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25292 # Check whether --with-ca-fallback was given.
25293 if test "${with_ca_fallback+set}" = set; then :
25294 withval=$with_ca_fallback;
25295 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25296 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25300 with_ca_fallback="no"
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25304 $as_echo "$with_ca_fallback" >&6; }
25305 if test "x$with_ca_fallback" = "xyes"; then
25306 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25307 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25310 cat >>confdefs.h <<_ACEOF
25311 #define CURL_CA_FALLBACK 1
25319 # Check whether --with-libpsl was given.
25320 if test "${with_libpsl+set}" = set; then :
25321 withval=$with_libpsl; with_libpsl=$withval
25326 if test $with_libpsl != "no"; then
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25328 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25329 if ${ac_cv_search_psl_builtin+:} false; then :
25330 $as_echo_n "(cached) " >&6
25332 ac_func_search_save_LIBS=$LIBS
25333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25334 /* end confdefs.h. */
25340 char psl_builtin ();
25343 return psl_builtin ();
25348 for ac_lib in '' psl; do
25349 if test -z "$ac_lib"; then
25350 ac_res="none required"
25353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25355 if ac_fn_c_try_link "$LINENO"; then :
25356 ac_cv_search_psl_builtin=$ac_res
25358 rm -f core conftest.err conftest.$ac_objext \
25360 if ${ac_cv_search_psl_builtin+:} false; then :
25364 if ${ac_cv_search_psl_builtin+:} false; then :
25367 ac_cv_search_psl_builtin=no
25369 rm conftest.$ac_ext
25370 LIBS=$ac_func_search_save_LIBS
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25373 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25374 ac_res=$ac_cv_search_psl_builtin
25375 if test "$ac_res" != no; then :
25376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25377 curl_psl_msg="yes";
25379 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25383 curl_psl_msg="no (libpsl not found)";
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25385 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25391 if test "$curl_psl_msg" = "yes"; then
25393 USE_LIBPSL_FALSE='#'
25395 USE_LIBPSL_TRUE='#'
25404 # Check whether --with-libmetalink was given.
25405 if test "${with_libmetalink+set}" = set; then :
25406 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25410 if test X"$OPT_LIBMETALINK" != Xno; then
25419 if test "x$OPT_LIBMETALINK" = "xyes"; then
25422 if test -n "$PKG_CONFIG"; then
25423 PKGCONFIG="$PKG_CONFIG"
25425 if test -n "$ac_tool_prefix"; then
25426 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25427 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25429 $as_echo_n "checking for $ac_word... " >&6; }
25430 if ${ac_cv_path_PKGCONFIG+:} false; then :
25431 $as_echo_n "(cached) " >&6
25435 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25439 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25440 for as_dir in $as_dummy
25443 test -z "$as_dir" && as_dir=.
25444 for ac_exec_ext in '' $ac_executable_extensions; do
25445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25446 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25457 PKGCONFIG=$ac_cv_path_PKGCONFIG
25458 if test -n "$PKGCONFIG"; then
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25460 $as_echo "$PKGCONFIG" >&6; }
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25463 $as_echo "no" >&6; }
25468 if test -z "$ac_cv_path_PKGCONFIG"; then
25469 ac_pt_PKGCONFIG=$PKGCONFIG
25470 # Extract the first word of "pkg-config", so it can be a program name with args.
25471 set dummy pkg-config; ac_word=$2
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25473 $as_echo_n "checking for $ac_word... " >&6; }
25474 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25475 $as_echo_n "(cached) " >&6
25477 case $ac_pt_PKGCONFIG in
25479 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25483 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25484 for as_dir in $as_dummy
25487 test -z "$as_dir" && as_dir=.
25488 for ac_exec_ext in '' $ac_executable_extensions; do
25489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25490 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25501 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25502 if test -n "$ac_pt_PKGCONFIG"; then
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25504 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25507 $as_echo "no" >&6; }
25510 if test "x$ac_pt_PKGCONFIG" = x; then
25513 case $cross_compiling:$ac_tool_warned in
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25517 ac_tool_warned=yes ;;
25519 PKGCONFIG=$ac_pt_PKGCONFIG
25522 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25527 if test "x$PKGCONFIG" != "xno"; then
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25529 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25531 if test -n ""; then
25532 PKG_CONFIG_LIBDIR=""
25533 export PKG_CONFIG_LIBDIR
25535 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25537 if test -z "$itexists"; then
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25540 $as_echo "no" >&6; }
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25543 $as_echo "found" >&6; }
25548 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25550 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25551 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25554 if test "$PKGTEST" = "yes"; then
25556 if test -n "$PKG_CONFIG"; then
25557 PKGCONFIG="$PKG_CONFIG"
25559 if test -n "$ac_tool_prefix"; then
25560 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25561 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25563 $as_echo_n "checking for $ac_word... " >&6; }
25564 if ${ac_cv_path_PKGCONFIG+:} false; then :
25565 $as_echo_n "(cached) " >&6
25569 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25573 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25574 for as_dir in $as_dummy
25577 test -z "$as_dir" && as_dir=.
25578 for ac_exec_ext in '' $ac_executable_extensions; do
25579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25580 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25591 PKGCONFIG=$ac_cv_path_PKGCONFIG
25592 if test -n "$PKGCONFIG"; then
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25594 $as_echo "$PKGCONFIG" >&6; }
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25597 $as_echo "no" >&6; }
25602 if test -z "$ac_cv_path_PKGCONFIG"; then
25603 ac_pt_PKGCONFIG=$PKGCONFIG
25604 # Extract the first word of "pkg-config", so it can be a program name with args.
25605 set dummy pkg-config; ac_word=$2
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25607 $as_echo_n "checking for $ac_word... " >&6; }
25608 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25609 $as_echo_n "(cached) " >&6
25611 case $ac_pt_PKGCONFIG in
25613 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25617 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25618 for as_dir in $as_dummy
25621 test -z "$as_dir" && as_dir=.
25622 for ac_exec_ext in '' $ac_executable_extensions; do
25623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25624 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25635 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25636 if test -n "$ac_pt_PKGCONFIG"; then
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25638 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25641 $as_echo "no" >&6; }
25644 if test "x$ac_pt_PKGCONFIG" = x; then
25647 case $cross_compiling:$ac_tool_warned in
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25651 ac_tool_warned=yes ;;
25653 PKGCONFIG=$ac_pt_PKGCONFIG
25656 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25661 if test "x$PKGCONFIG" != "xno"; then
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25663 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25665 if test -n "$LIBMETALINK_PCDIR"; then
25666 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25667 export PKG_CONFIG_LIBDIR
25669 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25671 if test -z "$itexists"; then
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25674 $as_echo "no" >&6; }
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25677 $as_echo "found" >&6; }
25683 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25685 if test -n "$LIBMETALINK_PCDIR"; then
25686 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25687 export PKG_CONFIG_LIBDIR
25689 $PKGCONFIG --libs-only-l libmetalink`
25691 if test -n "$LIBMETALINK_PCDIR"; then
25692 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25693 export PKG_CONFIG_LIBDIR
25695 $PKGCONFIG --libs-only-L libmetalink`
25697 if test -n "$LIBMETALINK_PCDIR"; then
25698 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25699 export PKG_CONFIG_LIBDIR
25701 $PKGCONFIG --cflags-only-I libmetalink`
25703 if test -n "$LIBMETALINK_PCDIR"; then
25704 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25705 export PKG_CONFIG_LIBDIR
25707 $PKGCONFIG --modversion libmetalink`
25708 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
25710 if test -n "$addlib"; then
25712 clean_CPPFLAGS="$CPPFLAGS"
25713 clean_LDFLAGS="$LDFLAGS"
25715 CPPFLAGS="$addcflags $clean_CPPFLAGS"
25716 LDFLAGS="$addld $clean_LDFLAGS"
25717 LIBS="$addlib $clean_LIBS"
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
25719 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
25720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h. */
25724 # include <metalink/metalink.h>
25729 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
25737 if ac_fn_c_try_link "$LINENO"; then :
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
25740 $as_echo "yes ($version)" >&6; }
25741 want_metalink="yes"
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
25746 $as_echo "no ($version)" >&6; }
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
25748 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
25752 rm -f core conftest.err conftest.$ac_objext \
25753 conftest$ac_exeext conftest.$ac_ext
25754 CPPFLAGS="$clean_CPPFLAGS"
25755 LDFLAGS="$clean_LDFLAGS"
25757 if test "$want_metalink" = "yes"; then
25759 $as_echo "#define USE_METALINK 1" >>confdefs.h
25761 LIBMETALINK_LIBS=$addlib
25762 LIBMETALINK_LDFLAGS=$addld
25763 LIBMETALINK_CPPFLAGS=$addcflags
25767 curl_mtlnk_msg="enabled"
25776 # Check whether --with-libssh2 was given.
25777 if test "${with_libssh2+set}" = set; then :
25778 withval=$with_libssh2; OPT_LIBSSH2=$withval
25782 if test X"$OPT_LIBSSH2" != Xno; then
25783 CLEANLDFLAGS="$LDFLAGS"
25784 CLEANCPPFLAGS="$CPPFLAGS"
25787 case "$OPT_LIBSSH2" in
25790 if test -n "$PKG_CONFIG"; then
25791 PKGCONFIG="$PKG_CONFIG"
25793 if test -n "$ac_tool_prefix"; then
25794 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25795 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25797 $as_echo_n "checking for $ac_word... " >&6; }
25798 if ${ac_cv_path_PKGCONFIG+:} false; then :
25799 $as_echo_n "(cached) " >&6
25803 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25807 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25808 for as_dir in $as_dummy
25811 test -z "$as_dir" && as_dir=.
25812 for ac_exec_ext in '' $ac_executable_extensions; do
25813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25814 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25825 PKGCONFIG=$ac_cv_path_PKGCONFIG
25826 if test -n "$PKGCONFIG"; then
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25828 $as_echo "$PKGCONFIG" >&6; }
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25831 $as_echo "no" >&6; }
25836 if test -z "$ac_cv_path_PKGCONFIG"; then
25837 ac_pt_PKGCONFIG=$PKGCONFIG
25838 # Extract the first word of "pkg-config", so it can be a program name with args.
25839 set dummy pkg-config; ac_word=$2
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25841 $as_echo_n "checking for $ac_word... " >&6; }
25842 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25843 $as_echo_n "(cached) " >&6
25845 case $ac_pt_PKGCONFIG in
25847 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25851 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25852 for as_dir in $as_dummy
25855 test -z "$as_dir" && as_dir=.
25856 for ac_exec_ext in '' $ac_executable_extensions; do
25857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25858 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25869 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25870 if test -n "$ac_pt_PKGCONFIG"; then
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25872 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25875 $as_echo "no" >&6; }
25878 if test "x$ac_pt_PKGCONFIG" = x; then
25881 case $cross_compiling:$ac_tool_warned in
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25885 ac_tool_warned=yes ;;
25887 PKGCONFIG=$ac_pt_PKGCONFIG
25890 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25895 if test "x$PKGCONFIG" != "xno"; then
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
25897 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
25899 if test -n ""; then
25900 PKG_CONFIG_LIBDIR=""
25901 export PKG_CONFIG_LIBDIR
25903 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
25905 if test -z "$itexists"; then
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25908 $as_echo "no" >&6; }
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25911 $as_echo "found" >&6; }
25916 if test "$PKGCONFIG" != "no" ; then
25917 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
25918 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
25919 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
25920 version=`$PKGCONFIG --modversion libssh2`
25921 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
25928 PREFIX_SSH2=$OPT_LIBSSH2
25932 if test -n "$PREFIX_SSH2"; then
25934 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
25935 CPP_SSH2=-I${PREFIX_SSH2}/include
25936 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
25939 LDFLAGS="$LDFLAGS $LD_SSH2"
25940 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
25941 LIBS="$LIB_SSH2 $LIBS"
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
25944 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
25945 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
25946 $as_echo_n "(cached) " >&6
25948 ac_check_lib_save_LIBS=$LIBS
25949 LIBS="-lssh2 $LIBS"
25950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25951 /* end confdefs.h. */
25957 char libssh2_channel_open_ex ();
25960 return libssh2_channel_open_ex ();
25965 if ac_fn_c_try_link "$LINENO"; then :
25966 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
25968 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
25970 rm -f core conftest.err conftest.$ac_objext \
25971 conftest$ac_exeext conftest.$ac_ext
25972 LIBS=$ac_check_lib_save_LIBS
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
25975 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
25976 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
25977 cat >>confdefs.h <<_ACEOF
25978 #define HAVE_LIBSSH2 1
25981 LIBS="-lssh2 $LIBS"
25986 for ac_header in libssh2.h
25988 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
25989 if test "x$ac_cv_header_libssh2_h" = xyes; then :
25990 cat >>confdefs.h <<_ACEOF
25991 #define HAVE_LIBSSH2_H 1
25993 curl_ssh_msg="enabled (libSSH2)"
25996 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26006 if test X"$OPT_LIBSSH2" != Xoff &&
26007 test "$LIBSSH2_ENABLED" != "1"; then
26008 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26011 if test "$LIBSSH2_ENABLED" = "1"; then
26012 if test -n "$DIR_SSH2"; then
26014 if test "x$cross_compiling" != "xyes"; then
26015 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26016 export LD_LIBRARY_PATH
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26018 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26022 LDFLAGS=$CLEANLDFLAGS
26023 CPPFLAGS=$CLEANCPPFLAGS
26031 # Check whether --with-librtmp was given.
26032 if test "${with_librtmp+set}" = set; then :
26033 withval=$with_librtmp; OPT_LIBRTMP=$withval
26037 if test X"$OPT_LIBRTMP" != Xno; then
26038 CLEANLDFLAGS="$LDFLAGS"
26039 CLEANCPPFLAGS="$CPPFLAGS"
26042 case "$OPT_LIBRTMP" in
26045 if test -n "$PKG_CONFIG"; then
26046 PKGCONFIG="$PKG_CONFIG"
26048 if test -n "$ac_tool_prefix"; then
26049 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26050 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26052 $as_echo_n "checking for $ac_word... " >&6; }
26053 if ${ac_cv_path_PKGCONFIG+:} false; then :
26054 $as_echo_n "(cached) " >&6
26058 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26062 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26063 for as_dir in $as_dummy
26066 test -z "$as_dir" && as_dir=.
26067 for ac_exec_ext in '' $ac_executable_extensions; do
26068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26069 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26080 PKGCONFIG=$ac_cv_path_PKGCONFIG
26081 if test -n "$PKGCONFIG"; then
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26083 $as_echo "$PKGCONFIG" >&6; }
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26086 $as_echo "no" >&6; }
26091 if test -z "$ac_cv_path_PKGCONFIG"; then
26092 ac_pt_PKGCONFIG=$PKGCONFIG
26093 # Extract the first word of "pkg-config", so it can be a program name with args.
26094 set dummy pkg-config; ac_word=$2
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26096 $as_echo_n "checking for $ac_word... " >&6; }
26097 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26098 $as_echo_n "(cached) " >&6
26100 case $ac_pt_PKGCONFIG in
26102 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26106 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26107 for as_dir in $as_dummy
26110 test -z "$as_dir" && as_dir=.
26111 for ac_exec_ext in '' $ac_executable_extensions; do
26112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26113 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26124 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26125 if test -n "$ac_pt_PKGCONFIG"; then
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26127 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26130 $as_echo "no" >&6; }
26133 if test "x$ac_pt_PKGCONFIG" = x; then
26136 case $cross_compiling:$ac_tool_warned in
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26140 ac_tool_warned=yes ;;
26142 PKGCONFIG=$ac_pt_PKGCONFIG
26145 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26150 if test "x$PKGCONFIG" != "xno"; then
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26152 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26154 if test -n ""; then
26155 PKG_CONFIG_LIBDIR=""
26156 export PKG_CONFIG_LIBDIR
26158 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26160 if test -z "$itexists"; then
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26163 $as_echo "no" >&6; }
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26166 $as_echo "found" >&6; }
26171 if test "$PKGCONFIG" != "no" ; then
26172 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26173 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26174 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26175 version=`$PKGCONFIG --modversion librtmp`
26176 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26178 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26186 PREFIX_RTMP=$OPT_LIBRTMP
26190 if test -n "$PREFIX_RTMP"; then
26191 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26192 CPP_RTMP=-I${PREFIX_RTMP}/include
26193 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26196 LDFLAGS="$LDFLAGS $LD_RTMP"
26197 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26198 LIBS="$LIB_RTMP $LIBS"
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26201 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26202 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26203 $as_echo_n "(cached) " >&6
26205 ac_check_lib_save_LIBS=$LIBS
26206 LIBS="-lrtmp $LIBS"
26207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26208 /* end confdefs.h. */
26217 return RTMP_Init ();
26222 if ac_fn_c_try_link "$LINENO"; then :
26223 ac_cv_lib_rtmp_RTMP_Init=yes
26225 ac_cv_lib_rtmp_RTMP_Init=no
26227 rm -f core conftest.err conftest.$ac_objext \
26228 conftest$ac_exeext conftest.$ac_ext
26229 LIBS=$ac_check_lib_save_LIBS
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26232 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26233 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26235 for ac_header in librtmp/rtmp.h
26237 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26238 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26239 cat >>confdefs.h <<_ACEOF
26240 #define HAVE_LIBRTMP_RTMP_H 1
26242 curl_rtmp_msg="enabled (librtmp)"
26245 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26256 LDFLAGS=$CLEANLDFLAGS
26257 CPPFLAGS=$CLEANCPPFLAGS
26263 if test X"$OPT_LIBRTMP" != Xoff &&
26264 test "$LIBRTMP_ENABLED" != "1"; then
26265 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26271 versioned_symbols_flavour=
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26273 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26274 # Check whether --enable-versioned-symbols was given.
26275 if test "${enable_versioned_symbols+set}" = set; then :
26276 enableval=$enable_versioned_symbols; case "$enableval" in
26277 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26278 $as_echo "yes" >&6; }
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26280 $as_echo_n "checking if libraries can be versioned... " >&6; }
26281 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26282 if test -z "$GLD"; then
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26284 $as_echo "no" >&6; }
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26286 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26289 $as_echo "yes" >&6; }
26290 if test "x$OPENSSL_ENABLED" = "x1"; then
26291 versioned_symbols_flavour="OPENSSL_"
26292 elif test "x$GNUTLS_ENABLED" = "x1"; then
26293 versioned_symbols_flavour="GNUTLS_"
26294 elif test "x$NSS_ENABLED" = "x1"; then
26295 versioned_symbols_flavour="NSS_"
26296 elif test "x$POLARSSL_ENABLED" = "x1"; then
26297 versioned_symbols_flavour="POLARSSL_"
26298 elif test "x$CYASSL_ENABLED" = "x1"; then
26299 versioned_symbols_flavour="CYASSL_"
26300 elif test "x$AXTLS_ENABLED" = "x1"; then
26301 versioned_symbols_flavour="AXTLS_"
26302 elif test "x$WINSSL_ENABLED" = "x1"; then
26303 versioned_symbols_flavour="WINSSL_"
26304 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26305 versioned_symbols_flavour="DARWINSSL_"
26307 versioned_symbols_flavour=""
26309 versioned_symbols="yes"
26313 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26314 $as_echo "no" >&6; }
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26321 $as_echo "no" >&6; }
26327 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26329 if test "x$versioned_symbols" = 'xyes'; then
26330 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26331 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26333 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26334 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26340 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26341 OPT_WINIDN="default"
26343 # Check whether --with-winidn was given.
26344 if test "${with_winidn+set}" = set; then :
26345 withval=$with_winidn; OPT_WINIDN=$withval
26348 case "$OPT_WINIDN" in
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26352 $as_echo "no" >&6; }
26356 want_winidn_path="default"
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26358 $as_echo "yes" >&6; }
26362 want_winidn_path="$withval"
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26364 $as_echo "yes ($withval)" >&6; }
26368 if test "$want_winidn" = "yes"; then
26369 clean_CPPFLAGS="$CPPFLAGS"
26370 clean_LDFLAGS="$LDFLAGS"
26372 WINIDN_LIBS="-lnormaliz"
26374 if test "$want_winidn_path" != "default"; then
26375 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26376 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26377 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26380 CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
26381 LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
26382 LIBS="$WINIDN_LIBS $LIBS"
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26385 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26387 /* end confdefs.h. */
26390 #define IdnToUnicode innocuous_IdnToUnicode
26392 # include <limits.h>
26394 # include <assert.h>
26396 #undef IdnToUnicode
26400 char IdnToUnicode ();
26401 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
26407 return IdnToUnicode ();
26413 if ac_fn_c_try_link "$LINENO"; then :
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26416 $as_echo "yes" >&6; }
26417 tst_links_winidn="yes"
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26422 $as_echo "no" >&6; }
26423 tst_links_winidn="no"
26426 rm -f core conftest.err conftest.$ac_objext \
26427 conftest$ac_exeext conftest.$ac_ext
26429 if test "$tst_links_winidn" = "yes"; then
26431 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26434 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26438 curl_idn_msg="enabled (Windows-native)"
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26441 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26442 CPPFLAGS="$clean_CPPFLAGS"
26443 LDFLAGS="$clean_LDFLAGS"
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
26450 $as_echo_n "checking whether to build with libidn... " >&6; }
26453 # Check whether --with-libidn was given.
26454 if test "${with_libidn+set}" = set; then :
26455 withval=$with_libidn; OPT_IDN=$withval
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26462 $as_echo "no" >&6; }
26466 want_idn_path="default"
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26468 $as_echo "(assumed) yes" >&6; }
26472 want_idn_path="default"
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26474 $as_echo "yes" >&6; }
26478 want_idn_path="$withval"
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26480 $as_echo "yes ($withval)" >&6; }
26484 if test "$want_idn" = "yes"; then
26485 clean_CPPFLAGS="$CPPFLAGS"
26486 clean_LDFLAGS="$LDFLAGS"
26490 if test "$want_idn_path" != "default"; then
26491 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
26493 if test -n "$PKG_CONFIG"; then
26494 PKGCONFIG="$PKG_CONFIG"
26496 if test -n "$ac_tool_prefix"; then
26497 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26498 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26500 $as_echo_n "checking for $ac_word... " >&6; }
26501 if ${ac_cv_path_PKGCONFIG+:} false; then :
26502 $as_echo_n "(cached) " >&6
26506 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26510 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26511 for as_dir in $as_dummy
26514 test -z "$as_dir" && as_dir=.
26515 for ac_exec_ext in '' $ac_executable_extensions; do
26516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26517 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26528 PKGCONFIG=$ac_cv_path_PKGCONFIG
26529 if test -n "$PKGCONFIG"; then
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26531 $as_echo "$PKGCONFIG" >&6; }
26533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26534 $as_echo "no" >&6; }
26539 if test -z "$ac_cv_path_PKGCONFIG"; then
26540 ac_pt_PKGCONFIG=$PKGCONFIG
26541 # Extract the first word of "pkg-config", so it can be a program name with args.
26542 set dummy pkg-config; ac_word=$2
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26544 $as_echo_n "checking for $ac_word... " >&6; }
26545 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26546 $as_echo_n "(cached) " >&6
26548 case $ac_pt_PKGCONFIG in
26550 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26554 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26555 for as_dir in $as_dummy
26558 test -z "$as_dir" && as_dir=.
26559 for ac_exec_ext in '' $ac_executable_extensions; do
26560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26561 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26572 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26573 if test -n "$ac_pt_PKGCONFIG"; then
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26575 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26578 $as_echo "no" >&6; }
26581 if test "x$ac_pt_PKGCONFIG" = x; then
26584 case $cross_compiling:$ac_tool_warned in
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26588 ac_tool_warned=yes ;;
26590 PKGCONFIG=$ac_pt_PKGCONFIG
26593 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26598 if test "x$PKGCONFIG" != "xno"; then
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
26600 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
26602 if test -n "$IDN_PCDIR"; then
26603 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26604 export PKG_CONFIG_LIBDIR
26606 $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
26608 if test -z "$itexists"; then
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26611 $as_echo "no" >&6; }
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26614 $as_echo "found" >&6; }
26618 if test "$PKGCONFIG" != "no"; then
26620 if test -n "$IDN_PCDIR"; then
26621 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26622 export PKG_CONFIG_LIBDIR
26624 $PKGCONFIG --libs-only-l libidn 2>/dev/null`
26626 if test -n "$IDN_PCDIR"; then
26627 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26628 export PKG_CONFIG_LIBDIR
26630 $PKGCONFIG --libs-only-L libidn 2>/dev/null`
26632 if test -n "$IDN_PCDIR"; then
26633 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26634 export PKG_CONFIG_LIBDIR
26636 $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
26637 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26640 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
26641 IDN_CPPFLAGS="-I$want_idn_path/include"
26642 IDN_DIR="$want_idn_path/lib$libsuff"
26646 if test -n "$PKG_CONFIG"; then
26647 PKGCONFIG="$PKG_CONFIG"
26649 if test -n "$ac_tool_prefix"; then
26650 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26651 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26653 $as_echo_n "checking for $ac_word... " >&6; }
26654 if ${ac_cv_path_PKGCONFIG+:} false; then :
26655 $as_echo_n "(cached) " >&6
26659 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26663 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26664 for as_dir in $as_dummy
26667 test -z "$as_dir" && as_dir=.
26668 for ac_exec_ext in '' $ac_executable_extensions; do
26669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26670 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26681 PKGCONFIG=$ac_cv_path_PKGCONFIG
26682 if test -n "$PKGCONFIG"; then
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26684 $as_echo "$PKGCONFIG" >&6; }
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26687 $as_echo "no" >&6; }
26692 if test -z "$ac_cv_path_PKGCONFIG"; then
26693 ac_pt_PKGCONFIG=$PKGCONFIG
26694 # Extract the first word of "pkg-config", so it can be a program name with args.
26695 set dummy pkg-config; ac_word=$2
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26697 $as_echo_n "checking for $ac_word... " >&6; }
26698 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26699 $as_echo_n "(cached) " >&6
26701 case $ac_pt_PKGCONFIG in
26703 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26707 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26708 for as_dir in $as_dummy
26711 test -z "$as_dir" && as_dir=.
26712 for ac_exec_ext in '' $ac_executable_extensions; do
26713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26714 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26725 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26726 if test -n "$ac_pt_PKGCONFIG"; then
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26728 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26731 $as_echo "no" >&6; }
26734 if test "x$ac_pt_PKGCONFIG" = x; then
26737 case $cross_compiling:$ac_tool_warned in
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26741 ac_tool_warned=yes ;;
26743 PKGCONFIG=$ac_pt_PKGCONFIG
26746 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26751 if test "x$PKGCONFIG" != "xno"; then
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
26753 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
26755 if test -n ""; then
26756 PKG_CONFIG_LIBDIR=""
26757 export PKG_CONFIG_LIBDIR
26759 $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
26761 if test -z "$itexists"; then
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26764 $as_echo "no" >&6; }
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26767 $as_echo "found" >&6; }
26771 if test "$PKGCONFIG" != "no"; then
26772 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
26773 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
26774 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
26775 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26781 if test "$PKGCONFIG" != "no"; then
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
26783 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26785 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26787 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
26789 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
26792 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26794 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26796 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
26798 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
26801 CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
26802 LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
26803 LIBS="$IDN_LIBS $LIBS"
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
26806 $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
26807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26808 /* end confdefs.h. */
26811 #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
26813 # include <limits.h>
26815 # include <assert.h>
26817 #undef idna_to_ascii_4i
26821 char idna_to_ascii_4i ();
26822 #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
26828 return idna_to_ascii_4i ();
26834 if ac_fn_c_try_link "$LINENO"; then :
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26837 $as_echo "yes" >&6; }
26838 tst_links_libidn="yes"
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26843 $as_echo "no" >&6; }
26844 tst_links_libidn="no"
26847 rm -f core conftest.err conftest.$ac_objext \
26848 conftest$ac_exeext conftest.$ac_ext
26849 if test "$tst_links_libidn" = "no"; then
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
26851 $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
26852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26853 /* end confdefs.h. */
26856 #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
26858 # include <limits.h>
26860 # include <assert.h>
26862 #undef idna_to_ascii_lz
26866 char idna_to_ascii_lz ();
26867 #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
26873 return idna_to_ascii_lz ();
26879 if ac_fn_c_try_link "$LINENO"; then :
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26882 $as_echo "yes" >&6; }
26883 tst_links_libidn="yes"
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26888 $as_echo "no" >&6; }
26889 tst_links_libidn="no"
26892 rm -f core conftest.err conftest.$ac_objext \
26893 conftest$ac_exeext conftest.$ac_ext
26896 if test "$tst_links_libidn" = "yes"; then
26898 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
26900 for ac_func in idn_free idna_strerror tld_strerror
26902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26904 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26905 cat >>confdefs.h <<_ACEOF
26906 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26912 for ac_header in idn-free.h tld.h
26914 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26915 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26916 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26917 cat >>confdefs.h <<_ACEOF
26918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26925 if test "x$ac_cv_header_tld_h" = "xyes"; then
26928 curl_idn_msg="enabled"
26929 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
26930 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
26931 export LD_LIBRARY_PATH
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
26933 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
26937 $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
26938 CPPFLAGS="$clean_CPPFLAGS"
26939 LDFLAGS="$clean_LDFLAGS"
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26944 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26945 CPPFLAGS="$clean_CPPFLAGS"
26946 LDFLAGS="$clean_LDFLAGS"
26957 # Check whether --with-nghttp2 was given.
26958 if test "${with_nghttp2+set}" = set; then :
26959 withval=$with_nghttp2; OPT_H2=$withval
26972 want_h2_path="$withval/lib/pkgconfig"
26976 curl_h2_msg="disabled (--with-nghttp2)"
26977 if test X"$want_h2" != Xno; then
26978 CLEANLDFLAGS="$LDFLAGS"
26979 CLEANCPPFLAGS="$CPPFLAGS"
26983 if test -n "$PKG_CONFIG"; then
26984 PKGCONFIG="$PKG_CONFIG"
26986 if test -n "$ac_tool_prefix"; then
26987 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26988 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26990 $as_echo_n "checking for $ac_word... " >&6; }
26991 if ${ac_cv_path_PKGCONFIG+:} false; then :
26992 $as_echo_n "(cached) " >&6
26996 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27000 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27001 for as_dir in $as_dummy
27004 test -z "$as_dir" && as_dir=.
27005 for ac_exec_ext in '' $ac_executable_extensions; do
27006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27007 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27018 PKGCONFIG=$ac_cv_path_PKGCONFIG
27019 if test -n "$PKGCONFIG"; then
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27021 $as_echo "$PKGCONFIG" >&6; }
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27024 $as_echo "no" >&6; }
27029 if test -z "$ac_cv_path_PKGCONFIG"; then
27030 ac_pt_PKGCONFIG=$PKGCONFIG
27031 # Extract the first word of "pkg-config", so it can be a program name with args.
27032 set dummy pkg-config; ac_word=$2
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27034 $as_echo_n "checking for $ac_word... " >&6; }
27035 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27036 $as_echo_n "(cached) " >&6
27038 case $ac_pt_PKGCONFIG in
27040 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27044 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27045 for as_dir in $as_dummy
27048 test -z "$as_dir" && as_dir=.
27049 for ac_exec_ext in '' $ac_executable_extensions; do
27050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27051 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27062 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27063 if test -n "$ac_pt_PKGCONFIG"; then
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27065 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27068 $as_echo "no" >&6; }
27071 if test "x$ac_pt_PKGCONFIG" = x; then
27074 case $cross_compiling:$ac_tool_warned in
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27078 ac_tool_warned=yes ;;
27080 PKGCONFIG=$ac_pt_PKGCONFIG
27083 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27088 if test "x$PKGCONFIG" != "xno"; then
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27090 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27092 if test -n "$want_h2_path"; then
27093 PKG_CONFIG_LIBDIR="$want_h2_path"
27094 export PKG_CONFIG_LIBDIR
27096 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27098 if test -z "$itexists"; then
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27101 $as_echo "no" >&6; }
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27104 $as_echo "found" >&6; }
27109 if test "$PKGCONFIG" != "no" ; then
27111 if test -n "$want_h2_path"; then
27112 PKG_CONFIG_LIBDIR="$want_h2_path"
27113 export PKG_CONFIG_LIBDIR
27116 $PKGCONFIG --libs-only-l libnghttp2`
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27118 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27121 if test -n "$want_h2_path"; then
27122 PKG_CONFIG_LIBDIR="$want_h2_path"
27123 export PKG_CONFIG_LIBDIR
27125 $PKGCONFIG --cflags-only-I libnghttp2`
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27127 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27130 if test -n "$want_h2_path"; then
27131 PKG_CONFIG_LIBDIR="$want_h2_path"
27132 export PKG_CONFIG_LIBDIR
27135 $PKGCONFIG --libs-only-L libnghttp2`
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27137 $as_echo "$as_me: -L is $LD_H2" >&6;}
27139 LDFLAGS="$LDFLAGS $LD_H2"
27140 CPPFLAGS="$CPPFLAGS $CPP_H2"
27141 LIBS="$LIB_H2 $LIBS"
27143 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27146 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27147 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27148 $as_echo_n "(cached) " >&6
27150 ac_check_lib_save_LIBS=$LIBS
27151 LIBS="-lnghttp2 $LIBS"
27152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27153 /* end confdefs.h. */
27159 char nghttp2_option_set_no_recv_client_magic ();
27162 return nghttp2_option_set_no_recv_client_magic ();
27167 if ac_fn_c_try_link "$LINENO"; then :
27168 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27170 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27172 rm -f core conftest.err conftest.$ac_objext \
27173 conftest$ac_exeext conftest.$ac_ext
27174 LIBS=$ac_check_lib_save_LIBS
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27177 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27178 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27180 for ac_header in nghttp2/nghttp2.h
27182 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27183 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27184 cat >>confdefs.h <<_ACEOF
27185 #define HAVE_NGHTTP2_NGHTTP2_H 1
27187 curl_h2_msg="enabled (nghttp2)"
27190 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27201 LDFLAGS=$CLEANLDFLAGS
27202 CPPFLAGS=$CLEANCPPFLAGS
27209 if test X"$want_h2" != Xdefault; then
27210 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27217 OPT_ZSH_FPATH=default
27219 # Check whether --with-zsh-functions-dir was given.
27220 if test "${with_zsh_functions_dir+set}" = set; then :
27221 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27224 case "$OPT_ZSH_FPATH" in
27228 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27232 ZSH_FUNCTIONS_DIR="$withval"
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27239 $as_echo_n "checking for ANSI C header files... " >&6; }
27240 if ${ac_cv_header_stdc+:} false; then :
27241 $as_echo_n "(cached) " >&6
27243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27244 /* end confdefs.h. */
27245 #include <stdlib.h>
27246 #include <stdarg.h>
27247 #include <string.h>
27257 if ac_fn_c_try_compile "$LINENO"; then :
27258 ac_cv_header_stdc=yes
27260 ac_cv_header_stdc=no
27262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27264 if test $ac_cv_header_stdc = yes; then
27265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27267 /* end confdefs.h. */
27268 #include <string.h>
27271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27272 $EGREP "memchr" >/dev/null 2>&1; then :
27275 ac_cv_header_stdc=no
27281 if test $ac_cv_header_stdc = yes; then
27282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27284 /* end confdefs.h. */
27285 #include <stdlib.h>
27288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27289 $EGREP "free" >/dev/null 2>&1; then :
27292 ac_cv_header_stdc=no
27298 if test $ac_cv_header_stdc = yes; then
27299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27300 if test "$cross_compiling" = yes; then :
27303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27304 /* end confdefs.h. */
27306 #include <stdlib.h>
27307 #if ((' ' & 0x0FF) == 0x020)
27308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27311 # define ISLOWER(c) \
27312 (('a' <= (c) && (c) <= 'i') \
27313 || ('j' <= (c) && (c) <= 'r') \
27314 || ('s' <= (c) && (c) <= 'z'))
27315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27323 for (i = 0; i < 256; i++)
27324 if (XOR (islower (i), ISLOWER (i))
27325 || toupper (i) != TOUPPER (i))
27330 if ac_fn_c_try_run "$LINENO"; then :
27333 ac_cv_header_stdc=no
27335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27336 conftest.$ac_objext conftest.beam conftest.$ac_ext
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27342 $as_echo "$ac_cv_header_stdc" >&6; }
27343 if test $ac_cv_header_stdc = yes; then
27345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27352 $as_echo_n "checking for malloc.h... " >&6; }
27353 if ${curl_cv_header_malloc_h+:} false; then :
27354 $as_echo_n "(cached) " >&6
27357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27358 /* end confdefs.h. */
27361 #include <malloc.h>
27366 void *p = malloc(10);
27367 void *q = calloc(10,10);
27376 if ac_fn_c_try_compile "$LINENO"; then :
27378 curl_cv_header_malloc_h="yes"
27382 curl_cv_header_malloc_h="no"
27385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27389 $as_echo "$curl_cv_header_malloc_h" >&6; }
27390 if test "$curl_cv_header_malloc_h" = "yes"; then
27392 cat >>confdefs.h <<_ACEOF
27393 #define HAVE_MALLOC_H 1
27397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27398 /* end confdefs.h. */
27401 #include <stdlib.h>
27406 void *p = malloc(10);
27407 void *q = calloc(10,10);
27416 if ac_fn_c_try_compile "$LINENO"; then :
27418 curl_cv_need_header_malloc_h="no"
27422 curl_cv_need_header_malloc_h="yes"
27425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27427 case "$curl_cv_need_header_malloc_h" in
27430 cat >>confdefs.h <<_ACEOF
27431 #define NEED_MALLOC_H 1
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27440 $as_echo_n "checking for memory.h... " >&6; }
27441 if ${curl_cv_header_memory_h+:} false; then :
27442 $as_echo_n "(cached) " >&6
27445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27446 /* end confdefs.h. */
27449 #include <memory.h>
27454 void *p = malloc(10);
27455 void *q = calloc(10,10);
27464 if ac_fn_c_try_compile "$LINENO"; then :
27466 curl_cv_header_memory_h="yes"
27470 curl_cv_header_memory_h="no"
27473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27477 $as_echo "$curl_cv_header_memory_h" >&6; }
27478 if test "$curl_cv_header_memory_h" = "yes"; then
27480 cat >>confdefs.h <<_ACEOF
27481 #define HAVE_MEMORY_H 1
27485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27486 /* end confdefs.h. */
27489 #include <stdlib.h>
27494 void *p = malloc(10);
27495 void *q = calloc(10,10);
27504 if ac_fn_c_try_compile "$LINENO"; then :
27506 curl_cv_need_header_memory_h="no"
27510 curl_cv_need_header_memory_h="yes"
27513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27515 case "$curl_cv_need_header_memory_h" in
27518 cat >>confdefs.h <<_ACEOF
27519 #define NEED_MEMORY_H 1
27527 for ac_header in sys/types.h \
27569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27570 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
27571 #ifdef HAVE_SYS_TYPES_H
27572 #include <sys/types.h>
27574 #ifdef HAVE_SYS_TIME_H
27575 #include <sys/time.h>
27577 #ifdef HAVE_SYS_SELECT_H
27578 #include <sys/select.h>
27580 #ifdef HAVE_SYS_SOCKET_H
27581 #include <sys/socket.h>
27583 #ifdef HAVE_NETINET_IN_H
27584 #include <netinet/in.h>
27586 #ifdef HAVE_SYS_UN_H
27587 #include <sys/un.h>
27592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27593 cat >>confdefs.h <<_ACEOF
27594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27603 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27604 if ${ac_cv_c_const+:} false; then :
27605 $as_echo_n "(cached) " >&6
27607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27608 /* end confdefs.h. */
27613 #ifndef __cplusplus
27614 /* Ultrix mips cc rejects this sort of thing. */
27615 typedef int charset[2];
27616 const charset cs = { 0, 0 };
27617 /* SunOS 4.1.1 cc rejects this. */
27618 char const *const *pcpcc;
27620 /* NEC SVR4.0.2 mips cc rejects this. */
27621 struct point {int x, y;};
27622 static struct point const zero = {0,0};
27623 /* AIX XL C 1.02.0.0 rejects this.
27624 It does not let you subtract one const X* pointer from another in
27625 an arm of an if-expression whose if-part is not a constant
27627 const char *g = "string";
27628 pcpcc = &g + (g ? g-g : 0);
27629 /* HPUX 7.0 cc rejects these. */
27631 ppc = (char**) pcpcc;
27632 pcpcc = (char const *const *) ppc;
27633 { /* SCO 3.2v4 cc rejects this sort of thing. */
27636 char const *s = 0 ? (char *) 0 : (char const *) 0;
27641 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27642 int x[] = {25, 17};
27643 const int *foo = &x[0];
27646 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27647 typedef const int *iptr;
27651 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27652 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27653 struct s { int j; const int *ap[3]; } bx;
27654 struct s *b = &bx; b->j = 5;
27656 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27657 const int foo = 10;
27658 if (!foo) return 0;
27660 return !cs[0] && !zero.x;
27667 if ac_fn_c_try_compile "$LINENO"; then :
27672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27675 $as_echo "$ac_cv_c_const" >&6; }
27676 if test $ac_cv_c_const = no; then
27678 $as_echo "#define const /**/" >>confdefs.h
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
27684 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
27685 if ${curl_cv_variadic_macros_c99+:} false; then :
27686 $as_echo_n "(cached) " >&6
27689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27690 /* end confdefs.h. */
27693 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
27694 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
27695 int fun3(int arg1, int arg2, int arg3);
27696 int fun2(int arg1, int arg2);
27697 int fun3(int arg1, int arg2, int arg3)
27698 { return arg1 + arg2 + arg3; }
27699 int fun2(int arg1, int arg2)
27700 { return arg1 + arg2; }
27705 int res3 = c99_vmacro3(1, 2, 3);
27706 int res2 = c99_vmacro2(1, 2);
27713 if ac_fn_c_try_compile "$LINENO"; then :
27715 curl_cv_variadic_macros_c99="yes"
27719 curl_cv_variadic_macros_c99="no"
27722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
27726 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
27727 case "$curl_cv_variadic_macros_c99" in
27730 cat >>confdefs.h <<_ACEOF
27731 #define HAVE_VARIADIC_MACROS_C99 1
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
27737 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
27738 if ${curl_cv_variadic_macros_gcc+:} false; then :
27739 $as_echo_n "(cached) " >&6
27742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27743 /* end confdefs.h. */
27746 #define gcc_vmacro3(first, args...) fun3(first, args)
27747 #define gcc_vmacro2(first, args...) fun2(first, args)
27748 int fun3(int arg1, int arg2, int arg3);
27749 int fun2(int arg1, int arg2);
27750 int fun3(int arg1, int arg2, int arg3)
27751 { return arg1 + arg2 + arg3; }
27752 int fun2(int arg1, int arg2)
27753 { return arg1 + arg2; }
27758 int res3 = gcc_vmacro3(1, 2, 3);
27759 int res2 = gcc_vmacro2(1, 2);
27766 if ac_fn_c_try_compile "$LINENO"; then :
27768 curl_cv_variadic_macros_gcc="yes"
27772 curl_cv_variadic_macros_gcc="no"
27775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
27779 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
27780 case "$curl_cv_variadic_macros_gcc" in
27783 cat >>confdefs.h <<_ACEOF
27784 #define HAVE_VARIADIC_MACROS_GCC 1
27790 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27791 if test "x$ac_cv_type_size_t" = xyes; then :
27795 cat >>confdefs.h <<_ACEOF
27796 #define size_t unsigned int
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
27802 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
27803 if ${ac_cv_header_time+:} false; then :
27804 $as_echo_n "(cached) " >&6
27806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27807 /* end confdefs.h. */
27808 #include <sys/types.h>
27809 #include <sys/time.h>
27814 if ((struct tm *) 0)
27820 if ac_fn_c_try_compile "$LINENO"; then :
27821 ac_cv_header_time=yes
27823 ac_cv_header_time=no
27825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
27828 $as_echo "$ac_cv_header_time" >&6; }
27829 if test $ac_cv_header_time = yes; then
27831 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
27836 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
27838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27841 cat >>confdefs.h <<_ACEOF
27842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
27850 $as_echo_n "checking for struct timeval... " >&6; }
27851 if ${curl_cv_struct_timeval+:} false; then :
27852 $as_echo_n "(cached) " >&6
27855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27856 /* end confdefs.h. */
27860 #ifdef HAVE_WINDOWS_H
27861 #ifndef WIN32_LEAN_AND_MEAN
27862 #define WIN32_LEAN_AND_MEAN
27864 #include <windows.h>
27865 #ifdef HAVE_WINSOCK2_H
27866 #include <winsock2.h>
27868 #ifdef HAVE_WINSOCK_H
27869 #include <winsock.h>
27873 #ifdef HAVE_SYS_TYPES_H
27874 #include <sys/types.h>
27876 #ifdef HAVE_SYS_TIME_H
27877 #include <sys/time.h>
27878 #ifdef TIME_WITH_SYS_TIME
27886 #ifdef HAVE_SYS_SOCKET_H
27887 #include <sys/socket.h>
27902 if ac_fn_c_try_compile "$LINENO"; then :
27904 curl_cv_struct_timeval="yes"
27908 curl_cv_struct_timeval="no"
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
27915 $as_echo "$curl_cv_struct_timeval" >&6; }
27916 case "$curl_cv_struct_timeval" in
27919 cat >>confdefs.h <<_ACEOF
27920 #define HAVE_STRUCT_TIMEVAL 1
27928 if test "x$cross_compiling" != xyes; then
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
27931 $as_echo_n "checking run-time libs availability... " >&6; }
27932 if test "$cross_compiling" = yes; then :
27933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27935 as_fn_error $? "cannot run test program while cross compiling
27936 See \`config.log' for more details" "$LINENO" 5; }
27938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27939 /* end confdefs.h. */
27947 if ac_fn_c_try_run "$LINENO"; then :
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
27949 $as_echo "fine" >&6; }
27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
27952 $as_echo "failed" >&6; }
27953 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
27956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27957 conftest.$ac_objext conftest.beam conftest.$ac_ext
27964 # The cast to long int works around a bug in the HP C Compiler
27965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27967 # This bug is HP SR number 8606223364.
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
27969 $as_echo_n "checking size of size_t... " >&6; }
27970 if ${ac_cv_sizeof_size_t+:} false; then :
27971 $as_echo_n "(cached) " >&6
27973 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
27976 if test "$ac_cv_type_size_t" = yes; then
27977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27979 as_fn_error 77 "cannot compute sizeof (size_t)
27980 See \`config.log' for more details" "$LINENO" 5; }
27982 ac_cv_sizeof_size_t=0
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
27988 $as_echo "$ac_cv_sizeof_size_t" >&6; }
27992 cat >>confdefs.h <<_ACEOF
27993 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27997 # The cast to long int works around a bug in the HP C Compiler
27998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28000 # This bug is HP SR number 8606223364.
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28002 $as_echo_n "checking size of long... " >&6; }
28003 if ${ac_cv_sizeof_long+:} false; then :
28004 $as_echo_n "(cached) " >&6
28006 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
28009 if test "$ac_cv_type_long" = yes; then
28010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28012 as_fn_error 77 "cannot compute sizeof (long)
28013 See \`config.log' for more details" "$LINENO" 5; }
28015 ac_cv_sizeof_long=0
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28021 $as_echo "$ac_cv_sizeof_long" >&6; }
28025 cat >>confdefs.h <<_ACEOF
28026 #define SIZEOF_LONG $ac_cv_sizeof_long
28030 # The cast to long int works around a bug in the HP C Compiler
28031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28033 # This bug is HP SR number 8606223364.
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28035 $as_echo_n "checking size of int... " >&6; }
28036 if ${ac_cv_sizeof_int+:} false; then :
28037 $as_echo_n "(cached) " >&6
28039 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
28042 if test "$ac_cv_type_int" = yes; then
28043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28045 as_fn_error 77 "cannot compute sizeof (int)
28046 See \`config.log' for more details" "$LINENO" 5; }
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28054 $as_echo "$ac_cv_sizeof_int" >&6; }
28058 cat >>confdefs.h <<_ACEOF
28059 #define SIZEOF_INT $ac_cv_sizeof_int
28063 # The cast to long int works around a bug in the HP C Compiler
28064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28066 # This bug is HP SR number 8606223364.
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28068 $as_echo_n "checking size of short... " >&6; }
28069 if ${ac_cv_sizeof_short+:} false; then :
28070 $as_echo_n "(cached) " >&6
28072 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
28075 if test "$ac_cv_type_short" = yes; then
28076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28078 as_fn_error 77 "cannot compute sizeof (short)
28079 See \`config.log' for more details" "$LINENO" 5; }
28081 ac_cv_sizeof_short=0
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28087 $as_echo "$ac_cv_sizeof_short" >&6; }
28091 cat >>confdefs.h <<_ACEOF
28092 #define SIZEOF_SHORT $ac_cv_sizeof_short
28097 if test -z "$ac_cv_sizeof_long" ||
28098 test "$ac_cv_sizeof_long" -eq "0"; then
28099 as_fn_error $? "cannot find out size of long." "$LINENO" 5
28102 cat >>confdefs.h <<_EOF
28103 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
28107 # The cast to long int works around a bug in the HP C Compiler
28108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28110 # This bug is HP SR number 8606223364.
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28112 $as_echo_n "checking size of time_t... " >&6; }
28113 if ${ac_cv_sizeof_time_t+:} false; then :
28114 $as_echo_n "(cached) " >&6
28116 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
28119 if test "$ac_cv_type_time_t" = yes; then
28120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28122 as_fn_error 77 "cannot compute sizeof (time_t)
28123 See \`config.log' for more details" "$LINENO" 5; }
28125 ac_cv_sizeof_time_t=0
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28131 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28135 cat >>confdefs.h <<_ACEOF
28136 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28140 # The cast to long int works around a bug in the HP C Compiler
28141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28143 # This bug is HP SR number 8606223364.
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28145 $as_echo_n "checking size of off_t... " >&6; }
28146 if ${ac_cv_sizeof_off_t+:} false; then :
28147 $as_echo_n "(cached) " >&6
28149 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
28152 if test "$ac_cv_type_off_t" = yes; then
28153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28155 as_fn_error 77 "cannot compute sizeof (off_t)
28156 See \`config.log' for more details" "$LINENO" 5; }
28158 ac_cv_sizeof_off_t=0
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28164 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28168 cat >>confdefs.h <<_ACEOF
28169 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28175 if test x"$curl_cv_native_windows" != "xyes" &&
28176 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
28177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
28178 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
28180 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
28185 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28186 if test "x$ac_cv_type_long_long" = xyes; then :
28188 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28195 if test "xyes" = "x$longlong"; then
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28197 $as_echo_n "checking if numberLL works... " >&6; }
28198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28199 /* end confdefs.h. */
28206 long long val = 1000LL;
28213 if ac_fn_c_try_compile "$LINENO"; then :
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28216 $as_echo "yes" >&6; }
28218 $as_echo "#define HAVE_LL 1" >>confdefs.h
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28224 $as_echo "no" >&6; }
28227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28231 # check for ssize_t
28232 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28233 if test "x$ac_cv_type_ssize_t" = xyes; then :
28237 $as_echo "#define ssize_t int" >>confdefs.h
28242 # check for bool type
28243 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28244 #ifdef HAVE_SYS_TYPES_H
28245 #include <sys/types.h>
28247 #ifdef HAVE_STDBOOL_H
28248 #include <stdbool.h>
28252 if test "x$ac_cv_type_bool" = xyes; then :
28255 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28262 curl_includes_ws2tcpip="\
28263 /* includes start */
28264 #ifdef HAVE_WINDOWS_H
28265 # ifndef WIN32_LEAN_AND_MEAN
28266 # define WIN32_LEAN_AND_MEAN
28268 # include <windows.h>
28269 # ifdef HAVE_WINSOCK2_H
28270 # include <winsock2.h>
28271 # ifdef HAVE_WS2TCPIP_H
28272 # include <ws2tcpip.h>
28276 /* includes end */"
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28279 $as_echo_n "checking for windows.h... " >&6; }
28280 if ${curl_cv_header_windows_h+:} false; then :
28281 $as_echo_n "(cached) " >&6
28284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28285 /* end confdefs.h. */
28289 #ifndef WIN32_LEAN_AND_MEAN
28290 #define WIN32_LEAN_AND_MEAN
28292 #include <windows.h>
28297 #if defined(__CYGWIN__) || defined(__CEGCC__)
28298 HAVE_WINDOWS_H shall not be defined.
28300 int dummy=2*WINVER;
28308 if ac_fn_c_try_compile "$LINENO"; then :
28310 curl_cv_header_windows_h="yes"
28314 curl_cv_header_windows_h="no"
28317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28321 $as_echo "$curl_cv_header_windows_h" >&6; }
28322 case "$curl_cv_header_windows_h" in
28325 cat >>confdefs.h <<_ACEOF
28326 #define HAVE_WINDOWS_H 1
28330 cat >>confdefs.h <<_ACEOF
28331 #define WIN32_LEAN_AND_MEAN 1
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28339 $as_echo_n "checking for winsock2.h... " >&6; }
28340 if ${curl_cv_header_winsock2_h+:} false; then :
28341 $as_echo_n "(cached) " >&6
28344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28345 /* end confdefs.h. */
28349 #ifndef WIN32_LEAN_AND_MEAN
28350 #define WIN32_LEAN_AND_MEAN
28352 #include <windows.h>
28353 #include <winsock2.h>
28358 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28359 HAVE_WINSOCK2_H shall not be defined.
28361 int dummy=2*IPPROTO_ESP;
28369 if ac_fn_c_try_compile "$LINENO"; then :
28371 curl_cv_header_winsock2_h="yes"
28375 curl_cv_header_winsock2_h="no"
28378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
28382 $as_echo "$curl_cv_header_winsock2_h" >&6; }
28383 case "$curl_cv_header_winsock2_h" in
28386 cat >>confdefs.h <<_ACEOF
28387 #define HAVE_WINSOCK2_H 1
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28395 $as_echo_n "checking for ws2tcpip.h... " >&6; }
28396 if ${curl_cv_header_ws2tcpip_h+:} false; then :
28397 $as_echo_n "(cached) " >&6
28400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28401 /* end confdefs.h. */
28405 #ifndef WIN32_LEAN_AND_MEAN
28406 #define WIN32_LEAN_AND_MEAN
28408 #include <windows.h>
28409 #include <winsock2.h>
28410 #include <ws2tcpip.h>
28415 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28416 HAVE_WS2TCPIP_H shall not be defined.
28418 int dummy=2*IP_PKTINFO;
28426 if ac_fn_c_try_compile "$LINENO"; then :
28428 curl_cv_header_ws2tcpip_h="yes"
28432 curl_cv_header_ws2tcpip_h="no"
28435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
28439 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
28440 case "$curl_cv_header_ws2tcpip_h" in
28443 cat >>confdefs.h <<_ACEOF
28444 #define HAVE_WS2TCPIP_H 1
28452 curl_includes_sys_socket="\
28453 /* includes start */
28454 #ifdef HAVE_SYS_TYPES_H
28455 # include <sys/types.h>
28457 #ifdef HAVE_SYS_SOCKET_H
28458 # include <sys/socket.h>
28460 /* includes end */"
28461 for ac_header in sys/types.h sys/socket.h
28463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28464 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
28466 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28467 cat >>confdefs.h <<_ACEOF
28468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28477 curl_preprocess_callconv="\
28478 /* preprocess start */
28479 #ifdef HAVE_WINDOWS_H
28480 # define FUNCALLCONV __stdcall
28482 # define FUNCALLCONV
28484 /* preprocess end */"
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
28490 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
28491 curl_typeof_curl_socklen_t="unknown"
28492 for arg1 in int SOCKET; do
28493 for arg2 in 'struct sockaddr' void; do
28494 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
28495 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
28496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28497 /* end confdefs.h. */
28500 $curl_includes_ws2tcpip
28501 $curl_includes_sys_socket
28502 $curl_preprocess_callconv
28503 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
28509 if(0 != getpeername(0, 0, lenptr))
28517 if ac_fn_c_try_compile "$LINENO"; then :
28519 curl_typeof_curl_socklen_t="$t"
28522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28527 for t in socklen_t int; do
28528 if test "$curl_typeof_curl_socklen_t" = "void"; then
28529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28530 /* end confdefs.h. */
28533 $curl_includes_sys_socket
28534 typedef $t curl_socklen_t;
28539 curl_socklen_t dummy;
28546 if ac_fn_c_try_compile "$LINENO"; then :
28548 curl_typeof_curl_socklen_t="$t"
28551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
28555 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
28556 if test "$curl_typeof_curl_socklen_t" = "void" ||
28557 test "$curl_typeof_curl_socklen_t" = "unknown"; then
28558 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
28562 $as_echo_n "checking size of curl_socklen_t... " >&6; }
28563 curl_sizeof_curl_socklen_t="unknown"
28564 curl_pull_headers_socklen_t="unknown"
28565 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
28566 tst_pull_header_checks='none ws2tcpip'
28567 tst_size_checks='4'
28569 tst_pull_header_checks='none systypes syssocket'
28570 tst_size_checks='4 8 2'
28572 for tst_size in $tst_size_checks; do
28573 for tst_pull_headers in $tst_pull_header_checks; do
28574 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28575 case $tst_pull_headers in
28577 tmp_includes="$curl_includes_ws2tcpip"
28580 tmp_includes="$curl_includes_sys_types"
28583 tmp_includes="$curl_includes_sys_socket"
28589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28590 /* end confdefs.h. */
28594 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
28595 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
28600 curl_socklen_t dummy;
28607 if ac_fn_c_try_compile "$LINENO"; then :
28609 curl_sizeof_curl_socklen_t="$tst_size"
28610 curl_pull_headers_socklen_t="$tst_pull_headers"
28613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
28618 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
28619 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28620 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
28623 case $curl_pull_headers_socklen_t in
28626 cat >>confdefs.h <<_EOF
28627 #define CURL_PULL_WS2TCPIP_H 1
28633 cat >>confdefs.h <<_EOF
28634 #define CURL_PULL_SYS_TYPES_H 1
28640 cat >>confdefs.h <<_EOF
28641 #define CURL_PULL_SYS_TYPES_H 1
28645 cat >>confdefs.h <<_EOF
28646 #define CURL_PULL_SYS_SOCKET_H 1
28652 cat >>confdefs.h <<_EOF
28653 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
28657 cat >>confdefs.h <<_EOF
28658 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
28664 curl_includes_poll="\
28665 /* includes start */
28666 #ifdef HAVE_SYS_TYPES_H
28667 # include <sys/types.h>
28672 #ifdef HAVE_SYS_POLL_H
28673 # include <sys/poll.h>
28675 /* includes end */"
28676 for ac_header in sys/types.h poll.h sys/poll.h
28678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
28681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28682 cat >>confdefs.h <<_ACEOF
28683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28693 tst_poll_events_macro_defined="unknown"
28695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28696 /* end confdefs.h. */
28699 $curl_includes_poll
28704 #if defined(events) || defined(revents)
28707 force compilation error
28715 if ac_fn_c_try_compile "$LINENO"; then :
28717 tst_poll_events_macro_defined="yes"
28721 tst_poll_events_macro_defined="no"
28724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28726 if test "$tst_poll_events_macro_defined" = "yes"; then
28727 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
28729 cat >>confdefs.h <<_EOF
28730 #define CURL_PULL_SYS_POLL_H 1
28739 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
28741 #ifdef HAVE_WINDOWS_H
28742 #ifndef WIN32_LEAN_AND_MEAN
28743 #define WIN32_LEAN_AND_MEAN
28745 #include <windows.h>
28746 #ifdef HAVE_WINSOCK2_H
28747 #include <winsock2.h>
28749 #ifdef HAVE_WINSOCK_H
28750 #include <winsock.h>
28754 #ifdef HAVE_SYS_TYPES_H
28755 #include <sys/types.h>
28757 #ifdef HAVE_SYS_SOCKET_H
28758 #include <sys/socket.h>
28760 #ifdef HAVE_NETINET_IN_H
28761 #include <netinet/in.h>
28763 #ifdef HAVE_ARPA_INET_H
28764 #include <arpa/inet.h>
28769 if test "x$ac_cv_type_in_addr_t" = xyes; then :
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
28774 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
28775 if ${curl_cv_in_addr_t_equiv+:} false; then :
28776 $as_echo_n "(cached) " >&6
28779 curl_cv_in_addr_t_equiv="unknown"
28780 for t in "unsigned long" int size_t unsigned long; do
28781 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
28782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28783 /* end confdefs.h. */
28787 #ifdef HAVE_WINDOWS_H
28788 #ifndef WIN32_LEAN_AND_MEAN
28789 #define WIN32_LEAN_AND_MEAN
28791 #include <windows.h>
28792 #ifdef HAVE_WINSOCK2_H
28793 #include <winsock2.h>
28795 #ifdef HAVE_WINSOCK_H
28796 #include <winsock.h>
28800 #ifdef HAVE_SYS_TYPES_H
28801 #include <sys/types.h>
28803 #ifdef HAVE_SYS_SOCKET_H
28804 #include <sys/socket.h>
28806 #ifdef HAVE_NETINET_IN_H
28807 #include <netinet/in.h>
28809 #ifdef HAVE_ARPA_INET_H
28810 #include <arpa/inet.h>
28817 $t data = inet_addr ("1.2.3.4");
28824 if ac_fn_c_try_link "$LINENO"; then :
28826 curl_cv_in_addr_t_equiv="$t"
28829 rm -f core conftest.err conftest.$ac_objext \
28830 conftest$ac_exeext conftest.$ac_ext
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
28836 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
28837 case "$curl_cv_in_addr_t_equiv" in
28839 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
28843 cat >>confdefs.h <<_ACEOF
28844 #define in_addr_t $curl_cv_in_addr_t_equiv
28855 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
28857 #ifdef HAVE_WINDOWS_H
28858 #ifndef WIN32_LEAN_AND_MEAN
28859 #define WIN32_LEAN_AND_MEAN
28861 #include <windows.h>
28862 #ifdef HAVE_WINSOCK2_H
28863 #include <winsock2.h>
28866 #ifdef HAVE_SYS_TYPES_H
28867 #include <sys/types.h>
28869 #ifdef HAVE_SYS_SOCKET_H
28870 #include <sys/socket.h>
28872 #ifdef HAVE_NETINET_IN_H
28873 #include <netinet/in.h>
28875 #ifdef HAVE_ARPA_INET_H
28876 #include <arpa/inet.h>
28881 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
28883 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
28890 for ac_header in signal.h
28892 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
28893 if test "x$ac_cv_header_signal_h" = xyes; then :
28894 cat >>confdefs.h <<_ACEOF
28895 #define HAVE_SIGNAL_H 1
28902 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
28903 #ifdef HAVE_SIGNAL_H
28904 #include <signal.h>
28908 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
28911 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
28916 case "$ac_cv_type_sig_atomic_t" in
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
28920 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
28921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28922 /* end confdefs.h. */
28925 #ifdef HAVE_SIGNAL_H
28926 #include <signal.h>
28932 static volatile sig_atomic_t dummy = 0;
28939 if ac_fn_c_try_link "$LINENO"; then :
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28942 $as_echo "no" >&6; }
28943 curl_cv_sig_atomic_t_volatile="no"
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28948 $as_echo "yes" >&6; }
28949 curl_cv_sig_atomic_t_volatile="yes"
28952 rm -f core conftest.err conftest.$ac_objext \
28953 conftest$ac_exeext conftest.$ac_ext
28955 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
28957 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
28965 $as_echo_n "checking return type of signal handlers... " >&6; }
28966 if ${ac_cv_type_signal+:} false; then :
28967 $as_echo_n "(cached) " >&6
28969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28970 /* end confdefs.h. */
28971 #include <sys/types.h>
28972 #include <signal.h>
28976 return *(signal (0, 0)) (0) == 1;
28981 if ac_fn_c_try_compile "$LINENO"; then :
28982 ac_cv_type_signal=int
28984 ac_cv_type_signal=void
28986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
28989 $as_echo "$ac_cv_type_signal" >&6; }
28991 cat >>confdefs.h <<_ACEOF
28992 #define RETSIGTYPE $ac_cv_type_signal
28998 for ac_header in sys/select.h sys/socket.h
29000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29001 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29003 cat >>confdefs.h <<_ACEOF
29004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29013 $as_echo_n "checking for select... " >&6; }
29014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29015 /* end confdefs.h. */
29019 #ifdef HAVE_WINDOWS_H
29020 #ifndef WIN32_LEAN_AND_MEAN
29021 #define WIN32_LEAN_AND_MEAN
29023 #include <windows.h>
29024 #ifdef HAVE_WINSOCK2_H
29025 #include <winsock2.h>
29027 #ifdef HAVE_WINSOCK_H
29028 #include <winsock.h>
29032 #ifdef HAVE_SYS_TYPES_H
29033 #include <sys/types.h>
29035 #ifdef HAVE_SYS_TIME_H
29036 #include <sys/time.h>
29037 #ifdef TIME_WITH_SYS_TIME
29045 #ifndef HAVE_WINDOWS_H
29046 #ifdef HAVE_SYS_SELECT_H
29047 #include <sys/select.h>
29049 #ifdef HAVE_SYS_SOCKET_H
29050 #include <sys/socket.h>
29057 select(0, 0, 0, 0, 0);
29064 if ac_fn_c_try_link "$LINENO"; then :
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29067 $as_echo "yes" >&6; }
29068 curl_cv_select="yes"
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29073 $as_echo "no" >&6; }
29074 curl_cv_select="no"
29077 rm -f core conftest.err conftest.$ac_objext \
29078 conftest$ac_exeext conftest.$ac_ext
29080 if test "$curl_cv_select" = "yes"; then
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29082 $as_echo_n "checking types of args and return type for select... " >&6; }
29083 if ${curl_cv_func_select_args+:} false; then :
29084 $as_echo_n "(cached) " >&6
29087 curl_cv_func_select_args="unknown"
29088 for sel_retv in 'int' 'ssize_t'; do
29089 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29090 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29091 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29092 if test "$curl_cv_func_select_args" = "unknown"; then
29093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29094 /* end confdefs.h. */
29098 #ifdef HAVE_WINDOWS_H
29099 #ifndef WIN32_LEAN_AND_MEAN
29100 #define WIN32_LEAN_AND_MEAN
29102 #include <windows.h>
29103 #ifdef HAVE_WINSOCK2_H
29104 #include <winsock2.h>
29106 #ifdef HAVE_WINSOCK_H
29107 #include <winsock.h>
29110 #define SELECTCALLCONV PASCAL
29112 #ifdef HAVE_SYS_TYPES_H
29113 #include <sys/types.h>
29115 #ifdef HAVE_SYS_TIME_H
29116 #include <sys/time.h>
29117 #ifdef TIME_WITH_SYS_TIME
29125 #ifndef HAVE_WINDOWS_H
29126 #ifdef HAVE_SYS_SELECT_H
29127 #include <sys/select.h>
29129 #ifdef HAVE_SYS_SOCKET_H
29130 #include <sys/socket.h>
29132 #define SELECTCALLCONV
29134 #ifndef HAVE_STRUCT_TIMEVAL
29140 extern $sel_retv SELECTCALLCONV select($sel_arg1,
29150 $sel_arg234 rfds=0;
29151 $sel_arg234 wfds=0;
29152 $sel_arg234 efds=0;
29153 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29160 if ac_fn_c_try_compile "$LINENO"; then :
29162 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29174 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29175 if test "$curl_cv_func_select_args" = "unknown"; then
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29177 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29179 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29181 select_prev_IFS=$IFS; IFS=','
29182 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29183 IFS=$select_prev_IFS
29186 sel_qual_type_arg5=$3
29189 cat >>confdefs.h <<_ACEOF
29190 #define SELECT_TYPE_ARG1 $1
29194 cat >>confdefs.h <<_ACEOF
29195 #define SELECT_TYPE_ARG234 $2
29199 cat >>confdefs.h <<_ACEOF
29200 #define SELECT_TYPE_RETV $4
29206 case $prev_sh_opts in
29214 case "$sel_qual_type_arg5" in
29216 sel_qual_arg5=const
29217 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29221 sel_type_arg5=$sel_qual_type_arg5
29226 cat >>confdefs.h <<_ACEOF
29227 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29231 cat >>confdefs.h <<_ACEOF
29232 #define SELECT_TYPE_ARG5 $sel_type_arg5
29236 case $prev_sh_opts in
29245 cat >>confdefs.h <<_ACEOF
29246 #define HAVE_SELECT 1
29249 curl_cv_func_select="yes"
29255 for ac_header in sys/types.h sys/socket.h
29257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29259 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29260 cat >>confdefs.h <<_ACEOF
29261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29270 $as_echo_n "checking for recv... " >&6; }
29271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29272 /* end confdefs.h. */
29276 #ifdef HAVE_WINDOWS_H
29277 #ifndef WIN32_LEAN_AND_MEAN
29278 #define WIN32_LEAN_AND_MEAN
29280 #include <windows.h>
29281 #ifdef HAVE_WINSOCK2_H
29282 #include <winsock2.h>
29284 #ifdef HAVE_WINSOCK_H
29285 #include <winsock.h>
29289 #ifdef HAVE_SYS_TYPES_H
29290 #include <sys/types.h>
29292 #ifdef HAVE_SYS_SOCKET_H
29293 #include <sys/socket.h>
29307 if ac_fn_c_try_link "$LINENO"; then :
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29310 $as_echo "yes" >&6; }
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29316 $as_echo "no" >&6; }
29320 rm -f core conftest.err conftest.$ac_objext \
29321 conftest$ac_exeext conftest.$ac_ext
29323 if test "$curl_cv_recv" = "yes"; then
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29325 $as_echo_n "checking types of args and return type for recv... " >&6; }
29326 if ${curl_cv_func_recv_args+:} false; then :
29327 $as_echo_n "(cached) " >&6
29330 curl_cv_func_recv_args="unknown"
29331 for recv_retv in 'int' 'ssize_t'; do
29332 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29333 for recv_arg2 in 'char *' 'void *'; do
29334 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29335 for recv_arg4 in 'int' 'unsigned int'; do
29336 if test "$curl_cv_func_recv_args" = "unknown"; then
29337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29338 /* end confdefs.h. */
29342 #ifdef HAVE_WINDOWS_H
29343 #ifndef WIN32_LEAN_AND_MEAN
29344 #define WIN32_LEAN_AND_MEAN
29346 #include <windows.h>
29347 #ifdef HAVE_WINSOCK2_H
29348 #include <winsock2.h>
29350 #ifdef HAVE_WINSOCK_H
29351 #include <winsock.h>
29354 #define RECVCALLCONV PASCAL
29356 #ifdef HAVE_SYS_TYPES_H
29357 #include <sys/types.h>
29359 #ifdef HAVE_SYS_SOCKET_H
29360 #include <sys/socket.h>
29362 #define RECVCALLCONV
29364 extern $recv_retv RECVCALLCONV
29365 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29373 $recv_arg4 flags=0;
29374 $recv_retv res = recv(s, buf, len, flags);
29381 if ac_fn_c_try_compile "$LINENO"; then :
29383 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29396 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29397 if test "$curl_cv_func_recv_args" = "unknown"; then
29398 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29400 recv_prev_IFS=$IFS; IFS=','
29401 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29406 cat >>confdefs.h <<_ACEOF
29407 #define RECV_TYPE_ARG1 $1
29411 cat >>confdefs.h <<_ACEOF
29412 #define RECV_TYPE_ARG2 $2
29416 cat >>confdefs.h <<_ACEOF
29417 #define RECV_TYPE_ARG3 $3
29421 cat >>confdefs.h <<_ACEOF
29422 #define RECV_TYPE_ARG4 $4
29426 cat >>confdefs.h <<_ACEOF
29427 #define RECV_TYPE_RETV $5
29432 cat >>confdefs.h <<_ACEOF
29433 #define HAVE_RECV 1
29436 curl_cv_func_recv="yes"
29439 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29443 for ac_header in sys/types.h sys/socket.h
29445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29446 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29448 cat >>confdefs.h <<_ACEOF
29449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29458 $as_echo_n "checking for send... " >&6; }
29459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29460 /* end confdefs.h. */
29464 #ifdef HAVE_WINDOWS_H
29465 #ifndef WIN32_LEAN_AND_MEAN
29466 #define WIN32_LEAN_AND_MEAN
29468 #include <windows.h>
29469 #ifdef HAVE_WINSOCK2_H
29470 #include <winsock2.h>
29472 #ifdef HAVE_WINSOCK_H
29473 #include <winsock.h>
29477 #ifdef HAVE_SYS_TYPES_H
29478 #include <sys/types.h>
29480 #ifdef HAVE_SYS_SOCKET_H
29481 #include <sys/socket.h>
29495 if ac_fn_c_try_link "$LINENO"; then :
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29498 $as_echo "yes" >&6; }
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29504 $as_echo "no" >&6; }
29508 rm -f core conftest.err conftest.$ac_objext \
29509 conftest$ac_exeext conftest.$ac_ext
29511 if test "$curl_cv_send" = "yes"; then
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29513 $as_echo_n "checking types of args and return type for send... " >&6; }
29514 if ${curl_cv_func_send_args+:} false; then :
29515 $as_echo_n "(cached) " >&6
29518 curl_cv_func_send_args="unknown"
29519 for send_retv in 'int' 'ssize_t'; do
29520 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29521 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29522 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29523 for send_arg4 in 'int' 'unsigned int'; do
29524 if test "$curl_cv_func_send_args" = "unknown"; then
29525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29526 /* end confdefs.h. */
29530 #ifdef HAVE_WINDOWS_H
29531 #ifndef WIN32_LEAN_AND_MEAN
29532 #define WIN32_LEAN_AND_MEAN
29534 #include <windows.h>
29535 #ifdef HAVE_WINSOCK2_H
29536 #include <winsock2.h>
29538 #ifdef HAVE_WINSOCK_H
29539 #include <winsock.h>
29542 #define SENDCALLCONV PASCAL
29544 #ifdef HAVE_SYS_TYPES_H
29545 #include <sys/types.h>
29547 #ifdef HAVE_SYS_SOCKET_H
29548 #include <sys/socket.h>
29550 #define SENDCALLCONV
29552 extern $send_retv SENDCALLCONV
29553 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29560 $send_arg4 flags=0;
29561 $send_retv res = send(s, 0, len, flags);
29568 if ac_fn_c_try_compile "$LINENO"; then :
29570 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29583 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29584 if test "$curl_cv_func_send_args" = "unknown"; then
29585 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29587 send_prev_IFS=$IFS; IFS=','
29588 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29592 send_qual_type_arg2=$2
29595 cat >>confdefs.h <<_ACEOF
29596 #define SEND_TYPE_ARG1 $1
29600 cat >>confdefs.h <<_ACEOF
29601 #define SEND_TYPE_ARG3 $3
29605 cat >>confdefs.h <<_ACEOF
29606 #define SEND_TYPE_ARG4 $4
29610 cat >>confdefs.h <<_ACEOF
29611 #define SEND_TYPE_RETV $5
29617 case $prev_sh_opts in
29625 case "$send_qual_type_arg2" in
29627 send_qual_arg2=const
29628 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29632 send_type_arg2=$send_qual_type_arg2
29637 cat >>confdefs.h <<_ACEOF
29638 #define SEND_QUAL_ARG2 $send_qual_arg2
29642 cat >>confdefs.h <<_ACEOF
29643 #define SEND_TYPE_ARG2 $send_type_arg2
29647 case $prev_sh_opts in
29656 cat >>confdefs.h <<_ACEOF
29657 #define HAVE_SEND 1
29660 curl_cv_func_send="yes"
29663 as_fn_error $? "Unable to link function send" "$LINENO" 5
29667 for ac_header in sys/types.h sys/socket.h
29669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29670 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29671 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29672 cat >>confdefs.h <<_ACEOF
29673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
29681 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
29682 if ${curl_cv_msg_nosignal+:} false; then :
29683 $as_echo_n "(cached) " >&6
29686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29687 /* end confdefs.h. */
29691 #ifdef HAVE_WINDOWS_H
29692 #ifndef WIN32_LEAN_AND_MEAN
29693 #define WIN32_LEAN_AND_MEAN
29695 #include <windows.h>
29696 #ifdef HAVE_WINSOCK2_H
29697 #include <winsock2.h>
29699 #ifdef HAVE_WINSOCK_H
29700 #include <winsock.h>
29704 #ifdef HAVE_SYS_TYPES_H
29705 #include <sys/types.h>
29707 #ifdef HAVE_SYS_SOCKET_H
29708 #include <sys/socket.h>
29715 int flag=MSG_NOSIGNAL;
29722 if ac_fn_c_try_compile "$LINENO"; then :
29724 curl_cv_msg_nosignal="yes"
29728 curl_cv_msg_nosignal="no"
29731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
29735 $as_echo "$curl_cv_msg_nosignal" >&6; }
29736 case "$curl_cv_msg_nosignal" in
29739 cat >>confdefs.h <<_ACEOF
29740 #define HAVE_MSG_NOSIGNAL 1
29748 curl_includes_unistd="\
29749 /* includes start */
29750 #ifdef HAVE_SYS_TYPES_H
29751 # include <sys/types.h>
29753 #ifdef HAVE_UNISTD_H
29754 # include <unistd.h>
29756 /* includes end */"
29757 for ac_header in sys/types.h unistd.h
29759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29760 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
29762 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29763 cat >>confdefs.h <<_ACEOF
29764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29774 tst_links_alarm="unknown"
29775 tst_proto_alarm="unknown"
29776 tst_compi_alarm="unknown"
29777 tst_allow_alarm="unknown"
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
29780 $as_echo_n "checking if alarm can be linked... " >&6; }
29781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29782 /* end confdefs.h. */
29785 #define alarm innocuous_alarm
29787 # include <limits.h>
29789 # include <assert.h>
29796 #if defined __stub_alarm || defined __stub___alarm
29808 if ac_fn_c_try_link "$LINENO"; then :
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29811 $as_echo "yes" >&6; }
29812 tst_links_alarm="yes"
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29817 $as_echo "no" >&6; }
29818 tst_links_alarm="no"
29821 rm -f core conftest.err conftest.$ac_objext \
29822 conftest$ac_exeext conftest.$ac_ext
29824 if test "$tst_links_alarm" = "yes"; then
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
29826 $as_echo_n "checking if alarm is prototyped... " >&6; }
29827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29828 /* end confdefs.h. */
29830 $curl_includes_unistd
29833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29834 $EGREP "alarm" >/dev/null 2>&1; then :
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29837 $as_echo "yes" >&6; }
29838 tst_proto_alarm="yes"
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29843 $as_echo "no" >&6; }
29844 tst_proto_alarm="no"
29851 if test "$tst_proto_alarm" = "yes"; then
29852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
29853 $as_echo_n "checking if alarm is compilable... " >&6; }
29854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29855 /* end confdefs.h. */
29858 $curl_includes_unistd
29871 if ac_fn_c_try_compile "$LINENO"; then :
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29874 $as_echo "yes" >&6; }
29875 tst_compi_alarm="yes"
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29880 $as_echo "no" >&6; }
29881 tst_compi_alarm="no"
29884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29887 if test "$tst_compi_alarm" = "yes"; then
29888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
29889 $as_echo_n "checking if alarm usage allowed... " >&6; }
29890 if test "x$curl_disallow_alarm" != "xyes"; then
29891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29892 $as_echo "yes" >&6; }
29893 tst_allow_alarm="yes"
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29896 $as_echo "no" >&6; }
29897 tst_allow_alarm="no"
29901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
29902 $as_echo_n "checking if alarm might be used... " >&6; }
29903 if test "$tst_links_alarm" = "yes" &&
29904 test "$tst_proto_alarm" = "yes" &&
29905 test "$tst_compi_alarm" = "yes" &&
29906 test "$tst_allow_alarm" = "yes"; then
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29908 $as_echo "yes" >&6; }
29910 cat >>confdefs.h <<_ACEOF
29911 #define HAVE_ALARM 1
29914 curl_cv_func_alarm="yes"
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29917 $as_echo "no" >&6; }
29918 curl_cv_func_alarm="no"
29922 curl_includes_string="\
29923 /* includes start */
29924 #ifdef HAVE_SYS_TYPES_H
29925 # include <sys/types.h>
29927 #ifdef HAVE_STRING_H
29928 # include <string.h>
29930 #ifdef HAVE_STRINGS_H
29931 # include <strings.h>
29933 /* includes end */"
29934 for ac_header in sys/types.h string.h strings.h
29936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29937 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
29939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29940 cat >>confdefs.h <<_ACEOF
29941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29950 curl_includes_libgen="\
29951 /* includes start */
29952 #ifdef HAVE_SYS_TYPES_H
29953 # include <sys/types.h>
29955 #ifdef HAVE_LIBGEN_H
29956 # include <libgen.h>
29958 /* includes end */"
29959 for ac_header in sys/types.h libgen.h
29961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
29964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29965 cat >>confdefs.h <<_ACEOF
29966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29976 tst_links_basename="unknown"
29977 tst_proto_basename="unknown"
29978 tst_compi_basename="unknown"
29979 tst_allow_basename="unknown"
29981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
29982 $as_echo_n "checking if basename can be linked... " >&6; }
29983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29984 /* end confdefs.h. */
29987 #define basename innocuous_basename
29989 # include <limits.h>
29991 # include <assert.h>
29998 #if defined __stub_basename || defined __stub___basename
30004 return basename ();
30010 if ac_fn_c_try_link "$LINENO"; then :
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30013 $as_echo "yes" >&6; }
30014 tst_links_basename="yes"
30018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30019 $as_echo "no" >&6; }
30020 tst_links_basename="no"
30023 rm -f core conftest.err conftest.$ac_objext \
30024 conftest$ac_exeext conftest.$ac_ext
30026 if test "$tst_links_basename" = "yes"; then
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30028 $as_echo_n "checking if basename is prototyped... " >&6; }
30029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30030 /* end confdefs.h. */
30032 $curl_includes_string
30033 $curl_includes_libgen
30034 $curl_includes_unistd
30037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30038 $EGREP "basename" >/dev/null 2>&1; then :
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30041 $as_echo "yes" >&6; }
30042 tst_proto_basename="yes"
30046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30047 $as_echo "no" >&6; }
30048 tst_proto_basename="no"
30055 if test "$tst_proto_basename" = "yes"; then
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30057 $as_echo_n "checking if basename is compilable... " >&6; }
30058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30059 /* end confdefs.h. */
30062 $curl_includes_string
30063 $curl_includes_libgen
30064 $curl_includes_unistd
30069 if(0 != basename(0))
30077 if ac_fn_c_try_compile "$LINENO"; then :
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30080 $as_echo "yes" >&6; }
30081 tst_compi_basename="yes"
30085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30086 $as_echo "no" >&6; }
30087 tst_compi_basename="no"
30090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30093 if test "$tst_compi_basename" = "yes"; then
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30095 $as_echo_n "checking if basename usage allowed... " >&6; }
30096 if test "x$curl_disallow_basename" != "xyes"; then
30097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30098 $as_echo "yes" >&6; }
30099 tst_allow_basename="yes"
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30102 $as_echo "no" >&6; }
30103 tst_allow_basename="no"
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30108 $as_echo_n "checking if basename might be used... " >&6; }
30109 if test "$tst_links_basename" = "yes" &&
30110 test "$tst_proto_basename" = "yes" &&
30111 test "$tst_compi_basename" = "yes" &&
30112 test "$tst_allow_basename" = "yes"; then
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30114 $as_echo "yes" >&6; }
30116 cat >>confdefs.h <<_ACEOF
30117 #define HAVE_BASENAME 1
30120 curl_cv_func_basename="yes"
30122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30123 $as_echo "no" >&6; }
30124 curl_cv_func_basename="no"
30128 curl_includes_socket="\
30129 /* includes start */
30130 #ifdef HAVE_SYS_TYPES_H
30131 # include <sys/types.h>
30133 #ifdef HAVE_SOCKET_H
30134 # include <socket.h>
30136 /* includes end */"
30137 for ac_header in sys/types.h socket.h
30139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30140 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30143 cat >>confdefs.h <<_ACEOF
30144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30154 tst_links_closesocket="unknown"
30155 tst_proto_closesocket="unknown"
30156 tst_compi_closesocket="unknown"
30157 tst_allow_closesocket="unknown"
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30160 $as_echo_n "checking if closesocket can be linked... " >&6; }
30161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30162 /* end confdefs.h. */
30165 $curl_includes_winsock2
30166 $curl_includes_socket
30171 if(0 != closesocket(0))
30179 if ac_fn_c_try_link "$LINENO"; then :
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30182 $as_echo "yes" >&6; }
30183 tst_links_closesocket="yes"
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30188 $as_echo "no" >&6; }
30189 tst_links_closesocket="no"
30192 rm -f core conftest.err conftest.$ac_objext \
30193 conftest$ac_exeext conftest.$ac_ext
30195 if test "$tst_links_closesocket" = "yes"; then
30196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30197 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30199 /* end confdefs.h. */
30201 $curl_includes_winsock2
30202 $curl_includes_socket
30205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30206 $EGREP "closesocket" >/dev/null 2>&1; then :
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30209 $as_echo "yes" >&6; }
30210 tst_proto_closesocket="yes"
30214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30215 $as_echo "no" >&6; }
30216 tst_proto_closesocket="no"
30223 if test "$tst_proto_closesocket" = "yes"; then
30224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30225 $as_echo_n "checking if closesocket is compilable... " >&6; }
30226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30227 /* end confdefs.h. */
30230 $curl_includes_winsock2
30231 $curl_includes_socket
30236 if(0 != closesocket(0))
30244 if ac_fn_c_try_compile "$LINENO"; then :
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30247 $as_echo "yes" >&6; }
30248 tst_compi_closesocket="yes"
30252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30253 $as_echo "no" >&6; }
30254 tst_compi_closesocket="no"
30257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30260 if test "$tst_compi_closesocket" = "yes"; then
30261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30262 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30263 if test "x$curl_disallow_closesocket" != "xyes"; then
30264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30265 $as_echo "yes" >&6; }
30266 tst_allow_closesocket="yes"
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30269 $as_echo "no" >&6; }
30270 tst_allow_closesocket="no"
30274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30275 $as_echo_n "checking if closesocket might be used... " >&6; }
30276 if test "$tst_links_closesocket" = "yes" &&
30277 test "$tst_proto_closesocket" = "yes" &&
30278 test "$tst_compi_closesocket" = "yes" &&
30279 test "$tst_allow_closesocket" = "yes"; then
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30281 $as_echo "yes" >&6; }
30283 cat >>confdefs.h <<_ACEOF
30284 #define HAVE_CLOSESOCKET 1
30287 curl_cv_func_closesocket="yes"
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30290 $as_echo "no" >&6; }
30291 curl_cv_func_closesocket="no"
30296 tst_links_closesocket_camel="unknown"
30297 tst_proto_closesocket_camel="unknown"
30298 tst_compi_closesocket_camel="unknown"
30299 tst_allow_closesocket_camel="unknown"
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30302 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30304 /* end confdefs.h. */
30307 $curl_includes_sys_socket
30312 if(0 != CloseSocket(0))
30320 if ac_fn_c_try_link "$LINENO"; then :
30322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30323 $as_echo "yes" >&6; }
30324 tst_links_closesocket_camel="yes"
30328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30329 $as_echo "no" >&6; }
30330 tst_links_closesocket_camel="no"
30333 rm -f core conftest.err conftest.$ac_objext \
30334 conftest$ac_exeext conftest.$ac_ext
30336 if test "$tst_links_closesocket_camel" = "yes"; then
30337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30338 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30340 /* end confdefs.h. */
30342 $curl_includes_sys_socket
30345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30346 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30349 $as_echo "yes" >&6; }
30350 tst_proto_closesocket_camel="yes"
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30355 $as_echo "no" >&6; }
30356 tst_proto_closesocket_camel="no"
30363 if test "$tst_proto_closesocket_camel" = "yes"; then
30364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30365 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
30366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30367 /* end confdefs.h. */
30370 $curl_includes_sys_socket
30375 if(0 != CloseSocket(0))
30383 if ac_fn_c_try_compile "$LINENO"; then :
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30386 $as_echo "yes" >&6; }
30387 tst_compi_closesocket_camel="yes"
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30392 $as_echo "no" >&6; }
30393 tst_compi_closesocket_camel="no"
30396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30399 if test "$tst_compi_closesocket_camel" = "yes"; then
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30401 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30402 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30404 $as_echo "yes" >&6; }
30405 tst_allow_closesocket_camel="yes"
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30408 $as_echo "no" >&6; }
30409 tst_allow_closesocket_camel="no"
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30414 $as_echo_n "checking if CloseSocket might be used... " >&6; }
30415 if test "$tst_links_closesocket_camel" = "yes" &&
30416 test "$tst_proto_closesocket_camel" = "yes" &&
30417 test "$tst_compi_closesocket_camel" = "yes" &&
30418 test "$tst_allow_closesocket_camel" = "yes"; then
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30420 $as_echo "yes" >&6; }
30422 cat >>confdefs.h <<_ACEOF
30423 #define HAVE_CLOSESOCKET_CAMEL 1
30426 curl_cv_func_closesocket_camel="yes"
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30429 $as_echo "no" >&6; }
30430 curl_cv_func_closesocket_camel="no"
30435 tst_links_connect="unknown"
30436 tst_proto_connect="unknown"
30437 tst_compi_connect="unknown"
30438 tst_allow_connect="unknown"
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30441 $as_echo_n "checking if connect can be linked... " >&6; }
30442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30443 /* end confdefs.h. */
30446 $curl_includes_winsock2
30447 $curl_includes_sys_socket
30448 $curl_includes_socket
30453 if(0 != connect(0, 0, 0))
30461 if ac_fn_c_try_link "$LINENO"; then :
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30464 $as_echo "yes" >&6; }
30465 tst_links_connect="yes"
30469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30470 $as_echo "no" >&6; }
30471 tst_links_connect="no"
30474 rm -f core conftest.err conftest.$ac_objext \
30475 conftest$ac_exeext conftest.$ac_ext
30477 if test "$tst_links_connect" = "yes"; then
30478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30479 $as_echo_n "checking if connect is prototyped... " >&6; }
30480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30481 /* end confdefs.h. */
30483 $curl_includes_winsock2
30484 $curl_includes_sys_socket
30485 $curl_includes_socket
30488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30489 $EGREP "connect" >/dev/null 2>&1; then :
30491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30492 $as_echo "yes" >&6; }
30493 tst_proto_connect="yes"
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30498 $as_echo "no" >&6; }
30499 tst_proto_connect="no"
30506 if test "$tst_proto_connect" = "yes"; then
30507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30508 $as_echo_n "checking if connect is compilable... " >&6; }
30509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30510 /* end confdefs.h. */
30513 $curl_includes_winsock2
30514 $curl_includes_sys_socket
30515 $curl_includes_socket
30520 if(0 != connect(0, 0, 0))
30528 if ac_fn_c_try_compile "$LINENO"; then :
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30531 $as_echo "yes" >&6; }
30532 tst_compi_connect="yes"
30536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30537 $as_echo "no" >&6; }
30538 tst_compi_connect="no"
30541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30544 if test "$tst_compi_connect" = "yes"; then
30545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30546 $as_echo_n "checking if connect usage allowed... " >&6; }
30547 if test "x$curl_disallow_connect" != "xyes"; then
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30549 $as_echo "yes" >&6; }
30550 tst_allow_connect="yes"
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30553 $as_echo "no" >&6; }
30554 tst_allow_connect="no"
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30559 $as_echo_n "checking if connect might be used... " >&6; }
30560 if test "$tst_links_connect" = "yes" &&
30561 test "$tst_proto_connect" = "yes" &&
30562 test "$tst_compi_connect" = "yes" &&
30563 test "$tst_allow_connect" = "yes"; then
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30565 $as_echo "yes" >&6; }
30567 cat >>confdefs.h <<_ACEOF
30568 #define HAVE_CONNECT 1
30571 curl_cv_func_connect="yes"
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30574 $as_echo "no" >&6; }
30575 curl_cv_func_connect="no"
30579 curl_includes_fcntl="\
30580 /* includes start */
30581 #ifdef HAVE_SYS_TYPES_H
30582 # include <sys/types.h>
30584 #ifdef HAVE_UNISTD_H
30585 # include <unistd.h>
30587 #ifdef HAVE_FCNTL_H
30588 # include <fcntl.h>
30590 /* includes end */"
30591 for ac_header in sys/types.h unistd.h fcntl.h
30593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30594 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30596 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30597 cat >>confdefs.h <<_ACEOF
30598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30608 tst_links_fcntl="unknown"
30609 tst_proto_fcntl="unknown"
30610 tst_compi_fcntl="unknown"
30611 tst_allow_fcntl="unknown"
30613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
30614 $as_echo_n "checking if fcntl can be linked... " >&6; }
30615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30616 /* end confdefs.h. */
30619 #define fcntl innocuous_fcntl
30621 # include <limits.h>
30623 # include <assert.h>
30630 #if defined __stub_fcntl || defined __stub___fcntl
30642 if ac_fn_c_try_link "$LINENO"; then :
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30645 $as_echo "yes" >&6; }
30646 tst_links_fcntl="yes"
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30651 $as_echo "no" >&6; }
30652 tst_links_fcntl="no"
30655 rm -f core conftest.err conftest.$ac_objext \
30656 conftest$ac_exeext conftest.$ac_ext
30658 if test "$tst_links_fcntl" = "yes"; then
30659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
30660 $as_echo_n "checking if fcntl is prototyped... " >&6; }
30661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30662 /* end confdefs.h. */
30664 $curl_includes_fcntl
30667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30668 $EGREP "fcntl" >/dev/null 2>&1; then :
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30671 $as_echo "yes" >&6; }
30672 tst_proto_fcntl="yes"
30676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30677 $as_echo "no" >&6; }
30678 tst_proto_fcntl="no"
30685 if test "$tst_proto_fcntl" = "yes"; then
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
30687 $as_echo_n "checking if fcntl is compilable... " >&6; }
30688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30689 /* end confdefs.h. */
30692 $curl_includes_fcntl
30697 if(0 != fcntl(0, 0, 0))
30705 if ac_fn_c_try_compile "$LINENO"; then :
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30708 $as_echo "yes" >&6; }
30709 tst_compi_fcntl="yes"
30713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30714 $as_echo "no" >&6; }
30715 tst_compi_fcntl="no"
30718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30721 if test "$tst_compi_fcntl" = "yes"; then
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
30723 $as_echo_n "checking if fcntl usage allowed... " >&6; }
30724 if test "x$curl_disallow_fcntl" != "xyes"; then
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30726 $as_echo "yes" >&6; }
30727 tst_allow_fcntl="yes"
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730 $as_echo "no" >&6; }
30731 tst_allow_fcntl="no"
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
30736 $as_echo_n "checking if fcntl might be used... " >&6; }
30737 if test "$tst_links_fcntl" = "yes" &&
30738 test "$tst_proto_fcntl" = "yes" &&
30739 test "$tst_compi_fcntl" = "yes" &&
30740 test "$tst_allow_fcntl" = "yes"; then
30741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30742 $as_echo "yes" >&6; }
30744 cat >>confdefs.h <<_ACEOF
30745 #define HAVE_FCNTL 1
30748 curl_cv_func_fcntl="yes"
30751 tst_compi_fcntl_o_nonblock="unknown"
30752 tst_allow_fcntl_o_nonblock="unknown"
30755 sunos4* | aix3* | beos*)
30756 curl_disallow_fcntl_o_nonblock="yes"
30760 if test "$curl_cv_func_fcntl" = "yes"; then
30761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
30762 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
30763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30764 /* end confdefs.h. */
30767 $curl_includes_fcntl
30773 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
30781 if ac_fn_c_try_compile "$LINENO"; then :
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30784 $as_echo "yes" >&6; }
30785 tst_compi_fcntl_o_nonblock="yes"
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30790 $as_echo "no" >&6; }
30791 tst_compi_fcntl_o_nonblock="no"
30794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30797 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
30799 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
30800 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30802 $as_echo "yes" >&6; }
30803 tst_allow_fcntl_o_nonblock="yes"
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30806 $as_echo "no" >&6; }
30807 tst_allow_fcntl_o_nonblock="no"
30811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
30812 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
30813 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
30814 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30816 $as_echo "yes" >&6; }
30818 cat >>confdefs.h <<_ACEOF
30819 #define HAVE_FCNTL_O_NONBLOCK 1
30822 curl_cv_func_fcntl_o_nonblock="yes"
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30825 $as_echo "no" >&6; }
30826 curl_cv_func_fcntl_o_nonblock="no"
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30831 $as_echo "no" >&6; }
30832 curl_cv_func_fcntl="no"
30836 curl_includes_stdio="\
30837 /* includes start */
30838 #ifdef HAVE_SYS_TYPES_H
30839 # include <sys/types.h>
30841 #ifdef HAVE_STDIO_H
30842 # include <stdio.h>
30844 /* includes end */"
30845 for ac_header in sys/types.h stdio.h
30847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30848 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
30850 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30851 cat >>confdefs.h <<_ACEOF
30852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30862 tst_links_fdopen="unknown"
30863 tst_proto_fdopen="unknown"
30864 tst_compi_fdopen="unknown"
30865 tst_allow_fdopen="unknown"
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
30868 $as_echo_n "checking if fdopen can be linked... " >&6; }
30869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30870 /* end confdefs.h. */
30873 #define fdopen innocuous_fdopen
30875 # include <limits.h>
30877 # include <assert.h>
30884 #if defined __stub_fdopen || defined __stub___fdopen
30896 if ac_fn_c_try_link "$LINENO"; then :
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30899 $as_echo "yes" >&6; }
30900 tst_links_fdopen="yes"
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30905 $as_echo "no" >&6; }
30906 tst_links_fdopen="no"
30909 rm -f core conftest.err conftest.$ac_objext \
30910 conftest$ac_exeext conftest.$ac_ext
30912 if test "$tst_links_fdopen" = "yes"; then
30913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
30914 $as_echo_n "checking if fdopen is prototyped... " >&6; }
30915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30916 /* end confdefs.h. */
30918 $curl_includes_stdio
30921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30922 $EGREP "fdopen" >/dev/null 2>&1; then :
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30925 $as_echo "yes" >&6; }
30926 tst_proto_fdopen="yes"
30930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30931 $as_echo "no" >&6; }
30932 tst_proto_fdopen="no"
30939 if test "$tst_proto_fdopen" = "yes"; then
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
30941 $as_echo_n "checking if fdopen is compilable... " >&6; }
30942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30943 /* end confdefs.h. */
30946 $curl_includes_stdio
30951 if(0 != fdopen(0, 0))
30959 if ac_fn_c_try_compile "$LINENO"; then :
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30962 $as_echo "yes" >&6; }
30963 tst_compi_fdopen="yes"
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30968 $as_echo "no" >&6; }
30969 tst_compi_fdopen="no"
30972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30975 if test "$tst_compi_fdopen" = "yes"; then
30976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
30977 $as_echo_n "checking if fdopen usage allowed... " >&6; }
30978 if test "x$curl_disallow_fdopen" != "xyes"; then
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30980 $as_echo "yes" >&6; }
30981 tst_allow_fdopen="yes"
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30984 $as_echo "no" >&6; }
30985 tst_allow_fdopen="no"
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
30990 $as_echo_n "checking if fdopen might be used... " >&6; }
30991 if test "$tst_links_fdopen" = "yes" &&
30992 test "$tst_proto_fdopen" = "yes" &&
30993 test "$tst_compi_fdopen" = "yes" &&
30994 test "$tst_allow_fdopen" = "yes"; then
30995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30996 $as_echo "yes" >&6; }
30998 cat >>confdefs.h <<_ACEOF
30999 #define HAVE_FDOPEN 1
31002 curl_cv_func_fdopen="yes"
31004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31005 $as_echo "no" >&6; }
31006 curl_cv_func_fdopen="no"
31010 curl_includes_netdb="\
31011 /* includes start */
31012 #ifdef HAVE_SYS_TYPES_H
31013 # include <sys/types.h>
31015 #ifdef HAVE_NETDB_H
31016 # include <netdb.h>
31018 /* includes end */"
31019 for ac_header in sys/types.h netdb.h
31021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31022 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31024 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31025 cat >>confdefs.h <<_ACEOF
31026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31036 tst_links_freeaddrinfo="unknown"
31037 tst_proto_freeaddrinfo="unknown"
31038 tst_compi_freeaddrinfo="unknown"
31039 tst_allow_freeaddrinfo="unknown"
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31042 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31044 /* end confdefs.h. */
31047 $curl_includes_ws2tcpip
31048 $curl_includes_sys_socket
31049 $curl_includes_netdb
31061 if ac_fn_c_try_link "$LINENO"; then :
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31064 $as_echo "yes" >&6; }
31065 tst_links_freeaddrinfo="yes"
31069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31070 $as_echo "no" >&6; }
31071 tst_links_freeaddrinfo="no"
31074 rm -f core conftest.err conftest.$ac_objext \
31075 conftest$ac_exeext conftest.$ac_ext
31077 if test "$tst_links_freeaddrinfo" = "yes"; then
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31079 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31081 /* end confdefs.h. */
31083 $curl_includes_ws2tcpip
31084 $curl_includes_sys_socket
31085 $curl_includes_netdb
31088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31089 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31092 $as_echo "yes" >&6; }
31093 tst_proto_freeaddrinfo="yes"
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31098 $as_echo "no" >&6; }
31099 tst_proto_freeaddrinfo="no"
31106 if test "$tst_proto_freeaddrinfo" = "yes"; then
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31108 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31110 /* end confdefs.h. */
31113 $curl_includes_ws2tcpip
31114 $curl_includes_sys_socket
31115 $curl_includes_netdb
31127 if ac_fn_c_try_compile "$LINENO"; then :
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31130 $as_echo "yes" >&6; }
31131 tst_compi_freeaddrinfo="yes"
31135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31136 $as_echo "no" >&6; }
31137 tst_compi_freeaddrinfo="no"
31140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31143 if test "$tst_compi_freeaddrinfo" = "yes"; then
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31145 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31146 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31148 $as_echo "yes" >&6; }
31149 tst_allow_freeaddrinfo="yes"
31151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31152 $as_echo "no" >&6; }
31153 tst_allow_freeaddrinfo="no"
31157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31158 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31159 if test "$tst_links_freeaddrinfo" = "yes" &&
31160 test "$tst_proto_freeaddrinfo" = "yes" &&
31161 test "$tst_compi_freeaddrinfo" = "yes" &&
31162 test "$tst_allow_freeaddrinfo" = "yes"; then
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31164 $as_echo "yes" >&6; }
31166 cat >>confdefs.h <<_ACEOF
31167 #define HAVE_FREEADDRINFO 1
31170 curl_cv_func_freeaddrinfo="yes"
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31173 $as_echo "no" >&6; }
31174 curl_cv_func_freeaddrinfo="no"
31178 curl_includes_ifaddrs="\
31179 /* includes start */
31180 #ifdef HAVE_SYS_TYPES_H
31181 # include <sys/types.h>
31183 #ifdef HAVE_SYS_SOCKET_H
31184 # include <sys/socket.h>
31186 #ifdef HAVE_NETINET_IN_H
31187 # include <netinet/in.h>
31189 #ifdef HAVE_IFADDRS_H
31190 # include <ifaddrs.h>
31192 /* includes end */"
31193 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31196 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31198 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31199 cat >>confdefs.h <<_ACEOF
31200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31210 tst_links_freeifaddrs="unknown"
31211 tst_proto_freeifaddrs="unknown"
31212 tst_compi_freeifaddrs="unknown"
31213 tst_allow_freeifaddrs="unknown"
31215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31216 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31218 /* end confdefs.h. */
31221 #define freeifaddrs innocuous_freeifaddrs
31223 # include <limits.h>
31225 # include <assert.h>
31231 char freeifaddrs ();
31232 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31238 return freeifaddrs ();
31244 if ac_fn_c_try_link "$LINENO"; then :
31246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31247 $as_echo "yes" >&6; }
31248 tst_links_freeifaddrs="yes"
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31253 $as_echo "no" >&6; }
31254 tst_links_freeifaddrs="no"
31257 rm -f core conftest.err conftest.$ac_objext \
31258 conftest$ac_exeext conftest.$ac_ext
31260 if test "$tst_links_freeifaddrs" = "yes"; then
31261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31262 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31264 /* end confdefs.h. */
31266 $curl_includes_ifaddrs
31269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31270 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31273 $as_echo "yes" >&6; }
31274 tst_proto_freeifaddrs="yes"
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31279 $as_echo "no" >&6; }
31280 tst_proto_freeifaddrs="no"
31287 if test "$tst_proto_freeifaddrs" = "yes"; then
31288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31289 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31291 /* end confdefs.h. */
31294 $curl_includes_ifaddrs
31306 if ac_fn_c_try_compile "$LINENO"; then :
31308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31309 $as_echo "yes" >&6; }
31310 tst_compi_freeifaddrs="yes"
31314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31315 $as_echo "no" >&6; }
31316 tst_compi_freeifaddrs="no"
31319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31322 if test "$tst_compi_freeifaddrs" = "yes"; then
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31324 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31325 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31327 $as_echo "yes" >&6; }
31328 tst_allow_freeifaddrs="yes"
31330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31331 $as_echo "no" >&6; }
31332 tst_allow_freeifaddrs="no"
31336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31337 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
31338 if test "$tst_links_freeifaddrs" = "yes" &&
31339 test "$tst_proto_freeifaddrs" = "yes" &&
31340 test "$tst_compi_freeifaddrs" = "yes" &&
31341 test "$tst_allow_freeifaddrs" = "yes"; then
31342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31343 $as_echo "yes" >&6; }
31345 cat >>confdefs.h <<_ACEOF
31346 #define HAVE_FREEIFADDRS 1
31349 curl_cv_func_freeifaddrs="yes"
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31352 $as_echo "no" >&6; }
31353 curl_cv_func_freeifaddrs="no"
31357 curl_includes_sys_xattr="\
31358 /* includes start */
31359 #ifdef HAVE_SYS_TYPES_H
31360 # include <sys/types.h>
31362 #ifdef HAVE_SYS_XATTR_H
31363 # include <sys/xattr.h>
31365 /* includes end */"
31366 for ac_header in sys/types.h sys/xattr.h
31368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31372 cat >>confdefs.h <<_ACEOF
31373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31383 tst_links_fsetxattr="unknown"
31384 tst_proto_fsetxattr="unknown"
31385 tst_compi_fsetxattr="unknown"
31386 tst_allow_fsetxattr="unknown"
31387 tst_nargs_fsetxattr="unknown"
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31390 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
31391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31392 /* end confdefs.h. */
31395 #define fsetxattr innocuous_fsetxattr
31397 # include <limits.h>
31399 # include <assert.h>
31406 #if defined __stub_fsetxattr || defined __stub___fsetxattr
31412 return fsetxattr ();
31418 if ac_fn_c_try_link "$LINENO"; then :
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31421 $as_echo "yes" >&6; }
31422 tst_links_fsetxattr="yes"
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31427 $as_echo "no" >&6; }
31428 tst_links_fsetxattr="no"
31431 rm -f core conftest.err conftest.$ac_objext \
31432 conftest$ac_exeext conftest.$ac_ext
31434 if test "$tst_links_fsetxattr" = "yes"; then
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31436 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31438 /* end confdefs.h. */
31440 $curl_includes_sys_xattr
31443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31444 $EGREP "fsetxattr" >/dev/null 2>&1; then :
31446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31447 $as_echo "yes" >&6; }
31448 tst_proto_fsetxattr="yes"
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31453 $as_echo "no" >&6; }
31454 tst_proto_fsetxattr="no"
31461 if test "$tst_proto_fsetxattr" = "yes"; then
31462 if test "$tst_nargs_fsetxattr" = "unknown"; then
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31464 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31466 /* end confdefs.h. */
31469 $curl_includes_sys_xattr
31474 if(0 != fsetxattr(0, 0, 0, 0, 0))
31482 if ac_fn_c_try_compile "$LINENO"; then :
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31485 $as_echo "yes" >&6; }
31486 tst_compi_fsetxattr="yes"
31487 tst_nargs_fsetxattr="5"
31491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31492 $as_echo "no" >&6; }
31493 tst_compi_fsetxattr="no"
31496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31498 if test "$tst_nargs_fsetxattr" = "unknown"; then
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31500 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31502 /* end confdefs.h. */
31505 $curl_includes_sys_xattr
31510 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31518 if ac_fn_c_try_compile "$LINENO"; then :
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31521 $as_echo "yes" >&6; }
31522 tst_compi_fsetxattr="yes"
31523 tst_nargs_fsetxattr="6"
31527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31528 $as_echo "no" >&6; }
31529 tst_compi_fsetxattr="no"
31532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31535 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
31536 if test "$tst_compi_fsetxattr" = "yes"; then
31537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31538 $as_echo "yes" >&6; }
31540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31541 $as_echo "no" >&6; }
31545 if test "$tst_compi_fsetxattr" = "yes"; then
31546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31547 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31548 if test "x$curl_disallow_fsetxattr" != "xyes"; then
31549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31550 $as_echo "yes" >&6; }
31551 tst_allow_fsetxattr="yes"
31553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31554 $as_echo "no" >&6; }
31555 tst_allow_fsetxattr="no"
31559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31560 $as_echo_n "checking if fsetxattr might be used... " >&6; }
31561 if test "$tst_links_fsetxattr" = "yes" &&
31562 test "$tst_proto_fsetxattr" = "yes" &&
31563 test "$tst_compi_fsetxattr" = "yes" &&
31564 test "$tst_allow_fsetxattr" = "yes"; then
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31566 $as_echo "yes" >&6; }
31568 cat >>confdefs.h <<_ACEOF
31569 #define HAVE_FSETXATTR 1
31573 if test "$tst_nargs_fsetxattr" -eq "5"; then
31575 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31577 elif test "$tst_nargs_fsetxattr" -eq "6"; then
31579 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31583 curl_cv_func_fsetxattr="yes"
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31586 $as_echo "no" >&6; }
31587 curl_cv_func_fsetxattr="no"
31592 tst_links_ftruncate="unknown"
31593 tst_proto_ftruncate="unknown"
31594 tst_compi_ftruncate="unknown"
31595 tst_allow_ftruncate="unknown"
31597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
31598 $as_echo_n "checking if ftruncate can be linked... " >&6; }
31599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31600 /* end confdefs.h. */
31603 #define ftruncate innocuous_ftruncate
31605 # include <limits.h>
31607 # include <assert.h>
31614 #if defined __stub_ftruncate || defined __stub___ftruncate
31620 return ftruncate ();
31626 if ac_fn_c_try_link "$LINENO"; then :
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31629 $as_echo "yes" >&6; }
31630 tst_links_ftruncate="yes"
31634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31635 $as_echo "no" >&6; }
31636 tst_links_ftruncate="no"
31639 rm -f core conftest.err conftest.$ac_objext \
31640 conftest$ac_exeext conftest.$ac_ext
31642 if test "$tst_links_ftruncate" = "yes"; then
31643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
31644 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
31645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31646 /* end confdefs.h. */
31648 $curl_includes_unistd
31651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31652 $EGREP "ftruncate" >/dev/null 2>&1; then :
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31655 $as_echo "yes" >&6; }
31656 tst_proto_ftruncate="yes"
31660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31661 $as_echo "no" >&6; }
31662 tst_proto_ftruncate="no"
31669 if test "$tst_proto_ftruncate" = "yes"; then
31670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
31671 $as_echo_n "checking if ftruncate is compilable... " >&6; }
31672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31673 /* end confdefs.h. */
31676 $curl_includes_unistd
31681 if(0 != ftruncate(0, 0))
31689 if ac_fn_c_try_compile "$LINENO"; then :
31691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31692 $as_echo "yes" >&6; }
31693 tst_compi_ftruncate="yes"
31697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31698 $as_echo "no" >&6; }
31699 tst_compi_ftruncate="no"
31702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31705 if test "$tst_compi_ftruncate" = "yes"; then
31706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
31707 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
31708 if test "x$curl_disallow_ftruncate" != "xyes"; then
31709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31710 $as_echo "yes" >&6; }
31711 tst_allow_ftruncate="yes"
31713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31714 $as_echo "no" >&6; }
31715 tst_allow_ftruncate="no"
31719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
31720 $as_echo_n "checking if ftruncate might be used... " >&6; }
31721 if test "$tst_links_ftruncate" = "yes" &&
31722 test "$tst_proto_ftruncate" = "yes" &&
31723 test "$tst_compi_ftruncate" = "yes" &&
31724 test "$tst_allow_ftruncate" = "yes"; then
31725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31726 $as_echo "yes" >&6; }
31728 cat >>confdefs.h <<_ACEOF
31729 #define HAVE_FTRUNCATE 1
31732 curl_cv_func_ftruncate="yes"
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31735 $as_echo "no" >&6; }
31736 curl_cv_func_ftruncate="no"
31740 curl_includes_stdlib="\
31741 /* includes start */
31742 #ifdef HAVE_SYS_TYPES_H
31743 # include <sys/types.h>
31745 #ifdef HAVE_STDLIB_H
31746 # include <stdlib.h>
31748 /* includes end */"
31749 for ac_header in sys/types.h stdlib.h
31751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31752 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
31754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31755 cat >>confdefs.h <<_ACEOF
31756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31766 tst_links_getaddrinfo="unknown"
31767 tst_proto_getaddrinfo="unknown"
31768 tst_compi_getaddrinfo="unknown"
31769 tst_works_getaddrinfo="unknown"
31770 tst_allow_getaddrinfo="unknown"
31771 tst_tsafe_getaddrinfo="unknown"
31773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
31774 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
31775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31776 /* end confdefs.h. */
31779 $curl_includes_ws2tcpip
31780 $curl_includes_sys_socket
31781 $curl_includes_netdb
31786 if(0 != getaddrinfo(0, 0, 0, 0))
31794 if ac_fn_c_try_link "$LINENO"; then :
31796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31797 $as_echo "yes" >&6; }
31798 tst_links_getaddrinfo="yes"
31802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31803 $as_echo "no" >&6; }
31804 tst_links_getaddrinfo="no"
31807 rm -f core conftest.err conftest.$ac_objext \
31808 conftest$ac_exeext conftest.$ac_ext
31810 if test "$tst_links_getaddrinfo" = "yes"; then
31811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
31812 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
31813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31814 /* end confdefs.h. */
31816 $curl_includes_ws2tcpip
31817 $curl_includes_sys_socket
31818 $curl_includes_netdb
31821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31822 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
31824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31825 $as_echo "yes" >&6; }
31826 tst_proto_getaddrinfo="yes"
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31831 $as_echo "no" >&6; }
31832 tst_proto_getaddrinfo="no"
31839 if test "$tst_proto_getaddrinfo" = "yes"; then
31840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
31841 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
31842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31843 /* end confdefs.h. */
31846 $curl_includes_ws2tcpip
31847 $curl_includes_sys_socket
31848 $curl_includes_netdb
31853 if(0 != getaddrinfo(0, 0, 0, 0))
31861 if ac_fn_c_try_compile "$LINENO"; then :
31863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31864 $as_echo "yes" >&6; }
31865 tst_compi_getaddrinfo="yes"
31869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31870 $as_echo "no" >&6; }
31871 tst_compi_getaddrinfo="no"
31874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31877 if test "x$cross_compiling" != "xyes" &&
31878 test "$tst_compi_getaddrinfo" = "yes"; then
31879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
31880 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
31881 if test "$cross_compiling" = yes; then :
31882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31884 as_fn_error $? "cannot run test program while cross compiling
31885 See \`config.log' for more details" "$LINENO" 5; }
31887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31888 /* end confdefs.h. */
31891 $curl_includes_ws2tcpip
31892 $curl_includes_stdlib
31893 $curl_includes_string
31894 $curl_includes_sys_socket
31895 $curl_includes_netdb
31900 struct addrinfo hints;
31901 struct addrinfo *ai = 0;
31904 #ifdef HAVE_WINSOCK2_H
31906 if (WSAStartup(MAKEWORD(2,2), &wsa))
31910 memset(&hints, 0, sizeof(hints));
31911 hints.ai_flags = AI_NUMERICHOST;
31912 hints.ai_family = AF_UNSPEC;
31913 hints.ai_socktype = SOCK_STREAM;
31914 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
31916 exit(1); /* fail */
31925 if ac_fn_c_try_run "$LINENO"; then :
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31928 $as_echo "yes" >&6; }
31929 tst_works_getaddrinfo="yes"
31933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31934 $as_echo "no" >&6; }
31935 tst_works_getaddrinfo="no"
31938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31939 conftest.$ac_objext conftest.beam conftest.$ac_ext
31944 if test "$tst_compi_getaddrinfo" = "yes" &&
31945 test "$tst_works_getaddrinfo" != "no"; then
31946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
31947 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
31948 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
31949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31950 $as_echo "yes" >&6; }
31951 tst_allow_getaddrinfo="yes"
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31954 $as_echo "no" >&6; }
31955 tst_allow_getaddrinfo="no"
31959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
31960 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
31961 if test "$tst_links_getaddrinfo" = "yes" &&
31962 test "$tst_proto_getaddrinfo" = "yes" &&
31963 test "$tst_compi_getaddrinfo" = "yes" &&
31964 test "$tst_allow_getaddrinfo" = "yes" &&
31965 test "$tst_works_getaddrinfo" != "no"; then
31966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31967 $as_echo "yes" >&6; }
31969 cat >>confdefs.h <<_ACEOF
31970 #define HAVE_GETADDRINFO 1
31973 curl_cv_func_getaddrinfo="yes"
31975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31976 $as_echo "no" >&6; }
31977 curl_cv_func_getaddrinfo="no"
31978 curl_cv_func_getaddrinfo_threadsafe="no"
31981 if test "$curl_cv_func_getaddrinfo" = "yes"; then
31982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
31983 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
31985 aix[1234].* | aix5.[01].*)
31986 tst_tsafe_getaddrinfo="no"
31989 tst_tsafe_getaddrinfo="yes"
31992 tst_tsafe_getaddrinfo="no"
31995 tst_tsafe_getaddrinfo="yes"
31997 freebsd[1234].* | freebsd5.[1234]*)
31998 tst_tsafe_getaddrinfo="no"
32001 tst_tsafe_getaddrinfo="yes"
32003 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32004 tst_tsafe_getaddrinfo="no"
32007 tst_tsafe_getaddrinfo="yes"
32010 tst_tsafe_getaddrinfo="no"
32013 tst_tsafe_getaddrinfo="yes"
32016 tst_tsafe_getaddrinfo="no"
32019 tst_tsafe_getaddrinfo="yes"
32022 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32023 test "$curl_cv_native_windows" = "yes"; then
32024 tst_tsafe_getaddrinfo="yes"
32026 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32030 /* end confdefs.h. */
32033 $curl_includes_sys_socket
32034 $curl_includes_netdb
32041 force compilation error
32047 if ac_fn_c_try_compile "$LINENO"; then :
32049 tst_symbol_defined="yes"
32053 tst_symbol_defined="no"
32056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32057 if test "$tst_symbol_defined" = "yes"; then
32058 curl_cv_have_def_h_errno=yes
32061 curl_cv_have_def_h_errno=no
32065 if test "$curl_cv_have_def_h_errno" = "yes"; then
32066 tst_h_errno_macro="yes"
32068 tst_h_errno_macro="no"
32070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32071 /* end confdefs.h. */
32074 $curl_includes_sys_socket
32075 $curl_includes_netdb
32089 if ac_fn_c_try_compile "$LINENO"; then :
32091 tst_h_errno_modifiable_lvalue="yes"
32095 tst_h_errno_modifiable_lvalue="no"
32098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32100 /* end confdefs.h. */
32107 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32109 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32112 force compilation error
32120 if ac_fn_c_try_compile "$LINENO"; then :
32122 tst_h_errno_sbs_issue_7="yes"
32126 tst_h_errno_sbs_issue_7="no"
32129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32130 if test "$tst_h_errno_macro" = "no" &&
32131 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32132 test "$tst_h_errno_sbs_issue_7" = "no"; then
32133 tst_tsafe_getaddrinfo="no"
32135 tst_tsafe_getaddrinfo="yes"
32138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32139 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32140 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32142 cat >>confdefs.h <<_ACEOF
32143 #define HAVE_GETADDRINFO_THREADSAFE 1
32146 curl_cv_func_getaddrinfo_threadsafe="yes"
32148 curl_cv_func_getaddrinfo_threadsafe="no"
32154 tst_links_gai_strerror="unknown"
32155 tst_proto_gai_strerror="unknown"
32156 tst_compi_gai_strerror="unknown"
32157 tst_allow_gai_strerror="unknown"
32159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32160 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32162 /* end confdefs.h. */
32165 $curl_includes_winsock2
32166 $curl_includes_netdb
32171 if(0 != gai_strerror(0))
32179 if ac_fn_c_try_link "$LINENO"; then :
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32182 $as_echo "yes" >&6; }
32183 tst_links_gai_strerror="yes"
32187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32188 $as_echo "no" >&6; }
32189 tst_links_gai_strerror="no"
32192 rm -f core conftest.err conftest.$ac_objext \
32193 conftest$ac_exeext conftest.$ac_ext
32195 if test "$tst_links_gai_strerror" = "yes"; then
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32197 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32199 /* end confdefs.h. */
32201 $curl_includes_winsock2
32202 $curl_includes_netdb
32205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32206 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32209 $as_echo "yes" >&6; }
32210 tst_proto_gai_strerror="yes"
32214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32215 $as_echo "no" >&6; }
32216 tst_proto_gai_strerror="no"
32223 if test "$tst_proto_gai_strerror" = "yes"; then
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32225 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32227 /* end confdefs.h. */
32230 $curl_includes_winsock2
32231 $curl_includes_netdb
32236 if(0 != gai_strerror(0))
32244 if ac_fn_c_try_compile "$LINENO"; then :
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32247 $as_echo "yes" >&6; }
32248 tst_compi_gai_strerror="yes"
32252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32253 $as_echo "no" >&6; }
32254 tst_compi_gai_strerror="no"
32257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32260 if test "$tst_compi_gai_strerror" = "yes"; then
32261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32262 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32263 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32265 $as_echo "yes" >&6; }
32266 tst_allow_gai_strerror="yes"
32268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32269 $as_echo "no" >&6; }
32270 tst_allow_gai_strerror="no"
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32275 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32276 if test "$tst_links_gai_strerror" = "yes" &&
32277 test "$tst_proto_gai_strerror" = "yes" &&
32278 test "$tst_compi_gai_strerror" = "yes" &&
32279 test "$tst_allow_gai_strerror" = "yes"; then
32280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32281 $as_echo "yes" >&6; }
32283 cat >>confdefs.h <<_ACEOF
32284 #define HAVE_GAI_STRERROR 1
32287 curl_cv_func_gai_strerror="yes"
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32290 $as_echo "no" >&6; }
32291 curl_cv_func_gai_strerror="no"
32296 tst_links_gethostbyaddr="unknown"
32297 tst_proto_gethostbyaddr="unknown"
32298 tst_compi_gethostbyaddr="unknown"
32299 tst_allow_gethostbyaddr="unknown"
32301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32302 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32304 /* end confdefs.h. */
32307 $curl_includes_winsock2
32308 $curl_includes_netdb
32313 if(0 != gethostbyaddr(0, 0, 0))
32321 if ac_fn_c_try_link "$LINENO"; then :
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32324 $as_echo "yes" >&6; }
32325 tst_links_gethostbyaddr="yes"
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32330 $as_echo "no" >&6; }
32331 tst_links_gethostbyaddr="no"
32334 rm -f core conftest.err conftest.$ac_objext \
32335 conftest$ac_exeext conftest.$ac_ext
32337 if test "$tst_links_gethostbyaddr" = "yes"; then
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32339 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32341 /* end confdefs.h. */
32343 $curl_includes_winsock2
32344 $curl_includes_netdb
32347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32348 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32351 $as_echo "yes" >&6; }
32352 tst_proto_gethostbyaddr="yes"
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32357 $as_echo "no" >&6; }
32358 tst_proto_gethostbyaddr="no"
32365 if test "$tst_proto_gethostbyaddr" = "yes"; then
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32367 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32369 /* end confdefs.h. */
32372 $curl_includes_winsock2
32373 $curl_includes_netdb
32378 if(0 != gethostbyaddr(0, 0, 0))
32386 if ac_fn_c_try_compile "$LINENO"; then :
32388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32389 $as_echo "yes" >&6; }
32390 tst_compi_gethostbyaddr="yes"
32394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32395 $as_echo "no" >&6; }
32396 tst_compi_gethostbyaddr="no"
32399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32402 if test "$tst_compi_gethostbyaddr" = "yes"; then
32403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32404 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32405 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32407 $as_echo "yes" >&6; }
32408 tst_allow_gethostbyaddr="yes"
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32411 $as_echo "no" >&6; }
32412 tst_allow_gethostbyaddr="no"
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32417 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32418 if test "$tst_links_gethostbyaddr" = "yes" &&
32419 test "$tst_proto_gethostbyaddr" = "yes" &&
32420 test "$tst_compi_gethostbyaddr" = "yes" &&
32421 test "$tst_allow_gethostbyaddr" = "yes"; then
32422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32423 $as_echo "yes" >&6; }
32425 cat >>confdefs.h <<_ACEOF
32426 #define HAVE_GETHOSTBYADDR 1
32429 curl_cv_func_gethostbyaddr="yes"
32431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32432 $as_echo "no" >&6; }
32433 curl_cv_func_gethostbyaddr="no"
32438 tst_links_gethostbyaddr_r="unknown"
32439 tst_proto_gethostbyaddr_r="unknown"
32440 tst_compi_gethostbyaddr_r="unknown"
32441 tst_allow_gethostbyaddr_r="unknown"
32442 tst_nargs_gethostbyaddr_r="unknown"
32444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32445 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32447 /* end confdefs.h. */
32450 #define gethostbyaddr_r innocuous_gethostbyaddr_r
32452 # include <limits.h>
32454 # include <assert.h>
32456 #undef gethostbyaddr_r
32460 char gethostbyaddr_r ();
32461 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32467 return gethostbyaddr_r ();
32473 if ac_fn_c_try_link "$LINENO"; then :
32475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32476 $as_echo "yes" >&6; }
32477 tst_links_gethostbyaddr_r="yes"
32481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32482 $as_echo "no" >&6; }
32483 tst_links_gethostbyaddr_r="no"
32486 rm -f core conftest.err conftest.$ac_objext \
32487 conftest$ac_exeext conftest.$ac_ext
32489 if test "$tst_links_gethostbyaddr_r" = "yes"; then
32490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32491 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32493 /* end confdefs.h. */
32495 $curl_includes_netdb
32498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32499 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32502 $as_echo "yes" >&6; }
32503 tst_proto_gethostbyaddr_r="yes"
32507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32508 $as_echo "no" >&6; }
32509 tst_proto_gethostbyaddr_r="no"
32516 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32517 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32519 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32521 /* end confdefs.h. */
32524 $curl_includes_netdb
32529 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32537 if ac_fn_c_try_compile "$LINENO"; then :
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32540 $as_echo "yes" >&6; }
32541 tst_compi_gethostbyaddr_r="yes"
32542 tst_nargs_gethostbyaddr_r="5"
32546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32547 $as_echo "no" >&6; }
32548 tst_compi_gethostbyaddr_r="no"
32551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32553 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32555 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32557 /* end confdefs.h. */
32560 $curl_includes_netdb
32565 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32573 if ac_fn_c_try_compile "$LINENO"; then :
32575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32576 $as_echo "yes" >&6; }
32577 tst_compi_gethostbyaddr_r="yes"
32578 tst_nargs_gethostbyaddr_r="7"
32582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32583 $as_echo "no" >&6; }
32584 tst_compi_gethostbyaddr_r="no"
32587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32589 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
32591 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
32592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32593 /* end confdefs.h. */
32596 $curl_includes_netdb
32601 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
32609 if ac_fn_c_try_compile "$LINENO"; then :
32611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32612 $as_echo "yes" >&6; }
32613 tst_compi_gethostbyaddr_r="yes"
32614 tst_nargs_gethostbyaddr_r="8"
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32619 $as_echo "no" >&6; }
32620 tst_compi_gethostbyaddr_r="no"
32623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
32626 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
32627 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32629 $as_echo "yes" >&6; }
32631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32632 $as_echo "no" >&6; }
32636 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
32638 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
32639 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
32640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32641 $as_echo "yes" >&6; }
32642 tst_allow_gethostbyaddr_r="yes"
32644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32645 $as_echo "no" >&6; }
32646 tst_allow_gethostbyaddr_r="no"
32650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
32651 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
32652 if test "$tst_links_gethostbyaddr_r" = "yes" &&
32653 test "$tst_proto_gethostbyaddr_r" = "yes" &&
32654 test "$tst_compi_gethostbyaddr_r" = "yes" &&
32655 test "$tst_allow_gethostbyaddr_r" = "yes"; then
32656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32657 $as_echo "yes" >&6; }
32659 cat >>confdefs.h <<_ACEOF
32660 #define HAVE_GETHOSTBYADDR_R 1
32664 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
32666 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
32668 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
32670 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
32672 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
32674 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
32678 curl_cv_func_gethostbyaddr_r="yes"
32680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32681 $as_echo "no" >&6; }
32682 curl_cv_func_gethostbyaddr_r="no"
32687 tst_links_gethostbyname="unknown"
32688 tst_proto_gethostbyname="unknown"
32689 tst_compi_gethostbyname="unknown"
32690 tst_allow_gethostbyname="unknown"
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
32693 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
32694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32695 /* end confdefs.h. */
32698 $curl_includes_winsock2
32699 $curl_includes_netdb
32704 if(0 != gethostbyname(0))
32712 if ac_fn_c_try_link "$LINENO"; then :
32714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32715 $as_echo "yes" >&6; }
32716 tst_links_gethostbyname="yes"
32720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32721 $as_echo "no" >&6; }
32722 tst_links_gethostbyname="no"
32725 rm -f core conftest.err conftest.$ac_objext \
32726 conftest$ac_exeext conftest.$ac_ext
32728 if test "$tst_links_gethostbyname" = "yes"; then
32729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
32730 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
32731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32732 /* end confdefs.h. */
32734 $curl_includes_winsock2
32735 $curl_includes_netdb
32738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32739 $EGREP "gethostbyname" >/dev/null 2>&1; then :
32741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32742 $as_echo "yes" >&6; }
32743 tst_proto_gethostbyname="yes"
32747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32748 $as_echo "no" >&6; }
32749 tst_proto_gethostbyname="no"
32756 if test "$tst_proto_gethostbyname" = "yes"; then
32757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
32758 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
32759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32760 /* end confdefs.h. */
32763 $curl_includes_winsock2
32764 $curl_includes_netdb
32769 if(0 != gethostbyname(0))
32777 if ac_fn_c_try_compile "$LINENO"; then :
32779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32780 $as_echo "yes" >&6; }
32781 tst_compi_gethostbyname="yes"
32785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32786 $as_echo "no" >&6; }
32787 tst_compi_gethostbyname="no"
32790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32793 if test "$tst_compi_gethostbyname" = "yes"; then
32794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
32795 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
32796 if test "x$curl_disallow_gethostbyname" != "xyes"; then
32797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32798 $as_echo "yes" >&6; }
32799 tst_allow_gethostbyname="yes"
32801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32802 $as_echo "no" >&6; }
32803 tst_allow_gethostbyname="no"
32807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
32808 $as_echo_n "checking if gethostbyname might be used... " >&6; }
32809 if test "$tst_links_gethostbyname" = "yes" &&
32810 test "$tst_proto_gethostbyname" = "yes" &&
32811 test "$tst_compi_gethostbyname" = "yes" &&
32812 test "$tst_allow_gethostbyname" = "yes"; then
32813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32814 $as_echo "yes" >&6; }
32816 cat >>confdefs.h <<_ACEOF
32817 #define HAVE_GETHOSTBYNAME 1
32820 curl_cv_func_gethostbyname="yes"
32822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32823 $as_echo "no" >&6; }
32824 curl_cv_func_gethostbyname="no"
32829 tst_links_gethostbyname_r="unknown"
32830 tst_proto_gethostbyname_r="unknown"
32831 tst_compi_gethostbyname_r="unknown"
32832 tst_allow_gethostbyname_r="unknown"
32833 tst_nargs_gethostbyname_r="unknown"
32835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
32836 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
32837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32838 /* end confdefs.h. */
32841 #define gethostbyname_r innocuous_gethostbyname_r
32843 # include <limits.h>
32845 # include <assert.h>
32847 #undef gethostbyname_r
32851 char gethostbyname_r ();
32852 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32858 return gethostbyname_r ();
32864 if ac_fn_c_try_link "$LINENO"; then :
32866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32867 $as_echo "yes" >&6; }
32868 tst_links_gethostbyname_r="yes"
32872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32873 $as_echo "no" >&6; }
32874 tst_links_gethostbyname_r="no"
32877 rm -f core conftest.err conftest.$ac_objext \
32878 conftest$ac_exeext conftest.$ac_ext
32880 if test "$tst_links_gethostbyname_r" = "yes"; then
32881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
32882 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
32883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32884 /* end confdefs.h. */
32886 $curl_includes_netdb
32889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32890 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
32892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32893 $as_echo "yes" >&6; }
32894 tst_proto_gethostbyname_r="yes"
32898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32899 $as_echo "no" >&6; }
32900 tst_proto_gethostbyname_r="no"
32907 if test "$tst_proto_gethostbyname_r" = "yes"; then
32908 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
32910 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
32911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32912 /* end confdefs.h. */
32915 $curl_includes_netdb
32920 if(0 != gethostbyname_r(0, 0, 0))
32928 if ac_fn_c_try_compile "$LINENO"; then :
32930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32931 $as_echo "yes" >&6; }
32932 tst_compi_gethostbyname_r="yes"
32933 tst_nargs_gethostbyname_r="3"
32937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32938 $as_echo "no" >&6; }
32939 tst_compi_gethostbyname_r="no"
32942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32944 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
32946 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
32947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32948 /* end confdefs.h. */
32951 $curl_includes_netdb
32956 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
32964 if ac_fn_c_try_compile "$LINENO"; then :
32966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32967 $as_echo "yes" >&6; }
32968 tst_compi_gethostbyname_r="yes"
32969 tst_nargs_gethostbyname_r="5"
32973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32974 $as_echo "no" >&6; }
32975 tst_compi_gethostbyname_r="no"
32978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32980 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
32982 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
32983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32984 /* end confdefs.h. */
32987 $curl_includes_netdb
32992 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33000 if ac_fn_c_try_compile "$LINENO"; then :
33002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33003 $as_echo "yes" >&6; }
33004 tst_compi_gethostbyname_r="yes"
33005 tst_nargs_gethostbyname_r="6"
33009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33010 $as_echo "no" >&6; }
33011 tst_compi_gethostbyname_r="no"
33014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33017 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33018 if test "$tst_compi_gethostbyname_r" = "yes"; then
33019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33020 $as_echo "yes" >&6; }
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33023 $as_echo "no" >&6; }
33027 if test "$tst_compi_gethostbyname_r" = "yes"; then
33028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33029 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33030 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33032 $as_echo "yes" >&6; }
33033 tst_allow_gethostbyname_r="yes"
33035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33036 $as_echo "no" >&6; }
33037 tst_allow_gethostbyname_r="no"
33041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33042 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33043 if test "$tst_links_gethostbyname_r" = "yes" &&
33044 test "$tst_proto_gethostbyname_r" = "yes" &&
33045 test "$tst_compi_gethostbyname_r" = "yes" &&
33046 test "$tst_allow_gethostbyname_r" = "yes"; then
33047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33048 $as_echo "yes" >&6; }
33050 cat >>confdefs.h <<_ACEOF
33051 #define HAVE_GETHOSTBYNAME_R 1
33055 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33057 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33059 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33061 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33063 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33065 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33069 curl_cv_func_gethostbyname_r="yes"
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33072 $as_echo "no" >&6; }
33073 curl_cv_func_gethostbyname_r="no"
33078 tst_links_gethostname="unknown"
33079 tst_proto_gethostname="unknown"
33080 tst_compi_gethostname="unknown"
33081 tst_allow_gethostname="unknown"
33083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33084 $as_echo_n "checking if gethostname can be linked... " >&6; }
33085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33086 /* end confdefs.h. */
33089 $curl_includes_winsock2
33090 $curl_includes_unistd
33095 if(0 != gethostname(0, 0))
33103 if ac_fn_c_try_link "$LINENO"; then :
33105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33106 $as_echo "yes" >&6; }
33107 tst_links_gethostname="yes"
33111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33112 $as_echo "no" >&6; }
33113 tst_links_gethostname="no"
33116 rm -f core conftest.err conftest.$ac_objext \
33117 conftest$ac_exeext conftest.$ac_ext
33119 if test "$tst_links_gethostname" = "yes"; then
33120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33121 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33123 /* end confdefs.h. */
33125 $curl_includes_winsock2
33126 $curl_includes_unistd
33129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33130 $EGREP "gethostname" >/dev/null 2>&1; then :
33132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33133 $as_echo "yes" >&6; }
33134 tst_proto_gethostname="yes"
33138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33139 $as_echo "no" >&6; }
33140 tst_proto_gethostname="no"
33147 if test "$tst_proto_gethostname" = "yes"; then
33148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33149 $as_echo_n "checking if gethostname is compilable... " >&6; }
33150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33151 /* end confdefs.h. */
33154 $curl_includes_winsock2
33155 $curl_includes_unistd
33160 if(0 != gethostname(0, 0))
33168 if ac_fn_c_try_compile "$LINENO"; then :
33170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33171 $as_echo "yes" >&6; }
33172 tst_compi_gethostname="yes"
33176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33177 $as_echo "no" >&6; }
33178 tst_compi_gethostname="no"
33181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33184 if test "$tst_compi_gethostname" = "yes"; then
33185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33186 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33187 tst_gethostname_type_arg2="unknown"
33188 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33189 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33190 if test "$tst_gethostname_type_arg2" = "unknown"; then
33191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33192 /* end confdefs.h. */
33195 $curl_includes_winsock2
33196 $curl_includes_unistd
33197 $curl_preprocess_callconv
33198 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33203 if(0 != gethostname(0, 0))
33211 if ac_fn_c_try_compile "$LINENO"; then :
33213 tst_gethostname_type_arg2="$tst_arg2"
33216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33221 $as_echo "$tst_gethostname_type_arg2" >&6; }
33222 if test "$tst_gethostname_type_arg2" != "unknown"; then
33224 cat >>confdefs.h <<_ACEOF
33225 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33231 if test "$tst_compi_gethostname" = "yes"; then
33232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33233 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33234 if test "x$curl_disallow_gethostname" != "xyes"; then
33235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33236 $as_echo "yes" >&6; }
33237 tst_allow_gethostname="yes"
33239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33240 $as_echo "no" >&6; }
33241 tst_allow_gethostname="no"
33245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33246 $as_echo_n "checking if gethostname might be used... " >&6; }
33247 if test "$tst_links_gethostname" = "yes" &&
33248 test "$tst_proto_gethostname" = "yes" &&
33249 test "$tst_compi_gethostname" = "yes" &&
33250 test "$tst_allow_gethostname" = "yes"; then
33251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33252 $as_echo "yes" >&6; }
33254 cat >>confdefs.h <<_ACEOF
33255 #define HAVE_GETHOSTNAME 1
33258 curl_cv_func_gethostname="yes"
33260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33261 $as_echo "no" >&6; }
33262 curl_cv_func_gethostname="no"
33267 tst_links_getifaddrs="unknown"
33268 tst_proto_getifaddrs="unknown"
33269 tst_compi_getifaddrs="unknown"
33270 tst_works_getifaddrs="unknown"
33271 tst_allow_getifaddrs="unknown"
33273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33274 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33276 /* end confdefs.h. */
33279 #define getifaddrs innocuous_getifaddrs
33281 # include <limits.h>
33283 # include <assert.h>
33289 char getifaddrs ();
33290 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33296 return getifaddrs ();
33302 if ac_fn_c_try_link "$LINENO"; then :
33304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33305 $as_echo "yes" >&6; }
33306 tst_links_getifaddrs="yes"
33310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33311 $as_echo "no" >&6; }
33312 tst_links_getifaddrs="no"
33315 rm -f core conftest.err conftest.$ac_objext \
33316 conftest$ac_exeext conftest.$ac_ext
33318 if test "$tst_links_getifaddrs" = "yes"; then
33319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33320 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33322 /* end confdefs.h. */
33324 $curl_includes_ifaddrs
33327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33328 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33331 $as_echo "yes" >&6; }
33332 tst_proto_getifaddrs="yes"
33336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33337 $as_echo "no" >&6; }
33338 tst_proto_getifaddrs="no"
33345 if test "$tst_proto_getifaddrs" = "yes"; then
33346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33347 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
33348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33349 /* end confdefs.h. */
33352 $curl_includes_ifaddrs
33357 if(0 != getifaddrs(0))
33365 if ac_fn_c_try_compile "$LINENO"; then :
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33368 $as_echo "yes" >&6; }
33369 tst_compi_getifaddrs="yes"
33373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33374 $as_echo "no" >&6; }
33375 tst_compi_getifaddrs="no"
33378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33381 if test "x$cross_compiling" != "xyes" &&
33382 test "$tst_compi_getifaddrs" = "yes"; then
33383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33384 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
33385 if test "$cross_compiling" = yes; then :
33386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33388 as_fn_error $? "cannot run test program while cross compiling
33389 See \`config.log' for more details" "$LINENO" 5; }
33391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33392 /* end confdefs.h. */
33395 $curl_includes_stdlib
33396 $curl_includes_ifaddrs
33401 struct ifaddrs *ifa = 0;
33404 error = getifaddrs(&ifa);
33406 exit(1); /* fail */
33415 if ac_fn_c_try_run "$LINENO"; then :
33417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33418 $as_echo "yes" >&6; }
33419 tst_works_getifaddrs="yes"
33423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33424 $as_echo "no" >&6; }
33425 tst_works_getifaddrs="no"
33428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33429 conftest.$ac_objext conftest.beam conftest.$ac_ext
33434 if test "$tst_compi_getifaddrs" = "yes" &&
33435 test "$tst_works_getifaddrs" != "no"; then
33436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33437 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33438 if test "x$curl_disallow_getifaddrs" != "xyes"; then
33439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33440 $as_echo "yes" >&6; }
33441 tst_allow_getifaddrs="yes"
33443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33444 $as_echo "no" >&6; }
33445 tst_allow_getifaddrs="no"
33449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33450 $as_echo_n "checking if getifaddrs might be used... " >&6; }
33451 if test "$tst_links_getifaddrs" = "yes" &&
33452 test "$tst_proto_getifaddrs" = "yes" &&
33453 test "$tst_compi_getifaddrs" = "yes" &&
33454 test "$tst_allow_getifaddrs" = "yes" &&
33455 test "$tst_works_getifaddrs" != "no"; then
33456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33457 $as_echo "yes" >&6; }
33459 cat >>confdefs.h <<_ACEOF
33460 #define HAVE_GETIFADDRS 1
33463 curl_cv_func_getifaddrs="yes"
33465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33466 $as_echo "no" >&6; }
33467 curl_cv_func_getifaddrs="no"
33472 tst_links_getservbyport_r="unknown"
33473 tst_proto_getservbyport_r="unknown"
33474 tst_compi_getservbyport_r="unknown"
33475 tst_allow_getservbyport_r="unknown"
33476 tst_nargs_getservbyport_r="unknown"
33478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33479 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33481 /* end confdefs.h. */
33484 #define getservbyport_r innocuous_getservbyport_r
33486 # include <limits.h>
33488 # include <assert.h>
33490 #undef getservbyport_r
33494 char getservbyport_r ();
33495 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33501 return getservbyport_r ();
33507 if ac_fn_c_try_link "$LINENO"; then :
33509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33510 $as_echo "yes" >&6; }
33511 tst_links_getservbyport_r="yes"
33515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33516 $as_echo "no" >&6; }
33517 tst_links_getservbyport_r="no"
33520 rm -f core conftest.err conftest.$ac_objext \
33521 conftest$ac_exeext conftest.$ac_ext
33523 if test "$tst_links_getservbyport_r" = "yes"; then
33524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33525 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33527 /* end confdefs.h. */
33529 $curl_includes_netdb
33532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33533 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
33535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33536 $as_echo "yes" >&6; }
33537 tst_proto_getservbyport_r="yes"
33541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33542 $as_echo "no" >&6; }
33543 tst_proto_getservbyport_r="no"
33550 if test "$tst_proto_getservbyport_r" = "yes"; then
33551 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
33553 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
33554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33555 /* end confdefs.h. */
33558 $curl_includes_netdb
33563 if(0 != getservbyport_r(0, 0, 0, 0))
33571 if ac_fn_c_try_compile "$LINENO"; then :
33573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33574 $as_echo "yes" >&6; }
33575 tst_compi_getservbyport_r="yes"
33576 tst_nargs_getservbyport_r="4"
33580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33581 $as_echo "no" >&6; }
33582 tst_compi_getservbyport_r="no"
33585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33587 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
33589 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
33590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33591 /* end confdefs.h. */
33594 $curl_includes_netdb
33599 if(0 != getservbyport_r(0, 0, 0, 0, 0))
33607 if ac_fn_c_try_compile "$LINENO"; then :
33609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33610 $as_echo "yes" >&6; }
33611 tst_compi_getservbyport_r="yes"
33612 tst_nargs_getservbyport_r="5"
33616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33617 $as_echo "no" >&6; }
33618 tst_compi_getservbyport_r="no"
33621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33623 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
33625 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
33626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33627 /* end confdefs.h. */
33630 $curl_includes_netdb
33635 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
33643 if ac_fn_c_try_compile "$LINENO"; then :
33645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33646 $as_echo "yes" >&6; }
33647 tst_compi_getservbyport_r="yes"
33648 tst_nargs_getservbyport_r="6"
33652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33653 $as_echo "no" >&6; }
33654 tst_compi_getservbyport_r="no"
33657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
33660 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
33661 if test "$tst_compi_getservbyport_r" = "yes"; then
33662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33663 $as_echo "yes" >&6; }
33665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33666 $as_echo "no" >&6; }
33670 if test "$tst_compi_getservbyport_r" = "yes"; then
33671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
33672 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
33673 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
33674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33675 $as_echo "yes" >&6; }
33676 tst_allow_getservbyport_r="yes"
33678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33679 $as_echo "no" >&6; }
33680 tst_allow_getservbyport_r="no"
33684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
33685 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
33686 if test "$tst_links_getservbyport_r" = "yes" &&
33687 test "$tst_proto_getservbyport_r" = "yes" &&
33688 test "$tst_compi_getservbyport_r" = "yes" &&
33689 test "$tst_allow_getservbyport_r" = "yes"; then
33690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33691 $as_echo "yes" >&6; }
33693 cat >>confdefs.h <<_ACEOF
33694 #define HAVE_GETSERVBYPORT_R 1
33698 cat >>confdefs.h <<_ACEOF
33699 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
33702 if test "$tst_nargs_getservbyport_r" -eq "4"; then
33704 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
33708 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
33711 curl_cv_func_getservbyport_r="yes"
33713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33714 $as_echo "no" >&6; }
33715 curl_cv_func_getservbyport_r="no"
33719 curl_includes_time="\
33720 /* includes start */
33721 #ifdef HAVE_SYS_TYPES_H
33722 # include <sys/types.h>
33724 #ifdef HAVE_SYS_TIME_H
33725 # include <sys/time.h>
33726 # ifdef TIME_WITH_SYS_TIME
33730 # ifdef HAVE_TIME_H
33734 /* includes end */"
33735 for ac_header in sys/types.h sys/time.h time.h
33737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
33740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33741 cat >>confdefs.h <<_ACEOF
33742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33752 tst_links_gmtime_r="unknown"
33753 tst_proto_gmtime_r="unknown"
33754 tst_compi_gmtime_r="unknown"
33755 tst_works_gmtime_r="unknown"
33756 tst_allow_gmtime_r="unknown"
33758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
33759 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
33760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33761 /* end confdefs.h. */
33764 #define gmtime_r innocuous_gmtime_r
33766 # include <limits.h>
33768 # include <assert.h>
33775 #if defined __stub_gmtime_r || defined __stub___gmtime_r
33781 return gmtime_r ();
33787 if ac_fn_c_try_link "$LINENO"; then :
33789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33790 $as_echo "yes" >&6; }
33791 tst_links_gmtime_r="yes"
33795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33796 $as_echo "no" >&6; }
33797 tst_links_gmtime_r="no"
33800 rm -f core conftest.err conftest.$ac_objext \
33801 conftest$ac_exeext conftest.$ac_ext
33803 if test "$tst_links_gmtime_r" = "yes"; then
33804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
33805 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
33806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33807 /* end confdefs.h. */
33809 $curl_includes_time
33812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33813 $EGREP "gmtime_r" >/dev/null 2>&1; then :
33815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33816 $as_echo "yes" >&6; }
33817 tst_proto_gmtime_r="yes"
33821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33822 $as_echo "no" >&6; }
33823 tst_proto_gmtime_r="no"
33830 if test "$tst_proto_gmtime_r" = "yes"; then
33831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
33832 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
33833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33834 /* end confdefs.h. */
33837 $curl_includes_time
33842 if(0 != gmtime_r(0, 0))
33850 if ac_fn_c_try_compile "$LINENO"; then :
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33853 $as_echo "yes" >&6; }
33854 tst_compi_gmtime_r="yes"
33858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33859 $as_echo "no" >&6; }
33860 tst_compi_gmtime_r="no"
33863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33866 if test "x$cross_compiling" != "xyes" &&
33867 test "$tst_compi_gmtime_r" = "yes"; then
33868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
33869 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
33870 if test "$cross_compiling" = yes; then :
33871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33873 as_fn_error $? "cannot run test program while cross compiling
33874 See \`config.log' for more details" "$LINENO" 5; }
33876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33877 /* end confdefs.h. */
33880 $curl_includes_stdlib
33881 $curl_includes_time
33886 time_t local = 1170352587;
33887 struct tm *gmt = 0;
33889 gmt = gmtime_r(&local, &result);
33900 if ac_fn_c_try_run "$LINENO"; then :
33902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33903 $as_echo "yes" >&6; }
33904 tst_works_gmtime_r="yes"
33908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33909 $as_echo "no" >&6; }
33910 tst_works_gmtime_r="no"
33913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33914 conftest.$ac_objext conftest.beam conftest.$ac_ext
33919 if test "$tst_compi_gmtime_r" = "yes" &&
33920 test "$tst_works_gmtime_r" != "no"; then
33921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
33922 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
33923 if test "x$curl_disallow_gmtime_r" != "xyes"; then
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33925 $as_echo "yes" >&6; }
33926 tst_allow_gmtime_r="yes"
33928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33929 $as_echo "no" >&6; }
33930 tst_allow_gmtime_r="no"
33934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
33935 $as_echo_n "checking if gmtime_r might be used... " >&6; }
33936 if test "$tst_links_gmtime_r" = "yes" &&
33937 test "$tst_proto_gmtime_r" = "yes" &&
33938 test "$tst_compi_gmtime_r" = "yes" &&
33939 test "$tst_allow_gmtime_r" = "yes" &&
33940 test "$tst_works_gmtime_r" != "no"; then
33941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33942 $as_echo "yes" >&6; }
33944 cat >>confdefs.h <<_ACEOF
33945 #define HAVE_GMTIME_R 1
33948 curl_cv_func_gmtime_r="yes"
33950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33951 $as_echo "no" >&6; }
33952 curl_cv_func_gmtime_r="no"
33956 curl_includes_arpa_inet="\
33957 /* includes start */
33958 #ifdef HAVE_SYS_TYPES_H
33959 # include <sys/types.h>
33961 #ifdef HAVE_SYS_SOCKET_H
33962 # include <sys/socket.h>
33964 #ifdef HAVE_NETINET_IN_H
33965 # include <netinet/in.h>
33967 #ifdef HAVE_ARPA_INET_H
33968 # include <arpa/inet.h>
33970 #ifdef HAVE_WINSOCK2_H
33971 #include <winsock2.h>
33972 #include <ws2tcpip.h>
33974 /* includes end */"
33975 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
33977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33978 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
33980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33981 cat >>confdefs.h <<_ACEOF
33982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33992 tst_links_inet_ntoa_r="unknown"
33993 tst_proto_inet_ntoa_r="unknown"
33994 tst_compi_inet_ntoa_r="unknown"
33995 tst_allow_inet_ntoa_r="unknown"
33996 tst_nargs_inet_ntoa_r="unknown"
33998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
33999 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34001 /* end confdefs.h. */
34004 #define inet_ntoa_r innocuous_inet_ntoa_r
34006 # include <limits.h>
34008 # include <assert.h>
34014 char inet_ntoa_r ();
34015 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34021 return inet_ntoa_r ();
34027 if ac_fn_c_try_link "$LINENO"; then :
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34030 $as_echo "yes" >&6; }
34031 tst_links_inet_ntoa_r="yes"
34035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34036 $as_echo "no" >&6; }
34037 tst_links_inet_ntoa_r="no"
34040 rm -f core conftest.err conftest.$ac_objext \
34041 conftest$ac_exeext conftest.$ac_ext
34043 if test "$tst_links_inet_ntoa_r" = "yes"; then
34044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34045 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34047 /* end confdefs.h. */
34049 $curl_includes_arpa_inet
34052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34053 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34056 $as_echo "yes" >&6; }
34057 tst_proto_inet_ntoa_r="yes"
34061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34062 $as_echo "no" >&6; }
34063 tst_proto_inet_ntoa_r="no"
34070 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34071 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34073 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34075 /* end confdefs.h. */
34078 $curl_includes_arpa_inet
34083 struct in_addr addr;
34084 if(0 != inet_ntoa_r(addr, 0))
34092 if ac_fn_c_try_compile "$LINENO"; then :
34094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34095 $as_echo "yes" >&6; }
34096 tst_compi_inet_ntoa_r="yes"
34097 tst_nargs_inet_ntoa_r="2"
34101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34102 $as_echo "no" >&6; }
34103 tst_compi_inet_ntoa_r="no"
34106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34108 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34110 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34112 /* end confdefs.h. */
34115 $curl_includes_arpa_inet
34120 struct in_addr addr;
34121 if(0 != inet_ntoa_r(addr, 0, 0))
34129 if ac_fn_c_try_compile "$LINENO"; then :
34131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34132 $as_echo "yes" >&6; }
34133 tst_compi_inet_ntoa_r="yes"
34134 tst_nargs_inet_ntoa_r="3"
34138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34139 $as_echo "no" >&6; }
34140 tst_compi_inet_ntoa_r="no"
34143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34146 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34147 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34149 $as_echo "yes" >&6; }
34151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34152 $as_echo "no" >&6; }
34156 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34158 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34159 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34161 $as_echo "yes" >&6; }
34162 tst_allow_inet_ntoa_r="yes"
34164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34165 $as_echo "no" >&6; }
34166 tst_allow_inet_ntoa_r="no"
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34171 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34172 if test "$tst_links_inet_ntoa_r" = "yes" &&
34173 test "$tst_proto_inet_ntoa_r" = "yes" &&
34174 test "$tst_compi_inet_ntoa_r" = "yes" &&
34175 test "$tst_allow_inet_ntoa_r" = "yes"; then
34176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34177 $as_echo "yes" >&6; }
34179 cat >>confdefs.h <<_ACEOF
34180 #define HAVE_INET_NTOA_R 1
34184 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34186 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34188 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34190 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34194 curl_cv_func_inet_ntoa_r="yes"
34196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34197 $as_echo "no" >&6; }
34198 curl_cv_func_inet_ntoa_r="no"
34203 tst_links_inet_ntop="unknown"
34204 tst_proto_inet_ntop="unknown"
34205 tst_compi_inet_ntop="unknown"
34206 tst_works_inet_ntop="unknown"
34207 tst_allow_inet_ntop="unknown"
34209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34210 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34212 /* end confdefs.h. */
34215 #define inet_ntop innocuous_inet_ntop
34217 # include <limits.h>
34219 # include <assert.h>
34226 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34232 return inet_ntop ();
34238 if ac_fn_c_try_link "$LINENO"; then :
34240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34241 $as_echo "yes" >&6; }
34242 tst_links_inet_ntop="yes"
34246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34247 $as_echo "no" >&6; }
34248 tst_links_inet_ntop="no"
34251 rm -f core conftest.err conftest.$ac_objext \
34252 conftest$ac_exeext conftest.$ac_ext
34254 if test "$tst_links_inet_ntop" = "yes"; then
34255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34256 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34258 /* end confdefs.h. */
34260 $curl_includes_arpa_inet
34263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34264 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34267 $as_echo "yes" >&6; }
34268 tst_proto_inet_ntop="yes"
34272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34273 $as_echo "no" >&6; }
34274 tst_proto_inet_ntop="no"
34281 if test "$tst_proto_inet_ntop" = "yes"; then
34282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34283 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34285 /* end confdefs.h. */
34288 $curl_includes_arpa_inet
34293 if(0 != inet_ntop(0, 0, 0, 0))
34301 if ac_fn_c_try_compile "$LINENO"; then :
34303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34304 $as_echo "yes" >&6; }
34305 tst_compi_inet_ntop="yes"
34309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34310 $as_echo "no" >&6; }
34311 tst_compi_inet_ntop="no"
34314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34317 if test "x$cross_compiling" != "xyes" &&
34318 test "$tst_compi_inet_ntop" = "yes"; then
34319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34320 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
34321 if test "$cross_compiling" = yes; then :
34322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34324 as_fn_error $? "cannot run test program while cross compiling
34325 See \`config.log' for more details" "$LINENO" 5; }
34327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34328 /* end confdefs.h. */
34331 $curl_includes_stdlib
34332 $curl_includes_arpa_inet
34333 $curl_includes_string
34338 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34339 char ipv4res[sizeof "255.255.255.255"];
34340 unsigned char ipv6a[26];
34341 unsigned char ipv4a[5];
34352 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34354 exit(1); /* fail */
34355 if(ipv4ptr != ipv4res)
34356 exit(1); /* fail */
34358 exit(1); /* fail */
34359 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34360 exit(1); /* fail */
34363 memset(ipv6a, 0, sizeof(ipv6a));
34376 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34378 exit(1); /* fail */
34379 if(ipv6ptr != ipv6res)
34380 exit(1); /* fail */
34382 exit(1); /* fail */
34383 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34384 exit(1); /* fail */
34393 if ac_fn_c_try_run "$LINENO"; then :
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34396 $as_echo "yes" >&6; }
34397 tst_works_inet_ntop="yes"
34401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34402 $as_echo "no" >&6; }
34403 tst_works_inet_ntop="no"
34406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34407 conftest.$ac_objext conftest.beam conftest.$ac_ext
34412 if test "$tst_compi_inet_ntop" = "yes" &&
34413 test "$tst_works_inet_ntop" != "no"; then
34414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34415 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34416 if test "x$curl_disallow_inet_ntop" != "xyes"; then
34417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34418 $as_echo "yes" >&6; }
34419 tst_allow_inet_ntop="yes"
34421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34422 $as_echo "no" >&6; }
34423 tst_allow_inet_ntop="no"
34427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34428 $as_echo_n "checking if inet_ntop might be used... " >&6; }
34429 if test "$tst_links_inet_ntop" = "yes" &&
34430 test "$tst_proto_inet_ntop" = "yes" &&
34431 test "$tst_compi_inet_ntop" = "yes" &&
34432 test "$tst_allow_inet_ntop" = "yes" &&
34433 test "$tst_works_inet_ntop" != "no"; then
34434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34435 $as_echo "yes" >&6; }
34437 cat >>confdefs.h <<_ACEOF
34438 #define HAVE_INET_NTOP 1
34441 curl_cv_func_inet_ntop="yes"
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34444 $as_echo "no" >&6; }
34445 curl_cv_func_inet_ntop="no"
34450 tst_links_inet_pton="unknown"
34451 tst_proto_inet_pton="unknown"
34452 tst_compi_inet_pton="unknown"
34453 tst_works_inet_pton="unknown"
34454 tst_allow_inet_pton="unknown"
34456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34457 $as_echo_n "checking if inet_pton can be linked... " >&6; }
34458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34459 /* end confdefs.h. */
34462 #define inet_pton innocuous_inet_pton
34464 # include <limits.h>
34466 # include <assert.h>
34473 #if defined __stub_inet_pton || defined __stub___inet_pton
34479 return inet_pton ();
34485 if ac_fn_c_try_link "$LINENO"; then :
34487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34488 $as_echo "yes" >&6; }
34489 tst_links_inet_pton="yes"
34493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34494 $as_echo "no" >&6; }
34495 tst_links_inet_pton="no"
34498 rm -f core conftest.err conftest.$ac_objext \
34499 conftest$ac_exeext conftest.$ac_ext
34501 if test "$tst_links_inet_pton" = "yes"; then
34502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34503 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
34504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34505 /* end confdefs.h. */
34507 $curl_includes_arpa_inet
34510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34511 $EGREP "inet_pton" >/dev/null 2>&1; then :
34513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34514 $as_echo "yes" >&6; }
34515 tst_proto_inet_pton="yes"
34519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34520 $as_echo "no" >&6; }
34521 tst_proto_inet_pton="no"
34528 if test "$tst_proto_inet_pton" = "yes"; then
34529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
34530 $as_echo_n "checking if inet_pton is compilable... " >&6; }
34531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34532 /* end confdefs.h. */
34535 $curl_includes_arpa_inet
34540 if(0 != inet_pton(0, 0, 0))
34548 if ac_fn_c_try_compile "$LINENO"; then :
34550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34551 $as_echo "yes" >&6; }
34552 tst_compi_inet_pton="yes"
34556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34557 $as_echo "no" >&6; }
34558 tst_compi_inet_pton="no"
34561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34564 if test "x$cross_compiling" != "xyes" &&
34565 test "$tst_compi_inet_pton" = "yes"; then
34566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
34567 $as_echo_n "checking if inet_pton seems to work... " >&6; }
34568 if test "$cross_compiling" = yes; then :
34569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34571 as_fn_error $? "cannot run test program while cross compiling
34572 See \`config.log' for more details" "$LINENO" 5; }
34574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34575 /* end confdefs.h. */
34578 $curl_includes_stdlib
34579 $curl_includes_arpa_inet
34580 $curl_includes_string
34585 unsigned char ipv6a[16+1];
34586 unsigned char ipv4a[4+1];
34587 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
34588 const char *ipv4src = "192.168.100.1";
34590 memset(ipv4a, 1, sizeof(ipv4a));
34591 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
34592 exit(1); /* fail */
34594 if( (ipv4a[0] != 0xc0) ||
34595 (ipv4a[1] != 0xa8) ||
34596 (ipv4a[2] != 0x64) ||
34597 (ipv4a[3] != 0x01) ||
34598 (ipv4a[4] != 0x01) )
34599 exit(1); /* fail */
34601 memset(ipv6a, 1, sizeof(ipv6a));
34602 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
34603 exit(1); /* fail */
34605 if( (ipv6a[0] != 0xfe) ||
34606 (ipv6a[1] != 0x80) ||
34607 (ipv6a[8] != 0x02) ||
34608 (ipv6a[9] != 0x14) ||
34609 (ipv6a[10] != 0x4f) ||
34610 (ipv6a[11] != 0xff) ||
34611 (ipv6a[12] != 0xfe) ||
34612 (ipv6a[13] != 0x0b) ||
34613 (ipv6a[14] != 0x76) ||
34614 (ipv6a[15] != 0xc8) ||
34615 (ipv6a[16] != 0x01) )
34616 exit(1); /* fail */
34618 if( (ipv6a[2] != 0x0) ||
34619 (ipv6a[3] != 0x0) ||
34620 (ipv6a[4] != 0x0) ||
34621 (ipv6a[5] != 0x0) ||
34622 (ipv6a[6] != 0x0) ||
34623 (ipv6a[7] != 0x0) )
34624 exit(1); /* fail */
34633 if ac_fn_c_try_run "$LINENO"; then :
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34636 $as_echo "yes" >&6; }
34637 tst_works_inet_pton="yes"
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34642 $as_echo "no" >&6; }
34643 tst_works_inet_pton="no"
34646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34647 conftest.$ac_objext conftest.beam conftest.$ac_ext
34652 if test "$tst_compi_inet_pton" = "yes" &&
34653 test "$tst_works_inet_pton" != "no"; then
34654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
34655 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
34656 if test "x$curl_disallow_inet_pton" != "xyes"; then
34657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34658 $as_echo "yes" >&6; }
34659 tst_allow_inet_pton="yes"
34661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34662 $as_echo "no" >&6; }
34663 tst_allow_inet_pton="no"
34667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
34668 $as_echo_n "checking if inet_pton might be used... " >&6; }
34669 if test "$tst_links_inet_pton" = "yes" &&
34670 test "$tst_proto_inet_pton" = "yes" &&
34671 test "$tst_compi_inet_pton" = "yes" &&
34672 test "$tst_allow_inet_pton" = "yes" &&
34673 test "$tst_works_inet_pton" != "no"; then
34674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34675 $as_echo "yes" >&6; }
34677 cat >>confdefs.h <<_ACEOF
34678 #define HAVE_INET_PTON 1
34681 curl_cv_func_inet_pton="yes"
34683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34684 $as_echo "no" >&6; }
34685 curl_cv_func_inet_pton="no"
34689 curl_includes_stropts="\
34690 /* includes start */
34691 #ifdef HAVE_SYS_TYPES_H
34692 # include <sys/types.h>
34694 #ifdef HAVE_UNISTD_H
34695 # include <unistd.h>
34697 #ifdef HAVE_SYS_SOCKET_H
34698 # include <sys/socket.h>
34700 #ifdef HAVE_SYS_IOCTL_H
34701 # include <sys/ioctl.h>
34703 #ifdef HAVE_STROPTS_H
34704 # include <stropts.h>
34706 /* includes end */"
34707 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
34709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34710 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
34712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34713 cat >>confdefs.h <<_ACEOF
34714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34724 tst_links_ioctl="unknown"
34725 tst_proto_ioctl="unknown"
34726 tst_compi_ioctl="unknown"
34727 tst_allow_ioctl="unknown"
34729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
34730 $as_echo_n "checking if ioctl can be linked... " >&6; }
34731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34732 /* end confdefs.h. */
34735 #define ioctl innocuous_ioctl
34737 # include <limits.h>
34739 # include <assert.h>
34746 #if defined __stub_ioctl || defined __stub___ioctl
34758 if ac_fn_c_try_link "$LINENO"; then :
34760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34761 $as_echo "yes" >&6; }
34762 tst_links_ioctl="yes"
34766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34767 $as_echo "no" >&6; }
34768 tst_links_ioctl="no"
34771 rm -f core conftest.err conftest.$ac_objext \
34772 conftest$ac_exeext conftest.$ac_ext
34774 if test "$tst_links_ioctl" = "yes"; then
34775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
34776 $as_echo_n "checking if ioctl is prototyped... " >&6; }
34777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34778 /* end confdefs.h. */
34780 $curl_includes_stropts
34783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34784 $EGREP "ioctl" >/dev/null 2>&1; then :
34786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34787 $as_echo "yes" >&6; }
34788 tst_proto_ioctl="yes"
34792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34793 $as_echo "no" >&6; }
34794 tst_proto_ioctl="no"
34801 if test "$tst_proto_ioctl" = "yes"; then
34802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
34803 $as_echo_n "checking if ioctl is compilable... " >&6; }
34804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34805 /* end confdefs.h. */
34808 $curl_includes_stropts
34813 if(0 != ioctl(0, 0, 0))
34821 if ac_fn_c_try_compile "$LINENO"; then :
34823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34824 $as_echo "yes" >&6; }
34825 tst_compi_ioctl="yes"
34829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34830 $as_echo "no" >&6; }
34831 tst_compi_ioctl="no"
34834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34837 if test "$tst_compi_ioctl" = "yes"; then
34838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
34839 $as_echo_n "checking if ioctl usage allowed... " >&6; }
34840 if test "x$curl_disallow_ioctl" != "xyes"; then
34841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34842 $as_echo "yes" >&6; }
34843 tst_allow_ioctl="yes"
34845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34846 $as_echo "no" >&6; }
34847 tst_allow_ioctl="no"
34851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
34852 $as_echo_n "checking if ioctl might be used... " >&6; }
34853 if test "$tst_links_ioctl" = "yes" &&
34854 test "$tst_proto_ioctl" = "yes" &&
34855 test "$tst_compi_ioctl" = "yes" &&
34856 test "$tst_allow_ioctl" = "yes"; then
34857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34858 $as_echo "yes" >&6; }
34860 cat >>confdefs.h <<_ACEOF
34861 #define HAVE_IOCTL 1
34864 curl_cv_func_ioctl="yes"
34867 tst_compi_ioctl_fionbio="unknown"
34868 tst_allow_ioctl_fionbio="unknown"
34870 if test "$curl_cv_func_ioctl" = "yes"; then
34871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
34872 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
34873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34874 /* end confdefs.h. */
34877 $curl_includes_stropts
34883 if(0 != ioctl(0, FIONBIO, &flags))
34891 if ac_fn_c_try_compile "$LINENO"; then :
34893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34894 $as_echo "yes" >&6; }
34895 tst_compi_ioctl_fionbio="yes"
34899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34900 $as_echo "no" >&6; }
34901 tst_compi_ioctl_fionbio="no"
34904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34907 if test "$tst_compi_ioctl_fionbio" = "yes"; then
34908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
34909 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
34910 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
34911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34912 $as_echo "yes" >&6; }
34913 tst_allow_ioctl_fionbio="yes"
34915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34916 $as_echo "no" >&6; }
34917 tst_allow_ioctl_fionbio="no"
34921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
34922 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
34923 if test "$tst_compi_ioctl_fionbio" = "yes" &&
34924 test "$tst_allow_ioctl_fionbio" = "yes"; then
34925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34926 $as_echo "yes" >&6; }
34928 cat >>confdefs.h <<_ACEOF
34929 #define HAVE_IOCTL_FIONBIO 1
34932 curl_cv_func_ioctl_fionbio="yes"
34934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34935 $as_echo "no" >&6; }
34936 curl_cv_func_ioctl_fionbio="no"
34941 tst_compi_ioctl_siocgifaddr="unknown"
34942 tst_allow_ioctl_siocgifaddr="unknown"
34944 if test "$curl_cv_func_ioctl" = "yes"; then
34945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
34946 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
34947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34948 /* end confdefs.h. */
34951 $curl_includes_stropts
34952 #include <net/if.h>
34958 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
34966 if ac_fn_c_try_compile "$LINENO"; then :
34968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34969 $as_echo "yes" >&6; }
34970 tst_compi_ioctl_siocgifaddr="yes"
34974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34975 $as_echo "no" >&6; }
34976 tst_compi_ioctl_siocgifaddr="no"
34979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34982 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
34983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
34984 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
34985 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
34986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34987 $as_echo "yes" >&6; }
34988 tst_allow_ioctl_siocgifaddr="yes"
34990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34991 $as_echo "no" >&6; }
34992 tst_allow_ioctl_siocgifaddr="no"
34996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
34997 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
34998 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
34999 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35001 $as_echo "yes" >&6; }
35003 cat >>confdefs.h <<_ACEOF
35004 #define HAVE_IOCTL_SIOCGIFADDR 1
35007 curl_cv_func_ioctl_siocgifaddr="yes"
35009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35010 $as_echo "no" >&6; }
35011 curl_cv_func_ioctl_siocgifaddr="no"
35015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35016 $as_echo "no" >&6; }
35017 curl_cv_func_ioctl="no"
35022 tst_links_ioctlsocket="unknown"
35023 tst_proto_ioctlsocket="unknown"
35024 tst_compi_ioctlsocket="unknown"
35025 tst_allow_ioctlsocket="unknown"
35027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35028 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35030 /* end confdefs.h. */
35033 $curl_includes_winsock2
35038 if(0 != ioctlsocket(0, 0, 0))
35046 if ac_fn_c_try_link "$LINENO"; then :
35048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35049 $as_echo "yes" >&6; }
35050 tst_links_ioctlsocket="yes"
35054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35055 $as_echo "no" >&6; }
35056 tst_links_ioctlsocket="no"
35059 rm -f core conftest.err conftest.$ac_objext \
35060 conftest$ac_exeext conftest.$ac_ext
35062 if test "$tst_links_ioctlsocket" = "yes"; then
35063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35064 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35066 /* end confdefs.h. */
35068 $curl_includes_winsock2
35071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35072 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35075 $as_echo "yes" >&6; }
35076 tst_proto_ioctlsocket="yes"
35080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35081 $as_echo "no" >&6; }
35082 tst_proto_ioctlsocket="no"
35089 if test "$tst_proto_ioctlsocket" = "yes"; then
35090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35091 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35093 /* end confdefs.h. */
35096 $curl_includes_winsock2
35101 if(0 != ioctlsocket(0, 0, 0))
35109 if ac_fn_c_try_compile "$LINENO"; then :
35111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35112 $as_echo "yes" >&6; }
35113 tst_compi_ioctlsocket="yes"
35117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35118 $as_echo "no" >&6; }
35119 tst_compi_ioctlsocket="no"
35122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35125 if test "$tst_compi_ioctlsocket" = "yes"; then
35126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35127 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35128 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35130 $as_echo "yes" >&6; }
35131 tst_allow_ioctlsocket="yes"
35133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35134 $as_echo "no" >&6; }
35135 tst_allow_ioctlsocket="no"
35139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35140 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35141 if test "$tst_links_ioctlsocket" = "yes" &&
35142 test "$tst_proto_ioctlsocket" = "yes" &&
35143 test "$tst_compi_ioctlsocket" = "yes" &&
35144 test "$tst_allow_ioctlsocket" = "yes"; then
35145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35146 $as_echo "yes" >&6; }
35148 cat >>confdefs.h <<_ACEOF
35149 #define HAVE_IOCTLSOCKET 1
35152 curl_cv_func_ioctlsocket="yes"
35155 tst_compi_ioctlsocket_fionbio="unknown"
35156 tst_allow_ioctlsocket_fionbio="unknown"
35158 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35160 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35162 /* end confdefs.h. */
35165 $curl_includes_winsock2
35171 if(0 != ioctlsocket(0, FIONBIO, &flags))
35179 if ac_fn_c_try_compile "$LINENO"; then :
35181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35182 $as_echo "yes" >&6; }
35183 tst_compi_ioctlsocket_fionbio="yes"
35187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35188 $as_echo "no" >&6; }
35189 tst_compi_ioctlsocket_fionbio="no"
35192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35195 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35197 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35198 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35200 $as_echo "yes" >&6; }
35201 tst_allow_ioctlsocket_fionbio="yes"
35203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35204 $as_echo "no" >&6; }
35205 tst_allow_ioctlsocket_fionbio="no"
35209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35210 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35211 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35212 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35214 $as_echo "yes" >&6; }
35216 cat >>confdefs.h <<_ACEOF
35217 #define HAVE_IOCTLSOCKET_FIONBIO 1
35220 curl_cv_func_ioctlsocket_fionbio="yes"
35222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35223 $as_echo "no" >&6; }
35224 curl_cv_func_ioctlsocket_fionbio="no"
35228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35229 $as_echo "no" >&6; }
35230 curl_cv_func_ioctlsocket="no"
35235 tst_links_ioctlsocket_camel="unknown"
35236 tst_proto_ioctlsocket_camel="unknown"
35237 tst_compi_ioctlsocket_camel="unknown"
35238 tst_allow_ioctlsocket_camel="unknown"
35240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35241 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35243 /* end confdefs.h. */
35246 #define IoctlSocket innocuous_IoctlSocket
35248 # include <limits.h>
35250 # include <assert.h>
35256 char IoctlSocket ();
35257 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35263 return IoctlSocket ();
35269 if ac_fn_c_try_link "$LINENO"; then :
35271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35272 $as_echo "yes" >&6; }
35273 tst_links_ioctlsocket_camel="yes"
35277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35278 $as_echo "no" >&6; }
35279 tst_links_ioctlsocket_camel="no"
35282 rm -f core conftest.err conftest.$ac_objext \
35283 conftest$ac_exeext conftest.$ac_ext
35285 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35287 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35289 /* end confdefs.h. */
35291 $curl_includes_stropts
35294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35295 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35298 $as_echo "yes" >&6; }
35299 tst_proto_ioctlsocket_camel="yes"
35303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35304 $as_echo "no" >&6; }
35305 tst_proto_ioctlsocket_camel="no"
35312 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35314 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35316 /* end confdefs.h. */
35319 $curl_includes_stropts
35324 if(0 != IoctlSocket(0, 0, 0))
35332 if ac_fn_c_try_compile "$LINENO"; then :
35334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35335 $as_echo "yes" >&6; }
35336 tst_compi_ioctlsocket_camel="yes"
35340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35341 $as_echo "no" >&6; }
35342 tst_compi_ioctlsocket_camel="no"
35345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35348 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35350 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35351 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35353 $as_echo "yes" >&6; }
35354 tst_allow_ioctlsocket_camel="yes"
35356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35357 $as_echo "no" >&6; }
35358 tst_allow_ioctlsocket_camel="no"
35362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35363 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
35364 if test "$tst_links_ioctlsocket_camel" = "yes" &&
35365 test "$tst_proto_ioctlsocket_camel" = "yes" &&
35366 test "$tst_compi_ioctlsocket_camel" = "yes" &&
35367 test "$tst_allow_ioctlsocket_camel" = "yes"; then
35368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35369 $as_echo "yes" >&6; }
35371 cat >>confdefs.h <<_ACEOF
35372 #define HAVE_IOCTLSOCKET_CAMEL 1
35375 curl_cv_func_ioctlsocket_camel="yes"
35378 tst_compi_ioctlsocket_camel_fionbio="unknown"
35379 tst_allow_ioctlsocket_camel_fionbio="unknown"
35381 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35383 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35385 /* end confdefs.h. */
35388 $curl_includes_stropts
35394 if(0 != ioctlsocket(0, FIONBIO, &flags))
35402 if ac_fn_c_try_compile "$LINENO"; then :
35404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35405 $as_echo "yes" >&6; }
35406 tst_compi_ioctlsocket_camel_fionbio="yes"
35410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35411 $as_echo "no" >&6; }
35412 tst_compi_ioctlsocket_camel_fionbio="no"
35415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35418 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35420 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35421 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35423 $as_echo "yes" >&6; }
35424 tst_allow_ioctlsocket_camel_fionbio="yes"
35426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35427 $as_echo "no" >&6; }
35428 tst_allow_ioctlsocket_camel_fionbio="no"
35432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35433 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35434 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35435 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35437 $as_echo "yes" >&6; }
35439 cat >>confdefs.h <<_ACEOF
35440 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35443 curl_cv_func_ioctlsocket_camel_fionbio="yes"
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446 $as_echo "no" >&6; }
35447 curl_cv_func_ioctlsocket_camel_fionbio="no"
35451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35452 $as_echo "no" >&6; }
35453 curl_cv_func_ioctlsocket_camel="no"
35458 tst_links_localtime_r="unknown"
35459 tst_proto_localtime_r="unknown"
35460 tst_compi_localtime_r="unknown"
35461 tst_works_localtime_r="unknown"
35462 tst_allow_localtime_r="unknown"
35464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35465 $as_echo_n "checking if localtime_r can be linked... " >&6; }
35466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35467 /* end confdefs.h. */
35470 #define localtime_r innocuous_localtime_r
35472 # include <limits.h>
35474 # include <assert.h>
35480 char localtime_r ();
35481 #if defined __stub_localtime_r || defined __stub___localtime_r
35487 return localtime_r ();
35493 if ac_fn_c_try_link "$LINENO"; then :
35495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35496 $as_echo "yes" >&6; }
35497 tst_links_localtime_r="yes"
35501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35502 $as_echo "no" >&6; }
35503 tst_links_localtime_r="no"
35506 rm -f core conftest.err conftest.$ac_objext \
35507 conftest$ac_exeext conftest.$ac_ext
35509 if test "$tst_links_localtime_r" = "yes"; then
35510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35511 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
35512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35513 /* end confdefs.h. */
35515 $curl_includes_time
35518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35519 $EGREP "localtime_r" >/dev/null 2>&1; then :
35521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35522 $as_echo "yes" >&6; }
35523 tst_proto_localtime_r="yes"
35527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35528 $as_echo "no" >&6; }
35529 tst_proto_localtime_r="no"
35536 if test "$tst_proto_localtime_r" = "yes"; then
35537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
35538 $as_echo_n "checking if localtime_r is compilable... " >&6; }
35539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35540 /* end confdefs.h. */
35543 $curl_includes_time
35548 if(0 != localtime_r(0, 0))
35556 if ac_fn_c_try_compile "$LINENO"; then :
35558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35559 $as_echo "yes" >&6; }
35560 tst_compi_localtime_r="yes"
35564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35565 $as_echo "no" >&6; }
35566 tst_compi_localtime_r="no"
35569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35572 if test "x$cross_compiling" != "xyes" &&
35573 test "$tst_compi_localtime_r" = "yes"; then
35574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
35575 $as_echo_n "checking if localtime_r seems to work... " >&6; }
35576 if test "$cross_compiling" = yes; then :
35577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35579 as_fn_error $? "cannot run test program while cross compiling
35580 See \`config.log' for more details" "$LINENO" 5; }
35582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35583 /* end confdefs.h. */
35586 $curl_includes_stdlib
35587 $curl_includes_time
35592 time_t clock = 1170352587;
35593 struct tm *tmp = 0;
35595 tmp = localtime_r(&clock, &result);
35606 if ac_fn_c_try_run "$LINENO"; then :
35608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35609 $as_echo "yes" >&6; }
35610 tst_works_localtime_r="yes"
35614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35615 $as_echo "no" >&6; }
35616 tst_works_localtime_r="no"
35619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35620 conftest.$ac_objext conftest.beam conftest.$ac_ext
35625 if test "$tst_compi_localtime_r" = "yes" &&
35626 test "$tst_works_localtime_r" != "no"; then
35627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
35628 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
35629 if test "x$curl_disallow_localtime_r" != "xyes"; then
35630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35631 $as_echo "yes" >&6; }
35632 tst_allow_localtime_r="yes"
35634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35635 $as_echo "no" >&6; }
35636 tst_allow_localtime_r="no"
35640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
35641 $as_echo_n "checking if localtime_r might be used... " >&6; }
35642 if test "$tst_links_localtime_r" = "yes" &&
35643 test "$tst_proto_localtime_r" = "yes" &&
35644 test "$tst_compi_localtime_r" = "yes" &&
35645 test "$tst_allow_localtime_r" = "yes" &&
35646 test "$tst_works_localtime_r" != "no"; then
35647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35648 $as_echo "yes" >&6; }
35650 cat >>confdefs.h <<_ACEOF
35651 #define HAVE_LOCALTIME_R 1
35654 curl_cv_func_localtime_r="yes"
35656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35657 $as_echo "no" >&6; }
35658 curl_cv_func_localtime_r="no"
35663 tst_links_memrchr="unknown"
35664 tst_macro_memrchr="unknown"
35665 tst_proto_memrchr="unknown"
35666 tst_compi_memrchr="unknown"
35667 tst_allow_memrchr="unknown"
35669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
35670 $as_echo_n "checking if memrchr can be linked... " >&6; }
35671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35672 /* end confdefs.h. */
35675 #define memrchr innocuous_memrchr
35677 # include <limits.h>
35679 # include <assert.h>
35686 #if defined __stub_memrchr || defined __stub___memrchr
35698 if ac_fn_c_try_link "$LINENO"; then :
35700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35701 $as_echo "yes" >&6; }
35702 tst_links_memrchr="yes"
35706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35707 $as_echo "no" >&6; }
35708 tst_links_memrchr="no"
35711 rm -f core conftest.err conftest.$ac_objext \
35712 conftest$ac_exeext conftest.$ac_ext
35714 if test "$tst_links_memrchr" = "no"; then
35715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
35716 $as_echo_n "checking if memrchr seems a macro... " >&6; }
35717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35718 /* end confdefs.h. */
35721 $curl_includes_string
35726 if(0 != memrchr(0, 0, 0))
35734 if ac_fn_c_try_link "$LINENO"; then :
35736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35737 $as_echo "yes" >&6; }
35738 tst_macro_memrchr="yes"
35742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35743 $as_echo "no" >&6; }
35744 tst_macro_memrchr="no"
35747 rm -f core conftest.err conftest.$ac_objext \
35748 conftest$ac_exeext conftest.$ac_ext
35751 if test "$tst_links_memrchr" = "yes"; then
35752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
35753 $as_echo_n "checking if memrchr is prototyped... " >&6; }
35754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35755 /* end confdefs.h. */
35757 $curl_includes_string
35760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35761 $EGREP "memrchr" >/dev/null 2>&1; then :
35763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35764 $as_echo "yes" >&6; }
35765 tst_proto_memrchr="yes"
35769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35770 $as_echo "no" >&6; }
35771 tst_proto_memrchr="no"
35778 if test "$tst_proto_memrchr" = "yes" ||
35779 test "$tst_macro_memrchr" = "yes"; then
35780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
35781 $as_echo_n "checking if memrchr is compilable... " >&6; }
35782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35783 /* end confdefs.h. */
35786 $curl_includes_string
35791 if(0 != memrchr(0, 0, 0))
35799 if ac_fn_c_try_compile "$LINENO"; then :
35801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35802 $as_echo "yes" >&6; }
35803 tst_compi_memrchr="yes"
35807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35808 $as_echo "no" >&6; }
35809 tst_compi_memrchr="no"
35812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35815 if test "$tst_compi_memrchr" = "yes"; then
35816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
35817 $as_echo_n "checking if memrchr usage allowed... " >&6; }
35818 if test "x$curl_disallow_memrchr" != "xyes"; then
35819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35820 $as_echo "yes" >&6; }
35821 tst_allow_memrchr="yes"
35823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35824 $as_echo "no" >&6; }
35825 tst_allow_memrchr="no"
35829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
35830 $as_echo_n "checking if memrchr might be used... " >&6; }
35831 if (test "$tst_proto_memrchr" = "yes" ||
35832 test "$tst_macro_memrchr" = "yes") &&
35833 test "$tst_compi_memrchr" = "yes" &&
35834 test "$tst_allow_memrchr" = "yes"; then
35835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35836 $as_echo "yes" >&6; }
35838 cat >>confdefs.h <<_ACEOF
35839 #define HAVE_MEMRCHR 1
35842 curl_cv_func_memrchr="yes"
35844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35845 $as_echo "no" >&6; }
35846 curl_cv_func_memrchr="no"
35851 tst_links_poll="unknown"
35852 tst_proto_poll="unknown"
35853 tst_compi_poll="unknown"
35854 tst_works_poll="unknown"
35855 tst_allow_poll="unknown"
35858 darwin[123456789].*|darwin10.*|darwin11.*|darwin12.*|interix*)
35859 curl_disallow_poll="yes"
35863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
35864 $as_echo_n "checking if poll can be linked... " >&6; }
35865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35866 /* end confdefs.h. */
35869 $curl_includes_poll
35874 if(0 != poll(0, 0, 0))
35882 if ac_fn_c_try_link "$LINENO"; then :
35884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35885 $as_echo "yes" >&6; }
35886 tst_links_poll="yes"
35890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35891 $as_echo "no" >&6; }
35892 tst_links_poll="no"
35895 rm -f core conftest.err conftest.$ac_objext \
35896 conftest$ac_exeext conftest.$ac_ext
35898 if test "$tst_links_poll" = "yes"; then
35899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
35900 $as_echo_n "checking if poll is prototyped... " >&6; }
35901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35902 /* end confdefs.h. */
35904 $curl_includes_poll
35907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35908 $EGREP "poll" >/dev/null 2>&1; then :
35910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35911 $as_echo "yes" >&6; }
35912 tst_proto_poll="yes"
35916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35917 $as_echo "no" >&6; }
35918 tst_proto_poll="no"
35925 if test "$tst_proto_poll" = "yes"; then
35926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
35927 $as_echo_n "checking if poll is compilable... " >&6; }
35928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35929 /* end confdefs.h. */
35932 $curl_includes_poll
35937 if(0 != poll(0, 0, 0))
35945 if ac_fn_c_try_compile "$LINENO"; then :
35947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35948 $as_echo "yes" >&6; }
35949 tst_compi_poll="yes"
35953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35954 $as_echo "no" >&6; }
35955 tst_compi_poll="no"
35958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35961 if test "x$cross_compiling" != "xyes" &&
35962 test "$tst_compi_poll" = "yes"; then
35963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
35964 $as_echo_n "checking if poll seems to work... " >&6; }
35965 if test "$cross_compiling" = yes; then :
35966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35968 as_fn_error $? "cannot run test program while cross compiling
35969 See \`config.log' for more details" "$LINENO" 5; }
35971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35972 /* end confdefs.h. */
35975 $curl_includes_stdlib
35976 $curl_includes_poll
35981 if(0 != poll(0, 0, 10))
35982 exit(1); /* fail */
35991 if ac_fn_c_try_run "$LINENO"; then :
35993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35994 $as_echo "yes" >&6; }
35995 tst_works_poll="yes"
35999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36000 $as_echo "no" >&6; }
36001 tst_works_poll="no"
36004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36005 conftest.$ac_objext conftest.beam conftest.$ac_ext
36010 if test "$tst_compi_poll" = "yes" &&
36011 test "$tst_works_poll" != "no"; then
36012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36013 $as_echo_n "checking if poll usage allowed... " >&6; }
36014 if test "x$curl_disallow_poll" != "xyes"; then
36015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36016 $as_echo "yes" >&6; }
36017 tst_allow_poll="yes"
36019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36020 $as_echo "no" >&6; }
36021 tst_allow_poll="no"
36025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36026 $as_echo_n "checking if poll might be used... " >&6; }
36027 if test "$tst_links_poll" = "yes" &&
36028 test "$tst_proto_poll" = "yes" &&
36029 test "$tst_compi_poll" = "yes" &&
36030 test "$tst_allow_poll" = "yes" &&
36031 test "$tst_works_poll" != "no"; then
36032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36033 $as_echo "yes" >&6; }
36035 cat >>confdefs.h <<_ACEOF
36036 #define HAVE_POLL 1
36040 cat >>confdefs.h <<_ACEOF
36041 #define HAVE_POLL_FINE 1
36044 curl_cv_func_poll="yes"
36046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36047 $as_echo "no" >&6; }
36048 curl_cv_func_poll="no"
36053 tst_links_setsockopt="unknown"
36054 tst_proto_setsockopt="unknown"
36055 tst_compi_setsockopt="unknown"
36056 tst_allow_setsockopt="unknown"
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36059 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36061 /* end confdefs.h. */
36064 $curl_includes_winsock2
36065 $curl_includes_sys_socket
36070 if(0 != setsockopt(0, 0, 0, 0, 0))
36078 if ac_fn_c_try_link "$LINENO"; then :
36080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36081 $as_echo "yes" >&6; }
36082 tst_links_setsockopt="yes"
36086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36087 $as_echo "no" >&6; }
36088 tst_links_setsockopt="no"
36091 rm -f core conftest.err conftest.$ac_objext \
36092 conftest$ac_exeext conftest.$ac_ext
36094 if test "$tst_links_setsockopt" = "yes"; then
36095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36096 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36098 /* end confdefs.h. */
36100 $curl_includes_winsock2
36101 $curl_includes_sys_socket
36104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36105 $EGREP "setsockopt" >/dev/null 2>&1; then :
36107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36108 $as_echo "yes" >&6; }
36109 tst_proto_setsockopt="yes"
36113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36114 $as_echo "no" >&6; }
36115 tst_proto_setsockopt="no"
36122 if test "$tst_proto_setsockopt" = "yes"; then
36123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36124 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36126 /* end confdefs.h. */
36129 $curl_includes_winsock2
36130 $curl_includes_sys_socket
36135 if(0 != setsockopt(0, 0, 0, 0, 0))
36143 if ac_fn_c_try_compile "$LINENO"; then :
36145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36146 $as_echo "yes" >&6; }
36147 tst_compi_setsockopt="yes"
36151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36152 $as_echo "no" >&6; }
36153 tst_compi_setsockopt="no"
36156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36159 if test "$tst_compi_setsockopt" = "yes"; then
36160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36161 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36162 if test "x$curl_disallow_setsockopt" != "xyes"; then
36163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36164 $as_echo "yes" >&6; }
36165 tst_allow_setsockopt="yes"
36167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36168 $as_echo "no" >&6; }
36169 tst_allow_setsockopt="no"
36173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36174 $as_echo_n "checking if setsockopt might be used... " >&6; }
36175 if test "$tst_links_setsockopt" = "yes" &&
36176 test "$tst_proto_setsockopt" = "yes" &&
36177 test "$tst_compi_setsockopt" = "yes" &&
36178 test "$tst_allow_setsockopt" = "yes"; then
36179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36180 $as_echo "yes" >&6; }
36182 cat >>confdefs.h <<_ACEOF
36183 #define HAVE_SETSOCKOPT 1
36186 curl_cv_func_setsockopt="yes"
36189 tst_compi_setsockopt_so_nonblock="unknown"
36190 tst_allow_setsockopt_so_nonblock="unknown"
36192 if test "$curl_cv_func_setsockopt" = "yes"; then
36193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36194 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36196 /* end confdefs.h. */
36199 $curl_includes_winsock2
36200 $curl_includes_sys_socket
36205 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36213 if ac_fn_c_try_compile "$LINENO"; then :
36215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36216 $as_echo "yes" >&6; }
36217 tst_compi_setsockopt_so_nonblock="yes"
36221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36222 $as_echo "no" >&6; }
36223 tst_compi_setsockopt_so_nonblock="no"
36226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36229 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36231 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36232 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36234 $as_echo "yes" >&6; }
36235 tst_allow_setsockopt_so_nonblock="yes"
36237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36238 $as_echo "no" >&6; }
36239 tst_allow_setsockopt_so_nonblock="no"
36243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36244 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36245 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36246 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36248 $as_echo "yes" >&6; }
36250 cat >>confdefs.h <<_ACEOF
36251 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36254 curl_cv_func_setsockopt_so_nonblock="yes"
36256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36257 $as_echo "no" >&6; }
36258 curl_cv_func_setsockopt_so_nonblock="no"
36262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36263 $as_echo "no" >&6; }
36264 curl_cv_func_setsockopt="no"
36268 curl_includes_signal="\
36269 /* includes start */
36270 #ifdef HAVE_SYS_TYPES_H
36271 # include <sys/types.h>
36273 #ifdef HAVE_SIGNAL_H
36274 # include <signal.h>
36276 /* includes end */"
36277 for ac_header in sys/types.h signal.h
36279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36280 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36283 cat >>confdefs.h <<_ACEOF
36284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36294 tst_links_sigaction="unknown"
36295 tst_proto_sigaction="unknown"
36296 tst_compi_sigaction="unknown"
36297 tst_allow_sigaction="unknown"
36299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36300 $as_echo_n "checking if sigaction can be linked... " >&6; }
36301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36302 /* end confdefs.h. */
36305 #define sigaction innocuous_sigaction
36307 # include <limits.h>
36309 # include <assert.h>
36316 #if defined __stub_sigaction || defined __stub___sigaction
36322 return sigaction ();
36328 if ac_fn_c_try_link "$LINENO"; then :
36330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36331 $as_echo "yes" >&6; }
36332 tst_links_sigaction="yes"
36336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36337 $as_echo "no" >&6; }
36338 tst_links_sigaction="no"
36341 rm -f core conftest.err conftest.$ac_objext \
36342 conftest$ac_exeext conftest.$ac_ext
36344 if test "$tst_links_sigaction" = "yes"; then
36345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36346 $as_echo_n "checking if sigaction is prototyped... " >&6; }
36347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36348 /* end confdefs.h. */
36350 $curl_includes_signal
36353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36354 $EGREP "sigaction" >/dev/null 2>&1; then :
36356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36357 $as_echo "yes" >&6; }
36358 tst_proto_sigaction="yes"
36362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36363 $as_echo "no" >&6; }
36364 tst_proto_sigaction="no"
36371 if test "$tst_proto_sigaction" = "yes"; then
36372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36373 $as_echo_n "checking if sigaction is compilable... " >&6; }
36374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36375 /* end confdefs.h. */
36378 $curl_includes_signal
36383 if(0 != sigaction(0, 0, 0))
36391 if ac_fn_c_try_compile "$LINENO"; then :
36393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36394 $as_echo "yes" >&6; }
36395 tst_compi_sigaction="yes"
36399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36400 $as_echo "no" >&6; }
36401 tst_compi_sigaction="no"
36404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36407 if test "$tst_compi_sigaction" = "yes"; then
36408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36409 $as_echo_n "checking if sigaction usage allowed... " >&6; }
36410 if test "x$curl_disallow_sigaction" != "xyes"; then
36411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36412 $as_echo "yes" >&6; }
36413 tst_allow_sigaction="yes"
36415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36416 $as_echo "no" >&6; }
36417 tst_allow_sigaction="no"
36421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36422 $as_echo_n "checking if sigaction might be used... " >&6; }
36423 if test "$tst_links_sigaction" = "yes" &&
36424 test "$tst_proto_sigaction" = "yes" &&
36425 test "$tst_compi_sigaction" = "yes" &&
36426 test "$tst_allow_sigaction" = "yes"; then
36427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36428 $as_echo "yes" >&6; }
36430 cat >>confdefs.h <<_ACEOF
36431 #define HAVE_SIGACTION 1
36434 curl_cv_func_sigaction="yes"
36436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36437 $as_echo "no" >&6; }
36438 curl_cv_func_sigaction="no"
36443 tst_links_siginterrupt="unknown"
36444 tst_proto_siginterrupt="unknown"
36445 tst_compi_siginterrupt="unknown"
36446 tst_allow_siginterrupt="unknown"
36448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36449 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
36450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36451 /* end confdefs.h. */
36454 #define siginterrupt innocuous_siginterrupt
36456 # include <limits.h>
36458 # include <assert.h>
36460 #undef siginterrupt
36464 char siginterrupt ();
36465 #if defined __stub_siginterrupt || defined __stub___siginterrupt
36471 return siginterrupt ();
36477 if ac_fn_c_try_link "$LINENO"; then :
36479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36480 $as_echo "yes" >&6; }
36481 tst_links_siginterrupt="yes"
36485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36486 $as_echo "no" >&6; }
36487 tst_links_siginterrupt="no"
36490 rm -f core conftest.err conftest.$ac_objext \
36491 conftest$ac_exeext conftest.$ac_ext
36493 if test "$tst_links_siginterrupt" = "yes"; then
36494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36495 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36497 /* end confdefs.h. */
36499 $curl_includes_signal
36502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36503 $EGREP "siginterrupt" >/dev/null 2>&1; then :
36505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36506 $as_echo "yes" >&6; }
36507 tst_proto_siginterrupt="yes"
36511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36512 $as_echo "no" >&6; }
36513 tst_proto_siginterrupt="no"
36520 if test "$tst_proto_siginterrupt" = "yes"; then
36521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
36522 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
36523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36524 /* end confdefs.h. */
36527 $curl_includes_signal
36532 if(0 != siginterrupt(0, 0))
36540 if ac_fn_c_try_compile "$LINENO"; then :
36542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36543 $as_echo "yes" >&6; }
36544 tst_compi_siginterrupt="yes"
36548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36549 $as_echo "no" >&6; }
36550 tst_compi_siginterrupt="no"
36553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36556 if test "$tst_compi_siginterrupt" = "yes"; then
36557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
36558 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
36559 if test "x$curl_disallow_siginterrupt" != "xyes"; then
36560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36561 $as_echo "yes" >&6; }
36562 tst_allow_siginterrupt="yes"
36564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36565 $as_echo "no" >&6; }
36566 tst_allow_siginterrupt="no"
36570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
36571 $as_echo_n "checking if siginterrupt might be used... " >&6; }
36572 if test "$tst_links_siginterrupt" = "yes" &&
36573 test "$tst_proto_siginterrupt" = "yes" &&
36574 test "$tst_compi_siginterrupt" = "yes" &&
36575 test "$tst_allow_siginterrupt" = "yes"; then
36576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36577 $as_echo "yes" >&6; }
36579 cat >>confdefs.h <<_ACEOF
36580 #define HAVE_SIGINTERRUPT 1
36583 curl_cv_func_siginterrupt="yes"
36585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36586 $as_echo "no" >&6; }
36587 curl_cv_func_siginterrupt="no"
36592 tst_links_signal="unknown"
36593 tst_proto_signal="unknown"
36594 tst_compi_signal="unknown"
36595 tst_allow_signal="unknown"
36597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
36598 $as_echo_n "checking if signal can be linked... " >&6; }
36599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36600 /* end confdefs.h. */
36603 #define signal innocuous_signal
36605 # include <limits.h>
36607 # include <assert.h>
36614 #if defined __stub_signal || defined __stub___signal
36626 if ac_fn_c_try_link "$LINENO"; then :
36628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36629 $as_echo "yes" >&6; }
36630 tst_links_signal="yes"
36634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36635 $as_echo "no" >&6; }
36636 tst_links_signal="no"
36639 rm -f core conftest.err conftest.$ac_objext \
36640 conftest$ac_exeext conftest.$ac_ext
36642 if test "$tst_links_signal" = "yes"; then
36643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
36644 $as_echo_n "checking if signal is prototyped... " >&6; }
36645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36646 /* end confdefs.h. */
36648 $curl_includes_signal
36651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36652 $EGREP "signal" >/dev/null 2>&1; then :
36654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36655 $as_echo "yes" >&6; }
36656 tst_proto_signal="yes"
36660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36661 $as_echo "no" >&6; }
36662 tst_proto_signal="no"
36669 if test "$tst_proto_signal" = "yes"; then
36670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
36671 $as_echo_n "checking if signal is compilable... " >&6; }
36672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36673 /* end confdefs.h. */
36676 $curl_includes_signal
36681 if(0 != signal(0, 0))
36689 if ac_fn_c_try_compile "$LINENO"; then :
36691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36692 $as_echo "yes" >&6; }
36693 tst_compi_signal="yes"
36697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36698 $as_echo "no" >&6; }
36699 tst_compi_signal="no"
36702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36705 if test "$tst_compi_signal" = "yes"; then
36706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
36707 $as_echo_n "checking if signal usage allowed... " >&6; }
36708 if test "x$curl_disallow_signal" != "xyes"; then
36709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36710 $as_echo "yes" >&6; }
36711 tst_allow_signal="yes"
36713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36714 $as_echo "no" >&6; }
36715 tst_allow_signal="no"
36719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
36720 $as_echo_n "checking if signal might be used... " >&6; }
36721 if test "$tst_links_signal" = "yes" &&
36722 test "$tst_proto_signal" = "yes" &&
36723 test "$tst_compi_signal" = "yes" &&
36724 test "$tst_allow_signal" = "yes"; then
36725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36726 $as_echo "yes" >&6; }
36728 cat >>confdefs.h <<_ACEOF
36729 #define HAVE_SIGNAL 1
36732 curl_cv_func_signal="yes"
36734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36735 $as_echo "no" >&6; }
36736 curl_cv_func_signal="no"
36740 curl_includes_setjmp="\
36741 /* includes start */
36742 #ifdef HAVE_SYS_TYPES_H
36743 # include <sys/types.h>
36745 #ifdef HAVE_SETJMP_H
36746 # include <setjmp.h>
36748 /* includes end */"
36749 for ac_header in sys/types.h setjmp.h
36751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36752 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
36754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36755 cat >>confdefs.h <<_ACEOF
36756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36766 tst_links_sigsetjmp="unknown"
36767 tst_macro_sigsetjmp="unknown"
36768 tst_proto_sigsetjmp="unknown"
36769 tst_compi_sigsetjmp="unknown"
36770 tst_allow_sigsetjmp="unknown"
36772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
36773 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
36774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36775 /* end confdefs.h. */
36778 #define sigsetjmp innocuous_sigsetjmp
36780 # include <limits.h>
36782 # include <assert.h>
36789 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
36795 return sigsetjmp ();
36801 if ac_fn_c_try_link "$LINENO"; then :
36803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36804 $as_echo "yes" >&6; }
36805 tst_links_sigsetjmp="yes"
36809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36810 $as_echo "no" >&6; }
36811 tst_links_sigsetjmp="no"
36814 rm -f core conftest.err conftest.$ac_objext \
36815 conftest$ac_exeext conftest.$ac_ext
36817 if test "$tst_links_sigsetjmp" = "no"; then
36818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
36819 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
36820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36821 /* end confdefs.h. */
36824 $curl_includes_setjmp
36830 if(0 != sigsetjmp(env, 0))
36838 if ac_fn_c_try_link "$LINENO"; then :
36840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36841 $as_echo "yes" >&6; }
36842 tst_macro_sigsetjmp="yes"
36846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36847 $as_echo "no" >&6; }
36848 tst_macro_sigsetjmp="no"
36851 rm -f core conftest.err conftest.$ac_objext \
36852 conftest$ac_exeext conftest.$ac_ext
36855 if test "$tst_links_sigsetjmp" = "yes"; then
36856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
36857 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
36858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36859 /* end confdefs.h. */
36861 $curl_includes_setjmp
36864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36865 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
36867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36868 $as_echo "yes" >&6; }
36869 tst_proto_sigsetjmp="yes"
36873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36874 $as_echo "no" >&6; }
36875 tst_proto_sigsetjmp="no"
36882 if test "$tst_proto_sigsetjmp" = "yes" ||
36883 test "$tst_macro_sigsetjmp" = "yes"; then
36884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
36885 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
36886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36887 /* end confdefs.h. */
36890 $curl_includes_setjmp
36896 if(0 != sigsetjmp(env, 0))
36904 if ac_fn_c_try_compile "$LINENO"; then :
36906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36907 $as_echo "yes" >&6; }
36908 tst_compi_sigsetjmp="yes"
36912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36913 $as_echo "no" >&6; }
36914 tst_compi_sigsetjmp="no"
36917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36920 if test "$tst_compi_sigsetjmp" = "yes"; then
36921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
36922 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
36923 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
36924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36925 $as_echo "yes" >&6; }
36926 tst_allow_sigsetjmp="yes"
36928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36929 $as_echo "no" >&6; }
36930 tst_allow_sigsetjmp="no"
36934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
36935 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
36936 if (test "$tst_proto_sigsetjmp" = "yes" ||
36937 test "$tst_macro_sigsetjmp" = "yes") &&
36938 test "$tst_compi_sigsetjmp" = "yes" &&
36939 test "$tst_allow_sigsetjmp" = "yes"; then
36940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36941 $as_echo "yes" >&6; }
36943 cat >>confdefs.h <<_ACEOF
36944 #define HAVE_SIGSETJMP 1
36947 curl_cv_func_sigsetjmp="yes"
36949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36950 $as_echo "no" >&6; }
36951 curl_cv_func_sigsetjmp="no"
36956 tst_links_socket="unknown"
36957 tst_proto_socket="unknown"
36958 tst_compi_socket="unknown"
36959 tst_allow_socket="unknown"
36961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
36962 $as_echo_n "checking if socket can be linked... " >&6; }
36963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36964 /* end confdefs.h. */
36967 $curl_includes_winsock2
36968 $curl_includes_sys_socket
36969 $curl_includes_socket
36974 if(0 != socket(0, 0, 0))
36982 if ac_fn_c_try_link "$LINENO"; then :
36984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36985 $as_echo "yes" >&6; }
36986 tst_links_socket="yes"
36990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36991 $as_echo "no" >&6; }
36992 tst_links_socket="no"
36995 rm -f core conftest.err conftest.$ac_objext \
36996 conftest$ac_exeext conftest.$ac_ext
36998 if test "$tst_links_socket" = "yes"; then
36999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37000 $as_echo_n "checking if socket is prototyped... " >&6; }
37001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37002 /* end confdefs.h. */
37004 $curl_includes_winsock2
37005 $curl_includes_sys_socket
37006 $curl_includes_socket
37009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37010 $EGREP "socket" >/dev/null 2>&1; then :
37012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37013 $as_echo "yes" >&6; }
37014 tst_proto_socket="yes"
37018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37019 $as_echo "no" >&6; }
37020 tst_proto_socket="no"
37027 if test "$tst_proto_socket" = "yes"; then
37028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37029 $as_echo_n "checking if socket is compilable... " >&6; }
37030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37031 /* end confdefs.h. */
37034 $curl_includes_winsock2
37035 $curl_includes_sys_socket
37036 $curl_includes_socket
37041 if(0 != socket(0, 0, 0))
37049 if ac_fn_c_try_compile "$LINENO"; then :
37051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37052 $as_echo "yes" >&6; }
37053 tst_compi_socket="yes"
37057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37058 $as_echo "no" >&6; }
37059 tst_compi_socket="no"
37062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37065 if test "$tst_compi_socket" = "yes"; then
37066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37067 $as_echo_n "checking if socket usage allowed... " >&6; }
37068 if test "x$curl_disallow_socket" != "xyes"; then
37069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37070 $as_echo "yes" >&6; }
37071 tst_allow_socket="yes"
37073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37074 $as_echo "no" >&6; }
37075 tst_allow_socket="no"
37079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37080 $as_echo_n "checking if socket might be used... " >&6; }
37081 if test "$tst_links_socket" = "yes" &&
37082 test "$tst_proto_socket" = "yes" &&
37083 test "$tst_compi_socket" = "yes" &&
37084 test "$tst_allow_socket" = "yes"; then
37085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37086 $as_echo "yes" >&6; }
37088 cat >>confdefs.h <<_ACEOF
37089 #define HAVE_SOCKET 1
37092 curl_cv_func_socket="yes"
37094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37095 $as_echo "no" >&6; }
37096 curl_cv_func_socket="no"
37101 tst_links_socketpair="unknown"
37102 tst_proto_socketpair="unknown"
37103 tst_compi_socketpair="unknown"
37104 tst_allow_socketpair="unknown"
37106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37107 $as_echo_n "checking if socketpair can be linked... " >&6; }
37108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37109 /* end confdefs.h. */
37112 #define socketpair innocuous_socketpair
37114 # include <limits.h>
37116 # include <assert.h>
37122 char socketpair ();
37123 #if defined __stub_socketpair || defined __stub___socketpair
37129 return socketpair ();
37135 if ac_fn_c_try_link "$LINENO"; then :
37137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37138 $as_echo "yes" >&6; }
37139 tst_links_socketpair="yes"
37143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37144 $as_echo "no" >&6; }
37145 tst_links_socketpair="no"
37148 rm -f core conftest.err conftest.$ac_objext \
37149 conftest$ac_exeext conftest.$ac_ext
37151 if test "$tst_links_socketpair" = "yes"; then
37152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37153 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37155 /* end confdefs.h. */
37157 $curl_includes_sys_socket
37158 $curl_includes_socket
37161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37162 $EGREP "socketpair" >/dev/null 2>&1; then :
37164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37165 $as_echo "yes" >&6; }
37166 tst_proto_socketpair="yes"
37170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37171 $as_echo "no" >&6; }
37172 tst_proto_socketpair="no"
37179 if test "$tst_proto_socketpair" = "yes"; then
37180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37181 $as_echo_n "checking if socketpair is compilable... " >&6; }
37182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37183 /* end confdefs.h. */
37186 $curl_includes_sys_socket
37187 $curl_includes_socket
37193 if(0 != socketpair(0, 0, 0, sv))
37201 if ac_fn_c_try_compile "$LINENO"; then :
37203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37204 $as_echo "yes" >&6; }
37205 tst_compi_socketpair="yes"
37209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37210 $as_echo "no" >&6; }
37211 tst_compi_socketpair="no"
37214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37217 if test "$tst_compi_socketpair" = "yes"; then
37218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37219 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37220 if test "x$curl_disallow_socketpair" != "xyes"; then
37221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37222 $as_echo "yes" >&6; }
37223 tst_allow_socketpair="yes"
37225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37226 $as_echo "no" >&6; }
37227 tst_allow_socketpair="no"
37231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37232 $as_echo_n "checking if socketpair might be used... " >&6; }
37233 if test "$tst_links_socketpair" = "yes" &&
37234 test "$tst_proto_socketpair" = "yes" &&
37235 test "$tst_compi_socketpair" = "yes" &&
37236 test "$tst_allow_socketpair" = "yes"; then
37237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37238 $as_echo "yes" >&6; }
37240 cat >>confdefs.h <<_ACEOF
37241 #define HAVE_SOCKETPAIR 1
37244 curl_cv_func_socketpair="yes"
37246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37247 $as_echo "no" >&6; }
37248 curl_cv_func_socketpair="no"
37253 tst_links_strcasecmp="unknown"
37254 tst_proto_strcasecmp="unknown"
37255 tst_compi_strcasecmp="unknown"
37256 tst_allow_strcasecmp="unknown"
37258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37259 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
37260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37261 /* end confdefs.h. */
37264 #define strcasecmp innocuous_strcasecmp
37266 # include <limits.h>
37268 # include <assert.h>
37274 char strcasecmp ();
37275 #if defined __stub_strcasecmp || defined __stub___strcasecmp
37281 return strcasecmp ();
37287 if ac_fn_c_try_link "$LINENO"; then :
37289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37290 $as_echo "yes" >&6; }
37291 tst_links_strcasecmp="yes"
37295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37296 $as_echo "no" >&6; }
37297 tst_links_strcasecmp="no"
37300 rm -f core conftest.err conftest.$ac_objext \
37301 conftest$ac_exeext conftest.$ac_ext
37303 if test "$tst_links_strcasecmp" = "yes"; then
37304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37305 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37307 /* end confdefs.h. */
37309 $curl_includes_string
37312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37313 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37316 $as_echo "yes" >&6; }
37317 tst_proto_strcasecmp="yes"
37321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37322 $as_echo "no" >&6; }
37323 tst_proto_strcasecmp="no"
37330 if test "$tst_proto_strcasecmp" = "yes"; then
37331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37332 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
37333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37334 /* end confdefs.h. */
37337 $curl_includes_string
37342 if(0 != strcasecmp(0, 0))
37350 if ac_fn_c_try_compile "$LINENO"; then :
37352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37353 $as_echo "yes" >&6; }
37354 tst_compi_strcasecmp="yes"
37358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37359 $as_echo "no" >&6; }
37360 tst_compi_strcasecmp="no"
37363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37366 if test "$tst_compi_strcasecmp" = "yes"; then
37367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37368 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37369 if test "x$curl_disallow_strcasecmp" != "xyes"; then
37370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37371 $as_echo "yes" >&6; }
37372 tst_allow_strcasecmp="yes"
37374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37375 $as_echo "no" >&6; }
37376 tst_allow_strcasecmp="no"
37380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37381 $as_echo_n "checking if strcasecmp might be used... " >&6; }
37382 if test "$tst_links_strcasecmp" = "yes" &&
37383 test "$tst_proto_strcasecmp" = "yes" &&
37384 test "$tst_compi_strcasecmp" = "yes" &&
37385 test "$tst_allow_strcasecmp" = "yes"; then
37386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37387 $as_echo "yes" >&6; }
37389 cat >>confdefs.h <<_ACEOF
37390 #define HAVE_STRCASECMP 1
37393 curl_cv_func_strcasecmp="yes"
37395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37396 $as_echo "no" >&6; }
37397 curl_cv_func_strcasecmp="no"
37402 tst_links_strcmpi="unknown"
37403 tst_proto_strcmpi="unknown"
37404 tst_compi_strcmpi="unknown"
37405 tst_allow_strcmpi="unknown"
37407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37408 $as_echo_n "checking if strcmpi can be linked... " >&6; }
37409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37410 /* end confdefs.h. */
37413 #define strcmpi innocuous_strcmpi
37415 # include <limits.h>
37417 # include <assert.h>
37424 #if defined __stub_strcmpi || defined __stub___strcmpi
37436 if ac_fn_c_try_link "$LINENO"; then :
37438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37439 $as_echo "yes" >&6; }
37440 tst_links_strcmpi="yes"
37444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37445 $as_echo "no" >&6; }
37446 tst_links_strcmpi="no"
37449 rm -f core conftest.err conftest.$ac_objext \
37450 conftest$ac_exeext conftest.$ac_ext
37452 if test "$tst_links_strcmpi" = "yes"; then
37453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37454 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
37455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37456 /* end confdefs.h. */
37458 $curl_includes_string
37461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37462 $EGREP "strcmpi" >/dev/null 2>&1; then :
37464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37465 $as_echo "yes" >&6; }
37466 tst_proto_strcmpi="yes"
37470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37471 $as_echo "no" >&6; }
37472 tst_proto_strcmpi="no"
37479 if test "$tst_proto_strcmpi" = "yes"; then
37480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37481 $as_echo_n "checking if strcmpi is compilable... " >&6; }
37482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37483 /* end confdefs.h. */
37486 $curl_includes_string
37491 if(0 != strcmpi(0, 0))
37499 if ac_fn_c_try_compile "$LINENO"; then :
37501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37502 $as_echo "yes" >&6; }
37503 tst_compi_strcmpi="yes"
37507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37508 $as_echo "no" >&6; }
37509 tst_compi_strcmpi="no"
37512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37515 if test "$tst_compi_strcmpi" = "yes"; then
37516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
37517 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
37518 if test "x$curl_disallow_strcmpi" != "xyes"; then
37519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37520 $as_echo "yes" >&6; }
37521 tst_allow_strcmpi="yes"
37523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37524 $as_echo "no" >&6; }
37525 tst_allow_strcmpi="no"
37529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
37530 $as_echo_n "checking if strcmpi might be used... " >&6; }
37531 if test "$tst_links_strcmpi" = "yes" &&
37532 test "$tst_proto_strcmpi" = "yes" &&
37533 test "$tst_compi_strcmpi" = "yes" &&
37534 test "$tst_allow_strcmpi" = "yes"; then
37535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37536 $as_echo "yes" >&6; }
37538 cat >>confdefs.h <<_ACEOF
37539 #define HAVE_STRCMPI 1
37542 curl_cv_func_strcmpi="yes"
37544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37545 $as_echo "no" >&6; }
37546 curl_cv_func_strcmpi="no"
37551 tst_links_strdup="unknown"
37552 tst_proto_strdup="unknown"
37553 tst_compi_strdup="unknown"
37554 tst_allow_strdup="unknown"
37556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
37557 $as_echo_n "checking if strdup can be linked... " >&6; }
37558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37559 /* end confdefs.h. */
37562 #define strdup innocuous_strdup
37564 # include <limits.h>
37566 # include <assert.h>
37573 #if defined __stub_strdup || defined __stub___strdup
37585 if ac_fn_c_try_link "$LINENO"; then :
37587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37588 $as_echo "yes" >&6; }
37589 tst_links_strdup="yes"
37593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37594 $as_echo "no" >&6; }
37595 tst_links_strdup="no"
37598 rm -f core conftest.err conftest.$ac_objext \
37599 conftest$ac_exeext conftest.$ac_ext
37601 if test "$tst_links_strdup" = "yes"; then
37602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
37603 $as_echo_n "checking if strdup is prototyped... " >&6; }
37604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37605 /* end confdefs.h. */
37607 $curl_includes_string
37610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37611 $EGREP "strdup" >/dev/null 2>&1; then :
37613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37614 $as_echo "yes" >&6; }
37615 tst_proto_strdup="yes"
37619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37620 $as_echo "no" >&6; }
37621 tst_proto_strdup="no"
37628 if test "$tst_proto_strdup" = "yes"; then
37629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
37630 $as_echo_n "checking if strdup is compilable... " >&6; }
37631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37632 /* end confdefs.h. */
37635 $curl_includes_string
37648 if ac_fn_c_try_compile "$LINENO"; then :
37650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37651 $as_echo "yes" >&6; }
37652 tst_compi_strdup="yes"
37656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37657 $as_echo "no" >&6; }
37658 tst_compi_strdup="no"
37661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37664 if test "$tst_compi_strdup" = "yes"; then
37665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
37666 $as_echo_n "checking if strdup usage allowed... " >&6; }
37667 if test "x$curl_disallow_strdup" != "xyes"; then
37668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37669 $as_echo "yes" >&6; }
37670 tst_allow_strdup="yes"
37672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37673 $as_echo "no" >&6; }
37674 tst_allow_strdup="no"
37678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
37679 $as_echo_n "checking if strdup might be used... " >&6; }
37680 if test "$tst_links_strdup" = "yes" &&
37681 test "$tst_proto_strdup" = "yes" &&
37682 test "$tst_compi_strdup" = "yes" &&
37683 test "$tst_allow_strdup" = "yes"; then
37684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37685 $as_echo "yes" >&6; }
37687 cat >>confdefs.h <<_ACEOF
37688 #define HAVE_STRDUP 1
37691 curl_cv_func_strdup="yes"
37693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37694 $as_echo "no" >&6; }
37695 curl_cv_func_strdup="no"
37700 tst_links_strerror_r="unknown"
37701 tst_proto_strerror_r="unknown"
37702 tst_compi_strerror_r="unknown"
37703 tst_glibc_strerror_r="unknown"
37704 tst_posix_strerror_r="unknown"
37705 tst_allow_strerror_r="unknown"
37706 tst_works_glibc_strerror_r="unknown"
37707 tst_works_posix_strerror_r="unknown"
37708 tst_glibc_strerror_r_type_arg3="unknown"
37709 tst_posix_strerror_r_type_arg3="unknown"
37711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
37712 $as_echo_n "checking if strerror_r can be linked... " >&6; }
37713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37714 /* end confdefs.h. */
37717 #define strerror_r innocuous_strerror_r
37719 # include <limits.h>
37721 # include <assert.h>
37727 char strerror_r ();
37728 #if defined __stub_strerror_r || defined __stub___strerror_r
37734 return strerror_r ();
37740 if ac_fn_c_try_link "$LINENO"; then :
37742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37743 $as_echo "yes" >&6; }
37744 tst_links_strerror_r="yes"
37748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37749 $as_echo "no" >&6; }
37750 tst_links_strerror_r="no"
37753 rm -f core conftest.err conftest.$ac_objext \
37754 conftest$ac_exeext conftest.$ac_ext
37756 if test "$tst_links_strerror_r" = "yes"; then
37757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
37758 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
37759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37760 /* end confdefs.h. */
37762 $curl_includes_string
37765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37766 $EGREP "strerror_r" >/dev/null 2>&1; then :
37768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37769 $as_echo "yes" >&6; }
37770 tst_proto_strerror_r="yes"
37774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37775 $as_echo "no" >&6; }
37776 tst_proto_strerror_r="no"
37783 if test "$tst_proto_strerror_r" = "yes"; then
37784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
37785 $as_echo_n "checking if strerror_r is compilable... " >&6; }
37786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37787 /* end confdefs.h. */
37790 $curl_includes_string
37795 if(0 != strerror_r(0, 0, 0))
37803 if ac_fn_c_try_compile "$LINENO"; then :
37805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37806 $as_echo "yes" >&6; }
37807 tst_compi_strerror_r="yes"
37811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37812 $as_echo "no" >&6; }
37813 tst_compi_strerror_r="no"
37816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37819 if test "$tst_compi_strerror_r" = "yes"; then
37820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
37821 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
37822 tst_glibc_strerror_r_type_arg3="unknown"
37823 for arg3 in 'size_t' 'int' 'unsigned int'; do
37824 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
37825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37826 /* end confdefs.h. */
37829 $curl_includes_string
37830 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
37835 if(0 != strerror_r(0, 0, 0))
37843 if ac_fn_c_try_compile "$LINENO"; then :
37845 tst_glibc_strerror_r_type_arg3="$arg3"
37848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37851 case "$tst_glibc_strerror_r_type_arg3" in
37853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37854 $as_echo "no" >&6; }
37855 tst_glibc_strerror_r="no"
37858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37859 $as_echo "yes" >&6; }
37860 tst_glibc_strerror_r="yes"
37865 if test "x$cross_compiling" != "xyes" &&
37866 test "$tst_glibc_strerror_r" = "yes"; then
37867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37868 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37869 if test "$cross_compiling" = yes; then :
37870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37872 as_fn_error $? "cannot run test program while cross compiling
37873 See \`config.log' for more details" "$LINENO" 5; }
37875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37876 /* end confdefs.h. */
37879 $curl_includes_stdlib
37880 $curl_includes_string
37881 # include <errno.h>
37889 string = strerror_r(EACCES, buffer, sizeof(buffer));
37891 exit(1); /* fail */
37893 exit(1); /* fail */
37902 if ac_fn_c_try_run "$LINENO"; then :
37904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37905 $as_echo "yes" >&6; }
37906 tst_works_glibc_strerror_r="yes"
37910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37911 $as_echo "no" >&6; }
37912 tst_works_glibc_strerror_r="no"
37915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37916 conftest.$ac_objext conftest.beam conftest.$ac_ext
37921 if test "$tst_compi_strerror_r" = "yes" &&
37922 test "$tst_works_glibc_strerror_r" != "yes"; then
37923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
37924 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
37925 tst_posix_strerror_r_type_arg3="unknown"
37926 for arg3 in 'size_t' 'int' 'unsigned int'; do
37927 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
37928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37929 /* end confdefs.h. */
37932 $curl_includes_string
37933 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
37938 if(0 != strerror_r(0, 0, 0))
37946 if ac_fn_c_try_compile "$LINENO"; then :
37948 tst_posix_strerror_r_type_arg3="$arg3"
37951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37954 case "$tst_posix_strerror_r_type_arg3" in
37956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37957 $as_echo "no" >&6; }
37958 tst_posix_strerror_r="no"
37961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37962 $as_echo "yes" >&6; }
37963 tst_posix_strerror_r="yes"
37968 if test "x$cross_compiling" != "xyes" &&
37969 test "$tst_posix_strerror_r" = "yes"; then
37970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37971 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37972 if test "$cross_compiling" = yes; then :
37973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37975 as_fn_error $? "cannot run test program while cross compiling
37976 See \`config.log' for more details" "$LINENO" 5; }
37978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37979 /* end confdefs.h. */
37982 $curl_includes_stdlib
37983 $curl_includes_string
37984 # include <errno.h>
37992 error = strerror_r(EACCES, buffer, sizeof(buffer));
37994 exit(1); /* fail */
37995 if(buffer[0] == '\0')
37996 exit(1); /* fail */
38005 if ac_fn_c_try_run "$LINENO"; then :
38007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38008 $as_echo "yes" >&6; }
38009 tst_works_posix_strerror_r="yes"
38013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38014 $as_echo "no" >&6; }
38015 tst_works_posix_strerror_r="no"
38018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38019 conftest.$ac_objext conftest.beam conftest.$ac_ext
38024 if test "$tst_works_glibc_strerror_r" = "yes"; then
38025 tst_posix_strerror_r="no"
38027 if test "$tst_works_posix_strerror_r" = "yes"; then
38028 tst_glibc_strerror_r="no"
38030 if test "$tst_glibc_strerror_r" = "yes" &&
38031 test "$tst_works_glibc_strerror_r" != "no" &&
38032 test "$tst_posix_strerror_r" != "yes"; then
38033 tst_allow_strerror_r="check"
38035 if test "$tst_posix_strerror_r" = "yes" &&
38036 test "$tst_works_posix_strerror_r" != "no" &&
38037 test "$tst_glibc_strerror_r" != "yes"; then
38038 tst_allow_strerror_r="check"
38040 if test "$tst_allow_strerror_r" = "check"; then
38041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38042 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
38043 if test "x$curl_disallow_strerror_r" != "xyes"; then
38044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38045 $as_echo "yes" >&6; }
38046 tst_allow_strerror_r="yes"
38048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38049 $as_echo "no" >&6; }
38050 tst_allow_strerror_r="no"
38054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38055 $as_echo_n "checking if strerror_r might be used... " >&6; }
38056 if test "$tst_links_strerror_r" = "yes" &&
38057 test "$tst_proto_strerror_r" = "yes" &&
38058 test "$tst_compi_strerror_r" = "yes" &&
38059 test "$tst_allow_strerror_r" = "yes"; then
38060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38061 $as_echo "yes" >&6; }
38062 if test "$tst_glibc_strerror_r" = "yes"; then
38064 cat >>confdefs.h <<_ACEOF
38065 #define HAVE_STRERROR_R 1
38069 cat >>confdefs.h <<_ACEOF
38070 #define HAVE_GLIBC_STRERROR_R 1
38074 cat >>confdefs.h <<_ACEOF
38075 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38079 if test "$tst_posix_strerror_r" = "yes"; then
38081 cat >>confdefs.h <<_ACEOF
38082 #define HAVE_STRERROR_R 1
38086 cat >>confdefs.h <<_ACEOF
38087 #define HAVE_POSIX_STRERROR_R 1
38091 cat >>confdefs.h <<_ACEOF
38092 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38096 curl_cv_func_strerror_r="yes"
38098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38099 $as_echo "no" >&6; }
38100 curl_cv_func_strerror_r="no"
38103 if test "$tst_compi_strerror_r" = "yes" &&
38104 test "$tst_allow_strerror_r" = "unknown"; then
38105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38106 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38112 tst_links_stricmp="unknown"
38113 tst_proto_stricmp="unknown"
38114 tst_compi_stricmp="unknown"
38115 tst_allow_stricmp="unknown"
38117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38118 $as_echo_n "checking if stricmp can be linked... " >&6; }
38119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38120 /* end confdefs.h. */
38123 #define stricmp innocuous_stricmp
38125 # include <limits.h>
38127 # include <assert.h>
38134 #if defined __stub_stricmp || defined __stub___stricmp
38146 if ac_fn_c_try_link "$LINENO"; then :
38148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38149 $as_echo "yes" >&6; }
38150 tst_links_stricmp="yes"
38154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38155 $as_echo "no" >&6; }
38156 tst_links_stricmp="no"
38159 rm -f core conftest.err conftest.$ac_objext \
38160 conftest$ac_exeext conftest.$ac_ext
38162 if test "$tst_links_stricmp" = "yes"; then
38163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38164 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38166 /* end confdefs.h. */
38168 $curl_includes_string
38171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38172 $EGREP "stricmp" >/dev/null 2>&1; then :
38174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38175 $as_echo "yes" >&6; }
38176 tst_proto_stricmp="yes"
38180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38181 $as_echo "no" >&6; }
38182 tst_proto_stricmp="no"
38189 if test "$tst_proto_stricmp" = "yes"; then
38190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38191 $as_echo_n "checking if stricmp is compilable... " >&6; }
38192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38193 /* end confdefs.h. */
38196 $curl_includes_string
38201 if(0 != stricmp(0, 0))
38209 if ac_fn_c_try_compile "$LINENO"; then :
38211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38212 $as_echo "yes" >&6; }
38213 tst_compi_stricmp="yes"
38217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38218 $as_echo "no" >&6; }
38219 tst_compi_stricmp="no"
38222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38225 if test "$tst_compi_stricmp" = "yes"; then
38226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38227 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38228 if test "x$curl_disallow_stricmp" != "xyes"; then
38229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38230 $as_echo "yes" >&6; }
38231 tst_allow_stricmp="yes"
38233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38234 $as_echo "no" >&6; }
38235 tst_allow_stricmp="no"
38239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38240 $as_echo_n "checking if stricmp might be used... " >&6; }
38241 if test "$tst_links_stricmp" = "yes" &&
38242 test "$tst_proto_stricmp" = "yes" &&
38243 test "$tst_compi_stricmp" = "yes" &&
38244 test "$tst_allow_stricmp" = "yes"; then
38245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38246 $as_echo "yes" >&6; }
38248 cat >>confdefs.h <<_ACEOF
38249 #define HAVE_STRICMP 1
38252 curl_cv_func_stricmp="yes"
38254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38255 $as_echo "no" >&6; }
38256 curl_cv_func_stricmp="no"
38261 tst_links_strncasecmp="unknown"
38262 tst_proto_strncasecmp="unknown"
38263 tst_compi_strncasecmp="unknown"
38264 tst_allow_strncasecmp="unknown"
38266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38267 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
38268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38269 /* end confdefs.h. */
38272 #define strncasecmp innocuous_strncasecmp
38274 # include <limits.h>
38276 # include <assert.h>
38282 char strncasecmp ();
38283 #if defined __stub_strncasecmp || defined __stub___strncasecmp
38289 return strncasecmp ();
38295 if ac_fn_c_try_link "$LINENO"; then :
38297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38298 $as_echo "yes" >&6; }
38299 tst_links_strncasecmp="yes"
38303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38304 $as_echo "no" >&6; }
38305 tst_links_strncasecmp="no"
38308 rm -f core conftest.err conftest.$ac_objext \
38309 conftest$ac_exeext conftest.$ac_ext
38311 if test "$tst_links_strncasecmp" = "yes"; then
38312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38313 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38315 /* end confdefs.h. */
38317 $curl_includes_string
38320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38321 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38324 $as_echo "yes" >&6; }
38325 tst_proto_strncasecmp="yes"
38329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38330 $as_echo "no" >&6; }
38331 tst_proto_strncasecmp="no"
38338 if test "$tst_proto_strncasecmp" = "yes"; then
38339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38340 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
38341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38342 /* end confdefs.h. */
38345 $curl_includes_string
38350 if(0 != strncasecmp(0, 0, 0))
38358 if ac_fn_c_try_compile "$LINENO"; then :
38360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38361 $as_echo "yes" >&6; }
38362 tst_compi_strncasecmp="yes"
38366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38367 $as_echo "no" >&6; }
38368 tst_compi_strncasecmp="no"
38371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38374 if test "$tst_compi_strncasecmp" = "yes"; then
38375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38376 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38377 if test "x$curl_disallow_strncasecmp" != "xyes"; then
38378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38379 $as_echo "yes" >&6; }
38380 tst_allow_strncasecmp="yes"
38382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38383 $as_echo "no" >&6; }
38384 tst_allow_strncasecmp="no"
38388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38389 $as_echo_n "checking if strncasecmp might be used... " >&6; }
38390 if test "$tst_links_strncasecmp" = "yes" &&
38391 test "$tst_proto_strncasecmp" = "yes" &&
38392 test "$tst_compi_strncasecmp" = "yes" &&
38393 test "$tst_allow_strncasecmp" = "yes"; then
38394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38395 $as_echo "yes" >&6; }
38397 cat >>confdefs.h <<_ACEOF
38398 #define HAVE_STRNCASECMP 1
38401 curl_cv_func_strncasecmp="yes"
38403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38404 $as_echo "no" >&6; }
38405 curl_cv_func_strncasecmp="no"
38410 tst_links_strncmpi="unknown"
38411 tst_proto_strncmpi="unknown"
38412 tst_compi_strncmpi="unknown"
38413 tst_allow_strncmpi="unknown"
38415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38416 $as_echo_n "checking if strncmpi can be linked... " >&6; }
38417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38418 /* end confdefs.h. */
38421 #define strncmpi innocuous_strncmpi
38423 # include <limits.h>
38425 # include <assert.h>
38432 #if defined __stub_strncmpi || defined __stub___strncmpi
38438 return strncmpi ();
38444 if ac_fn_c_try_link "$LINENO"; then :
38446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38447 $as_echo "yes" >&6; }
38448 tst_links_strncmpi="yes"
38452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38453 $as_echo "no" >&6; }
38454 tst_links_strncmpi="no"
38457 rm -f core conftest.err conftest.$ac_objext \
38458 conftest$ac_exeext conftest.$ac_ext
38460 if test "$tst_links_strncmpi" = "yes"; then
38461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38462 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
38463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38464 /* end confdefs.h. */
38466 $curl_includes_string
38469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38470 $EGREP "strncmpi" >/dev/null 2>&1; then :
38472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38473 $as_echo "yes" >&6; }
38474 tst_proto_strncmpi="yes"
38478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38479 $as_echo "no" >&6; }
38480 tst_proto_strncmpi="no"
38487 if test "$tst_proto_strncmpi" = "yes"; then
38488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38489 $as_echo_n "checking if strncmpi is compilable... " >&6; }
38490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38491 /* end confdefs.h. */
38494 $curl_includes_string
38499 if(0 != strncmpi(0, 0))
38507 if ac_fn_c_try_compile "$LINENO"; then :
38509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38510 $as_echo "yes" >&6; }
38511 tst_compi_strncmpi="yes"
38515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38516 $as_echo "no" >&6; }
38517 tst_compi_strncmpi="no"
38520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38523 if test "$tst_compi_strncmpi" = "yes"; then
38524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
38525 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
38526 if test "x$curl_disallow_strncmpi" != "xyes"; then
38527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38528 $as_echo "yes" >&6; }
38529 tst_allow_strncmpi="yes"
38531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38532 $as_echo "no" >&6; }
38533 tst_allow_strncmpi="no"
38537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
38538 $as_echo_n "checking if strncmpi might be used... " >&6; }
38539 if test "$tst_links_strncmpi" = "yes" &&
38540 test "$tst_proto_strncmpi" = "yes" &&
38541 test "$tst_compi_strncmpi" = "yes" &&
38542 test "$tst_allow_strncmpi" = "yes"; then
38543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38544 $as_echo "yes" >&6; }
38546 cat >>confdefs.h <<_ACEOF
38547 #define HAVE_STRNCMPI 1
38550 curl_cv_func_strncmpi="yes"
38552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38553 $as_echo "no" >&6; }
38554 curl_cv_func_strncmpi="no"
38559 tst_links_strnicmp="unknown"
38560 tst_proto_strnicmp="unknown"
38561 tst_compi_strnicmp="unknown"
38562 tst_allow_strnicmp="unknown"
38564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
38565 $as_echo_n "checking if strnicmp can be linked... " >&6; }
38566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38567 /* end confdefs.h. */
38570 #define strnicmp innocuous_strnicmp
38572 # include <limits.h>
38574 # include <assert.h>
38581 #if defined __stub_strnicmp || defined __stub___strnicmp
38587 return strnicmp ();
38593 if ac_fn_c_try_link "$LINENO"; then :
38595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38596 $as_echo "yes" >&6; }
38597 tst_links_strnicmp="yes"
38601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38602 $as_echo "no" >&6; }
38603 tst_links_strnicmp="no"
38606 rm -f core conftest.err conftest.$ac_objext \
38607 conftest$ac_exeext conftest.$ac_ext
38609 if test "$tst_links_strnicmp" = "yes"; then
38610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
38611 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
38612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38613 /* end confdefs.h. */
38615 $curl_includes_string
38618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38619 $EGREP "strnicmp" >/dev/null 2>&1; then :
38621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38622 $as_echo "yes" >&6; }
38623 tst_proto_strnicmp="yes"
38627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38628 $as_echo "no" >&6; }
38629 tst_proto_strnicmp="no"
38636 if test "$tst_proto_strnicmp" = "yes"; then
38637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
38638 $as_echo_n "checking if strnicmp is compilable... " >&6; }
38639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38640 /* end confdefs.h. */
38643 $curl_includes_string
38648 if(0 != strnicmp(0, 0))
38656 if ac_fn_c_try_compile "$LINENO"; then :
38658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38659 $as_echo "yes" >&6; }
38660 tst_compi_strnicmp="yes"
38664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38665 $as_echo "no" >&6; }
38666 tst_compi_strnicmp="no"
38669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38672 if test "$tst_compi_strnicmp" = "yes"; then
38673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
38674 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
38675 if test "x$curl_disallow_strnicmp" != "xyes"; then
38676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38677 $as_echo "yes" >&6; }
38678 tst_allow_strnicmp="yes"
38680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38681 $as_echo "no" >&6; }
38682 tst_allow_strnicmp="no"
38686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
38687 $as_echo_n "checking if strnicmp might be used... " >&6; }
38688 if test "$tst_links_strnicmp" = "yes" &&
38689 test "$tst_proto_strnicmp" = "yes" &&
38690 test "$tst_compi_strnicmp" = "yes" &&
38691 test "$tst_allow_strnicmp" = "yes"; then
38692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38693 $as_echo "yes" >&6; }
38695 cat >>confdefs.h <<_ACEOF
38696 #define HAVE_STRNICMP 1
38699 curl_cv_func_strnicmp="yes"
38701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38702 $as_echo "no" >&6; }
38703 curl_cv_func_strnicmp="no"
38708 tst_links_strstr="unknown"
38709 tst_proto_strstr="unknown"
38710 tst_compi_strstr="unknown"
38711 tst_allow_strstr="unknown"
38713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
38714 $as_echo_n "checking if strstr can be linked... " >&6; }
38715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38716 /* end confdefs.h. */
38719 #define strstr innocuous_strstr
38721 # include <limits.h>
38723 # include <assert.h>
38730 #if defined __stub_strstr || defined __stub___strstr
38742 if ac_fn_c_try_link "$LINENO"; then :
38744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38745 $as_echo "yes" >&6; }
38746 tst_links_strstr="yes"
38750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38751 $as_echo "no" >&6; }
38752 tst_links_strstr="no"
38755 rm -f core conftest.err conftest.$ac_objext \
38756 conftest$ac_exeext conftest.$ac_ext
38758 if test "$tst_links_strstr" = "yes"; then
38759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
38760 $as_echo_n "checking if strstr is prototyped... " >&6; }
38761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38762 /* end confdefs.h. */
38764 $curl_includes_string
38767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38768 $EGREP "strstr" >/dev/null 2>&1; then :
38770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38771 $as_echo "yes" >&6; }
38772 tst_proto_strstr="yes"
38776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38777 $as_echo "no" >&6; }
38778 tst_proto_strstr="no"
38785 if test "$tst_proto_strstr" = "yes"; then
38786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
38787 $as_echo_n "checking if strstr is compilable... " >&6; }
38788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38789 /* end confdefs.h. */
38792 $curl_includes_string
38797 if(0 != strstr(0, 0))
38805 if ac_fn_c_try_compile "$LINENO"; then :
38807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38808 $as_echo "yes" >&6; }
38809 tst_compi_strstr="yes"
38813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38814 $as_echo "no" >&6; }
38815 tst_compi_strstr="no"
38818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38821 if test "$tst_compi_strstr" = "yes"; then
38822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
38823 $as_echo_n "checking if strstr usage allowed... " >&6; }
38824 if test "x$curl_disallow_strstr" != "xyes"; then
38825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38826 $as_echo "yes" >&6; }
38827 tst_allow_strstr="yes"
38829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38830 $as_echo "no" >&6; }
38831 tst_allow_strstr="no"
38835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
38836 $as_echo_n "checking if strstr might be used... " >&6; }
38837 if test "$tst_links_strstr" = "yes" &&
38838 test "$tst_proto_strstr" = "yes" &&
38839 test "$tst_compi_strstr" = "yes" &&
38840 test "$tst_allow_strstr" = "yes"; then
38841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38842 $as_echo "yes" >&6; }
38844 cat >>confdefs.h <<_ACEOF
38845 #define HAVE_STRSTR 1
38848 curl_cv_func_strstr="yes"
38850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38851 $as_echo "no" >&6; }
38852 curl_cv_func_strstr="no"
38857 tst_links_strtok_r="unknown"
38858 tst_proto_strtok_r="unknown"
38859 tst_compi_strtok_r="unknown"
38860 tst_allow_strtok_r="unknown"
38862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
38863 $as_echo_n "checking if strtok_r can be linked... " >&6; }
38864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38865 /* end confdefs.h. */
38868 #define strtok_r innocuous_strtok_r
38870 # include <limits.h>
38872 # include <assert.h>
38879 #if defined __stub_strtok_r || defined __stub___strtok_r
38885 return strtok_r ();
38891 if ac_fn_c_try_link "$LINENO"; then :
38893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38894 $as_echo "yes" >&6; }
38895 tst_links_strtok_r="yes"
38899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38900 $as_echo "no" >&6; }
38901 tst_links_strtok_r="no"
38904 rm -f core conftest.err conftest.$ac_objext \
38905 conftest$ac_exeext conftest.$ac_ext
38907 if test "$tst_links_strtok_r" = "yes"; then
38908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
38909 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
38910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38911 /* end confdefs.h. */
38913 $curl_includes_string
38916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38917 $EGREP "strtok_r" >/dev/null 2>&1; then :
38919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38920 $as_echo "yes" >&6; }
38921 tst_proto_strtok_r="yes"
38925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38926 $as_echo "no" >&6; }
38927 tst_proto_strtok_r="no"
38934 if test "$tst_proto_strtok_r" = "yes"; then
38935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
38936 $as_echo_n "checking if strtok_r is compilable... " >&6; }
38937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38938 /* end confdefs.h. */
38941 $curl_includes_string
38946 if(0 != strtok_r(0, 0, 0))
38954 if ac_fn_c_try_compile "$LINENO"; then :
38956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38957 $as_echo "yes" >&6; }
38958 tst_compi_strtok_r="yes"
38962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38963 $as_echo "no" >&6; }
38964 tst_compi_strtok_r="no"
38967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38970 if test "$tst_compi_strtok_r" = "yes"; then
38971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
38972 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
38973 if test "x$curl_disallow_strtok_r" != "xyes"; then
38974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38975 $as_echo "yes" >&6; }
38976 tst_allow_strtok_r="yes"
38978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38979 $as_echo "no" >&6; }
38980 tst_allow_strtok_r="no"
38984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
38985 $as_echo_n "checking if strtok_r might be used... " >&6; }
38986 if test "$tst_links_strtok_r" = "yes" &&
38987 test "$tst_proto_strtok_r" = "yes" &&
38988 test "$tst_compi_strtok_r" = "yes" &&
38989 test "$tst_allow_strtok_r" = "yes"; then
38990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38991 $as_echo "yes" >&6; }
38993 cat >>confdefs.h <<_ACEOF
38994 #define HAVE_STRTOK_R 1
38997 curl_cv_func_strtok_r="yes"
38999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39000 $as_echo "no" >&6; }
39001 curl_cv_func_strtok_r="no"
39006 tst_links_strtoll="unknown"
39007 tst_proto_strtoll="unknown"
39008 tst_compi_strtoll="unknown"
39009 tst_allow_strtoll="unknown"
39011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39012 $as_echo_n "checking if strtoll can be linked... " >&6; }
39013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39014 /* end confdefs.h. */
39017 #define strtoll innocuous_strtoll
39019 # include <limits.h>
39021 # include <assert.h>
39028 #if defined __stub_strtoll || defined __stub___strtoll
39040 if ac_fn_c_try_link "$LINENO"; then :
39042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39043 $as_echo "yes" >&6; }
39044 tst_links_strtoll="yes"
39048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39049 $as_echo "no" >&6; }
39050 tst_links_strtoll="no"
39053 rm -f core conftest.err conftest.$ac_objext \
39054 conftest$ac_exeext conftest.$ac_ext
39056 if test "$tst_links_strtoll" = "yes"; then
39057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39058 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39060 /* end confdefs.h. */
39062 $curl_includes_stdlib
39065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39066 $EGREP "strtoll" >/dev/null 2>&1; then :
39068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39069 $as_echo "yes" >&6; }
39070 tst_proto_strtoll="yes"
39074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39075 $as_echo "no" >&6; }
39076 tst_proto_strtoll="no"
39083 if test "$tst_proto_strtoll" = "yes"; then
39084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39085 $as_echo_n "checking if strtoll is compilable... " >&6; }
39086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39087 /* end confdefs.h. */
39090 $curl_includes_stdlib
39095 if(0 != strtoll(0, 0, 0))
39103 if ac_fn_c_try_compile "$LINENO"; then :
39105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39106 $as_echo "yes" >&6; }
39107 tst_compi_strtoll="yes"
39111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39112 $as_echo "no" >&6; }
39113 tst_compi_strtoll="no"
39116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39119 if test "$tst_compi_strtoll" = "yes"; then
39120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39121 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39122 if test "x$curl_disallow_strtoll" != "xyes"; then
39123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39124 $as_echo "yes" >&6; }
39125 tst_allow_strtoll="yes"
39127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39128 $as_echo "no" >&6; }
39129 tst_allow_strtoll="no"
39133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39134 $as_echo_n "checking if strtoll might be used... " >&6; }
39135 if test "$tst_links_strtoll" = "yes" &&
39136 test "$tst_proto_strtoll" = "yes" &&
39137 test "$tst_compi_strtoll" = "yes" &&
39138 test "$tst_allow_strtoll" = "yes"; then
39139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39140 $as_echo "yes" >&6; }
39142 cat >>confdefs.h <<_ACEOF
39143 #define HAVE_STRTOLL 1
39146 curl_cv_func_strtoll="yes"
39148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39149 $as_echo "no" >&6; }
39150 curl_cv_func_strtoll="no"
39154 curl_includes_sys_uio="\
39155 /* includes start */
39156 #ifdef HAVE_SYS_TYPES_H
39157 # include <sys/types.h>
39159 #ifdef HAVE_SYS_UIO_H
39160 # include <sys/uio.h>
39162 /* includes end */"
39163 for ac_header in sys/types.h sys/uio.h
39165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39169 cat >>confdefs.h <<_ACEOF
39170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39180 tst_links_writev="unknown"
39181 tst_proto_writev="unknown"
39182 tst_compi_writev="unknown"
39183 tst_allow_writev="unknown"
39185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39186 $as_echo_n "checking if writev can be linked... " >&6; }
39187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39188 /* end confdefs.h. */
39191 #define writev innocuous_writev
39193 # include <limits.h>
39195 # include <assert.h>
39202 #if defined __stub_writev || defined __stub___writev
39214 if ac_fn_c_try_link "$LINENO"; then :
39216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39217 $as_echo "yes" >&6; }
39218 tst_links_writev="yes"
39222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39223 $as_echo "no" >&6; }
39224 tst_links_writev="no"
39227 rm -f core conftest.err conftest.$ac_objext \
39228 conftest$ac_exeext conftest.$ac_ext
39230 if test "$tst_links_writev" = "yes"; then
39231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39232 $as_echo_n "checking if writev is prototyped... " >&6; }
39233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39234 /* end confdefs.h. */
39236 $curl_includes_sys_uio
39239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39240 $EGREP "writev" >/dev/null 2>&1; then :
39242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39243 $as_echo "yes" >&6; }
39244 tst_proto_writev="yes"
39248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39249 $as_echo "no" >&6; }
39250 tst_proto_writev="no"
39257 if test "$tst_proto_writev" = "yes"; then
39258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39259 $as_echo_n "checking if writev is compilable... " >&6; }
39260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39261 /* end confdefs.h. */
39264 $curl_includes_sys_uio
39269 if(0 != writev(0, 0, 0))
39277 if ac_fn_c_try_compile "$LINENO"; then :
39279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39280 $as_echo "yes" >&6; }
39281 tst_compi_writev="yes"
39285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39286 $as_echo "no" >&6; }
39287 tst_compi_writev="no"
39290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39293 if test "$tst_compi_writev" = "yes"; then
39294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39295 $as_echo_n "checking if writev usage allowed... " >&6; }
39296 if test "x$curl_disallow_writev" != "xyes"; then
39297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39298 $as_echo "yes" >&6; }
39299 tst_allow_writev="yes"
39301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39302 $as_echo "no" >&6; }
39303 tst_allow_writev="no"
39307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39308 $as_echo_n "checking if writev might be used... " >&6; }
39309 if test "$tst_links_writev" = "yes" &&
39310 test "$tst_proto_writev" = "yes" &&
39311 test "$tst_compi_writev" = "yes" &&
39312 test "$tst_allow_writev" = "yes"; then
39313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39314 $as_echo "yes" >&6; }
39316 cat >>confdefs.h <<_ACEOF
39317 #define HAVE_WRITEV 1
39320 curl_cv_func_writev="yes"
39322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39323 $as_echo "no" >&6; }
39324 curl_cv_func_writev="no"
39332 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39333 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39337 for ac_func in fork \
39357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39360 cat >>confdefs.h <<_ACEOF
39361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39368 eval skipcheck=\$skipcheck_$func
39369 if test "x$skipcheck" != "xyes"; then
39370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39371 $as_echo_n "checking deeper for $func... " >&6; }
39372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39373 /* end confdefs.h. */
39387 if ac_fn_c_try_link "$LINENO"; then :
39389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39390 $as_echo "yes" >&6; }
39391 eval "ac_cv_func_$func=yes"
39393 cat >>confdefs.h <<_ACEOF
39394 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39401 $as_echo "but still no" >&6; }
39404 rm -f core conftest.err conftest.$ac_objext \
39405 conftest$ac_exeext conftest.$ac_ext
39413 for ac_header in sys/types.h sys/socket.h netdb.h
39415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39416 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39417 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39418 cat >>confdefs.h <<_ACEOF
39419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
39428 $as_echo_n "checking for getnameinfo... " >&6; }
39429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39430 /* end confdefs.h. */
39433 #define getnameinfo innocuous_getnameinfo
39435 # include <limits.h>
39437 # include <assert.h>
39443 char getnameinfo ();
39444 #if defined __stub_getnameinfo || defined __stub___getnameinfo
39450 return getnameinfo ();
39456 if ac_fn_c_try_link "$LINENO"; then :
39458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39459 $as_echo "yes" >&6; }
39460 curl_cv_getnameinfo="yes"
39464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39465 $as_echo "no" >&6; }
39466 curl_cv_getnameinfo="no"
39469 rm -f core conftest.err conftest.$ac_objext \
39470 conftest$ac_exeext conftest.$ac_ext
39472 if test "$curl_cv_getnameinfo" != "yes"; then
39473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
39474 $as_echo_n "checking deeper for getnameinfo... " >&6; }
39475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39476 /* end confdefs.h. */
39490 if ac_fn_c_try_link "$LINENO"; then :
39492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39493 $as_echo "yes" >&6; }
39494 curl_cv_getnameinfo="yes"
39498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39499 $as_echo "but still no" >&6; }
39500 curl_cv_getnameinfo="no"
39503 rm -f core conftest.err conftest.$ac_objext \
39504 conftest$ac_exeext conftest.$ac_ext
39507 if test "$curl_cv_getnameinfo" != "yes"; then
39508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
39509 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
39510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39511 /* end confdefs.h. */
39515 #ifdef HAVE_WINDOWS_H
39516 #ifndef WIN32_LEAN_AND_MEAN
39517 #define WIN32_LEAN_AND_MEAN
39519 #include <windows.h>
39520 #ifdef HAVE_WINSOCK2_H
39521 #include <winsock2.h>
39522 #ifdef HAVE_WS2TCPIP_H
39523 #include <ws2tcpip.h>
39527 #ifdef HAVE_SYS_TYPES_H
39528 #include <sys/types.h>
39530 #ifdef HAVE_SYS_SOCKET_H
39531 #include <sys/socket.h>
39533 #ifdef HAVE_NETDB_H
39541 getnameinfo(0, 0, 0, 0, 0, 0, 0);
39548 if ac_fn_c_try_link "$LINENO"; then :
39550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39551 $as_echo "yes" >&6; }
39552 curl_cv_getnameinfo="yes"
39556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39557 $as_echo "but still no" >&6; }
39558 curl_cv_getnameinfo="no"
39561 rm -f core conftest.err conftest.$ac_objext \
39562 conftest$ac_exeext conftest.$ac_ext
39565 if test "$curl_cv_getnameinfo" = "yes"; then
39566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
39567 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
39568 if ${curl_cv_func_getnameinfo_args+:} false; then :
39569 $as_echo_n "(cached) " >&6
39572 curl_cv_func_getnameinfo_args="unknown"
39573 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
39574 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
39575 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
39576 for gni_arg7 in 'int' 'unsigned int'; do
39577 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39579 /* end confdefs.h. */
39583 #ifdef HAVE_WINDOWS_H
39584 #ifndef WIN32_LEAN_AND_MEAN
39585 #define WIN32_LEAN_AND_MEAN
39587 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
39588 #undef _WIN32_WINNT
39589 #define _WIN32_WINNT 0x0501
39591 #include <windows.h>
39592 #ifdef HAVE_WINSOCK2_H
39593 #include <winsock2.h>
39594 #ifdef HAVE_WS2TCPIP_H
39595 #include <ws2tcpip.h>
39598 #define GNICALLCONV WSAAPI
39600 #ifdef HAVE_SYS_TYPES_H
39601 #include <sys/types.h>
39603 #ifdef HAVE_SYS_SOCKET_H
39604 #include <sys/socket.h>
39606 #ifdef HAVE_NETDB_H
39609 #define GNICALLCONV
39611 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
39612 char *, $gni_arg46,
39613 char *, $gni_arg46,
39620 $gni_arg46 hostlen=0;
39621 $gni_arg46 servlen=0;
39623 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
39630 if ac_fn_c_try_compile "$LINENO"; then :
39632 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
39635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
39644 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
39645 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
39647 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
39648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
39649 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
39651 gni_prev_IFS=$IFS; IFS=','
39652 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
39656 gni_qual_type_arg1=$1
39659 cat >>confdefs.h <<_ACEOF
39660 #define GETNAMEINFO_TYPE_ARG2 $2
39664 cat >>confdefs.h <<_ACEOF
39665 #define GETNAMEINFO_TYPE_ARG46 $3
39669 cat >>confdefs.h <<_ACEOF
39670 #define GETNAMEINFO_TYPE_ARG7 $4
39676 case $prev_sh_opts in
39684 case "$gni_qual_type_arg1" in
39686 gni_qual_arg1=const
39687 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
39691 gni_type_arg1=$gni_qual_type_arg1
39696 cat >>confdefs.h <<_ACEOF
39697 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
39701 cat >>confdefs.h <<_ACEOF
39702 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
39706 case $prev_sh_opts in
39715 cat >>confdefs.h <<_ACEOF
39716 #define HAVE_GETNAMEINFO 1
39719 curl_cv_func_getnameinfo="yes"
39724 if test "$ipv6" = "yes"; then
39725 if test "$curl_cv_func_getaddrinfo" = "yes"; then
39727 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
39733 for ac_header in stdio.h sys/types.h sys/socket.h \
39734 netdb.h netinet/in.h arpa/inet.h
39736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39737 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39739 cat >>confdefs.h <<_ACEOF
39740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
39749 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
39750 if ${curl_cv_working_ni_withscopeid+:} false; then :
39751 $as_echo_n "(cached) " >&6
39754 if test "$cross_compiling" = yes; then :
39756 # Program is not run when cross-compiling. So we assume
39757 # NI_WITHSCOPEID will work if we are able to compile it.
39758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39759 /* end confdefs.h. */
39762 #include <sys/types.h>
39763 #include <sys/socket.h>
39769 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39776 if ac_fn_c_try_compile "$LINENO"; then :
39778 curl_cv_working_ni_withscopeid="yes"
39782 curl_cv_working_ni_withscopeid="no"
39785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
39788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39789 /* end confdefs.h. */
39792 #ifdef HAVE_STDLIB_H
39793 #include <stdlib.h>
39795 #ifdef HAVE_STDIO_H
39798 #ifdef HAVE_SYS_TYPES_H
39799 #include <sys/types.h>
39801 #ifdef HAVE_SYS_SOCKET_H
39802 #include <sys/socket.h>
39804 #ifdef HAVE_NETDB_H
39807 #ifdef HAVE_NETINET_IN_H
39808 #include <netinet/in.h>
39810 #ifdef HAVE_ARPA_INET_H
39811 #include <arpa/inet.h>
39817 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
39818 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
39819 struct sockaddr_storage sa;
39821 unsigned char sa[256];
39823 char hostbuf[NI_MAXHOST];
39825 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
39826 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
39827 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39828 int fd = socket(AF_INET6, SOCK_STREAM, 0);
39830 perror("socket()");
39831 return 1; /* Error creating socket */
39833 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
39835 perror("getsockname()");
39836 return 2; /* Error retrieving socket name */
39838 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
39840 printf("rc = %s\n", gai_strerror(rc));
39841 return 3; /* Error translating socket address */
39843 return 0; /* Ok, NI_WITHSCOPEID works */
39845 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
39850 } # AC-LANG-PROGRAM
39853 if ac_fn_c_try_run "$LINENO"; then :
39855 # Exit code == 0. Program worked.
39856 curl_cv_working_ni_withscopeid="yes"
39860 # Exit code != 0. Program failed.
39861 curl_cv_working_ni_withscopeid="no"
39864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39865 conftest.$ac_objext conftest.beam conftest.$ac_ext
39870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
39871 $as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
39872 case "$curl_cv_working_ni_withscopeid" in
39875 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
39884 tst_method="unknown"
39886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
39887 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
39888 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
39889 tst_method="fcntl O_NONBLOCK"
39890 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
39891 tst_method="ioctl FIONBIO"
39892 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
39893 tst_method="ioctlsocket FIONBIO"
39894 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
39895 tst_method="IoctlSocket FIONBIO"
39896 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
39897 tst_method="setsockopt SO_NONBLOCK"
39899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
39900 $as_echo "$tst_method" >&6; }
39901 if test "$tst_method" = "unknown"; then
39902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
39903 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
39908 # Extract the first word of "perl", so it can be a program name with args.
39909 set dummy perl; ac_word=$2
39910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39911 $as_echo_n "checking for $ac_word... " >&6; }
39912 if ${ac_cv_path_PERL+:} false; then :
39913 $as_echo_n "(cached) " >&6
39917 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39921 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
39922 for as_dir in $as_dummy
39925 test -z "$as_dir" && as_dir=.
39926 for ac_exec_ext in '' $ac_executable_extensions; do
39927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39928 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39939 PERL=$ac_cv_path_PERL
39940 if test -n "$PERL"; then
39941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
39942 $as_echo "$PERL" >&6; }
39944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39945 $as_echo "no" >&6; }
39951 for ac_prog in gnroff nroff
39953 # Extract the first word of "$ac_prog", so it can be a program name with args.
39954 set dummy $ac_prog; ac_word=$2
39955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39956 $as_echo_n "checking for $ac_word... " >&6; }
39957 if ${ac_cv_path_NROFF+:} false; then :
39958 $as_echo_n "(cached) " >&6
39962 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
39965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39966 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
39967 for as_dir in $as_dummy
39970 test -z "$as_dir" && as_dir=.
39971 for ac_exec_ext in '' $ac_executable_extensions; do
39972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39973 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
39974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39984 NROFF=$ac_cv_path_NROFF
39985 if test -n "$NROFF"; then
39986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
39987 $as_echo "$NROFF" >&6; }
39989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39990 $as_echo "no" >&6; }
39994 test -n "$NROFF" && break
39999 if test -n "$NROFF"; then
40001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40002 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40004 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40005 if test -z "$mancheck"; then
40007 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40008 if test -z "$mancheck"; then
40010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40011 $as_echo "failed" >&6; }
40012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40013 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40016 $as_echo "$MANOPT" >&6; }
40019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40020 $as_echo "$MANOPT" >&6; }
40025 if test -z "$MANOPT"
40027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40028 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40033 if test "$USE_MANUAL" = "1"; then
40035 $as_echo "#define USE_MANUAL 1" >>confdefs.h
40037 curl_manual_msg="enabled"
40040 if test x"$USE_MANUAL" = x1; then
40042 USE_MANUAL_FALSE='#'
40044 USE_MANUAL_TRUE='#'
40053 if test "$want_ares" = "yes"; then
40054 clean_CPPFLAGS="$CPPFLAGS"
40055 clean_LDFLAGS="$LDFLAGS"
40057 embedded_ares="unknown"
40058 configure_runpath=`pwd`
40059 embedded_ares_builddir="$configure_runpath/ares"
40060 if test -n "$want_ares_path"; then
40061 ares_CPPFLAGS="-I$want_ares_path/include"
40062 ares_LDFLAGS="-L$want_ares_path/lib"
40063 ares_LIBS="-lcares"
40065 if test -d "$srcdir/ares"; then
40066 embedded_ares="yes"
40067 subdirs="$subdirs ares"
40070 ares_LDFLAGS="-L$embedded_ares_builddir"
40071 ares_LIBS="-lcares"
40075 ares_LIBS="-lcares"
40079 CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
40080 LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
40081 LIBS="$ares_LIBS $clean_LIBS"
40083 if test "$embedded_ares" != "yes"; then
40084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40085 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40087 /* end confdefs.h. */
40091 /* set of dummy functions in case c-ares was built with debug */
40092 void curl_dofree() { }
40093 void curl_sclose() { }
40094 void curl_domalloc() { }
40095 void curl_docalloc() { }
40096 void curl_socket() { }
40101 ares_channel channel;
40102 ares_cancel(channel); /* added in 1.2.0 */
40103 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40104 ares_dup(&channel, channel); /* added in 1.6.0 */
40111 if ac_fn_c_try_link "$LINENO"; then :
40113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40114 $as_echo "yes" >&6; }
40118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40119 $as_echo "no" >&6; }
40120 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40121 CPPFLAGS="$clean_CPPFLAGS"
40122 LDFLAGS="$clean_LDFLAGS"
40128 rm -f core conftest.err conftest.$ac_objext \
40129 conftest$ac_exeext conftest.$ac_ext
40131 if test "$want_ares" = "yes"; then
40133 $as_echo "#define USE_ARES 1" >>confdefs.h
40137 curl_res_msg="c-ares"
40141 if test x$embedded_ares = xyes; then
40142 USE_EMBEDDED_ARES_TRUE=
40143 USE_EMBEDDED_ARES_FALSE='#'
40145 USE_EMBEDDED_ARES_TRUE='#'
40146 USE_EMBEDDED_ARES_FALSE=
40150 if test "x$curl_cv_native_windows" != "xyes" &&
40151 test "x$enable_shared" = "xyes"; then
40152 build_libhostname=yes
40154 build_libhostname=no
40156 if test x$build_libhostname = xyes; then
40157 BUILD_LIBHOSTNAME_TRUE=
40158 BUILD_LIBHOSTNAME_FALSE='#'
40160 BUILD_LIBHOSTNAME_TRUE='#'
40161 BUILD_LIBHOSTNAME_FALSE=
40166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40167 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40168 OPT_THRES="default"
40169 # Check whether --enable-threaded_resolver was given.
40170 if test "${enable_threaded_resolver+set}" = set; then :
40171 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40174 case "$OPT_THRES" in
40182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40183 $as_echo "$want_thres" >&6; }
40186 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
40187 as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
40190 if test "$want_thres" = "yes" && test "$dontwant_rt" = "no"; then
40191 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40192 if test "x$ac_cv_header_pthread_h" = xyes; then :
40194 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40196 save_CFLAGS="$CFLAGS"
40198 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40199 if test "x$ac_cv_func_pthread_create" = xyes; then :
40200 USE_THREADS_POSIX=1
40204 if test "$USE_THREADS_POSIX" != "1"
40206 CFLAGS="$CFLAGS -pthread"
40207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40208 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40209 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40210 $as_echo_n "(cached) " >&6
40212 ac_check_lib_save_LIBS=$LIBS
40213 LIBS="-lpthread $LIBS"
40214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40215 /* end confdefs.h. */
40221 char pthread_create ();
40224 return pthread_create ();
40229 if ac_fn_c_try_link "$LINENO"; then :
40230 ac_cv_lib_pthread_pthread_create=yes
40232 ac_cv_lib_pthread_pthread_create=no
40234 rm -f core conftest.err conftest.$ac_objext \
40235 conftest$ac_exeext conftest.$ac_ext
40236 LIBS=$ac_check_lib_save_LIBS
40238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40239 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40240 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40241 USE_THREADS_POSIX=1
40243 CFLAGS="$save_CFLAGS"
40248 if test "x$USE_THREADS_POSIX" = "x1"
40251 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40253 curl_res_msg="POSIX threaded"
40263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40264 $as_echo_n "checking whether to enable verbose strings... " >&6; }
40265 # Check whether --enable-verbose was given.
40266 if test "${enable_verbose+set}" = set; then :
40267 enableval=$enable_verbose; case "$enableval" in
40269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40270 $as_echo "no" >&6; }
40272 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40274 curl_verbose_msg="no"
40276 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40277 $as_echo "yes" >&6; }
40281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40282 $as_echo "yes" >&6; }
40287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40288 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40289 # Check whether --enable-sspi was given.
40290 if test "${enable_sspi+set}" = set; then :
40291 enableval=$enable_sspi; case "$enableval" in
40293 if test "$curl_cv_native_windows" = "yes"; then
40294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40295 $as_echo "yes" >&6; }
40297 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40301 curl_sspi_msg="enabled"
40303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40304 $as_echo "no" >&6; }
40305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40306 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40310 if test "x$WINSSL_ENABLED" = "x1"; then
40311 # --with-winssl implies --enable-sspi
40312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40313 $as_echo "yes" >&6; }
40315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40316 $as_echo "no" >&6; }
40321 if test "x$WINSSL_ENABLED" = "x1"; then
40322 # --with-winssl implies --enable-sspi
40323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40324 $as_echo "yes" >&6; }
40326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40327 $as_echo "no" >&6; }
40333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40334 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40335 # Check whether --enable-crypto-auth was given.
40336 if test "${enable_crypto_auth+set}" = set; then :
40337 enableval=$enable_crypto_auth; case "$enableval" in
40339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40340 $as_echo "no" >&6; }
40342 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40344 CURL_DISABLE_CRYPTO_AUTH=1
40346 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40347 $as_echo "yes" >&6; }
40351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40352 $as_echo "yes" >&6; }
40358 OPT_NTLM_WB="default"
40359 # Check whether --enable-ntlm-wb was given.
40360 if test "${enable_ntlm_wb+set}" = set; then :
40361 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40364 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40365 case "$OPT_NTLM_WB" in
40374 if test -n "$enableval" && test "$enableval" != "yes"; then
40375 want_ntlm_wb_file="$enableval"
40382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40383 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40384 if test "$curl_cv_native_windows" = "yes" ||
40385 test "x$SSL_ENABLED" = "x"; then
40386 want_ntlm_wb_file=""
40389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40390 $as_echo "$want_ntlm_wb" >&6; }
40391 if test "$want_ntlm_wb" = "yes"; then
40393 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40396 cat >>confdefs.h <<_ACEOF
40397 #define NTLM_WB_FILE "$want_ntlm_wb_file"
40404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40405 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40406 # Check whether --enable-tls-srp was given.
40407 if test "${enable_tls_srp+set}" = set; then :
40408 enableval=$enable_tls_srp; case "$enableval" in
40410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40411 $as_echo "no" >&6; }
40413 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40417 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40418 $as_echo "yes" >&6; }
40423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40424 $as_echo "yes" >&6; }
40430 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40432 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40435 curl_tls_srp_msg="enabled"
40438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40439 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40440 # Check whether --enable-unix-sockets was given.
40441 if test "${enable_unix_sockets+set}" = set; then :
40442 enableval=$enable_unix_sockets; case "$enableval" in
40443 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40444 $as_echo "no" >&6; }
40445 want_unix_sockets=no
40447 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40448 $as_echo "yes" >&6; }
40449 want_unix_sockets=yes
40454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40455 $as_echo "auto" >&6; }
40456 want_unix_sockets=auto
40461 if test "x$want_unix_sockets" != "xno"; then
40462 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40463 #include <sys/un.h>
40466 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40469 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40473 curl_unix_sockets_msg="enabled"
40477 if test "x$want_unix_sockets" = "xyes"; then
40478 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40486 $as_echo_n "checking whether to enable support for cookies... " >&6; }
40487 # Check whether --enable-cookies was given.
40488 if test "${enable_cookies+set}" = set; then :
40489 enableval=$enable_cookies; case "$enableval" in
40491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40492 $as_echo "no" >&6; }
40494 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40497 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40498 $as_echo "yes" >&6; }
40502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40503 $as_echo "yes" >&6; }
40509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40510 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40511 CFLAG_CURL_SYMBOL_HIDING=""
40512 doing_symbol_hiding="no"
40513 if test x"$curl_cv_native_windows" != "xyes" &&
40514 test "$want_symbol_hiding" = "yes" &&
40515 test "$supports_symbol_hiding" = "yes"; then
40516 doing_symbol_hiding="yes"
40517 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40519 cat >>confdefs.h <<_ACEOF
40520 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40524 $as_echo "yes" >&6; }
40526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40527 $as_echo "no" >&6; }
40529 if test x$doing_symbol_hiding = xyes; then
40530 DOING_CURL_SYMBOL_HIDING_TRUE=
40531 DOING_CURL_SYMBOL_HIDING_FALSE='#'
40533 DOING_CURL_SYMBOL_HIDING_TRUE='#'
40534 DOING_CURL_SYMBOL_HIDING_FALSE=
40541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
40542 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
40543 # Check whether --enable-soname-bump was given.
40544 if test "${enable_soname_bump+set}" = set; then :
40545 enableval=$enable_soname_bump; case "$enableval" in
40546 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40547 $as_echo "yes" >&6; }
40551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40552 $as_echo "no" >&6; }
40556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
40557 $as_echo "$soname_bump" >&6; }
40561 if test x$soname_bump = xyes; then
40563 SONAME_BUMP_FALSE='#'
40565 SONAME_BUMP_TRUE='#'
40579 if test x$cross_compiling = xyes; then
40580 CROSSCOMPILING_TRUE=
40581 CROSSCOMPILING_FALSE='#'
40583 CROSSCOMPILING_TRUE='#'
40584 CROSSCOMPILING_FALSE=
40588 ENABLE_SHARED="$enable_shared"
40591 ENABLE_STATIC="$enable_static"
40596 if test "x$OPENSSL_ENABLED" = "x1"; then
40597 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40598 elif test -n "$SSL_ENABLED"; then
40599 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40601 if test "x$IPV6_ENABLED" = "x1"; then
40602 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
40604 if test "x$USE_UNIX_SOCKETS" = "x1"; then
40605 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
40607 if test "x$HAVE_LIBZ" = "x1"; then
40608 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
40610 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
40611 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
40613 if test "x$IDN_ENABLED" = "x1"; then
40614 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
40616 if test "x$USE_WINDOWS_SSPI" = "x1"; then
40617 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
40620 if test "x$HAVE_GSSAPI" = "x1"; then
40621 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
40624 if test "x$curl_psl_msg" = "xyes"; then
40625 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
40628 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40629 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40630 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
40633 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40634 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40635 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
40638 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
40639 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40640 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40641 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
40642 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
40644 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
40645 "x$NTLM_WB_ENABLED" = "x1"; then
40646 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
40651 if test "x$USE_TLS_SRP" = "x1"; then
40652 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
40655 if test "x$USE_NGHTTP2" = "x1"; then
40656 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
40661 if test "x$CURL_DISABLE_HTTP" != "x1"; then
40662 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
40663 if test "x$SSL_ENABLED" = "x1"; then
40664 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
40667 if test "x$CURL_DISABLE_FTP" != "x1"; then
40668 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
40669 if test "x$SSL_ENABLED" = "x1"; then
40670 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
40673 if test "x$CURL_DISABLE_FILE" != "x1"; then
40674 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
40676 if test "x$CURL_DISABLE_TELNET" != "x1"; then
40677 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
40679 if test "x$CURL_DISABLE_LDAP" != "x1"; then
40680 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
40681 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
40682 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
40683 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
40684 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
40688 if test "x$CURL_DISABLE_DICT" != "x1"; then
40689 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
40691 if test "x$CURL_DISABLE_TFTP" != "x1"; then
40692 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
40694 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
40695 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
40697 if test "x$CURL_DISABLE_POP3" != "x1"; then
40698 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
40699 if test "x$SSL_ENABLED" = "x1"; then
40700 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
40703 if test "x$CURL_DISABLE_IMAP" != "x1"; then
40704 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
40705 if test "x$SSL_ENABLED" = "x1"; then
40706 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
40709 if test "x$CURL_DISABLE_SMB" != "x1" \
40710 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
40711 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40712 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40713 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
40714 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
40715 if test "x$SSL_ENABLED" = "x1"; then
40716 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
40719 if test "x$CURL_DISABLE_SMTP" != "x1"; then
40720 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
40721 if test "x$SSL_ENABLED" = "x1"; then
40722 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
40725 if test "x$USE_LIBSSH2" = "x1"; then
40726 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
40727 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
40729 if test "x$CURL_DISABLE_RTSP" != "x1"; then
40730 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
40732 if test "x$USE_LIBRTMP" = "x1"; then
40733 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
40736 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
40747 squeeze LIBCURL_LIBS
40748 squeeze CURL_NETWORK_LIBS
40749 squeeze CURL_NETWORK_AND_TIME_LIBS
40751 squeeze SUPPORT_FEATURES
40752 squeeze SUPPORT_PROTOCOLS
40757 for xc_word in $LIBS; do
40763 xc_bad_var_libs=yes
40767 if test $xc_bad_var_libs = yes; then
40768 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
40769 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
40770 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
40771 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
40775 xc_bad_var_ldflags=no
40776 for xc_word in $LDFLAGS; do
40779 xc_bad_var_ldflags=yes
40782 xc_bad_var_ldflags=yes
40785 xc_bad_var_ldflags=yes
40788 xc_bad_var_ldflags=yes
40792 if test $xc_bad_var_ldflags = yes; then
40793 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
40794 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
40795 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
40796 for xc_word in $LDFLAGS; do
40799 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40800 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40803 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40804 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40807 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40808 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40811 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40812 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40819 xc_bad_var_cppflags=no
40820 for xc_word in $CPPFLAGS; do
40823 xc_bad_var_cppflags=yes
40825 -L* | --library-path=*)
40826 xc_bad_var_cppflags=yes
40829 xc_bad_var_cppflags=yes
40833 if test $xc_bad_var_cppflags = yes; then
40834 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
40835 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
40836 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
40837 for xc_word in $CPPFLAGS; do
40840 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40841 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40843 -L* | --library-path=*)
40844 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40845 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40848 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40849 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40856 xc_bad_var_cflags=no
40857 for xc_word in $CFLAGS; do
40860 xc_bad_var_cflags=yes
40863 xc_bad_var_cflags=yes
40866 xc_bad_var_cflags=yes
40869 xc_bad_var_cflags=yes
40871 -L* | --library-path=*)
40872 xc_bad_var_cflags=yes
40875 xc_bad_var_cflags=yes
40879 if test $xc_bad_var_cflags = yes; then
40880 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
40881 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
40882 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
40883 for xc_word in $CFLAGS; do
40886 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40887 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40890 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40891 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40894 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40895 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40898 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40899 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40901 -L* | --library-path=*)
40902 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40903 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40906 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40907 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40913 if test $xc_bad_var_libs = yes ||
40914 test $xc_bad_var_cflags = yes ||
40915 test $xc_bad_var_ldflags = yes ||
40916 test $xc_bad_var_cppflags = yes; then
40917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
40918 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
40922 if test "x$want_curldebug_assumed" = "xyes" &&
40923 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
40924 ac_configure_args="$ac_configure_args --enable-curldebug"
40927 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/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"
40929 cat >confcache <<\_ACEOF
40930 # This file is a shell script that caches the results of configure
40931 # tests run on this system so they can be shared between configure
40932 # scripts and configure runs, see configure's option --config-cache.
40933 # It is not useful on other systems. If it contains results you don't
40934 # want to keep, you may remove or edit it.
40936 # config.status only pays attention to the cache file if you give it
40937 # the --recheck option to rerun configure.
40939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40941 # following values.
40945 # The following way of writing the cache mishandles newlines in values,
40946 # but we know of no workaround that is simple, portable, and efficient.
40947 # So, we kill variables containing newlines.
40948 # Ultrix sh set writes to stderr and can't be redirected directly,
40949 # and sets the high bit in the cache file unless we assign to the vars.
40951 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40952 eval ac_val=\$$ac_var
40956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
40957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
40960 _ | IFS | as_nl) ;; #(
40961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
40962 *) { eval $ac_var=; unset $ac_var;} ;;
40968 case $as_nl`(ac_space=' '; set) 2>&1` in #(
40969 *${as_nl}ac_space=\ *)
40970 # `set' does not quote correctly, so add quotes: double-quote
40971 # substitution turns \\\\ into \\, and sed turns \\ into \.
40974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40977 # `set' quotes correctly as required by POSIX, so do not add quotes.
40978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40989 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40991 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40992 if test -w "$cache_file"; then
40993 if test "x$cache_file" != "x/dev/null"; then
40994 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
40995 $as_echo "$as_me: updating cache $cache_file" >&6;}
40996 if test ! -f "$cache_file" || test -h "$cache_file"; then
40997 cat confcache >"$cache_file"
40999 case $cache_file in #(
41001 mv -f confcache "$cache_file"$$ &&
41002 mv -f "$cache_file"$$ "$cache_file" ;; #(
41004 mv -f confcache "$cache_file" ;;
41009 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41010 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41016 # Let make expand exec_prefix.
41017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41019 DEFS=-DHAVE_CONFIG_H
41024 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41025 # 1. Remove the extension, and $U if already installed.
41026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41027 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41029 # will be set to the directory where LIBOBJS objects are built.
41030 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41031 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41033 LIBOBJS=$ac_libobjs
41035 LTLIBOBJS=$ac_ltlibobjs
41038 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41039 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41043 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41044 if test -n "$am_sleep_pid"; then
41045 # Hide warnings about reused PIDs.
41046 wait $am_sleep_pid 2>/dev/null
41048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41049 $as_echo "done" >&6; }
41050 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41051 as_fn_error $? "conditional \"AMDEP\" was never defined.
41052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41054 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41055 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41058 if test -n "$EXEEXT"; then
41060 am__EXEEXT_FALSE='#'
41062 am__EXEEXT_TRUE='#'
41066 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41067 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41070 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41071 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41074 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41075 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41078 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41079 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41082 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41083 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41086 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41087 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41090 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41091 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41094 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41095 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41098 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41099 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41102 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41103 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41106 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41107 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41110 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41111 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41114 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41115 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41118 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41119 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41122 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41123 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41126 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
41127 as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
41128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41130 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41131 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41135 : "${CONFIG_STATUS=./config.status}"
41137 ac_clean_files_save=$ac_clean_files
41138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41140 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41142 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41144 # Generated by $as_me.
41145 # Run this file to recreate the current configuration.
41146 # Compiler output produced by configure, useful for debugging
41147 # configure, is in config.log if it exists.
41150 ac_cs_recheck=false
41153 SHELL=\${CONFIG_SHELL-$SHELL}
41156 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41157 ## -------------------- ##
41158 ## M4sh Initialization. ##
41159 ## -------------------- ##
41161 # Be more Bourne compatible
41162 DUALCASE=1; export DUALCASE # for MKS sh
41163 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41166 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41167 # is contrary to our usage. Disable this feature.
41168 alias -g '${1+"$@"}'='"$@"'
41169 setopt NO_GLOB_SUBST
41171 case `(set -o) 2>/dev/null` in #(
41183 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41184 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41185 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41186 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41187 # Prefer a ksh shell builtin over an external printf program on Solaris,
41188 # but without wasting forks for bash or zsh.
41189 if test -z "$BASH_VERSION$ZSH_VERSION" \
41190 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41191 as_echo='print -r --'
41192 as_echo_n='print -rn --'
41193 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41194 as_echo='printf %s\n'
41195 as_echo_n='printf %s'
41197 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41198 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41199 as_echo_n='/usr/ucb/echo -n'
41201 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41202 as_echo_n_body='eval
41206 expr "X$arg" : "X\\(.*\\)$as_nl";
41207 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41209 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41211 export as_echo_n_body
41212 as_echo_n='sh -c $as_echo_n_body as_echo'
41214 export as_echo_body
41215 as_echo='sh -c $as_echo_body as_echo'
41221 # We need space, tab and new line, in precisely that order. Quoting is
41222 # there to prevent editors from complaining about space-tab.
41223 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41224 # splitting by setting IFS to empty value.)
41227 # Find who we are. Look in the path if we contain no directory separator.
41230 *[\\/]* ) as_myself=$0 ;;
41231 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41232 for as_dir in $PATH
41235 test -z "$as_dir" && as_dir=.
41236 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41242 # We did not find ourselves, most probably we were run as `sh COMMAND'
41243 # in which case we are not to be found in the path.
41244 if test "x$as_myself" = x; then
41247 if test ! -f "$as_myself"; then
41248 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41252 # Unset variables that we do not need and which cause bugs (e.g. in
41253 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41254 # suppresses any "Segmentation fault" message there. '((' could
41255 # trigger a bug in pdksh 5.2.14.
41256 for as_var in BASH_ENV ENV MAIL MAILPATH
41257 do eval test x\${$as_var+set} = xset \
41258 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41271 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41274 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41275 # ----------------------------------------
41276 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41277 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41278 # script with STATUS, using 1 if that was 0.
41281 as_status=$1; test $as_status -eq 0 && as_status=1
41283 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41284 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41286 $as_echo "$as_me: error: $2" >&2
41287 as_fn_exit $as_status
41291 # as_fn_set_status STATUS
41292 # -----------------------
41293 # Set $? to STATUS, without forking.
41294 as_fn_set_status ()
41297 } # as_fn_set_status
41299 # as_fn_exit STATUS
41300 # -----------------
41301 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41305 as_fn_set_status $1
41311 # Portably unset VAR.
41314 { eval $1=; unset $1;}
41316 as_unset=as_fn_unset
41317 # as_fn_append VAR VALUE
41318 # ----------------------
41319 # Append the text in VALUE to the end of the definition contained in VAR. Take
41320 # advantage of any shell optimizations that allow amortized linear growth over
41321 # repeated appends, instead of the typical quadratic growth present in naive
41323 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41324 eval 'as_fn_append ()
41335 # as_fn_arith ARG...
41336 # ------------------
41337 # Perform arithmetic evaluation on the ARGs, and store the result in the
41338 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41339 # must be portable across $(()) and expr.
41340 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41341 eval 'as_fn_arith ()
41348 as_val=`expr "$@" || test $? -eq 1`
41353 if expr a : '\(a\)' >/dev/null 2>&1 &&
41354 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41360 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41361 as_basename=basename
41366 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41372 as_me=`$as_basename -- "$0" ||
41373 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41374 X"$0" : 'X\(//\)$' \| \
41375 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41377 sed '/^.*\/\([^/][^/]*\)\/*$/{
41391 # Avoid depending upon Character Ranges.
41392 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41393 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41394 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41395 as_cr_digits='0123456789'
41396 as_cr_alnum=$as_cr_Letters$as_cr_digits
41398 ECHO_C= ECHO_N= ECHO_T=
41399 case `echo -n x` in #(((((
41401 case `echo 'xy\c'` in
41402 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41404 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41411 rm -f conf$$ conf$$.exe conf$$.file
41412 if test -d conf$$.dir; then
41413 rm -f conf$$.dir/conf$$.file
41416 mkdir conf$$.dir 2>/dev/null
41418 if (echo >conf$$.file) 2>/dev/null; then
41419 if ln -s conf$$.file conf$$ 2>/dev/null; then
41421 # ... but there are two gotchas:
41422 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41423 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41424 # In both cases, we have to default to `cp -pR'.
41425 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41427 elif ln conf$$.file conf$$ 2>/dev/null; then
41435 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41436 rmdir conf$$.dir 2>/dev/null
41441 # Create "$as_dir" as a directory, including parents if necessary.
41446 -*) as_dir=./$as_dir;;
41448 test -d "$as_dir" || eval $as_mkdir_p || {
41452 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41453 *) as_qdir=$as_dir;;
41455 as_dirs="'$as_qdir' $as_dirs"
41456 as_dir=`$as_dirname -- "$as_dir" ||
41457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41458 X"$as_dir" : 'X\(//\)[^/]' \| \
41459 X"$as_dir" : 'X\(//\)$' \| \
41460 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41461 $as_echo X"$as_dir" |
41462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41466 /^X\(\/\/\)[^/].*/{
41479 test -d "$as_dir" && break
41481 test -z "$as_dirs" || eval "mkdir $as_dirs"
41482 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41486 if mkdir -p . 2>/dev/null; then
41487 as_mkdir_p='mkdir -p "$as_dir"'
41489 test -d ./-p && rmdir ./-p
41494 # as_fn_executable_p FILE
41495 # -----------------------
41496 # Test if FILE is an executable regular file.
41497 as_fn_executable_p ()
41499 test -f "$1" && test -x "$1"
41500 } # as_fn_executable_p
41501 as_test_x='test -x'
41502 as_executable_p=as_fn_executable_p
41504 # Sed expression to map a string onto a valid CPP name.
41505 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41507 # Sed expression to map a string onto a valid variable name.
41508 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41512 ## ----------------------------------- ##
41513 ## Main body of $CONFIG_STATUS script. ##
41514 ## ----------------------------------- ##
41516 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41519 # Save the log message, to keep $0 and so on meaningful, and to
41520 # report actual input values of CONFIG_FILES etc. instead of their
41521 # values after options handling.
41523 This file was extended by curl $as_me -, which was
41524 generated by GNU Autoconf 2.69. Invocation command line was
41526 CONFIG_FILES = $CONFIG_FILES
41527 CONFIG_HEADERS = $CONFIG_HEADERS
41528 CONFIG_LINKS = $CONFIG_LINKS
41529 CONFIG_COMMANDS = $CONFIG_COMMANDS
41532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41537 case $ac_config_files in *"
41538 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41541 case $ac_config_headers in *"
41542 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41547 # Files that config.status was made for.
41548 config_files="$ac_config_files"
41549 config_headers="$ac_config_headers"
41550 config_commands="$ac_config_commands"
41554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41556 \`$as_me' instantiates files and other configuration actions
41557 from templates according to the current configuration. Unless the files
41558 and actions are specified as TAGs, all are instantiated by default.
41560 Usage: $0 [OPTION]... [TAG]...
41562 -h, --help print this help, then exit
41563 -V, --version print version number and configuration settings, then exit
41564 --config print configuration, then exit
41565 -q, --quiet, --silent
41566 do not print progress messages
41567 -d, --debug don't remove temporary files
41568 --recheck update $as_me by reconfiguring in the same conditions
41569 --file=FILE[:TEMPLATE]
41570 instantiate the configuration file FILE
41571 --header=FILE[:TEMPLATE]
41572 instantiate the configuration header FILE
41574 Configuration files:
41577 Configuration headers:
41580 Configuration commands:
41583 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
41586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41587 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41589 curl config.status -
41590 configured by $0, generated by GNU Autoconf 2.69,
41591 with options \\"\$ac_cs_config\\"
41593 Copyright (C) 2012 Free Software Foundation, Inc.
41594 This config.status script is free software; the Free Software Foundation
41595 gives unlimited permission to copy, distribute and modify it."
41602 test -n "\$AWK" || AWK=awk
41605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41606 # The default lists apply if the user does not specify any file.
41612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41613 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41629 # Handling of the options.
41630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41632 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41633 $as_echo "$ac_cs_version"; exit ;;
41634 --config | --confi | --conf | --con | --co | --c )
41635 $as_echo "$ac_cs_config"; exit ;;
41636 --debug | --debu | --deb | --de | --d | -d )
41638 --file | --fil | --fi | --f )
41641 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41642 '') as_fn_error $? "missing file argument" ;;
41644 as_fn_append CONFIG_FILES " '$ac_optarg'"
41645 ac_need_defaults=false;;
41646 --header | --heade | --head | --hea )
41649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41651 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41652 ac_need_defaults=false;;
41654 # Conflict between --help and --header
41655 as_fn_error $? "ambiguous option: \`$1'
41656 Try \`$0 --help' for more information.";;
41657 --help | --hel | -h )
41658 $as_echo "$ac_cs_usage"; exit ;;
41659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41663 # This is an error.
41664 -*) as_fn_error $? "unrecognized option: \`$1'
41665 Try \`$0 --help' for more information." ;;
41667 *) as_fn_append ac_config_targets " $1"
41668 ac_need_defaults=false ;;
41674 ac_configure_extra_args=
41676 if $ac_cs_silent; then
41678 ac_configure_extra_args="$ac_configure_extra_args --silent"
41682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41683 if \$ac_cs_recheck; then
41684 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41686 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41687 CONFIG_SHELL='$SHELL'
41688 export CONFIG_SHELL
41693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41697 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41698 ## Running $as_me. ##
41704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41708 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41711 # The HP-UX ksh and POSIX shell print the target directory to stdout
41712 # if CDPATH is set.
41713 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41715 sed_quote_subst='$sed_quote_subst'
41716 double_quote_subst='$double_quote_subst'
41717 delay_variable_subst='$delay_variable_subst'
41718 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41719 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41720 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41721 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41722 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41723 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41724 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41725 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41726 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41727 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41728 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41729 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41730 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41731 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41732 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41733 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41734 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41735 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41736 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41737 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41738 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41739 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41740 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41741 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41742 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41743 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41744 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41745 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41746 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41747 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41748 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41749 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41750 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41751 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41752 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41753 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41754 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41755 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41756 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41757 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41758 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41759 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41760 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41761 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41762 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41763 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41764 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41765 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41766 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41767 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41768 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41769 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41770 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41771 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41772 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41773 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41774 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41775 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41776 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41777 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"`'
41778 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41779 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41780 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41781 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41782 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41783 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41784 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41785 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41786 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41787 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41788 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41789 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41790 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41791 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41792 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41793 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41794 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41795 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41796 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41797 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41798 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41799 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41800 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41801 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41802 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41803 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41804 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41805 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41806 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41807 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41808 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41809 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41810 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41811 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41812 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41813 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41814 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41815 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41816 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41817 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41818 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41819 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41820 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41821 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41822 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41823 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41824 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41825 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41826 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41827 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41828 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41829 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41830 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41831 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41832 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41833 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41834 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41835 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41836 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41837 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41838 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41839 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41840 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41841 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41842 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41843 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41844 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41845 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41846 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41847 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41848 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41849 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41850 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41851 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41852 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41853 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41856 LTCFLAGS='$LTCFLAGS'
41857 compiler='$compiler_DEFAULT'
41859 # A function that is used when there is no print builtin or printf.
41860 func_fallback_echo ()
41862 eval 'cat <<_LTECHO_EOF
41867 # Quote evaled strings.
41884 deplibs_check_method \
41888 sharedlib_from_linklib_cmd \
41891 archiver_list_spec \
41897 lt_cv_sys_global_symbol_pipe \
41898 lt_cv_sys_global_symbol_to_cdecl \
41899 lt_cv_sys_global_symbol_to_import \
41900 lt_cv_sys_global_symbol_to_c_name_address \
41901 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41902 lt_cv_nm_interface \
41903 nm_file_list_spec \
41904 lt_cv_truncate_bin \
41905 lt_prog_compiler_no_builtin_flag \
41906 lt_prog_compiler_pic \
41907 lt_prog_compiler_wl \
41908 lt_prog_compiler_static \
41909 lt_cv_prog_compiler_c_o \
41918 export_dynamic_flag_spec \
41919 whole_archive_flag_spec \
41920 compiler_needs_object \
41922 allow_undefined_flag \
41923 no_undefined_flag \
41924 hardcode_libdir_flag_spec \
41925 hardcode_libdir_separator \
41929 variables_saved_for_relink \
41931 library_names_spec \
41933 install_override_mode \
41937 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41938 *[\\\\\\\`\\"\\\$]*)
41939 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41942 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41947 # Double-quote double-evaled strings.
41948 for var in reload_cmds \
41949 old_postinstall_cmds \
41950 old_postuninstall_cmds \
41952 extract_expsyms_cmds \
41953 old_archive_from_new_cmds \
41954 old_archive_from_expsyms_cmds \
41956 archive_expsym_cmds \
41958 module_expsym_cmds \
41959 export_symbols_cmds \
41963 postuninstall_cmds \
41965 sys_lib_search_path_spec \
41966 configure_time_dlsearch_path \
41967 configure_time_lt_sys_library_path; do
41968 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41969 *[\\\\\\\`\\"\\\$]*)
41970 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41973 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41978 ac_aux_dir='$ac_aux_dir'
41980 # See if we are running on zsh, and set the options that allow our
41981 # commands through without removal of \ escapes INIT.
41982 if test -n "\${ZSH_VERSION+set}"; then
41983 setopt NO_GLOB_SUBST
41997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41999 # Handling of arguments.
42000 for ac_config_target in $ac_config_targets
42002 case $ac_config_target in
42003 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42004 "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
42005 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42006 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42007 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42008 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42009 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42010 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42011 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42012 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42013 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42014 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42015 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42016 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42017 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42018 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42019 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42020 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42021 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42022 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42023 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42024 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42025 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42026 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42027 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42028 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42029 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42030 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42031 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42032 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42033 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42034 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42035 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42036 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42037 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42038 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42039 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42040 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42042 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42047 # If the user did not use the arguments to specify the items to instantiate,
42048 # then the envvar interface is used. Set only those that are not.
42049 # We use the long form for the default assignment because of an extremely
42050 # bizarre bug on SunOS 4.1.3.
42051 if $ac_need_defaults; then
42052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42053 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42057 # Have a temporary directory for convenience. Make it in the build tree
42058 # simply because there is no reason against having it here, and in addition,
42059 # creating and moving files from /tmp can sometimes cause problems.
42060 # Hook for its removal unless debugging.
42061 # Note that there is a small window in which the directory will not be cleaned:
42062 # after its creation but before its name has been assigned to `$tmp'.
42066 trap 'exit_status=$?
42067 : "${ac_tmp:=$tmp}"
42068 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42070 trap 'as_fn_exit 1' 1 2 13 15
42072 # Create a (secure) tmp directory for tmp files.
42075 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42079 tmp=./conf$$-$RANDOM
42080 (umask 077 && mkdir "$tmp")
42081 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42084 # Set up the scripts for CONFIG_FILES section.
42085 # No need to generate them if there are no CONFIG_FILES.
42086 # This happens for instance with `./config.status config.h'.
42087 if test -n "$CONFIG_FILES"; then
42090 ac_cr=`echo X | tr X '\015'`
42091 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42092 # But we know of no other shell where ac_cr would be empty at this
42093 # point, so we can use a bashism as a fallback.
42094 if test "x$ac_cr" = x; then
42095 eval ac_cr=\$\'\\r\'
42097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42101 ac_cs_awk_cr=$ac_cr
42104 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42109 echo "cat >conf$$subs.awk <<_ACEOF" &&
42110 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42112 } >conf$$subs.sh ||
42113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42116 for ac_last_try in false false false false false :; do
42117 . ./conf$$subs.sh ||
42118 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42120 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42121 if test $ac_delim_n = $ac_delim_num; then
42123 elif $ac_last_try; then
42124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42129 rm -f conf$$subs.sh
42131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42132 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42136 s/^/S["/; s/!.*/"]=/
42146 s/\(.\{148\}\)..*/\1/
42148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42160 s/\(.\{148\}\)..*/\1/
42162 s/["\\]/\\&/g; s/^/"/; s/$/"/
42166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42171 ' <conf$$subs.awk | sed '
42176 ' >>$CONFIG_STATUS || ac_write_fail=1
42177 rm -f conf$$subs.awk
42178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42180 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42181 for (key in S) S_is_set[key] = 1
42187 nfields = split(line, field, "@")
42189 len = length(field[1])
42190 for (i = 2; i < nfields; i++) {
42192 keylen = length(key)
42193 if (S_is_set[key]) {
42195 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42196 len += length(value) + length(field[++i])
42207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42208 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42209 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42212 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42213 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42216 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42217 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42218 # trailing colons and then remove the whole line if VPATH becomes empty
42219 # (actually we leave an empty line to preserve line numbers).
42220 if test "x$srcdir" = x.; then
42221 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42240 fi # test -n "$CONFIG_FILES"
42242 # Set up the scripts for CONFIG_HEADERS section.
42243 # No need to generate them if there are no CONFIG_HEADERS.
42244 # This happens for instance with `./config.status Makefile'.
42245 if test -n "$CONFIG_HEADERS"; then
42246 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42250 # Transform confdefs.h into an awk script `defines.awk', embedded as
42251 # here-document in config.status, that substitutes the proper values into
42252 # config.h.in to produce config.h.
42254 # Create a delimiter string that does not exist in confdefs.h, to ease
42255 # handling of long lines.
42257 for ac_last_try in false false :; do
42258 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42259 if test -z "$ac_tt"; then
42261 elif $ac_last_try; then
42262 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42268 # For the awk script, D is an array of macro values keyed by name,
42269 # likewise P contains macro parameters if any. Preserve backslash
42270 # newline sequences.
42272 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42274 s/.\{148\}/&'"$ac_delim"'/g
42277 s/^[ ]*#[ ]*define[ ][ ]*/ /
42284 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42286 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42291 D["\1"]=" \3\\\\\\n"\\/p
42293 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42298 s/.\{148\}/&'"$ac_delim"'/g
42303 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42306 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42308 ' <confdefs.h | sed '
42309 s/'"$ac_delim"'/"\\\
42310 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42313 for (key in D) D_is_set[key] = 1
42316 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42318 split(line, arg, " ")
42319 if (arg[1] == "#") {
42323 defundef = substr(arg[1], 2)
42326 split(mac1, mac2, "(") #)
42328 prefix = substr(line, 1, index(line, defundef) - 1)
42329 if (D_is_set[macro]) {
42330 # Preserve the white space surrounding the "#".
42331 print prefix "define", macro P[macro] D[macro]
42334 # Replace #undef with comments. This is necessary, for example,
42335 # in the case of _POSIX_SOURCE, which is predefined and required
42336 # on some systems where configure will not decide to define it.
42337 if (defundef == "undef") {
42338 print "/*", prefix defundef, macro, "*/"
42346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42347 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42348 fi # test -n "$CONFIG_HEADERS"
42351 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42356 :[FHLC]) ac_mode=$ac_tag; continue;;
42358 case $ac_mode$ac_tag in
42360 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42361 :[FH]-) ac_tag=-:-;;
42362 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42379 -) ac_f="$ac_tmp/stdin";;
42380 *) # Look for the file first in the build tree, then in the source tree
42381 # (if the path is not absolute). The absolute path cannot be DOS-style,
42382 # because $ac_f cannot contain `:'.
42386 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42388 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42390 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42391 as_fn_append ac_file_inputs " '$ac_f'"
42394 # Let's still pretend it is `configure' which instantiates (i.e., don't
42395 # use $as_me), people would be surprised to read:
42396 # /* config.h. Generated by config.status. */
42397 configure_input='Generated from '`
42398 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42400 if test x"$ac_file" != x-; then
42401 configure_input="$ac_file. $configure_input"
42402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42403 $as_echo "$as_me: creating $ac_file" >&6;}
42405 # Neutralize special characters interpreted by sed in replacement strings.
42406 case $configure_input in #(
42407 *\&* | *\|* | *\\* )
42408 ac_sed_conf_input=`$as_echo "$configure_input" |
42409 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42410 *) ac_sed_conf_input=$configure_input;;
42414 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42420 ac_dir=`$as_dirname -- "$ac_file" ||
42421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42422 X"$ac_file" : 'X\(//\)[^/]' \| \
42423 X"$ac_file" : 'X\(//\)$' \| \
42424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42425 $as_echo X"$ac_file" |
42426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42430 /^X\(\/\/\)[^/].*/{
42443 as_dir="$ac_dir"; as_fn_mkdir_p
42447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42450 # A ".." for each directory in $ac_dir_suffix.
42451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42452 case $ac_top_builddir_sub in
42453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42457 ac_abs_top_builddir=$ac_pwd
42458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42459 # for backward compatibility:
42460 ac_top_builddir=$ac_top_build_prefix
42463 .) # We are building in place.
42465 ac_top_srcdir=$ac_top_builddir_sub
42466 ac_abs_top_srcdir=$ac_pwd ;;
42467 [\\/]* | ?:[\\/]* ) # Absolute name.
42468 ac_srcdir=$srcdir$ac_dir_suffix;
42469 ac_top_srcdir=$srcdir
42470 ac_abs_top_srcdir=$srcdir ;;
42471 *) # Relative name.
42472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42473 ac_top_srcdir=$ac_top_build_prefix$srcdir
42474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42486 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42487 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42489 ac_MKDIR_P=$MKDIR_P
42491 [\\/$]* | ?:[\\/]* ) ;;
42492 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42497 # If the template does not know about datarootdir, expand it.
42498 # FIXME: This hack should be removed a few years after 2.60.
42499 ac_datarootdir_hack=; ac_datarootdir_seen=
42510 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42511 *datarootdir*) ac_datarootdir_seen=yes;;
42512 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42514 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42517 ac_datarootdir_hack='
42518 s&@datadir@&$datadir&g
42519 s&@docdir@&$docdir&g
42520 s&@infodir@&$infodir&g
42521 s&@localedir@&$localedir&g
42522 s&@mandir@&$mandir&g
42523 s&\\\${datarootdir}&$datarootdir&g' ;;
42527 # Neutralize VPATH when `$srcdir' = `.'.
42528 # Shell code in configure.ac might set extrasub.
42529 # FIXME: do we really want to maintain this feature?
42530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42531 ac_sed_extra="$ac_vpsub
42534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42537 s|@configure_input@|$ac_sed_conf_input|;t t
42538 s&@top_builddir@&$ac_top_builddir_sub&;t t
42539 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42540 s&@srcdir@&$ac_srcdir&;t t
42541 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42542 s&@top_srcdir@&$ac_top_srcdir&;t t
42543 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42544 s&@builddir@&$ac_builddir&;t t
42545 s&@abs_builddir@&$ac_abs_builddir&;t t
42546 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42547 s&@INSTALL@&$ac_INSTALL&;t t
42548 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42549 $ac_datarootdir_hack
42551 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42552 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42554 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42555 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42556 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42557 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42559 which seems to be undefined. Please make sure it is defined" >&5
42560 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42561 which seems to be undefined. Please make sure it is defined" >&2;}
42563 rm -f "$ac_tmp/stdin"
42565 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42566 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42568 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42574 if test x"$ac_file" != x-; then
42576 $as_echo "/* $configure_input */" \
42577 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42578 } >"$ac_tmp/config.h" \
42579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42580 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42581 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42582 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42585 mv "$ac_tmp/config.h" "$ac_file" \
42586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42589 $as_echo "/* $configure_input */" \
42590 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42591 || as_fn_error $? "could not create -" "$LINENO" 5
42593 # Compute "$ac_file"'s index in $config_headers.
42596 for _am_header in $config_headers :; do
42597 case $_am_header in
42598 $_am_arg | $_am_arg:* )
42601 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42604 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42605 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42606 X"$_am_arg" : 'X\(//\)[^/]' \| \
42607 X"$_am_arg" : 'X\(//\)$' \| \
42608 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42609 $as_echo X"$_am_arg" |
42610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42614 /^X\(\/\/\)[^/].*/{
42626 s/.*/./; q'`/stamp-h$_am_stamp_count
42629 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42630 $as_echo "$as_me: executing $ac_file commands" >&6;}
42635 case $ac_file$ac_mode in
42636 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42637 # Older Autoconf quotes --file arguments for eval, but not when files
42638 # are listed without --file. Let's play safe and only enable the eval
42639 # if we detect the quoting.
42640 case $CONFIG_FILES in
42641 *\'*) eval set x "$CONFIG_FILES" ;;
42642 *) set x $CONFIG_FILES ;;
42647 # Strip MF so we end up with the name of the file.
42648 mf=`echo "$mf" | sed -e 's/:.*$//'`
42649 # Check whether this is an Automake generated Makefile or not.
42650 # We used to match only the files named 'Makefile.in', but
42651 # some people rename them; so instead we look at the file content.
42652 # Grep'ing the first line is not enough: some people post-process
42653 # each Makefile.in and add a new line on top of each file to say so.
42654 # Grep'ing the whole file is not good either: AIX grep has a line
42655 # limit of 2048, but all sed's we know have understand at least 4000.
42656 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42657 dirpart=`$as_dirname -- "$mf" ||
42658 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42659 X"$mf" : 'X\(//\)[^/]' \| \
42660 X"$mf" : 'X\(//\)$' \| \
42661 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42667 /^X\(\/\/\)[^/].*/{
42683 # Extract the definition of DEPDIR, am__include, and am__quote
42684 # from the Makefile without running 'make'.
42685 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42686 test -z "$DEPDIR" && continue
42687 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42688 test -z "$am__include" && continue
42689 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42690 # Find all dependency output files, they are included files with
42691 # $(DEPDIR) in their names. We invoke sed twice because it is the
42692 # simplest approach to changing $(DEPDIR) to its actual value in the
42694 for file in `sed -n "
42695 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42696 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42697 # Make sure the directory exists.
42698 test -f "$dirpart/$file" && continue
42699 fdir=`$as_dirname -- "$file" ||
42700 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42701 X"$file" : 'X\(//\)[^/]' \| \
42702 X"$file" : 'X\(//\)$' \| \
42703 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42704 $as_echo X"$file" |
42705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42709 /^X\(\/\/\)[^/].*/{
42722 as_dir=$dirpart/$fdir; as_fn_mkdir_p
42723 # echo "creating $dirpart/$file"
42724 echo '# dummy' > "$dirpart/$file"
42731 # See if we are running on zsh, and set the options that allow our
42732 # commands through without removal of \ escapes.
42733 if test -n "${ZSH_VERSION+set}"; then
42734 setopt NO_GLOB_SUBST
42738 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42741 cat <<_LT_EOF >> "$cfgfile"
42743 # Generated automatically by $as_me ($PACKAGE) $VERSION
42744 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42746 # Provide generalized library-building support services.
42747 # Written by Gordon Matzigkeit, 1996
42749 # Copyright (C) 2014 Free Software Foundation, Inc.
42750 # This is free software; see the source for copying conditions. There is NO
42751 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42753 # GNU Libtool is free software; you can redistribute it and/or modify
42754 # it under the terms of the GNU General Public License as published by
42755 # the Free Software Foundation; either version 2 of of the License, or
42756 # (at your option) any later version.
42758 # As a special exception to the GNU General Public License, if you
42759 # distribute this file as part of a program or library that is built
42760 # using GNU Libtool, you may include this file under the same
42761 # distribution terms that you use for the rest of that program.
42763 # GNU Libtool is distributed in the hope that it will be useful, but
42764 # WITHOUT ANY WARRANTY; without even the implied warranty of
42765 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42766 # GNU General Public License for more details.
42768 # You should have received a copy of the GNU General Public License
42769 # along with this program. If not, see <http://www.gnu.org/licenses/>.
42772 # The names of the tagged configurations supported by this script.
42775 # Configured defaults for sys_lib_dlsearch_path munging.
42776 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42778 # ### BEGIN LIBTOOL CONFIG
42780 # Which release of libtool.m4 was used?
42781 macro_version=$macro_version
42782 macro_revision=$macro_revision
42784 # Assembler program.
42787 # DLL creation program.
42788 DLLTOOL=$lt_DLLTOOL
42790 # Object dumper program.
42791 OBJDUMP=$lt_OBJDUMP
42793 # Whether or not to build shared libraries.
42794 build_libtool_libs=$enable_shared
42796 # Whether or not to build static libraries.
42797 build_old_libs=$enable_static
42799 # What type of objects to build.
42802 # Whether or not to optimize for fast installation.
42803 fast_install=$enable_fast_install
42805 # Shared archive member basename,for filename based shared library versioning on AIX.
42806 shared_archive_member_spec=$shared_archive_member_spec
42808 # Shell to use when invoking shell scripts.
42811 # An echo program that protects backslashes.
42814 # The PATH separator for the build system.
42815 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42818 host_alias=$host_alias
42822 # The build system.
42823 build_alias=$build_alias
42827 # A sed program that does not truncate output.
42830 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42831 Xsed="\$SED -e 1s/^X//"
42833 # A grep program that handles long lines.
42839 # A literal string matcher.
42842 # A BSD- or MS-compatible name lister.
42845 # Whether we need soft or hard links.
42848 # What is the maximum length of a command?
42849 max_cmd_len=$max_cmd_len
42851 # Object file suffix (normally "o").
42854 # Executable file suffix (normally "").
42857 # whether the shell understands "unset".
42860 # turn spaces into newlines.
42863 # turn newlines into spaces.
42866 # convert \$build file names to \$host format.
42867 to_host_file_cmd=$lt_cv_to_host_file_cmd
42869 # convert \$build files to toolchain format.
42870 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42872 # Method to check whether dependent libraries are shared objects.
42873 deplibs_check_method=$lt_deplibs_check_method
42875 # Command to use when deplibs_check_method = "file_magic".
42876 file_magic_cmd=$lt_file_magic_cmd
42878 # How to find potential files when deplibs_check_method = "file_magic".
42879 file_magic_glob=$lt_file_magic_glob
42881 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42882 want_nocaseglob=$lt_want_nocaseglob
42884 # Command to associate shared and link libraries.
42885 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42890 # Flags to create an archive.
42891 AR_FLAGS=$lt_AR_FLAGS
42893 # How to feed a file listing to the archiver.
42894 archiver_list_spec=$lt_archiver_list_spec
42896 # A symbol stripping program.
42899 # Commands used to install an old-style archive.
42901 old_postinstall_cmds=$lt_old_postinstall_cmds
42902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42904 # Whether to use a lock for old archive extraction.
42905 lock_old_archive_extraction=$lock_old_archive_extraction
42910 # LTCC compiler flags.
42911 LTCFLAGS=$lt_CFLAGS
42913 # Take the output of nm and produce a listing of raw symbols and C names.
42914 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42916 # Transform the output of nm in a proper C declaration.
42917 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42919 # Transform the output of nm into a list of symbols to manually relocate.
42920 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42922 # Transform the output of nm in a C name address pair.
42923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42925 # Transform the output of nm in a C name address pair when lib prefix is needed.
42926 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42928 # The name lister interface.
42929 nm_interface=$lt_lt_cv_nm_interface
42931 # Specify filename containing input files for \$NM.
42932 nm_file_list_spec=$lt_nm_file_list_spec
42934 # The root where to search for dependent libraries,and where our libraries should be installed.
42935 lt_sysroot=$lt_sysroot
42937 # Command to truncate a binary pipe.
42938 lt_truncate_bin=$lt_lt_cv_truncate_bin
42940 # The name of the directory that contains temporary libtool files.
42943 # Used to examine libraries when file_magic_cmd begins with "file".
42944 MAGIC_CMD=$MAGIC_CMD
42946 # Must we lock files when doing compilation?
42947 need_locks=$lt_need_locks
42950 MANIFEST_TOOL=$lt_MANIFEST_TOOL
42952 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42953 DSYMUTIL=$lt_DSYMUTIL
42955 # Tool to change global to local symbols on Mac OS X.
42958 # Tool to manipulate fat objects and archives on Mac OS X.
42961 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42964 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42965 OTOOL64=$lt_OTOOL64
42967 # Old archive suffix (normally "a").
42970 # Shared library suffix (normally ".so").
42971 shrext_cmds=$lt_shrext_cmds
42973 # The commands to extract the exported symbol list from a shared archive.
42974 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42976 # Variables whose values should be saved in libtool wrapper scripts and
42977 # restored at link time.
42978 variables_saved_for_relink=$lt_variables_saved_for_relink
42980 # Do we need the "lib" prefix for modules?
42981 need_lib_prefix=$need_lib_prefix
42983 # Do we need a version for libraries?
42984 need_version=$need_version
42986 # Library versioning type.
42987 version_type=$version_type
42989 # Shared library runtime path variable.
42990 runpath_var=$runpath_var
42992 # Shared library path variable.
42993 shlibpath_var=$shlibpath_var
42995 # Is shlibpath searched before the hard-coded library search path?
42996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42998 # Format of library name prefix.
42999 libname_spec=$lt_libname_spec
43001 # List of archive names. First name is the real one, the rest are links.
43002 # The last name is the one that the linker finds with -lNAME
43003 library_names_spec=$lt_library_names_spec
43005 # The coded name of the library, if different from the real name.
43006 soname_spec=$lt_soname_spec
43008 # Permission mode override for installation of shared libraries.
43009 install_override_mode=$lt_install_override_mode
43011 # Command to use after installation of a shared archive.
43012 postinstall_cmds=$lt_postinstall_cmds
43014 # Command to use after uninstallation of a shared archive.
43015 postuninstall_cmds=$lt_postuninstall_cmds
43017 # Commands used to finish a libtool library installation in a directory.
43018 finish_cmds=$lt_finish_cmds
43020 # As "finish_cmds", except a single script fragment to be evaled but
43022 finish_eval=$lt_finish_eval
43024 # Whether we should hardcode library paths into libraries.
43025 hardcode_into_libs=$hardcode_into_libs
43027 # Compile-time system search path for libraries.
43028 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43030 # Detected run-time system search path for libraries.
43031 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43033 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43034 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43036 # Whether dlopen is supported.
43037 dlopen_support=$enable_dlopen
43039 # Whether dlopen of programs is supported.
43040 dlopen_self=$enable_dlopen_self
43042 # Whether dlopen of statically linked programs is supported.
43043 dlopen_self_static=$enable_dlopen_self_static
43045 # Commands to strip libraries.
43046 old_striplib=$lt_old_striplib
43047 striplib=$lt_striplib
43050 # The linker used to build libraries.
43053 # How to create reloadable object files.
43054 reload_flag=$lt_reload_flag
43055 reload_cmds=$lt_reload_cmds
43057 # Commands used to build an old-style archive.
43058 old_archive_cmds=$lt_old_archive_cmds
43060 # A language specific compiler.
43063 # Is the compiler the GNU compiler?
43066 # Compiler flag to turn off builtin functions.
43067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43069 # Additional compiler flags for building library objects.
43070 pic_flag=$lt_lt_prog_compiler_pic
43072 # How to pass a linker flag through the compiler.
43073 wl=$lt_lt_prog_compiler_wl
43075 # Compiler flag to prevent dynamic linking.
43076 link_static_flag=$lt_lt_prog_compiler_static
43078 # Does compiler simultaneously support -c and -o options?
43079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43081 # Whether or not to add -lc for building shared libraries.
43082 build_libtool_need_lc=$archive_cmds_need_lc
43084 # Whether or not to disallow shared libs when runtime libs are static.
43085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43087 # Compiler flag to allow reflexive dlopens.
43088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43090 # Compiler flag to generate shared objects directly from archives.
43091 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43093 # Whether the compiler copes with passing no objects directly.
43094 compiler_needs_object=$lt_compiler_needs_object
43096 # Create an old-style archive from a shared archive.
43097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43099 # Create a temporary old-style archive to link instead of a shared archive.
43100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43102 # Commands used to build a shared archive.
43103 archive_cmds=$lt_archive_cmds
43104 archive_expsym_cmds=$lt_archive_expsym_cmds
43106 # Commands used to build a loadable module if different from building
43107 # a shared archive.
43108 module_cmds=$lt_module_cmds
43109 module_expsym_cmds=$lt_module_expsym_cmds
43111 # Whether we are building with GNU ld or not.
43112 with_gnu_ld=$lt_with_gnu_ld
43114 # Flag that allows shared libraries with undefined symbols to be built.
43115 allow_undefined_flag=$lt_allow_undefined_flag
43117 # Flag that enforces no undefined symbols.
43118 no_undefined_flag=$lt_no_undefined_flag
43120 # Flag to hardcode \$libdir into a binary during linking.
43121 # This must work even if \$libdir does not exist
43122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43124 # Whether we need a single "-rpath" flag with a separated argument.
43125 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43127 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43128 # DIR into the resulting binary.
43129 hardcode_direct=$hardcode_direct
43131 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43132 # DIR into the resulting binary and the resulting library dependency is
43133 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43134 # library is relocated.
43135 hardcode_direct_absolute=$hardcode_direct_absolute
43137 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43138 # into the resulting binary.
43139 hardcode_minus_L=$hardcode_minus_L
43141 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43142 # into the resulting binary.
43143 hardcode_shlibpath_var=$hardcode_shlibpath_var
43145 # Set to "yes" if building a shared library automatically hardcodes DIR
43146 # into the library and all subsequent libraries and executables linked
43148 hardcode_automatic=$hardcode_automatic
43150 # Set to yes if linker adds runtime paths of dependent libraries
43151 # to runtime path list.
43152 inherit_rpath=$inherit_rpath
43154 # Whether libtool must link a program against all its dependency libraries.
43155 link_all_deplibs=$link_all_deplibs
43157 # Set to "yes" if exported symbols are required.
43158 always_export_symbols=$always_export_symbols
43160 # The commands to list exported symbols.
43161 export_symbols_cmds=$lt_export_symbols_cmds
43163 # Symbols that should not be listed in the preloaded symbols.
43164 exclude_expsyms=$lt_exclude_expsyms
43166 # Symbols that must always be exported.
43167 include_expsyms=$lt_include_expsyms
43169 # Commands necessary for linking programs (against libraries) with templates.
43170 prelink_cmds=$lt_prelink_cmds
43172 # Commands necessary for finishing linking programs.
43173 postlink_cmds=$lt_postlink_cmds
43175 # Specify filename containing input files.
43176 file_list_spec=$lt_file_list_spec
43178 # How to hardcode a shared library path into an executable.
43179 hardcode_action=$hardcode_action
43181 # ### END LIBTOOL CONFIG
43185 cat <<'_LT_EOF' >> "$cfgfile"
43187 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43189 # func_munge_path_list VARIABLE PATH
43190 # -----------------------------------
43191 # VARIABLE is name of variable containing _space_ separated list of
43192 # directories to be munged by the contents of PATH, which is string
43195 # string "DIR[ DIR]" will be prepended to VARIABLE
43197 # string "DIR[ DIR]" will be appended to VARIABLE
43198 # "DIRP[:DIRP]::[DIRA:]DIRA"
43199 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43200 # "DIRA[ DIRA]" will be appended to VARIABLE
43202 # VARIABLE will be replaced by "DIR[ DIR]"
43203 func_munge_path_list ()
43209 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43212 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43215 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43216 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43219 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43225 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43226 func_cc_basename ()
43228 for cc_temp in $*""; do
43230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43236 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43240 # ### END FUNCTIONS SHARED WITH CONFIGURE
43246 cat <<\_LT_EOF >> "$cfgfile"
43247 # AIX sometimes has problems with the GCC collect2 program. For some
43248 # reason, if we set the COLLECT_NAMES environment variable, the problems
43249 # vanish in a puff of smoke.
43250 if test set != "${COLLECT_NAMES+set}"; then
43252 export COLLECT_NAMES
43259 ltmain=$ac_aux_dir/ltmain.sh
43262 # We use sed instead of cat because bash on DJGPP gets confused if
43263 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43264 # text mode, it properly converts lines to CR/LF. This bash problem
43265 # is reportedly fixed, but why not run on old versions too?
43266 sed '$q' "$ltmain" >> "$cfgfile" \
43267 || (rm -f "$cfgfile"; exit 1)
43269 mv -f "$cfgfile" "$ofile" ||
43270 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43281 ac_clean_files=$ac_clean_files_save
43283 test $ac_write_fail = 0 ||
43284 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43287 # configure is writing to config.log, and then calls config.status.
43288 # config.status does its own redirection, appending to config.log.
43289 # Unfortunately, on DOS this fails, as config.log is still kept open
43290 # by configure, so config.status won't be able to write to it; its
43291 # output is simply discarded. So we exec the FD to /dev/null,
43292 # effectively closing config.log, so it can be properly (re)opened and
43293 # appended to by config.status. When coming back to configure, we
43294 # need to make the FD available again.
43295 if test "$no_create" != yes; then
43297 ac_config_status_args=
43298 test "$silent" = yes &&
43299 ac_config_status_args="$ac_config_status_args --quiet"
43301 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43303 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43304 # would make configure fail if this is the last instruction.
43305 $ac_cs_success || as_fn_exit 1
43309 # CONFIG_SUBDIRS section.
43311 if test "$no_recursion" != yes; then
43313 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43314 # so they do not pile up.
43315 ac_sub_configure_args=
43317 eval "set x $ac_configure_args"
43321 if test -n "$ac_prev"; then
43326 -cache-file | --cache-file | --cache-fil | --cache-fi \
43327 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43328 ac_prev=cache_file ;;
43329 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43330 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43333 --config-cache | -C)
43335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43343 --disable-option-checking)
43347 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43349 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43353 # Always prepend --prefix to ensure using the same prefix
43354 # in subdir configurations.
43355 ac_arg="--prefix=$prefix"
43357 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43359 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43362 if test "$silent" = yes; then
43363 ac_sub_configure_args="--silent $ac_sub_configure_args"
43366 # Always prepend --disable-option-checking to silence warnings, since
43367 # different subdirs can have different --enable and --with options.
43368 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43371 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43373 # Do not complain, so a configure script can configure whichever
43374 # parts of a large source tree are present.
43375 test -d "$srcdir/$ac_dir" || continue
43377 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43378 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43379 $as_echo "$ac_msg" >&6
43380 as_dir="$ac_dir"; as_fn_mkdir_p
43384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43386 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43387 # A ".." for each directory in $ac_dir_suffix.
43388 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43389 case $ac_top_builddir_sub in
43390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43394 ac_abs_top_builddir=$ac_pwd
43395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43396 # for backward compatibility:
43397 ac_top_builddir=$ac_top_build_prefix
43400 .) # We are building in place.
43402 ac_top_srcdir=$ac_top_builddir_sub
43403 ac_abs_top_srcdir=$ac_pwd ;;
43404 [\\/]* | ?:[\\/]* ) # Absolute name.
43405 ac_srcdir=$srcdir$ac_dir_suffix;
43406 ac_top_srcdir=$srcdir
43407 ac_abs_top_srcdir=$srcdir ;;
43408 *) # Relative name.
43409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43410 ac_top_srcdir=$ac_top_build_prefix$srcdir
43411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43418 # Check for guested configure; otherwise get Cygnus style configure.
43419 if test -f "$ac_srcdir/configure.gnu"; then
43420 ac_sub_configure=$ac_srcdir/configure.gnu
43421 elif test -f "$ac_srcdir/configure"; then
43422 ac_sub_configure=$ac_srcdir/configure
43423 elif test -f "$ac_srcdir/configure.in"; then
43424 # This should be Cygnus configure.
43425 ac_sub_configure=$ac_aux_dir/configure
43427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43428 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43432 # The recursion is here.
43433 if test -n "$ac_sub_configure"; then
43434 # Make the cache file name correct relative to the subdirectory.
43435 case $cache_file in
43436 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43437 *) # Relative name.
43438 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43441 { $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
43442 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43443 # The eval makes quoting arguments work.
43444 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43445 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43446 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43454 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43459 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43460 if test -z "$tmp_cpp"; then
43463 cat >./tests/configurehelp.pm <<_EOF
43464 # This is a generated file. Do not edit.
43466 package configurehelp;
43478 @ISA = qw(Exporter);
43484 \$Cpreprocessor = '$tmp_cpp';
43491 ## ---------------------------------- ##
43492 ## Start of distclean amending code ##
43493 ## ---------------------------------- ##
43495 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43498 if test ! -f "$xc_subdir/Makefile"; then
43499 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43503 # Fetch dependency tracking file list from Makefile include lines.
43505 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43506 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43508 # --disable-dependency-tracking might have been used, consequently
43509 # there is nothing to amend without a dependency tracking file list.
43511 if test $xc_cnt_words -gt 0; then
43513 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43514 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43516 # Build Makefile specific patch hunk.
43518 xc_p="$xc_subdir/xc_patch.tmp"
43520 xc_rm_depfiles=`echo "$xc_inc_lines" \
43521 | $SED 's%include% -rm -f%' 2>/dev/null`
43523 xc_dep_subdirs=`echo "$xc_inc_lines" \
43524 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43525 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43528 echo "$xc_rm_depfiles" >$xc_p
43530 for xc_dep_dir in $xc_dep_subdirs; do
43531 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
43532 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
43533 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
43534 echo "${xc_tab}fi" >>$xc_p
43537 # Build Makefile patching sed scripts.
43539 xc_s1="$xc_subdir/xc_script_1.tmp"
43540 xc_s2="$xc_subdir/xc_script_2.tmp"
43541 xc_s3="$xc_subdir/xc_script_3.tmp"
43543 cat >$xc_s1 <<\_EOT
43544 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
43545 s/^.*(DEPDIR)/___xc_depdir_line___/
43547 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
43548 s/^.*(DEPDIR)/___xc_depdir_line___/
43552 cat >$xc_s2 <<\_EOT
43553 /___xc_depdir_line___$/{
43555 /___xc_depdir_line___$/D
43560 /^___xc_depdir_line___/{
43566 # Apply patch to Makefile and cleanup.
43568 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
43569 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
43570 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
43572 if test -f "$xc_subdir/Makefile.tmp3"; then
43573 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
43576 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
43577 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
43578 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
43580 test -f "$xc_p" && rm -f "$xc_p"
43581 test -f "$xc_s1" && rm -f "$xc_s1"
43582 test -f "$xc_s2" && rm -f "$xc_s2"
43583 test -f "$xc_s3" && rm -f "$xc_s3"
43589 ## -------------------------------- ##
43590 ## End of distclean amending code ##
43591 ## -------------------------------- ##
43595 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
43597 curl version: ${CURLVERSION}
43598 Host setup: ${host}
43599 Install prefix: ${prefix}
43601 SSL support: ${curl_ssl_msg}
43602 SSH support: ${curl_ssh_msg}
43603 zlib support: ${curl_zlib_msg}
43604 GSS-API support: ${curl_gss_msg}
43605 TLS-SRP support: ${curl_tls_srp_msg}
43606 resolver: ${curl_res_msg}
43607 IPv6 support: ${curl_ipv6_msg}
43608 Unix sockets support: ${curl_unix_sockets_msg}
43609 IDN support: ${curl_idn_msg}
43610 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
43611 Built-in manual: ${curl_manual_msg}
43612 --libcurl option: ${curl_libcurl_msg}
43613 Verbose errors: ${curl_verbose_msg}
43614 SSPI support: ${curl_sspi_msg}
43615 ca cert bundle: ${ca}${ca_warning}
43616 ca cert path: ${capath}${capath_warning}
43617 ca fallback: ${with_ca_fallback}
43618 LDAP support: ${curl_ldap_msg}
43619 LDAPS support: ${curl_ldaps_msg}
43620 RTSP support: ${curl_rtsp_msg}
43621 RTMP support: ${curl_rtmp_msg}
43622 metalink support: ${curl_mtlnk_msg}
43623 PSL support: ${curl_psl_msg}
43624 HTTP2 support: ${curl_h2_msg}
43625 Protocols: ${SUPPORT_PROTOCOLS}
43627 $as_echo "$as_me: Configured to build curl/libcurl:
43629 curl version: ${CURLVERSION}
43630 Host setup: ${host}
43631 Install prefix: ${prefix}
43633 SSL support: ${curl_ssl_msg}
43634 SSH support: ${curl_ssh_msg}
43635 zlib support: ${curl_zlib_msg}
43636 GSS-API support: ${curl_gss_msg}
43637 TLS-SRP support: ${curl_tls_srp_msg}
43638 resolver: ${curl_res_msg}
43639 IPv6 support: ${curl_ipv6_msg}
43640 Unix sockets support: ${curl_unix_sockets_msg}
43641 IDN support: ${curl_idn_msg}
43642 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
43643 Built-in manual: ${curl_manual_msg}
43644 --libcurl option: ${curl_libcurl_msg}
43645 Verbose errors: ${curl_verbose_msg}
43646 SSPI support: ${curl_sspi_msg}
43647 ca cert bundle: ${ca}${ca_warning}
43648 ca cert path: ${capath}${capath_warning}
43649 ca fallback: ${with_ca_fallback}
43650 LDAP support: ${curl_ldap_msg}
43651 LDAPS support: ${curl_ldaps_msg}
43652 RTSP support: ${curl_rtsp_msg}
43653 RTMP support: ${curl_rtmp_msg}
43654 metalink support: ${curl_mtlnk_msg}
43655 PSL support: ${curl_psl_msg}
43656 HTTP2 support: ${curl_h2_msg}
43657 Protocols: ${SUPPORT_PROTOCOLS}
43660 if test "x$soname_bump" = "xyes"; then
43663 SONAME bump: yes - WARNING: this library will be built with the SONAME
43664 number bumped due to (a detected) ABI breakage.
43665 See lib/README.curl_off_t for details on this.